diff --git a/swh/web/static/jssources/@babel/polyfill/LICENSE.txt b/swh/web/static/jssources/@babel/polyfill/LICENSE.txt
deleted file mode 100644
index a06ec0e7..00000000
--- a/swh/web/static/jssources/@babel/polyfill/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-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.
diff --git a/swh/web/static/jssources/@babel/polyfill/lib/index.js b/swh/web/static/jssources/@babel/polyfill/lib/index.js
deleted file mode 100644
index cd0ad88e..00000000
--- a/swh/web/static/jssources/@babel/polyfill/lib/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-
-require("core-js/es6");
-
-require("core-js/fn/array/includes");
-
-require("core-js/fn/string/pad-start");
-
-require("core-js/fn/string/pad-end");
-
-require("core-js/fn/symbol/async-iterator");
-
-require("core-js/fn/object/get-own-property-descriptors");
-
-require("core-js/fn/object/values");
-
-require("core-js/fn/object/entries");
-
-require("core-js/fn/promise/finally");
-
-require("core-js/web");
-
-require("regenerator-runtime/runtime");
-
-if (global._babelPolyfill && typeof console !== "undefined" && console.warn) {
- console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended " + "and may have consequences if different versions of the polyfills are applied sequentially. " + "If you do need to load the polyfill more than once, use @babel/polyfill/noConflict " + "instead to bypass the warning.");
-}
-
-global._babelPolyfill = true;
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/LICENSE.txt b/swh/web/static/jssources/@babel/runtime-corejs2/LICENSE.txt
deleted file mode 100644
index f31575ec..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-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.
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/array/is-array.js b/swh/web/static/jssources/@babel/runtime-corejs2/core-js/array/is-array.js
deleted file mode 100644
index c3313904..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/array/is-array.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js/library/fn/array/is-array");
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/get-iterator.js b/swh/web/static/jssources/@babel/runtime-corejs2/core-js/get-iterator.js
deleted file mode 100644
index 4fa43730..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/get-iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js/library/fn/get-iterator");
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/json/stringify.js b/swh/web/static/jssources/@babel/runtime-corejs2/core-js/json/stringify.js
deleted file mode 100644
index 13f0b892..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/json/stringify.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js/library/fn/json/stringify");
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/parse-int.js b/swh/web/static/jssources/@babel/runtime-corejs2/core-js/parse-int.js
deleted file mode 100644
index f405c68d..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/parse-int.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js/library/fn/parse-int");
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/promise.js b/swh/web/static/jssources/@babel/runtime-corejs2/core-js/promise.js
deleted file mode 100644
index e62e14b5..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/core-js/promise.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js/library/fn/promise");
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/helpers/asyncToGenerator.js b/swh/web/static/jssources/@babel/runtime-corejs2/helpers/asyncToGenerator.js
deleted file mode 100644
index f15531db..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/helpers/asyncToGenerator.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var _Promise = require("../core-js/promise");
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
-
- if (info.done) {
- resolve(value);
- } else {
- _Promise.resolve(value).then(_next, _throw);
- }
-}
-
-function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new _Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
-
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
-
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
-
- _next(undefined);
- });
- };
-}
-
-module.exports = _asyncToGenerator;
\ No newline at end of file
diff --git a/swh/web/static/jssources/@babel/runtime-corejs2/regenerator/index.js b/swh/web/static/jssources/@babel/runtime-corejs2/regenerator/index.js
deleted file mode 100644
index 9fd4158a..00000000
--- a/swh/web/static/jssources/@babel/runtime-corejs2/regenerator/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("regenerator-runtime");
diff --git a/swh/web/static/jssources/LICENSE.txt b/swh/web/static/jssources/LICENSE.txt
deleted file mode 100644
index dba13ed2..00000000
--- a/swh/web/static/jssources/LICENSE.txt
+++ /dev/null
@@ -1,661 +0,0 @@
- GNU AFFERO GENERAL PUBLIC LICENSE
- Version 3, 19 November 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU Affero General Public License is a free, copyleft license for
-software and other kinds of works, specifically designed to ensure
-cooperation with the community in the case of network server software.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-our General Public Licenses are intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- Developers that use our General Public Licenses protect your rights
-with two steps: (1) assert copyright on the software, and (2) offer
-you this License which gives you legal permission to copy, distribute
-and/or modify the software.
-
- A secondary benefit of defending all users' freedom is that
-improvements made in alternate versions of the program, if they
-receive widespread use, become available for other developers to
-incorporate. Many developers of free software are heartened and
-encouraged by the resulting cooperation. However, in the case of
-software used on network servers, this result may fail to come about.
-The GNU General Public License permits making a modified version and
-letting the public access it on a server without ever releasing its
-source code to the public.
-
- The GNU Affero General Public License is designed specifically to
-ensure that, in such cases, the modified source code becomes available
-to the community. It requires the operator of a network server to
-provide the source code of the modified version running there to the
-users of that server. Therefore, public use of a modified version, on
-a publicly accessible server, gives the public access to the source
-code of the modified version.
-
- An older license, called the Affero General Public License and
-published by Affero, was designed to accomplish similar goals. This is
-a different license, not a version of the Affero GPL, but Affero has
-released a new version of the Affero GPL which permits relicensing under
-this license.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU Affero General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Remote Network Interaction; Use with the GNU General Public License.
-
- Notwithstanding any other provision of this License, if you modify the
-Program, your modified version must prominently offer all users
-interacting with it remotely through a computer network (if your version
-supports such interaction) an opportunity to receive the Corresponding
-Source of your version by providing access to the Corresponding Source
-from a network server at no charge, through some standard or customary
-means of facilitating copying of software. This Corresponding Source
-shall include the Corresponding Source for any work covered by version 3
-of the GNU General Public License that is incorporated pursuant to the
-following paragraph.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the work with which it is combined will remain governed by version
-3 of the GNU General Public License.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU Affero General Public License from time to time. Such new versions
-will be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU Affero General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU Affero General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU Affero General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If your software can interact with users remotely through a computer
-network, you should also make sure that it provides a way for users to
-get its source. For example, if your program is a web application, its
-interface could display a "Source" link that leads users to an archive
-of the code. There are many ways you could offer source, and different
-solutions will be better for different programs; see section 13 for the
-specific requirements.
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU AGPL, see
- .
diff --git a/swh/web/static/jssources/admin-lte/LICENSE.txt b/swh/web/static/jssources/admin-lte/LICENSE.txt
deleted file mode 100644
index c8d39378..00000000
--- a/swh/web/static/jssources/admin-lte/LICENSE.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2018 almasaeed2010
-
-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.
diff --git a/swh/web/static/jssources/ansi-html/LICENSE.txt b/swh/web/static/jssources/ansi-html/LICENSE.txt
deleted file mode 100644
index e06d2081..00000000
--- a/swh/web/static/jssources/ansi-html/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
diff --git a/swh/web/static/jssources/ansi-html/index.js b/swh/web/static/jssources/ansi-html/index.js
deleted file mode 100644
index 7c942d6d..00000000
--- a/swh/web/static/jssources/ansi-html/index.js
+++ /dev/null
@@ -1,176 +0,0 @@
-'use strict'
-
-module.exports = ansiHTML
-
-// Reference to https://github.com/sindresorhus/ansi-regex
-var _regANSI = /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/
-
-var _defColors = {
- reset: ['fff', '000'], // [FOREGROUD_COLOR, BACKGROUND_COLOR]
- black: '000',
- red: 'ff0000',
- green: '209805',
- yellow: 'e8bf03',
- blue: '0000ff',
- magenta: 'ff00ff',
- cyan: '00ffee',
- lightgrey: 'f0f0f0',
- darkgrey: '888'
-}
-var _styles = {
- 30: 'black',
- 31: 'red',
- 32: 'green',
- 33: 'yellow',
- 34: 'blue',
- 35: 'magenta',
- 36: 'cyan',
- 37: 'lightgrey'
-}
-var _openTags = {
- '1': 'font-weight:bold', // bold
- '2': 'opacity:0.5', // dim
- '3': '', // italic
- '4': '', // underscore
- '8': 'display:none', // hidden
- '9': '' // delete
-}
-var _closeTags = {
- '23': ' ', // reset italic
- '24': '', // reset underscore
- '29': '' // reset delete
-}
-
-;[0, 21, 22, 27, 28, 39, 49].forEach(function (n) {
- _closeTags[n] = ''
-})
-
-/**
- * Converts text with ANSI color codes to HTML markup.
- * @param {String} text
- * @returns {*}
- */
-function ansiHTML (text) {
- // Returns the text if the string has no ANSI escape code.
- if (!_regANSI.test(text)) {
- return text
- }
-
- // Cache opened sequence.
- var ansiCodes = []
- // Replace with markup.
- var ret = text.replace(/\033\[(\d+)*m/g, function (match, seq) {
- var ot = _openTags[seq]
- if (ot) {
- // If current sequence has been opened, close it.
- if (!!~ansiCodes.indexOf(seq)) { // eslint-disable-line no-extra-boolean-cast
- ansiCodes.pop()
- return ''
- }
- // Open tag.
- ansiCodes.push(seq)
- return ot[0] === '<' ? ot : ''
- }
-
- var ct = _closeTags[seq]
- if (ct) {
- // Pop sequence
- ansiCodes.pop()
- return ct
- }
- return ''
- })
-
- // Make sure tags are closed.
- var l = ansiCodes.length
- ;(l > 0) && (ret += Array(l + 1).join(' '))
-
- return ret
-}
-
-/**
- * Customize colors.
- * @param {Object} colors reference to _defColors
- */
-ansiHTML.setColors = function (colors) {
- if (typeof colors !== 'object') {
- throw new Error('`colors` parameter must be an Object.')
- }
-
- var _finalColors = {}
- for (var key in _defColors) {
- var hex = colors.hasOwnProperty(key) ? colors[key] : null
- if (!hex) {
- _finalColors[key] = _defColors[key]
- continue
- }
- if ('reset' === key) {
- if (typeof hex === 'string') {
- hex = [hex]
- }
- if (!Array.isArray(hex) || hex.length === 0 || hex.some(function (h) {
- return typeof h !== 'string'
- })) {
- throw new Error('The value of `' + key + '` property must be an Array and each item could only be a hex string, e.g.: FF0000')
- }
- var defHexColor = _defColors[key]
- if (!hex[0]) {
- hex[0] = defHexColor[0]
- }
- if (hex.length === 1 || !hex[1]) {
- hex = [hex[0]]
- hex.push(defHexColor[1])
- }
-
- hex = hex.slice(0, 2)
- } else if (typeof hex !== 'string') {
- throw new Error('The value of `' + key + '` property must be a hex string, e.g.: FF0000')
- }
- _finalColors[key] = hex
- }
- _setTags(_finalColors)
-}
-
-/**
- * Reset colors.
- */
-ansiHTML.reset = function () {
- _setTags(_defColors)
-}
-
-/**
- * Expose tags, including open and close.
- * @type {Object}
- */
-ansiHTML.tags = {}
-
-if (Object.defineProperty) {
- Object.defineProperty(ansiHTML.tags, 'open', {
- get: function () { return _openTags }
- })
- Object.defineProperty(ansiHTML.tags, 'close', {
- get: function () { return _closeTags }
- })
-} else {
- ansiHTML.tags.open = _openTags
- ansiHTML.tags.close = _closeTags
-}
-
-function _setTags (colors) {
- // reset all
- _openTags['0'] = 'font-weight:normal;opacity:1;color:#' + colors.reset[0] + ';background:#' + colors.reset[1]
- // inverse
- _openTags['7'] = 'color:#' + colors.reset[1] + ';background:#' + colors.reset[0]
- // dark grey
- _openTags['90'] = 'color:#' + colors.darkgrey
-
- for (var code in _styles) {
- var color = _styles[code]
- var oriColor = colors[color] || '000'
- _openTags[code] = 'color:#' + oriColor
- code = parseInt(code)
- _openTags[(code + 10).toString()] = 'background:#' + oriColor
- }
-}
-
-ansiHTML.reset()
diff --git a/swh/web/static/jssources/ansi-regex/index.js b/swh/web/static/jssources/ansi-regex/index.js
deleted file mode 100644
index b9574ed7..00000000
--- a/swh/web/static/jssources/ansi-regex/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-module.exports = function () {
- return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
-};
diff --git a/swh/web/static/jssources/ansi-regex/license.txt b/swh/web/static/jssources/ansi-regex/license.txt
deleted file mode 100644
index 654d0bfe..00000000
--- a/swh/web/static/jssources/ansi-regex/license.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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.
diff --git a/swh/web/static/jssources/bootstrap-year-calendar-bs4/LICENSE.txt b/swh/web/static/jssources/bootstrap-year-calendar-bs4/LICENSE.txt
deleted file mode 100644
index 8f71f43f..00000000
--- a/swh/web/static/jssources/bootstrap-year-calendar-bs4/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
diff --git a/swh/web/static/jssources/bootstrap-year-calendar-bs4/js/bootstrap-year-calendar.js b/swh/web/static/jssources/bootstrap-year-calendar-bs4/js/bootstrap-year-calendar.js
deleted file mode 100644
index ad10da70..00000000
--- a/swh/web/static/jssources/bootstrap-year-calendar-bs4/js/bootstrap-year-calendar.js
+++ /dev/null
@@ -1,1122 +0,0 @@
-/* =========================================================
- * Bootstrap year calendar v1.1.0
- * Repo: https://github.com/Paul-DS/bootstrap-year-calendar
- * =========================================================
- * BOOTSTRAP 4 Integration by Raul Neiva
- * =========================================================
- * Created by Paul David-Sivelle
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ========================================================= */
-
- (function($) {
- var Calendar = function(element, options) {
- this.element = element;
- this.element.addClass('calendar');
-
- this._initializeEvents(options);
- this._initializeOptions(options);
- this.setYear(this.options.startYear);
- };
-
- Calendar.prototype = {
- constructor: Calendar,
- _initializeOptions: function(opt) {
- if(opt == null) {
- opt = [];
- }
-
- this.options = {
- startYear: !isNaN(parseInt(opt.startYear)) ? parseInt(opt.startYear) : new Date().getFullYear(),
- minDate: opt.minDate instanceof Date ? opt.minDate : null,
- maxDate: opt.maxDate instanceof Date ? opt.maxDate : null,
- language: (opt.language != null && dates[opt.language] != null) ? opt.language : 'en',
- allowOverlap: opt.allowOverlap != null ? opt.allowOverlap : true,
- displayWeekNumber: opt.displayWeekNumber != null ? opt.displayWeekNumber : false,
- displayDisabledDataSource: opt.displayDisabledDataSource != null ? opt.displayDisabledDataSource : false,
- displayHeader: opt.displayHeader != null ? opt.displayHeader : true,
- alwaysHalfDay: opt.alwaysHalfDay != null ? opt.alwaysHalfDay : false,
- enableRangeSelection: opt.enableRangeSelection != null ? opt.enableRangeSelection : false,
- disabledDays: opt.disabledDays instanceof Array ? opt.disabledDays : [],
- disabledWeekDays: opt.disabledWeekDays instanceof Array ? opt.disabledWeekDays : [],
- hiddenWeekDays: opt.hiddenWeekDays instanceof Array ? opt.hiddenWeekDays : [],
- roundRangeLimits: opt.roundRangeLimits != null ? opt.roundRangeLimits : false,
- dataSource: opt.dataSource instanceof Array ? opt.dataSource : [],
- style: opt.style == 'background' || opt.style == 'border' || opt.style == 'custom' ? opt.style : 'border',
- enableContextMenu: opt.enableContextMenu != null ? opt.enableContextMenu : false,
- contextMenuItems: opt.contextMenuItems instanceof Array ? opt.contextMenuItems : [],
- customDayRenderer : $.isFunction(opt.customDayRenderer) ? opt.customDayRenderer : null,
- customDataSourceRenderer : $.isFunction(opt.customDataSourceRenderer) ? opt.customDataSourceRenderer : null,
- weekStart: !isNaN(parseInt(opt.weekStart)) ? parseInt(opt.weekStart) : null
- };
-
- this._initializeDatasourceColors();
- },
- _initializeEvents: function(opt) {
- if(opt == null) {
- opt = [];
- }
-
- if(opt.yearChanged) { this.element.bind('yearChanged', opt.yearChanged); }
- if(opt.renderEnd) { this.element.bind('renderEnd', opt.renderEnd); }
- if(opt.clickDay) { this.element.bind('clickDay', opt.clickDay); }
- if(opt.dayContextMenu) { this.element.bind('dayContextMenu', opt.dayContextMenu); }
- if(opt.selectRange) { this.element.bind('selectRange', opt.selectRange); }
- if(opt.mouseOnDay) { this.element.bind('mouseOnDay', opt.mouseOnDay); }
- if(opt.mouseOutDay) { this.element.bind('mouseOutDay', opt.mouseOutDay); }
- },
- _initializeDatasourceColors: function() {
- for(var i = 0; i < this.options.dataSource.length; i++) {
- if(this.options.dataSource[i].color == null) {
- this.options.dataSource[i].color = colors[i % colors.length];
- }
- }
- },
- render: function() {
- this.element.empty();
-
- if(this.options.displayHeader) {
- this._renderHeader();
- }
-
- this._renderBody();
- this._renderDataSource();
-
- this._applyEvents();
- this.element.find('.months-container').fadeIn(500);
-
- this._triggerEvent('renderEnd', { currentYear: this.options.startYear });
- },
- _renderHeader: function() {
- var header = $(document.createElement('div'));
- header.addClass('calendar-header card');
-
- var headerBody = $(document.createElement('div'));
- headerBody.addClass('card-body p-0');
-
- var headerTable = $(document.createElement('table'));
-
- var prevDiv = $(document.createElement('th'));
- prevDiv.addClass('prev');
-
- if(this.options.minDate != null && this.options.minDate > new Date(this.options.startYear - 1, 11, 31)) {
- prevDiv.addClass('disabled');
- }
-
- var prevIcon = $(document.createElement('span'));
- prevIcon.addClass('oi oi-chevron-left');
-
- prevDiv.append(prevIcon);
-
- headerTable.append(prevDiv);
-
- var prev2YearDiv = $(document.createElement('th'));
- prev2YearDiv.addClass('year-title year-neighbor2 d-none d-md-table-cell');
- prev2YearDiv.text(this.options.startYear - 2);
-
- if(this.options.minDate != null && this.options.minDate > new Date(this.options.startYear - 2, 11, 31)) {
- prev2YearDiv.addClass('disabled');
- }
-
- headerTable.append(prev2YearDiv);
-
- var prevYearDiv = $(document.createElement('th'));
- prevYearDiv.addClass('year-title year-neighbor d-none d-sm-table-cell');
- prevYearDiv.text(this.options.startYear - 1);
-
- if(this.options.minDate != null && this.options.minDate > new Date(this.options.startYear - 1, 11, 31)) {
- prevYearDiv.addClass('disabled');
- }
-
- headerTable.append(prevYearDiv);
-
- var yearDiv = $(document.createElement('th'));
- yearDiv.addClass('year-title');
- yearDiv.text(this.options.startYear);
-
- headerTable.append(yearDiv);
-
- var nextYearDiv = $(document.createElement('th'));
- nextYearDiv.addClass('year-title year-neighbor d-none d-sm-table-cell');
- nextYearDiv.text(this.options.startYear + 1);
-
- if(this.options.maxDate != null && this.options.maxDate < new Date(this.options.startYear + 1, 0, 1)) {
- nextYearDiv.addClass('disabled');
- }
-
- headerTable.append(nextYearDiv);
-
- var next2YearDiv = $(document.createElement('th'));
- next2YearDiv.addClass('year-title year-neighbor2 d-none d-md-table-cell');
- next2YearDiv.text(this.options.startYear + 2);
-
- if(this.options.maxDate != null && this.options.maxDate < new Date(this.options.startYear + 2, 0, 1)) {
- next2YearDiv.addClass('disabled');
- }
-
- headerTable.append(next2YearDiv);
-
- var nextDiv = $(document.createElement('th'));
- nextDiv.addClass('next');
-
- if(this.options.maxDate != null && this.options.maxDate < new Date(this.options.startYear + 1, 0, 1)) {
- nextDiv.addClass('disabled');
- }
-
- var nextIcon = $(document.createElement('span'));
- nextIcon.addClass('oi oi-chevron-right');
-
- nextDiv.append(nextIcon);
-
- headerTable.append(nextDiv);
-
- headerBody.append(headerTable);
-
- header.append(headerBody);
-
- this.element.append(header);
- },
- _renderBody: function() {
- var monthsDiv = $(document.createElement('div'));
- monthsDiv.addClass('months-container');
-
- var bsRow = $(document.createElement('div'));
- bsRow.addClass('row m-0');
-
- monthsDiv.append(bsRow);
-
- for(var m = 0; m < 12; m++) {
- /* Container */
- var monthDiv = $(document.createElement('div'));
- monthDiv.addClass('month-container');
- monthDiv.data('month-id', m);
-
- var firstDate = new Date(this.options.startYear, m, 1);
-
- var table = $(document.createElement('table'));
- table.addClass('month');
-
- /* Month header */
- var thead = $(document.createElement('thead'));
-
- var titleRow = $(document.createElement('tr'));
-
- var titleCell = $(document.createElement('th'));
- titleCell.addClass('month-title');
- titleCell.attr('colspan', this.options.displayWeekNumber ? 8 : 7);
- titleCell.text(dates[this.options.language].months[m]);
-
- titleRow.append(titleCell);
- thead.append(titleRow);
-
- var headerRow = $(document.createElement('tr'));
-
- if(this.options.displayWeekNumber) {
- var weekNumberCell = $(document.createElement('th'));
- weekNumberCell.addClass('week-number');
- weekNumberCell.text(dates[this.options.language].weekShort);
- headerRow.append(weekNumberCell);
- }
-
- var weekStart = this.options.weekStart ? this.options.weekStart : dates[this.options.language].weekStart;
- var d = weekStart;
- do
- {
- var headerCell = $(document.createElement('th'));
- headerCell.addClass('day-header');
- headerCell.text(dates[this.options.language].daysMin[d]);
-
- if(this._isHidden(d)) {
- headerCell.addClass('hidden');
- }
-
- headerRow.append(headerCell);
-
- d++;
- if(d >= 7)
- d = 0;
- }
- while(d != weekStart)
-
- thead.append(headerRow);
- table.append(thead);
-
- /* Days */
- var currentDate = new Date(firstDate.getTime());
- var lastDate = new Date(this.options.startYear, m + 1, 0);
-
- while(currentDate.getDay() != weekStart)
- {
- currentDate.setDate(currentDate.getDate() - 1);
- }
-
- while(currentDate <= lastDate)
- {
- var row = $(document.createElement('tr'));
-
- if(this.options.displayWeekNumber) {
- var weekNumberCell = $(document.createElement('td'));
- weekNumberCell.addClass('week-number');
- weekNumberCell.text(this.getWeekNumber(currentDate));
- row.append(weekNumberCell);
- }
-
- do
- {
- var cell = $(document.createElement('td'));
- cell.addClass('day');
-
- if(this._isHidden(currentDate.getDay())) {
- cell.addClass('hidden');
- }
-
- if(currentDate < firstDate) {
- cell.addClass('old');
- }
- else if(currentDate > lastDate) {
- cell.addClass('new');
- }
- else {
- if(this._isDisabled(currentDate)) {
- cell.addClass('disabled');
- }
-
- var cellContent = $(document.createElement('div'));
- cellContent.addClass('day-content');
- cellContent.text(currentDate.getDate());
- cell.append(cellContent);
-
- if(this.options.customDayRenderer) {
- this.options.customDayRenderer(cellContent, currentDate);
- }
- }
-
- row.append(cell);
-
- currentDate.setDate(currentDate.getDate() + 1);
- }
- while(currentDate.getDay() != weekStart)
-
- table.append(row);
- }
-
- monthDiv.append(table);
-
- bsRow.append(monthDiv);
- }
-
- this.element.append(monthsDiv);
- },
- _renderDataSource: function() {
- var _this = this;
- if(this.options.dataSource != null && this.options.dataSource.length > 0) {
- this.element.find('.month-container').each(function() {
- var month = $(this).data('month-id');
-
- var firstDate = new Date(_this.options.startYear, month, 1);
- var lastDate = new Date(_this.options.startYear, month + 1, 1);
-
- if((_this.options.minDate == null || lastDate > _this.options.minDate) && (_this.options.maxDate == null || firstDate <= _this.options.maxDate))
- {
- var monthData = [];
-
- for(var i = 0; i < _this.options.dataSource.length; i++) {
- if(!(_this.options.dataSource[i].startDate >= lastDate) || (_this.options.dataSource[i].endDate < firstDate)) {
- monthData.push(_this.options.dataSource[i]);
- }
- }
-
- if(monthData.length > 0) {
- $(this).find('.day-content').each(function() {
- var currentDate = new Date(_this.options.startYear, month, $(this).text());
- var nextDate = new Date(_this.options.startYear, month, currentDate.getDate() + 1);
-
- var dayData = [];
-
- if((_this.options.minDate == null || currentDate >= _this.options.minDate) && (_this.options.maxDate == null || currentDate <= _this.options.maxDate))
- {
- for(var i = 0; i < monthData.length; i++) {
- if(monthData[i].startDate < nextDate && monthData[i].endDate >= currentDate) {
- dayData.push(monthData[i]);
- }
- }
-
- if(dayData.length > 0 && (_this.options.displayDisabledDataSource || !_this._isDisabled(currentDate)))
- {
- _this._renderDataSourceDay($(this), currentDate, dayData);
- }
- }
- });
- }
- }
- });
- }
- },
- _renderDataSourceDay: function(elt, currentDate, events) {
- switch(this.options.style)
- {
- case 'border':
- var weight = 0;
-
- if(events.length == 1) {
- weight = 4;
- }
- else if(events.length <= 3) {
- weight = 2;
- }
- else {
- elt.parent().css('box-shadow', 'inset 0 -4px 0 0 black');
- }
-
- if(weight > 0)
- {
- var boxShadow = '';
-
- for (var i = 0; i < events.length; i++)
- {
- if(boxShadow != '') {
- boxShadow += ",";
- }
-
- boxShadow += 'inset 0 -' + (parseInt(i) + 1) * weight + 'px 0 0 ' + events[i].color;
- }
-
- elt.parent().css('box-shadow', boxShadow);
- }
- break;
-
- case 'background':
- elt.parent().css('background-color', events[events.length - 1].color);
-
- var currentTime = currentDate.getTime();
-
- if(events[events.length - 1].startDate.getTime() == currentTime)
- {
- elt.parent().addClass('day-start');
-
- if(events[events.length - 1].startHalfDay || this.options.alwaysHalfDay) {
- elt.parent().addClass('day-half');
-
- // Find color for other half
- var otherColor = 'transparent';
- for(var i = events.length - 2; i >= 0; i--) {
- if(events[i].startDate.getTime() != currentTime || (!events[i].startHalfDay && !this.options.alwaysHalfDay)) {
- otherColor = events[i].color;
- break;
- }
- }
-
- elt.parent().css('background', 'linear-gradient(-45deg, ' + events[events.length - 1].color + ', ' + events[events.length - 1].color + ' 49%, ' + otherColor + ' 51%, ' + otherColor + ')');
- }
- else if(this.options.roundRangeLimits) {
- elt.parent().addClass('round-left');
- }
- }
- else if(events[events.length - 1].endDate.getTime() == currentTime)
- {
- elt.parent().addClass('day-end');
-
- if(events[events.length - 1].endHalfDay || this.options.alwaysHalfDay) {
- elt.parent().addClass('day-half');
-
- // Find color for other half
- var otherColor = 'transparent';
- for(var i = events.length - 2; i >= 0; i--) {
- if(events[i].endDate.getTime() != currentTime || (!events[i].endHalfDay && !this.options.alwaysHalfDay)) {
- otherColor = events[i].color;
- break;
- }
- }
-
- elt.parent().css('background', 'linear-gradient(135deg, ' + events[events.length - 1].color + ', ' + events[events.length - 1].color + ' 49%, ' + otherColor + ' 51%, ' + otherColor + ')');
- }
- else if(this.options.roundRangeLimits) {
- elt.parent().addClass('round-right');
- }
- }
- break;
-
- case 'custom':
- if(this.options.customDataSourceRenderer) {
- this.options.customDataSourceRenderer.call(this, elt, currentDate, events);
- }
- break;
- }
- },
- _applyEvents: function () {
- var _this = this;
-
- /* Header buttons */
- this.element.find('.year-neighbor, .year-neighbor2').click(function() {
- if(!$(this).hasClass('disabled')) {
- _this.setYear(parseInt($(this).text()));
- }
- });
-
- this.element.find('.calendar-header .prev').click(function() {
- if(!$(this).hasClass('disabled')) {
- _this.element.find('.months-container').animate({'margin-left':'100%'},100, function() {
- _this.element.find('.months-container').css('visibility', 'hidden');
- _this.element.find('.months-container').css('margin-left', '0');
-
- setTimeout(function() {
- _this.setYear(_this.options.startYear - 1);
- }, 50);
- });
- }
- });
-
- this.element.find('.calendar-header .next').click(function() {
- if(!$(this).hasClass('disabled')) {
- _this.element.find('.months-container').animate({'margin-left':'-100%'},100, function() {
- _this.element.find('.months-container').css('visibility', 'hidden');
- _this.element.find('.months-container').css('margin-left', '0');
-
- setTimeout(function() {
- _this.setYear(_this.options.startYear + 1);
- }, 50);
- });
- }
- });
-
- var cells = this.element.find('.day:not(.old, .new, .disabled)');
-
- /* Click on date */
- cells.click(function(e) {
- e.stopPropagation();
- var date = _this._getDate($(this));
- _this._triggerEvent('clickDay', {
- element: $(this),
- which: e.which,
- date: date,
- events: _this.getEvents(date)
- });
- });
-
- /* Click right on date */
-
- cells.bind('contextmenu', function(e) {
- if(_this.options.enableContextMenu)
- {
- e.preventDefault();
- if(_this.options.contextMenuItems.length > 0)
- {
- _this._openContextMenu($(this));
- }
- }
-
- var date = _this._getDate($(this));
- _this._triggerEvent('dayContextMenu', {
- element: $(this),
- date: date,
- events: _this.getEvents(date)
- });
- });
-
- /* Range selection */
- if(this.options.enableRangeSelection) {
- cells.mousedown(function (e) {
- if(e.which == 1) {
- var currentDate = _this._getDate($(this));
-
- if(_this.options.allowOverlap || _this.getEvents(currentDate).length == 0)
- {
- _this._mouseDown = true;
- _this._rangeStart = _this._rangeEnd = currentDate;
- _this._refreshRange();
- }
- }
- });
-
- cells.mouseenter(function (e) {
- if (_this._mouseDown) {
- var currentDate = _this._getDate($(this));
-
- if(!_this.options.allowOverlap)
- {
- var newDate = new Date(_this._rangeStart.getTime());
-
- if(newDate < currentDate) {
- var nextDate = new Date(newDate.getFullYear(), newDate.getMonth(), newDate.getDate() + 1);
- while(newDate < currentDate) {
- if(_this.getEvents(nextDate).length > 0)
- {
- break;
- }
-
- newDate.setDate(newDate.getDate() + 1);
- nextDate.setDate(nextDate.getDate() + 1);
- }
- }
- else {
- var nextDate = new Date(newDate.getFullYear(), newDate.getMonth(), newDate.getDate() - 1);
- while(newDate > currentDate) {
- if(_this.getEvents(nextDate).length > 0)
- {
- break;
- }
-
- newDate.setDate(newDate.getDate() - 1);
- nextDate.setDate(nextDate.getDate() - 1);
- }
- }
-
- currentDate = newDate;
- }
-
- var oldValue = _this._rangeEnd;
- _this._rangeEnd = currentDate;
-
- if (oldValue.getTime() != _this._rangeEnd.getTime()) {
- _this._refreshRange();
- }
- }
- });
-
- $(window).mouseup(function (e) {
- if (_this._mouseDown) {
- _this._mouseDown = false;
- _this._refreshRange();
-
- var minDate = _this._rangeStart < _this._rangeEnd ? _this._rangeStart : _this._rangeEnd;
- var maxDate = _this._rangeEnd > _this._rangeStart ? _this._rangeEnd : _this._rangeStart;
-
- _this._triggerEvent('selectRange', {
- startDate: minDate,
- endDate: maxDate,
- events: _this.getEventsOnRange(minDate, new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate() + 1))
- });
- }
- });
- }
-
- /* Hover date */
- cells.mouseenter(function(e) {
- if(!_this._mouseDown)
- {
- var date = _this._getDate($(this));
- _this._triggerEvent('mouseOnDay', {
- element: $(this),
- date: date,
- events: _this.getEvents(date)
- });
- }
- });
-
- cells.mouseleave(function(e) {
- var date = _this._getDate($(this));
- _this._triggerEvent('mouseOutDay', {
- element: $(this),
- date: date,
- events: _this.getEvents(date)
- });
- });
-
- /* Responsive management */
-
- setInterval(function() {
- var calendarSize = $(_this.element).width();
- var monthSize = $(_this.element).find('.month').first().width() + 10;
- var monthContainerClass = 'month-container';
-
- if(monthSize * 6 < calendarSize) {
- monthContainerClass += ' col-2';
- }
- else if(monthSize * 4 < calendarSize) {
- monthContainerClass += ' col-3';
- }
- else if(monthSize * 3 < calendarSize) {
- monthContainerClass += ' col-4';
- }
- else if(monthSize * 2 < calendarSize) {
- monthContainerClass += ' col-6';
- }
- else {
- monthContainerClass += ' col-12';
- }
-
- $(_this.element).find('.month-container').attr('class', monthContainerClass);
- }, 300);
- },
- _refreshRange: function () {
- var _this = this;
-
- this.element.find('td.day.range').removeClass('range')
- this.element.find('td.day.range-start').removeClass('range-start');
- this.element.find('td.day.range-end').removeClass('range-end');
-
- if (this._mouseDown) {
- var beforeRange = true;
- var afterRange = false;
- var minDate = _this._rangeStart < _this._rangeEnd ? _this._rangeStart : _this._rangeEnd;
- var maxDate = _this._rangeEnd > _this._rangeStart ? _this._rangeEnd : _this._rangeStart;
-
- this.element.find('.month-container').each(function () {
- var monthId = $(this).data('month-id');
- if (minDate.getMonth() <= monthId && maxDate.getMonth() >= monthId) {
- $(this).find('td.day:not(.old, .new)').each(function () {
- var date = _this._getDate($(this));
- if (date >= minDate && date <= maxDate) {
- $(this).addClass('range');
-
- if (date.getTime() == minDate.getTime()) {
- $(this).addClass('range-start');
- }
-
- if (date.getTime() == maxDate.getTime()) {
- $(this).addClass('range-end');
- }
- }
- });
- }
- });
- }
- },
- _openContextMenu: function(elt) {
- var contextMenu = $('.calendar-context-menu');
-
- if(contextMenu.length > 0) {
- contextMenu.hide();
- contextMenu.empty();
- }
- else {
- contextMenu = $(document.createElement('div'));
- contextMenu.addClass('calendar-context-menu');
- $('body').append(contextMenu);
- }
-
- var date = this._getDate(elt);
- var events = this.getEvents(date);
-
- for(var i = 0; i < events.length; i++) {
- var eventItem = $(document.createElement('div'));
- eventItem.addClass('item');
- eventItem.css('border-left', '4px solid ' + events[i].color);
-
- var eventItemContent = $(document.createElement('div'));
- eventItemContent.addClass('content');
- eventItemContent.text(events[i].name);
-
- eventItem.append(eventItemContent);
-
- var icon = $(document.createElement('span'));
- icon.addClass('oi oi-chevron-right');
-
- eventItem.append(icon);
-
- this._renderContextMenuItems(eventItem, this.options.contextMenuItems, events[i]);
-
- contextMenu.append(eventItem);
- }
-
- if(contextMenu.children().length > 0)
- {
- contextMenu.css('left', elt.offset().left + 25 + 'px');
- contextMenu.css('top', elt.offset().top + 25 + 'px');
- contextMenu.show();
-
- $(window).one('mouseup', function() {
- contextMenu.hide();
- });
- }
- },
- _renderContextMenuItems: function(parent, items, evt) {
- var subMenu = $(document.createElement('div'));
- subMenu.addClass('submenu');
-
- for(var i = 0; i < items.length; i++) {
- if(!items[i].visible || items[i].visible(evt)) {
- var menuItem = $(document.createElement('div'));
- menuItem.addClass('item');
-
- var menuItemContent = $(document.createElement('div'));
- menuItemContent.addClass('content');
- menuItemContent.text(items[i].text);
-
- menuItem.append(menuItemContent);
-
- if(items[i].click) {
- (function(index) {
- menuItem.click(function() {
- items[index].click(evt);
- });
- })(i);
- }
-
- var icon = $(document.createElement('span'));
- icon.addClass('oi oi-chevron-right');
-
- menuItem.append(icon);
-
- if(items[i].items && items[i].items.length > 0) {
- this._renderContextMenuItems(menuItem, items[i].items, evt);
- }
-
- subMenu.append(menuItem);
- }
- }
-
- if(subMenu.children().length > 0)
- {
- parent.append(subMenu);
- }
- },
- _getColor: function(colorString) {
- var div = $('
');
- div.css('color', colorString);
-
- },
- _getDate: function(elt) {
- var day = elt.children('.day-content').text();
- var month = elt.closest('.month-container').data('month-id');
- var year = this.options.startYear;
-
- return new Date(year, month, day);
- },
- _triggerEvent: function(eventName, parameters) {
- var event = $.Event(eventName);
-
- for(var i in parameters) {
- event[i] = parameters[i];
- }
-
- this.element.trigger(event);
-
- return event;
- },
- _isDisabled: function(date) {
- if((this.options.minDate != null && date < this.options.minDate) || (this.options.maxDate != null && date > this.options.maxDate))
- {
- return true;
- }
-
- if(this.options.disabledWeekDays.length > 0) {
- for(var d = 0; d < this.options.disabledWeekDays.length; d++){
- if(date.getDay() == this.options.disabledWeekDays[d]) {
- return true;
- }
- }
- }
-
- if(this.options.disabledDays.length > 0) {
- for(var d = 0; d < this.options.disabledDays.length; d++){
- if(date.getTime() == this.options.disabledDays[d].getTime()) {
- return true;
- }
- }
- }
-
- return false;
- },
- _isHidden: function(day) {
- if(this.options.hiddenWeekDays.length > 0) {
- for(var d = 0; d < this.options.hiddenWeekDays.length; d++) {
- if(day == this.options.hiddenWeekDays[d]) {
- return true;
- }
- }
- }
-
- return false;
- },
- getWeekNumber: function(date) {
- var tempDate = new Date(date.getTime());
- tempDate.setHours(0, 0, 0, 0);
- tempDate.setDate(tempDate.getDate() + 3 - (tempDate.getDay() + 6) % 7);
- var week1 = new Date(tempDate.getFullYear(), 0, 4);
- return 1 + Math.round(((tempDate.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);
- },
- getEvents: function(date) {
- return this.getEventsOnRange(date, new Date(date.getFullYear(), date.getMonth(), date.getDate() + 1));
- },
- getEventsOnRange: function(startDate, endDate) {
- var events = [];
-
- if(this.options.dataSource && startDate && endDate) {
- for(var i = 0; i < this.options.dataSource.length; i++) {
- if(this.options.dataSource[i].startDate < endDate && this.options.dataSource[i].endDate >= startDate) {
- events.push(this.options.dataSource[i]);
- }
- }
- }
-
- return events;
- },
- getYear: function() {
- return this.options.startYear;
- },
- setYear: function(year) {
- var parsedYear = parseInt(year);
- if(!isNaN(parsedYear)) {
- this.options.startYear = parsedYear;
-
- this.element.empty();
-
- if(this.options.displayHeader) {
- this._renderHeader();
- }
-
- var eventResult = this._triggerEvent('yearChanged', { currentYear: this.options.startYear, preventRendering: false });
-
- if(!eventResult.preventRendering) {
- this.render();
- }
- }
- },
- getMinDate: function() {
- return this.options.minDate;
- },
- setMinDate: function(date, preventRendering) {
- if(date instanceof Date) {
- this.options.minDate = date;
-
- if(!preventRendering) {
- this.render();
- }
- }
- },
- getMaxDate: function() {
- return this.options.maxDate;
- },
- setMaxDate: function(date, preventRendering) {
- if(date instanceof Date) {
- this.options.maxDate = date;
-
- if(!preventRendering) {
- this.render();
- }
- }
- },
- getStyle: function() {
- return this.options.style;
- },
- setStyle: function(style, preventRendering) {
- this.options.style = style == 'background' || style == 'border' || style == 'custom' ? style : 'border';
-
- if(!preventRendering) {
- this.render();
- }
- },
- getAllowOverlap: function() {
- return this.options.allowOverlap;
- },
- setAllowOverlap: function(allowOverlap) {
- this.options.allowOverlap = allowOverlap;
- },
- getDisplayWeekNumber: function() {
- return this.options.displayWeekNumber;
- },
- setDisplayWeekNumber: function(displayWeekNumber, preventRendering) {
- this.options.displayWeekNumber = displayWeekNumber;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getDisplayHeader: function() {
- return this.options.displayHeader;
- },
- setDisplayHeader: function(displayHeader, preventRendering) {
- this.options.displayHeader = displayHeader;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getDisplayDisabledDataSource: function() {
- return this.options.displayDisabledDataSource;
- },
- setDisplayDisabledDataSource: function(displayDisabledDataSource, preventRendering) {
- this.options.displayDisabledDataSource = displayDisabledDataSource;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getAlwaysHalfDay: function() {
- return this.options.alwaysHalfDay;
- },
- setAlwaysHalfDay: function(alwaysHalfDay, preventRendering) {
- this.options.alwaysHalfDay = alwaysHalfDay;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getEnableRangeSelection: function() {
- return this.options.enableRangeSelection;
- },
- setEnableRangeSelection: function(enableRangeSelection, preventRendering) {
- this.options.enableRangeSelection = enableRangeSelection;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getDisabledDays: function() {
- return this.options.disabledDays;
- },
- setDisabledDays: function(disabledDays, preventRendering) {
- this.options.disabledDays = disabledDays instanceof Array ? disabledDays : [];
-
- if(!preventRendering) {
- this.render();
- }
- },
- getDisabledWeekDays: function() {
- return this.options.disabledWeekDays;
- },
- setDisabledWeekDays: function(disabledWeekDays, preventRendering) {
- this.options.disabledWeekDays = disabledWeekDays instanceof Array ? disabledWeekDays : [];
-
- if(!preventRendering) {
- this.render();
- }
- },
- getHiddenWeekDays: function() {
- return this.options.hiddenWeekDays;
- },
- setHiddenWeekDays: function(hiddenWeekDays, preventRendering) {
- this.options.hiddenWeekDays = hiddenWeekDays instanceof Array ? hiddenWeekDays : [];
-
- if(!preventRendering) {
- this.render();
- }
- },
- getRoundRangeLimits: function() {
- return this.options.roundRangeLimits;
- },
- setRoundRangeLimits: function(roundRangeLimits, preventRendering) {
- this.options.roundRangeLimits = roundRangeLimits;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getEnableContextMenu: function() {
- return this.options.enableContextMenu;
- },
- setEnableContextMenu: function(enableContextMenu, preventRendering) {
- this.options.enableContextMenu = enableContextMenu;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getContextMenuItems: function() {
- return this.options.contextMenuItems;
- },
- setContextMenuItems: function(contextMenuItems, preventRendering) {
- this.options.contextMenuItems = contextMenuItems instanceof Array ? contextMenuItems : [];
-
- if(!preventRendering) {
- this.render();
- }
- },
- getCustomDayRenderer: function() {
- return this.options.customDayRenderer;
- },
- setCustomDayRenderer: function(customDayRenderer, preventRendering) {
- this.options.customDayRenderer = $.isFunction(customDayRenderer) ? customDayRenderer : null;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getCustomDataSourceRenderer: function() {
- return this.options.customDataSourceRenderer;
- },
- setCustomDataSourceRenderer: function(customDataSourceRenderer, preventRendering) {
- this.options.customDataSourceRenderer = $.isFunction(customDataSourceRenderer) ? customDataSourceRenderer : null;
-
- if(!preventRendering) {
- this.render();
- }
- },
- getLanguage: function() {
- return this.options.language;
- },
- setLanguage: function(language, preventRendering) {
- if(language != null && dates[language] != null) {
- this.options.language = language;
-
- if(!preventRendering) {
- this.render();
- }
- }
- },
- getDataSource: function() {
- return this.options.dataSource;
- },
- setDataSource: function(dataSource, preventRendering) {
- this.options.dataSource = dataSource instanceof Array ? dataSource : [];
- this._initializeDatasourceColors();
-
- if(!preventRendering) {
- this.render();
- }
- },
- getWeekStart: function() {
- return this.options.weekStart ? this.options.weekStart : dates[this.options.language].weekStart;
- },
- setWeekStart: function(weekStart, preventRendering) {
- this.options.weekStart = !isNaN(parseInt(weekStart)) ? parseInt(weekStart) : null;
-
- if(!preventRendering) {
- this.render();
- }
- },
- addEvent: function(evt, preventRendering) {
- this.options.dataSource.push(evt);
-
- if(!preventRendering) {
- this.render();
- }
- }
- }
-
- $.fn.calendar = function (options) {
- var calendar = new Calendar($(this) ,options);
- $(this).data('calendar', calendar);
- return calendar;
- }
-
- /* Events binding management */
- $.fn.yearChanged = function(fct) { $(this).bind('yearChanged', fct); }
- $.fn.renderEnd = function(fct) { $(this).bind('renderEnd', fct); }
- $.fn.clickDay = function(fct) { $(this).bind('clickDay', fct); }
- $.fn.dayContextMenu = function(fct) { $(this).bind('dayContextMenu', fct); }
- $.fn.selectRange = function(fct) { $(this).bind('selectRange', fct); }
- $.fn.mouseOnDay = function(fct) { $(this).bind('mouseOnDay', fct); }
- $.fn.mouseOutDay = function(fct) { $(this).bind('mouseOutDay', fct); }
-
- var dates = $.fn.calendar.dates = {
- en: {
- days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
- daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
- daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
- months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- weekShort: 'W',
- weekStart:0
- }
- };
-
- var colors = $.fn.calendar.colors = ['#2C8FC9', '#9CB703', '#F5BB00', '#FF4A32', '#B56CE2', '#45A597'];
-
- $(function(){
- $('[data-provide="calendar"]').each(function() {
- $(this).calendar();
- });
- });
- }(window.jQuery));
\ No newline at end of file
diff --git a/swh/web/static/jssources/bootstrap/LICENSE.txt b/swh/web/static/jssources/bootstrap/LICENSE.txt
deleted file mode 100644
index daad8729..00000000
--- a/swh/web/static/jssources/bootstrap/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2011-2019 Twitter, Inc.
-Copyright (c) 2011-2019 The Bootstrap Authors
-
-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.
diff --git a/swh/web/static/jssources/core-js/LICENSE.txt b/swh/web/static/jssources/core-js/LICENSE.txt
deleted file mode 100644
index 834b267d..00000000
--- a/swh/web/static/jssources/core-js/LICENSE.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014-2019 Denis Pushkarev
-
-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.
diff --git a/swh/web/static/jssources/core-js/es6/index.js b/swh/web/static/jssources/core-js/es6/index.js
deleted file mode 100644
index 21fc7973..00000000
--- a/swh/web/static/jssources/core-js/es6/index.js
+++ /dev/null
@@ -1,139 +0,0 @@
-require('../modules/es6.symbol');
-require('../modules/es6.object.create');
-require('../modules/es6.object.define-property');
-require('../modules/es6.object.define-properties');
-require('../modules/es6.object.get-own-property-descriptor');
-require('../modules/es6.object.get-prototype-of');
-require('../modules/es6.object.keys');
-require('../modules/es6.object.get-own-property-names');
-require('../modules/es6.object.freeze');
-require('../modules/es6.object.seal');
-require('../modules/es6.object.prevent-extensions');
-require('../modules/es6.object.is-frozen');
-require('../modules/es6.object.is-sealed');
-require('../modules/es6.object.is-extensible');
-require('../modules/es6.object.assign');
-require('../modules/es6.object.is');
-require('../modules/es6.object.set-prototype-of');
-require('../modules/es6.object.to-string');
-require('../modules/es6.function.bind');
-require('../modules/es6.function.name');
-require('../modules/es6.function.has-instance');
-require('../modules/es6.parse-int');
-require('../modules/es6.parse-float');
-require('../modules/es6.number.constructor');
-require('../modules/es6.number.to-fixed');
-require('../modules/es6.number.to-precision');
-require('../modules/es6.number.epsilon');
-require('../modules/es6.number.is-finite');
-require('../modules/es6.number.is-integer');
-require('../modules/es6.number.is-nan');
-require('../modules/es6.number.is-safe-integer');
-require('../modules/es6.number.max-safe-integer');
-require('../modules/es6.number.min-safe-integer');
-require('../modules/es6.number.parse-float');
-require('../modules/es6.number.parse-int');
-require('../modules/es6.math.acosh');
-require('../modules/es6.math.asinh');
-require('../modules/es6.math.atanh');
-require('../modules/es6.math.cbrt');
-require('../modules/es6.math.clz32');
-require('../modules/es6.math.cosh');
-require('../modules/es6.math.expm1');
-require('../modules/es6.math.fround');
-require('../modules/es6.math.hypot');
-require('../modules/es6.math.imul');
-require('../modules/es6.math.log10');
-require('../modules/es6.math.log1p');
-require('../modules/es6.math.log2');
-require('../modules/es6.math.sign');
-require('../modules/es6.math.sinh');
-require('../modules/es6.math.tanh');
-require('../modules/es6.math.trunc');
-require('../modules/es6.string.from-code-point');
-require('../modules/es6.string.raw');
-require('../modules/es6.string.trim');
-require('../modules/es6.string.iterator');
-require('../modules/es6.string.code-point-at');
-require('../modules/es6.string.ends-with');
-require('../modules/es6.string.includes');
-require('../modules/es6.string.repeat');
-require('../modules/es6.string.starts-with');
-require('../modules/es6.string.anchor');
-require('../modules/es6.string.big');
-require('../modules/es6.string.blink');
-require('../modules/es6.string.bold');
-require('../modules/es6.string.fixed');
-require('../modules/es6.string.fontcolor');
-require('../modules/es6.string.fontsize');
-require('../modules/es6.string.italics');
-require('../modules/es6.string.link');
-require('../modules/es6.string.small');
-require('../modules/es6.string.strike');
-require('../modules/es6.string.sub');
-require('../modules/es6.string.sup');
-require('../modules/es6.date.now');
-require('../modules/es6.date.to-json');
-require('../modules/es6.date.to-iso-string');
-require('../modules/es6.date.to-string');
-require('../modules/es6.date.to-primitive');
-require('../modules/es6.array.is-array');
-require('../modules/es6.array.from');
-require('../modules/es6.array.of');
-require('../modules/es6.array.join');
-require('../modules/es6.array.slice');
-require('../modules/es6.array.sort');
-require('../modules/es6.array.for-each');
-require('../modules/es6.array.map');
-require('../modules/es6.array.filter');
-require('../modules/es6.array.some');
-require('../modules/es6.array.every');
-require('../modules/es6.array.reduce');
-require('../modules/es6.array.reduce-right');
-require('../modules/es6.array.index-of');
-require('../modules/es6.array.last-index-of');
-require('../modules/es6.array.copy-within');
-require('../modules/es6.array.fill');
-require('../modules/es6.array.find');
-require('../modules/es6.array.find-index');
-require('../modules/es6.array.species');
-require('../modules/es6.array.iterator');
-require('../modules/es6.regexp.constructor');
-require('../modules/es6.regexp.exec');
-require('../modules/es6.regexp.to-string');
-require('../modules/es6.regexp.flags');
-require('../modules/es6.regexp.match');
-require('../modules/es6.regexp.replace');
-require('../modules/es6.regexp.search');
-require('../modules/es6.regexp.split');
-require('../modules/es6.promise');
-require('../modules/es6.map');
-require('../modules/es6.set');
-require('../modules/es6.weak-map');
-require('../modules/es6.weak-set');
-require('../modules/es6.typed.array-buffer');
-require('../modules/es6.typed.data-view');
-require('../modules/es6.typed.int8-array');
-require('../modules/es6.typed.uint8-array');
-require('../modules/es6.typed.uint8-clamped-array');
-require('../modules/es6.typed.int16-array');
-require('../modules/es6.typed.uint16-array');
-require('../modules/es6.typed.int32-array');
-require('../modules/es6.typed.uint32-array');
-require('../modules/es6.typed.float32-array');
-require('../modules/es6.typed.float64-array');
-require('../modules/es6.reflect.apply');
-require('../modules/es6.reflect.construct');
-require('../modules/es6.reflect.define-property');
-require('../modules/es6.reflect.delete-property');
-require('../modules/es6.reflect.enumerate');
-require('../modules/es6.reflect.get');
-require('../modules/es6.reflect.get-own-property-descriptor');
-require('../modules/es6.reflect.get-prototype-of');
-require('../modules/es6.reflect.has');
-require('../modules/es6.reflect.is-extensible');
-require('../modules/es6.reflect.own-keys');
-require('../modules/es6.reflect.prevent-extensions');
-require('../modules/es6.reflect.set');
-require('../modules/es6.reflect.set-prototype-of');
-module.exports = require('../modules/_core');
diff --git a/swh/web/static/jssources/core-js/fn/array/includes.js b/swh/web/static/jssources/core-js/fn/array/includes.js
deleted file mode 100644
index d0e8a4e4..00000000
--- a/swh/web/static/jssources/core-js/fn/array/includes.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.array.includes');
-module.exports = require('../../modules/_core').Array.includes;
diff --git a/swh/web/static/jssources/core-js/fn/object/entries.js b/swh/web/static/jssources/core-js/fn/object/entries.js
deleted file mode 100644
index 197500ba..00000000
--- a/swh/web/static/jssources/core-js/fn/object/entries.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.object.entries');
-module.exports = require('../../modules/_core').Object.entries;
diff --git a/swh/web/static/jssources/core-js/fn/object/get-own-property-descriptors.js b/swh/web/static/jssources/core-js/fn/object/get-own-property-descriptors.js
deleted file mode 100644
index a502c5e4..00000000
--- a/swh/web/static/jssources/core-js/fn/object/get-own-property-descriptors.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.object.get-own-property-descriptors');
-module.exports = require('../../modules/_core').Object.getOwnPropertyDescriptors;
diff --git a/swh/web/static/jssources/core-js/fn/object/values.js b/swh/web/static/jssources/core-js/fn/object/values.js
deleted file mode 100644
index 4d99b9cb..00000000
--- a/swh/web/static/jssources/core-js/fn/object/values.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.object.values');
-module.exports = require('../../modules/_core').Object.values;
diff --git a/swh/web/static/jssources/core-js/fn/promise/finally.js b/swh/web/static/jssources/core-js/fn/promise/finally.js
deleted file mode 100644
index 4188dae4..00000000
--- a/swh/web/static/jssources/core-js/fn/promise/finally.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-require('../../modules/es6.promise');
-require('../../modules/es7.promise.finally');
-module.exports = require('../../modules/_core').Promise['finally'];
diff --git a/swh/web/static/jssources/core-js/fn/string/pad-end.js b/swh/web/static/jssources/core-js/fn/string/pad-end.js
deleted file mode 100644
index 23eb9f95..00000000
--- a/swh/web/static/jssources/core-js/fn/string/pad-end.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.string.pad-end');
-module.exports = require('../../modules/_core').String.padEnd;
diff --git a/swh/web/static/jssources/core-js/fn/string/pad-start.js b/swh/web/static/jssources/core-js/fn/string/pad-start.js
deleted file mode 100644
index ff12739f..00000000
--- a/swh/web/static/jssources/core-js/fn/string/pad-start.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.string.pad-start');
-module.exports = require('../../modules/_core').String.padStart;
diff --git a/swh/web/static/jssources/core-js/fn/symbol/async-iterator.js b/swh/web/static/jssources/core-js/fn/symbol/async-iterator.js
deleted file mode 100644
index 951ea8f1..00000000
--- a/swh/web/static/jssources/core-js/fn/symbol/async-iterator.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es7.symbol.async-iterator');
-module.exports = require('../../modules/_wks-ext').f('asyncIterator');
diff --git a/swh/web/static/jssources/core-js/library/fn/array/is-array.js b/swh/web/static/jssources/core-js/library/fn/array/is-array.js
deleted file mode 100644
index d74b3a0b..00000000
--- a/swh/web/static/jssources/core-js/library/fn/array/is-array.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../../modules/es6.array.is-array');
-module.exports = require('../../modules/_core').Array.isArray;
diff --git a/swh/web/static/jssources/core-js/library/fn/get-iterator.js b/swh/web/static/jssources/core-js/library/fn/get-iterator.js
deleted file mode 100644
index dc77f420..00000000
--- a/swh/web/static/jssources/core-js/library/fn/get-iterator.js
+++ /dev/null
@@ -1,3 +0,0 @@
-require('../modules/web.dom.iterable');
-require('../modules/es6.string.iterator');
-module.exports = require('../modules/core.get-iterator');
diff --git a/swh/web/static/jssources/core-js/library/fn/json/stringify.js b/swh/web/static/jssources/core-js/library/fn/json/stringify.js
deleted file mode 100644
index 401aadb7..00000000
--- a/swh/web/static/jssources/core-js/library/fn/json/stringify.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var core = require('../../modules/_core');
-var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
-module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
- return $JSON.stringify.apply($JSON, arguments);
-};
diff --git a/swh/web/static/jssources/core-js/library/fn/parse-int.js b/swh/web/static/jssources/core-js/library/fn/parse-int.js
deleted file mode 100644
index d0087c7c..00000000
--- a/swh/web/static/jssources/core-js/library/fn/parse-int.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('../modules/es6.parse-int');
-module.exports = require('../modules/_core').parseInt;
diff --git a/swh/web/static/jssources/core-js/library/fn/promise.js b/swh/web/static/jssources/core-js/library/fn/promise.js
deleted file mode 100644
index f3d6742f..00000000
--- a/swh/web/static/jssources/core-js/library/fn/promise.js
+++ /dev/null
@@ -1,7 +0,0 @@
-require('../modules/es6.object.to-string');
-require('../modules/es6.string.iterator');
-require('../modules/web.dom.iterable');
-require('../modules/es6.promise');
-require('../modules/es7.promise.finally');
-require('../modules/es7.promise.try');
-module.exports = require('../modules/_core').Promise;
diff --git a/swh/web/static/jssources/core-js/library/modules/_a-function.js b/swh/web/static/jssources/core-js/library/modules/_a-function.js
deleted file mode 100644
index a9a5d84f..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_a-function.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_add-to-unscopables.js b/swh/web/static/jssources/core-js/library/modules/_add-to-unscopables.js
deleted file mode 100644
index 02ef44ba..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_add-to-unscopables.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function () { /* empty */ };
diff --git a/swh/web/static/jssources/core-js/library/modules/_an-instance.js b/swh/web/static/jssources/core-js/library/modules/_an-instance.js
deleted file mode 100644
index c0a5f920..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_an-instance.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = function (it, Constructor, name, forbiddenField) {
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
- throw TypeError(name + ': incorrect invocation!');
- } return it;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_an-object.js b/swh/web/static/jssources/core-js/library/modules/_an-object.js
deleted file mode 100644
index b1c316cd..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_an-object.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var isObject = require('./_is-object');
-module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_array-includes.js b/swh/web/static/jssources/core-js/library/modules/_array-includes.js
deleted file mode 100644
index 0ef3efeb..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_array-includes.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// false -> Array#indexOf
-// true -> Array#includes
-var toIObject = require('./_to-iobject');
-var toLength = require('./_to-length');
-var toAbsoluteIndex = require('./_to-absolute-index');
-module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_classof.js b/swh/web/static/jssources/core-js/library/modules/_classof.js
deleted file mode 100644
index d106d5be..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_classof.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// getting tag from 19.1.3.6 Object.prototype.toString()
-var cof = require('./_cof');
-var TAG = require('./_wks')('toStringTag');
-// ES3 wrong here
-var ARG = cof(function () { return arguments; }()) == 'Arguments';
-
-// fallback for IE11 Script Access Denied error
-var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
-};
-
-module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_cof.js b/swh/web/static/jssources/core-js/library/modules/_cof.js
deleted file mode 100644
index 332c0bc0..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_cof.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var toString = {}.toString;
-
-module.exports = function (it) {
- return toString.call(it).slice(8, -1);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_core.js b/swh/web/static/jssources/core-js/library/modules/_core.js
deleted file mode 100644
index b5c278f9..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_core.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var core = module.exports = { version: '2.6.5' };
-if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
diff --git a/swh/web/static/jssources/core-js/library/modules/_ctx.js b/swh/web/static/jssources/core-js/library/modules/_ctx.js
deleted file mode 100644
index 0a100ff3..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_ctx.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// optional / simple context binding
-var aFunction = require('./_a-function');
-module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_defined.js b/swh/web/static/jssources/core-js/library/modules/_defined.js
deleted file mode 100644
index 66c7ed32..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_defined.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.2.1 RequireObjectCoercible(argument)
-module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_descriptors.js b/swh/web/static/jssources/core-js/library/modules/_descriptors.js
deleted file mode 100644
index 04697406..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_descriptors.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// Thank's IE8 for his funny defineProperty
-module.exports = !require('./_fails')(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
-});
diff --git a/swh/web/static/jssources/core-js/library/modules/_dom-create.js b/swh/web/static/jssources/core-js/library/modules/_dom-create.js
deleted file mode 100644
index 39ca2569..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_dom-create.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var isObject = require('./_is-object');
-var document = require('./_global').document;
-// typeof document.createElement is 'object' in old IE
-var is = isObject(document) && isObject(document.createElement);
-module.exports = function (it) {
- return is ? document.createElement(it) : {};
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_enum-bug-keys.js b/swh/web/static/jssources/core-js/library/modules/_enum-bug-keys.js
deleted file mode 100644
index d9ad8551..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_enum-bug-keys.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// IE 8- don't enum bug keys
-module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
-).split(',');
diff --git a/swh/web/static/jssources/core-js/library/modules/_export.js b/swh/web/static/jssources/core-js/library/modules/_export.js
deleted file mode 100644
index 02bddc0a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_export.js
+++ /dev/null
@@ -1,62 +0,0 @@
-var global = require('./_global');
-var core = require('./_core');
-var ctx = require('./_ctx');
-var hide = require('./_hide');
-var has = require('./_has');
-var PROTOTYPE = 'prototype';
-
-var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
-};
-// type bitmap
-$export.F = 1; // forced
-$export.G = 2; // global
-$export.S = 4; // static
-$export.P = 8; // proto
-$export.B = 16; // bind
-$export.W = 32; // wrap
-$export.U = 64; // safe
-$export.R = 128; // real proto method for `library`
-module.exports = $export;
diff --git a/swh/web/static/jssources/core-js/library/modules/_fails.js b/swh/web/static/jssources/core-js/library/modules/_fails.js
deleted file mode 100644
index 3b4cdf67..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_fails.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_for-of.js b/swh/web/static/jssources/core-js/library/modules/_for-of.js
deleted file mode 100644
index 9ed22818..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_for-of.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var ctx = require('./_ctx');
-var call = require('./_iter-call');
-var isArrayIter = require('./_is-array-iter');
-var anObject = require('./_an-object');
-var toLength = require('./_to-length');
-var getIterFn = require('./core.get-iterator-method');
-var BREAK = {};
-var RETURN = {};
-var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
- var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
- var f = ctx(fn, that, entries ? 2 : 1);
- var index = 0;
- var length, step, iterator, result;
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
- // fast case for arrays with default iterator
- if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
- result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
- if (result === BREAK || result === RETURN) return result;
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
- result = call(iterator, f, step.value, entries);
- if (result === BREAK || result === RETURN) return result;
- }
-};
-exports.BREAK = BREAK;
-exports.RETURN = RETURN;
diff --git a/swh/web/static/jssources/core-js/library/modules/_global.js b/swh/web/static/jssources/core-js/library/modules/_global.js
deleted file mode 100644
index bf85b44a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_global.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
-if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
diff --git a/swh/web/static/jssources/core-js/library/modules/_has.js b/swh/web/static/jssources/core-js/library/modules/_has.js
deleted file mode 100644
index 2a37d8b7..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_has.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var hasOwnProperty = {}.hasOwnProperty;
-module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_hide.js b/swh/web/static/jssources/core-js/library/modules/_hide.js
deleted file mode 100644
index cec258a0..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_hide.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var dP = require('./_object-dp');
-var createDesc = require('./_property-desc');
-module.exports = require('./_descriptors') ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
-} : function (object, key, value) {
- object[key] = value;
- return object;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_html.js b/swh/web/static/jssources/core-js/library/modules/_html.js
deleted file mode 100644
index 7daff14c..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_html.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var document = require('./_global').document;
-module.exports = document && document.documentElement;
diff --git a/swh/web/static/jssources/core-js/library/modules/_ie8-dom-define.js b/swh/web/static/jssources/core-js/library/modules/_ie8-dom-define.js
deleted file mode 100644
index a3805cb7..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_ie8-dom-define.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = !require('./_descriptors') && !require('./_fails')(function () {
- return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;
-});
diff --git a/swh/web/static/jssources/core-js/library/modules/_invoke.js b/swh/web/static/jssources/core-js/library/modules/_invoke.js
deleted file mode 100644
index 6cccebdc..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_invoke.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// fast apply, http://jsperf.lnkit.com/fast-apply/5
-module.exports = function (fn, args, that) {
- var un = that === undefined;
- switch (args.length) {
- case 0: return un ? fn()
- : fn.call(that);
- case 1: return un ? fn(args[0])
- : fn.call(that, args[0]);
- case 2: return un ? fn(args[0], args[1])
- : fn.call(that, args[0], args[1]);
- case 3: return un ? fn(args[0], args[1], args[2])
- : fn.call(that, args[0], args[1], args[2]);
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
- : fn.call(that, args[0], args[1], args[2], args[3]);
- } return fn.apply(that, args);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iobject.js b/swh/web/static/jssources/core-js/library/modules/_iobject.js
deleted file mode 100644
index 2b57c8a0..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iobject.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// fallback for non-array-like ES3 and non-enumerable old V8 strings
-var cof = require('./_cof');
-// eslint-disable-next-line no-prototype-builtins
-module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_is-array-iter.js b/swh/web/static/jssources/core-js/library/modules/_is-array-iter.js
deleted file mode 100644
index 6f67d905..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_is-array-iter.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// check on default Array iterator
-var Iterators = require('./_iterators');
-var ITERATOR = require('./_wks')('iterator');
-var ArrayProto = Array.prototype;
-
-module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_is-array.js b/swh/web/static/jssources/core-js/library/modules/_is-array.js
deleted file mode 100644
index 0581dc2e..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_is-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.2.2 IsArray(argument)
-var cof = require('./_cof');
-module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_is-object.js b/swh/web/static/jssources/core-js/library/modules/_is-object.js
deleted file mode 100644
index dda6e04d..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_is-object.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iter-call.js b/swh/web/static/jssources/core-js/library/modules/_iter-call.js
deleted file mode 100644
index a7026e34..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iter-call.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// call something on iterator step with safe closing on error
-var anObject = require('./_an-object');
-module.exports = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
- throw e;
- }
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iter-create.js b/swh/web/static/jssources/core-js/library/modules/_iter-create.js
deleted file mode 100644
index 04708c83..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iter-create.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-var create = require('./_object-create');
-var descriptor = require('./_property-desc');
-var setToStringTag = require('./_set-to-string-tag');
-var IteratorPrototype = {};
-
-// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
-require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });
-
-module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iter-define.js b/swh/web/static/jssources/core-js/library/modules/_iter-define.js
deleted file mode 100644
index 578dfb73..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iter-define.js
+++ /dev/null
@@ -1,69 +0,0 @@
-'use strict';
-var LIBRARY = require('./_library');
-var $export = require('./_export');
-var redefine = require('./_redefine');
-var hide = require('./_hide');
-var Iterators = require('./_iterators');
-var $iterCreate = require('./_iter-create');
-var setToStringTag = require('./_set-to-string-tag');
-var getPrototypeOf = require('./_object-gpo');
-var ITERATOR = require('./_wks')('iterator');
-var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
-var FF_ITERATOR = '@@iterator';
-var KEYS = 'keys';
-var VALUES = 'values';
-
-var returnThis = function () { return this; };
-
-module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iter-detect.js b/swh/web/static/jssources/core-js/library/modules/_iter-detect.js
deleted file mode 100644
index 5cb34973..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iter-detect.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var ITERATOR = require('./_wks')('iterator');
-var SAFE_CLOSING = false;
-
-try {
- var riter = [7][ITERATOR]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
-} catch (e) { /* empty */ }
-
-module.exports = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) return false;
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iter-step.js b/swh/web/static/jssources/core-js/library/modules/_iter-step.js
deleted file mode 100644
index b0691c88..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iter-step.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function (done, value) {
- return { value: value, done: !!done };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_iterators.js b/swh/web/static/jssources/core-js/library/modules/_iterators.js
deleted file mode 100644
index f053ebf7..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_iterators.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = {};
diff --git a/swh/web/static/jssources/core-js/library/modules/_library.js b/swh/web/static/jssources/core-js/library/modules/_library.js
deleted file mode 100644
index ec01c2c1..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_library.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = true;
diff --git a/swh/web/static/jssources/core-js/library/modules/_microtask.js b/swh/web/static/jssources/core-js/library/modules/_microtask.js
deleted file mode 100644
index b321c648..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_microtask.js
+++ /dev/null
@@ -1,69 +0,0 @@
-var global = require('./_global');
-var macrotask = require('./_task').set;
-var Observer = global.MutationObserver || global.WebKitMutationObserver;
-var process = global.process;
-var Promise = global.Promise;
-var isNode = require('./_cof')(process) == 'process';
-
-module.exports = function () {
- var head, last, notify;
-
- var flush = function () {
- var parent, fn;
- if (isNode && (parent = process.domain)) parent.exit();
- while (head) {
- fn = head.fn;
- head = head.next;
- try {
- fn();
- } catch (e) {
- if (head) notify();
- else last = undefined;
- throw e;
- }
- } last = undefined;
- if (parent) parent.enter();
- };
-
- // Node.js
- if (isNode) {
- notify = function () {
- process.nextTick(flush);
- };
- // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
- } else if (Observer && !(global.navigator && global.navigator.standalone)) {
- var toggle = true;
- var node = document.createTextNode('');
- new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
- notify = function () {
- node.data = toggle = !toggle;
- };
- // environments with maybe non-completely correct, but existent Promise
- } else if (Promise && Promise.resolve) {
- // Promise.resolve without an argument throws an error in LG WebOS 2
- var promise = Promise.resolve(undefined);
- notify = function () {
- promise.then(flush);
- };
- // for other environments - macrotask based on:
- // - setImmediate
- // - MessageChannel
- // - window.postMessag
- // - onreadystatechange
- // - setTimeout
- } else {
- notify = function () {
- // strange IE + webpack dev server bug - use .call(global)
- macrotask.call(global, flush);
- };
- }
-
- return function (fn) {
- var task = { fn: fn, next: undefined };
- if (last) last.next = task;
- if (!head) {
- head = task;
- notify();
- } last = task;
- };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_new-promise-capability.js b/swh/web/static/jssources/core-js/library/modules/_new-promise-capability.js
deleted file mode 100644
index 82b74a33..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_new-promise-capability.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-// 25.4.1.5 NewPromiseCapability(C)
-var aFunction = require('./_a-function');
-
-function PromiseCapability(C) {
- var resolve, reject;
- this.promise = new C(function ($$resolve, $$reject) {
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
- resolve = $$resolve;
- reject = $$reject;
- });
- this.resolve = aFunction(resolve);
- this.reject = aFunction(reject);
-}
-
-module.exports.f = function (C) {
- return new PromiseCapability(C);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-create.js b/swh/web/static/jssources/core-js/library/modules/_object-create.js
deleted file mode 100644
index a76808ea..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-create.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-var anObject = require('./_an-object');
-var dPs = require('./_object-dps');
-var enumBugKeys = require('./_enum-bug-keys');
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-var Empty = function () { /* empty */ };
-var PROTOTYPE = 'prototype';
-
-// Create object with fake `null` prototype: use iframe Object with cleared prototype
-var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = require('./_dom-create')('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- require('./_html').appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
-};
-
-module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-dp.js b/swh/web/static/jssources/core-js/library/modules/_object-dp.js
deleted file mode 100644
index 0340a830..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-dp.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var anObject = require('./_an-object');
-var IE8_DOM_DEFINE = require('./_ie8-dom-define');
-var toPrimitive = require('./_to-primitive');
-var dP = Object.defineProperty;
-
-exports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-dps.js b/swh/web/static/jssources/core-js/library/modules/_object-dps.js
deleted file mode 100644
index 173c338f..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-dps.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dP = require('./_object-dp');
-var anObject = require('./_an-object');
-var getKeys = require('./_object-keys');
-
-module.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-gpo.js b/swh/web/static/jssources/core-js/library/modules/_object-gpo.js
deleted file mode 100644
index 27f2a94e..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-gpo.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
-var has = require('./_has');
-var toObject = require('./_to-object');
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-var ObjectProto = Object.prototype;
-
-module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-keys-internal.js b/swh/web/static/jssources/core-js/library/modules/_object-keys-internal.js
deleted file mode 100644
index 71abdd1a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-keys-internal.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var has = require('./_has');
-var toIObject = require('./_to-iobject');
-var arrayIndexOf = require('./_array-includes')(false);
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-
-module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_object-keys.js b/swh/web/static/jssources/core-js/library/modules/_object-keys.js
deleted file mode 100644
index 62f73f91..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_object-keys.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// 19.1.2.14 / 15.2.3.14 Object.keys(O)
-var $keys = require('./_object-keys-internal');
-var enumBugKeys = require('./_enum-bug-keys');
-
-module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_parse-int.js b/swh/web/static/jssources/core-js/library/modules/_parse-int.js
deleted file mode 100644
index ddd7172a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_parse-int.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var $parseInt = require('./_global').parseInt;
-var $trim = require('./_string-trim').trim;
-var ws = require('./_string-ws');
-var hex = /^[-+]?0[xX]/;
-
-module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
- var string = $trim(String(str), 3);
- return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
-} : $parseInt;
diff --git a/swh/web/static/jssources/core-js/library/modules/_perform.js b/swh/web/static/jssources/core-js/library/modules/_perform.js
deleted file mode 100644
index bfc7b296..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_perform.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function (exec) {
- try {
- return { e: false, v: exec() };
- } catch (e) {
- return { e: true, v: e };
- }
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_promise-resolve.js b/swh/web/static/jssources/core-js/library/modules/_promise-resolve.js
deleted file mode 100644
index c3cac764..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_promise-resolve.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-var newPromiseCapability = require('./_new-promise-capability');
-
-module.exports = function (C, x) {
- anObject(C);
- if (isObject(x) && x.constructor === C) return x;
- var promiseCapability = newPromiseCapability.f(C);
- var resolve = promiseCapability.resolve;
- resolve(x);
- return promiseCapability.promise;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_property-desc.js b/swh/web/static/jssources/core-js/library/modules/_property-desc.js
deleted file mode 100644
index 09059340..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_property-desc.js
+++ /dev/null
@@ -1,8 +0,0 @@
-module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_redefine-all.js b/swh/web/static/jssources/core-js/library/modules/_redefine-all.js
deleted file mode 100644
index bf8c0ea3..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_redefine-all.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var hide = require('./_hide');
-module.exports = function (target, src, safe) {
- for (var key in src) {
- if (safe && target[key]) target[key] = src[key];
- else hide(target, key, src[key]);
- } return target;
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_redefine.js b/swh/web/static/jssources/core-js/library/modules/_redefine.js
deleted file mode 100644
index fde6108e..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_redefine.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./_hide');
diff --git a/swh/web/static/jssources/core-js/library/modules/_set-species.js b/swh/web/static/jssources/core-js/library/modules/_set-species.js
deleted file mode 100644
index 1f25fde1..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_set-species.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-var global = require('./_global');
-var core = require('./_core');
-var dP = require('./_object-dp');
-var DESCRIPTORS = require('./_descriptors');
-var SPECIES = require('./_wks')('species');
-
-module.exports = function (KEY) {
- var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_set-to-string-tag.js b/swh/web/static/jssources/core-js/library/modules/_set-to-string-tag.js
deleted file mode 100644
index 5bd64144..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_set-to-string-tag.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var def = require('./_object-dp').f;
-var has = require('./_has');
-var TAG = require('./_wks')('toStringTag');
-
-module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_shared-key.js b/swh/web/static/jssources/core-js/library/modules/_shared-key.js
deleted file mode 100644
index d47fe7a2..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_shared-key.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var shared = require('./_shared')('keys');
-var uid = require('./_uid');
-module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_shared.js b/swh/web/static/jssources/core-js/library/modules/_shared.js
deleted file mode 100644
index 3adec722..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_shared.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var core = require('./_core');
-var global = require('./_global');
-var SHARED = '__core-js_shared__';
-var store = global[SHARED] || (global[SHARED] = {});
-
-(module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
-})('versions', []).push({
- version: core.version,
- mode: require('./_library') ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
-});
diff --git a/swh/web/static/jssources/core-js/library/modules/_species-constructor.js b/swh/web/static/jssources/core-js/library/modules/_species-constructor.js
deleted file mode 100644
index 0cb4ffb8..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_species-constructor.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 7.3.20 SpeciesConstructor(O, defaultConstructor)
-var anObject = require('./_an-object');
-var aFunction = require('./_a-function');
-var SPECIES = require('./_wks')('species');
-module.exports = function (O, D) {
- var C = anObject(O).constructor;
- var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_string-at.js b/swh/web/static/jssources/core-js/library/modules/_string-at.js
deleted file mode 100644
index 88d66bd1..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_string-at.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var toInteger = require('./_to-integer');
-var defined = require('./_defined');
-// true -> String#at
-// false -> String#codePointAt
-module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_string-trim.js b/swh/web/static/jssources/core-js/library/modules/_string-trim.js
deleted file mode 100644
index 6b54a81a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_string-trim.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var $export = require('./_export');
-var defined = require('./_defined');
-var fails = require('./_fails');
-var spaces = require('./_string-ws');
-var space = '[' + spaces + ']';
-var non = '\u200b\u0085';
-var ltrim = RegExp('^' + space + space + '*');
-var rtrim = RegExp(space + space + '*$');
-
-var exporter = function (KEY, exec, ALIAS) {
- var exp = {};
- var FORCE = fails(function () {
- return !!spaces[KEY]() || non[KEY]() != non;
- });
- var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
- if (ALIAS) exp[ALIAS] = fn;
- $export($export.P + $export.F * FORCE, 'String', exp);
-};
-
-// 1 -> String#trimLeft
-// 2 -> String#trimRight
-// 3 -> String#trim
-var trim = exporter.trim = function (string, TYPE) {
- string = String(defined(string));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
-};
-
-module.exports = exporter;
diff --git a/swh/web/static/jssources/core-js/library/modules/_string-ws.js b/swh/web/static/jssources/core-js/library/modules/_string-ws.js
deleted file mode 100644
index 2c68cf9f..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_string-ws.js
+++ /dev/null
@@ -1,2 +0,0 @@
-module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
diff --git a/swh/web/static/jssources/core-js/library/modules/_task.js b/swh/web/static/jssources/core-js/library/modules/_task.js
deleted file mode 100644
index 8777a6e2..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_task.js
+++ /dev/null
@@ -1,84 +0,0 @@
-var ctx = require('./_ctx');
-var invoke = require('./_invoke');
-var html = require('./_html');
-var cel = require('./_dom-create');
-var global = require('./_global');
-var process = global.process;
-var setTask = global.setImmediate;
-var clearTask = global.clearImmediate;
-var MessageChannel = global.MessageChannel;
-var Dispatch = global.Dispatch;
-var counter = 0;
-var queue = {};
-var ONREADYSTATECHANGE = 'onreadystatechange';
-var defer, channel, port;
-var run = function () {
- var id = +this;
- // eslint-disable-next-line no-prototype-builtins
- if (queue.hasOwnProperty(id)) {
- var fn = queue[id];
- delete queue[id];
- fn();
- }
-};
-var listener = function (event) {
- run.call(event.data);
-};
-// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
-if (!setTask || !clearTask) {
- setTask = function setImmediate(fn) {
- var args = [];
- var i = 1;
- while (arguments.length > i) args.push(arguments[i++]);
- queue[++counter] = function () {
- // eslint-disable-next-line no-new-func
- invoke(typeof fn == 'function' ? fn : Function(fn), args);
- };
- defer(counter);
- return counter;
- };
- clearTask = function clearImmediate(id) {
- delete queue[id];
- };
- // Node.js 0.8-
- if (require('./_cof')(process) == 'process') {
- defer = function (id) {
- process.nextTick(ctx(run, id, 1));
- };
- // Sphere (JS game engine) Dispatch API
- } else if (Dispatch && Dispatch.now) {
- defer = function (id) {
- Dispatch.now(ctx(run, id, 1));
- };
- // Browsers with MessageChannel, includes WebWorkers
- } else if (MessageChannel) {
- channel = new MessageChannel();
- port = channel.port2;
- channel.port1.onmessage = listener;
- defer = ctx(port.postMessage, port, 1);
- // Browsers with postMessage, skip WebWorkers
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
- } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
- defer = function (id) {
- global.postMessage(id + '', '*');
- };
- global.addEventListener('message', listener, false);
- // IE8-
- } else if (ONREADYSTATECHANGE in cel('script')) {
- defer = function (id) {
- html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
- html.removeChild(this);
- run.call(id);
- };
- };
- // Rest old browsers
- } else {
- defer = function (id) {
- setTimeout(ctx(run, id, 1), 0);
- };
- }
-}
-module.exports = {
- set: setTask,
- clear: clearTask
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-absolute-index.js b/swh/web/static/jssources/core-js/library/modules/_to-absolute-index.js
deleted file mode 100644
index dfee02e8..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-absolute-index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var toInteger = require('./_to-integer');
-var max = Math.max;
-var min = Math.min;
-module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-integer.js b/swh/web/static/jssources/core-js/library/modules/_to-integer.js
deleted file mode 100644
index 3d50f97d..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-integer.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 7.1.4 ToInteger
-var ceil = Math.ceil;
-var floor = Math.floor;
-module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-iobject.js b/swh/web/static/jssources/core-js/library/modules/_to-iobject.js
deleted file mode 100644
index 7614503a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-iobject.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// to indexed object, toObject with fallback for non-array-like ES3 strings
-var IObject = require('./_iobject');
-var defined = require('./_defined');
-module.exports = function (it) {
- return IObject(defined(it));
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-length.js b/swh/web/static/jssources/core-js/library/modules/_to-length.js
deleted file mode 100644
index a9db5017..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-length.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 7.1.15 ToLength
-var toInteger = require('./_to-integer');
-var min = Math.min;
-module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-object.js b/swh/web/static/jssources/core-js/library/modules/_to-object.js
deleted file mode 100644
index 0efea4c6..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-object.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.1.13 ToObject(argument)
-var defined = require('./_defined');
-module.exports = function (it) {
- return Object(defined(it));
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_to-primitive.js b/swh/web/static/jssources/core-js/library/modules/_to-primitive.js
deleted file mode 100644
index de3dd6b1..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_to-primitive.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = require('./_is-object');
-// instead of the ES6 spec version, we didn't implement @@toPrimitive case
-// and the second argument - flag - preferred type is a string
-module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_uid.js b/swh/web/static/jssources/core-js/library/modules/_uid.js
deleted file mode 100644
index ffbe7185..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_uid.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var id = 0;
-var px = Math.random();
-module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/_user-agent.js b/swh/web/static/jssources/core-js/library/modules/_user-agent.js
deleted file mode 100644
index 363fedc2..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_user-agent.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var global = require('./_global');
-var navigator = global.navigator;
-
-module.exports = navigator && navigator.userAgent || '';
diff --git a/swh/web/static/jssources/core-js/library/modules/_wks.js b/swh/web/static/jssources/core-js/library/modules/_wks.js
deleted file mode 100644
index e33f857a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/_wks.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var store = require('./_shared')('wks');
-var uid = require('./_uid');
-var Symbol = require('./_global').Symbol;
-var USE_SYMBOL = typeof Symbol == 'function';
-
-var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
-};
-
-$exports.store = store;
diff --git a/swh/web/static/jssources/core-js/library/modules/core.get-iterator-method.js b/swh/web/static/jssources/core-js/library/modules/core.get-iterator-method.js
deleted file mode 100644
index 9b6fa62a..00000000
--- a/swh/web/static/jssources/core-js/library/modules/core.get-iterator-method.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var classof = require('./_classof');
-var ITERATOR = require('./_wks')('iterator');
-var Iterators = require('./_iterators');
-module.exports = require('./_core').getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/core.get-iterator.js b/swh/web/static/jssources/core-js/library/modules/core.get-iterator.js
deleted file mode 100644
index 04568c86..00000000
--- a/swh/web/static/jssources/core-js/library/modules/core.get-iterator.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var anObject = require('./_an-object');
-var get = require('./core.get-iterator-method');
-module.exports = require('./_core').getIterator = function (it) {
- var iterFn = get(it);
- if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
- return anObject(iterFn.call(it));
-};
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.array.is-array.js b/swh/web/static/jssources/core-js/library/modules/es6.array.is-array.js
deleted file mode 100644
index 27ca6fc5..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es6.array.is-array.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
-var $export = require('./_export');
-
-$export($export.S, 'Array', { isArray: require('./_is-array') });
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.array.iterator.js b/swh/web/static/jssources/core-js/library/modules/es6.array.iterator.js
deleted file mode 100644
index c64e88b1..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es6.array.iterator.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-var addToUnscopables = require('./_add-to-unscopables');
-var step = require('./_iter-step');
-var Iterators = require('./_iterators');
-var toIObject = require('./_to-iobject');
-
-// 22.1.3.4 Array.prototype.entries()
-// 22.1.3.13 Array.prototype.keys()
-// 22.1.3.29 Array.prototype.values()
-// 22.1.3.30 Array.prototype[@@iterator]()
-module.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
-// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
-}, 'values');
-
-// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
-Iterators.Arguments = Iterators.Array;
-
-addToUnscopables('keys');
-addToUnscopables('values');
-addToUnscopables('entries');
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.object.to-string.js b/swh/web/static/jssources/core-js/library/modules/es6.object.to-string.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.parse-int.js b/swh/web/static/jssources/core-js/library/modules/es6.parse-int.js
deleted file mode 100644
index 7ea358e8..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es6.parse-int.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-var $parseInt = require('./_parse-int');
-// 18.2.5 parseInt(string, radix)
-$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.promise.js b/swh/web/static/jssources/core-js/library/modules/es6.promise.js
deleted file mode 100644
index b0ff3bfc..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es6.promise.js
+++ /dev/null
@@ -1,286 +0,0 @@
-'use strict';
-var LIBRARY = require('./_library');
-var global = require('./_global');
-var ctx = require('./_ctx');
-var classof = require('./_classof');
-var $export = require('./_export');
-var isObject = require('./_is-object');
-var aFunction = require('./_a-function');
-var anInstance = require('./_an-instance');
-var forOf = require('./_for-of');
-var speciesConstructor = require('./_species-constructor');
-var task = require('./_task').set;
-var microtask = require('./_microtask')();
-var newPromiseCapabilityModule = require('./_new-promise-capability');
-var perform = require('./_perform');
-var userAgent = require('./_user-agent');
-var promiseResolve = require('./_promise-resolve');
-var PROMISE = 'Promise';
-var TypeError = global.TypeError;
-var process = global.process;
-var versions = process && process.versions;
-var v8 = versions && versions.v8 || '';
-var $Promise = global[PROMISE];
-var isNode = classof(process) == 'process';
-var empty = function () { /* empty */ };
-var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
-var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
-
-var USE_NATIVE = !!function () {
- try {
- // correct subclassing with @@species support
- var promise = $Promise.resolve(1);
- var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {
- exec(empty, empty);
- };
- // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
- return (isNode || typeof PromiseRejectionEvent == 'function')
- && promise.then(empty) instanceof FakePromise
- // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
- // we can't detect it synchronously, so just check versions
- && v8.indexOf('6.6') !== 0
- && userAgent.indexOf('Chrome/66') === -1;
- } catch (e) { /* empty */ }
-}();
-
-// helpers
-var isThenable = function (it) {
- var then;
- return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
-};
-var notify = function (promise, isReject) {
- if (promise._n) return;
- promise._n = true;
- var chain = promise._c;
- microtask(function () {
- var value = promise._v;
- var ok = promise._s == 1;
- var i = 0;
- var run = function (reaction) {
- var handler = ok ? reaction.ok : reaction.fail;
- var resolve = reaction.resolve;
- var reject = reaction.reject;
- var domain = reaction.domain;
- var result, then, exited;
- try {
- if (handler) {
- if (!ok) {
- if (promise._h == 2) onHandleUnhandled(promise);
- promise._h = 1;
- }
- if (handler === true) result = value;
- else {
- if (domain) domain.enter();
- result = handler(value); // may throw
- if (domain) {
- domain.exit();
- exited = true;
- }
- }
- if (result === reaction.promise) {
- reject(TypeError('Promise-chain cycle'));
- } else if (then = isThenable(result)) {
- then.call(result, resolve, reject);
- } else resolve(result);
- } else reject(value);
- } catch (e) {
- if (domain && !exited) domain.exit();
- reject(e);
- }
- };
- while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
- promise._c = [];
- promise._n = false;
- if (isReject && !promise._h) onUnhandled(promise);
- });
-};
-var onUnhandled = function (promise) {
- task.call(global, function () {
- var value = promise._v;
- var unhandled = isUnhandled(promise);
- var result, handler, console;
- if (unhandled) {
- result = perform(function () {
- if (isNode) {
- process.emit('unhandledRejection', value, promise);
- } else if (handler = global.onunhandledrejection) {
- handler({ promise: promise, reason: value });
- } else if ((console = global.console) && console.error) {
- console.error('Unhandled promise rejection', value);
- }
- });
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
- promise._h = isNode || isUnhandled(promise) ? 2 : 1;
- } promise._a = undefined;
- if (unhandled && result.e) throw result.v;
- });
-};
-var isUnhandled = function (promise) {
- return promise._h !== 1 && (promise._a || promise._c).length === 0;
-};
-var onHandleUnhandled = function (promise) {
- task.call(global, function () {
- var handler;
- if (isNode) {
- process.emit('rejectionHandled', promise);
- } else if (handler = global.onrejectionhandled) {
- handler({ promise: promise, reason: promise._v });
- }
- });
-};
-var $reject = function (value) {
- var promise = this;
- if (promise._d) return;
- promise._d = true;
- promise = promise._w || promise; // unwrap
- promise._v = value;
- promise._s = 2;
- if (!promise._a) promise._a = promise._c.slice();
- notify(promise, true);
-};
-var $resolve = function (value) {
- var promise = this;
- var then;
- if (promise._d) return;
- promise._d = true;
- promise = promise._w || promise; // unwrap
- try {
- if (promise === value) throw TypeError("Promise can't be resolved itself");
- if (then = isThenable(value)) {
- microtask(function () {
- var wrapper = { _w: promise, _d: false }; // wrap
- try {
- then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
- } catch (e) {
- $reject.call(wrapper, e);
- }
- });
- } else {
- promise._v = value;
- promise._s = 1;
- notify(promise, false);
- }
- } catch (e) {
- $reject.call({ _w: promise, _d: false }, e); // wrap
- }
-};
-
-// constructor polyfill
-if (!USE_NATIVE) {
- // 25.4.3.1 Promise(executor)
- $Promise = function Promise(executor) {
- anInstance(this, $Promise, PROMISE, '_h');
- aFunction(executor);
- Internal.call(this);
- try {
- executor(ctx($resolve, this, 1), ctx($reject, this, 1));
- } catch (err) {
- $reject.call(this, err);
- }
- };
- // eslint-disable-next-line no-unused-vars
- Internal = function Promise(executor) {
- this._c = []; // <- awaiting reactions
- this._a = undefined; // <- checked in isUnhandled reactions
- this._s = 0; // <- state
- this._d = false; // <- done
- this._v = undefined; // <- value
- this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
- this._n = false; // <- notify
- };
- Internal.prototype = require('./_redefine-all')($Promise.prototype, {
- // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
- then: function then(onFulfilled, onRejected) {
- var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
- reaction.fail = typeof onRejected == 'function' && onRejected;
- reaction.domain = isNode ? process.domain : undefined;
- this._c.push(reaction);
- if (this._a) this._a.push(reaction);
- if (this._s) notify(this, false);
- return reaction.promise;
- },
- // 25.4.5.1 Promise.prototype.catch(onRejected)
- 'catch': function (onRejected) {
- return this.then(undefined, onRejected);
- }
- });
- OwnPromiseCapability = function () {
- var promise = new Internal();
- this.promise = promise;
- this.resolve = ctx($resolve, promise, 1);
- this.reject = ctx($reject, promise, 1);
- };
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
- return C === $Promise || C === Wrapper
- ? new OwnPromiseCapability(C)
- : newGenericPromiseCapability(C);
- };
-}
-
-$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
-require('./_set-to-string-tag')($Promise, PROMISE);
-require('./_set-species')(PROMISE);
-Wrapper = require('./_core')[PROMISE];
-
-// statics
-$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
- // 25.4.4.5 Promise.reject(r)
- reject: function reject(r) {
- var capability = newPromiseCapability(this);
- var $$reject = capability.reject;
- $$reject(r);
- return capability.promise;
- }
-});
-$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
- // 25.4.4.6 Promise.resolve(x)
- resolve: function resolve(x) {
- return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
- }
-});
-$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {
- $Promise.all(iter)['catch'](empty);
-})), PROMISE, {
- // 25.4.4.1 Promise.all(iterable)
- all: function all(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var resolve = capability.resolve;
- var reject = capability.reject;
- var result = perform(function () {
- var values = [];
- var index = 0;
- var remaining = 1;
- forOf(iterable, false, function (promise) {
- var $index = index++;
- var alreadyCalled = false;
- values.push(undefined);
- remaining++;
- C.resolve(promise).then(function (value) {
- if (alreadyCalled) return;
- alreadyCalled = true;
- values[$index] = value;
- --remaining || resolve(values);
- }, reject);
- });
- --remaining || resolve(values);
- });
- if (result.e) reject(result.v);
- return capability.promise;
- },
- // 25.4.4.4 Promise.race(iterable)
- race: function race(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var reject = capability.reject;
- var result = perform(function () {
- forOf(iterable, false, function (promise) {
- C.resolve(promise).then(capability.resolve, reject);
- });
- });
- if (result.e) reject(result.v);
- return capability.promise;
- }
-});
diff --git a/swh/web/static/jssources/core-js/library/modules/es6.string.iterator.js b/swh/web/static/jssources/core-js/library/modules/es6.string.iterator.js
deleted file mode 100644
index 5d84c7fd..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es6.string.iterator.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-var $at = require('./_string-at')(true);
-
-// 21.1.3.27 String.prototype[@@iterator]()
-require('./_iter-define')(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
-// 21.1.5.2.1 %StringIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) return { value: undefined, done: true };
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
-});
diff --git a/swh/web/static/jssources/core-js/library/modules/es7.promise.finally.js b/swh/web/static/jssources/core-js/library/modules/es7.promise.finally.js
deleted file mode 100644
index fa04b639..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es7.promise.finally.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// https://github.com/tc39/proposal-promise-finally
-'use strict';
-var $export = require('./_export');
-var core = require('./_core');
-var global = require('./_global');
-var speciesConstructor = require('./_species-constructor');
-var promiseResolve = require('./_promise-resolve');
-
-$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
- var C = speciesConstructor(this, core.Promise || global.Promise);
- var isFunction = typeof onFinally == 'function';
- return this.then(
- isFunction ? function (x) {
- return promiseResolve(C, onFinally()).then(function () { return x; });
- } : onFinally,
- isFunction ? function (e) {
- return promiseResolve(C, onFinally()).then(function () { throw e; });
- } : onFinally
- );
-} });
diff --git a/swh/web/static/jssources/core-js/library/modules/es7.promise.try.js b/swh/web/static/jssources/core-js/library/modules/es7.promise.try.js
deleted file mode 100644
index e8163720..00000000
--- a/swh/web/static/jssources/core-js/library/modules/es7.promise.try.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-// https://github.com/tc39/proposal-promise-try
-var $export = require('./_export');
-var newPromiseCapability = require('./_new-promise-capability');
-var perform = require('./_perform');
-
-$export($export.S, 'Promise', { 'try': function (callbackfn) {
- var promiseCapability = newPromiseCapability.f(this);
- var result = perform(callbackfn);
- (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
- return promiseCapability.promise;
-} });
diff --git a/swh/web/static/jssources/core-js/library/modules/web.dom.iterable.js b/swh/web/static/jssources/core-js/library/modules/web.dom.iterable.js
deleted file mode 100644
index fc00afac..00000000
--- a/swh/web/static/jssources/core-js/library/modules/web.dom.iterable.js
+++ /dev/null
@@ -1,19 +0,0 @@
-require('./es6.array.iterator');
-var global = require('./_global');
-var hide = require('./_hide');
-var Iterators = require('./_iterators');
-var TO_STRING_TAG = require('./_wks')('toStringTag');
-
-var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
- 'TextTrackList,TouchList').split(',');
-
-for (var i = 0; i < DOMIterables.length; i++) {
- var NAME = DOMIterables[i];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = Iterators.Array;
-}
diff --git a/swh/web/static/jssources/core-js/modules/_a-function.js b/swh/web/static/jssources/core-js/modules/_a-function.js
deleted file mode 100644
index a9a5d84f..00000000
--- a/swh/web/static/jssources/core-js/modules/_a-function.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_a-number-value.js b/swh/web/static/jssources/core-js/modules/_a-number-value.js
deleted file mode 100644
index 2723de4d..00000000
--- a/swh/web/static/jssources/core-js/modules/_a-number-value.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var cof = require('./_cof');
-module.exports = function (it, msg) {
- if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg);
- return +it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_add-to-unscopables.js b/swh/web/static/jssources/core-js/modules/_add-to-unscopables.js
deleted file mode 100644
index a2dd97d9..00000000
--- a/swh/web/static/jssources/core-js/modules/_add-to-unscopables.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// 22.1.3.31 Array.prototype[@@unscopables]
-var UNSCOPABLES = require('./_wks')('unscopables');
-var ArrayProto = Array.prototype;
-if (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});
-module.exports = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_advance-string-index.js b/swh/web/static/jssources/core-js/modules/_advance-string-index.js
deleted file mode 100644
index a4688c18..00000000
--- a/swh/web/static/jssources/core-js/modules/_advance-string-index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-var at = require('./_string-at')(true);
-
- // `AdvanceStringIndex` abstract operation
-// https://tc39.github.io/ecma262/#sec-advancestringindex
-module.exports = function (S, index, unicode) {
- return index + (unicode ? at(S, index).length : 1);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_an-instance.js b/swh/web/static/jssources/core-js/modules/_an-instance.js
deleted file mode 100644
index c0a5f920..00000000
--- a/swh/web/static/jssources/core-js/modules/_an-instance.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = function (it, Constructor, name, forbiddenField) {
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
- throw TypeError(name + ': incorrect invocation!');
- } return it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_an-object.js b/swh/web/static/jssources/core-js/modules/_an-object.js
deleted file mode 100644
index b1c316cd..00000000
--- a/swh/web/static/jssources/core-js/modules/_an-object.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var isObject = require('./_is-object');
-module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-copy-within.js b/swh/web/static/jssources/core-js/modules/_array-copy-within.js
deleted file mode 100644
index d331576c..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-copy-within.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
-'use strict';
-var toObject = require('./_to-object');
-var toAbsoluteIndex = require('./_to-absolute-index');
-var toLength = require('./_to-length');
-
-module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
- var O = toObject(this);
- var len = toLength(O.length);
- var to = toAbsoluteIndex(target, len);
- var from = toAbsoluteIndex(start, len);
- var end = arguments.length > 2 ? arguments[2] : undefined;
- var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
- var inc = 1;
- if (from < to && to < from + count) {
- inc = -1;
- from += count - 1;
- to += count - 1;
- }
- while (count-- > 0) {
- if (from in O) O[to] = O[from];
- else delete O[to];
- to += inc;
- from += inc;
- } return O;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-fill.js b/swh/web/static/jssources/core-js/modules/_array-fill.js
deleted file mode 100644
index 0753c36a..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-fill.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
-'use strict';
-var toObject = require('./_to-object');
-var toAbsoluteIndex = require('./_to-absolute-index');
-var toLength = require('./_to-length');
-module.exports = function fill(value /* , start = 0, end = @length */) {
- var O = toObject(this);
- var length = toLength(O.length);
- var aLen = arguments.length;
- var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
- var end = aLen > 2 ? arguments[2] : undefined;
- var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
- while (endPos > index) O[index++] = value;
- return O;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-includes.js b/swh/web/static/jssources/core-js/modules/_array-includes.js
deleted file mode 100644
index 0ef3efeb..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-includes.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// false -> Array#indexOf
-// true -> Array#includes
-var toIObject = require('./_to-iobject');
-var toLength = require('./_to-length');
-var toAbsoluteIndex = require('./_to-absolute-index');
-module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-methods.js b/swh/web/static/jssources/core-js/modules/_array-methods.js
deleted file mode 100644
index ae7f447d..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-methods.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// 0 -> Array#forEach
-// 1 -> Array#map
-// 2 -> Array#filter
-// 3 -> Array#some
-// 4 -> Array#every
-// 5 -> Array#find
-// 6 -> Array#findIndex
-var ctx = require('./_ctx');
-var IObject = require('./_iobject');
-var toObject = require('./_to-object');
-var toLength = require('./_to-length');
-var asc = require('./_array-species-create');
-module.exports = function (TYPE, $create) {
- var IS_MAP = TYPE == 1;
- var IS_FILTER = TYPE == 2;
- var IS_SOME = TYPE == 3;
- var IS_EVERY = TYPE == 4;
- var IS_FIND_INDEX = TYPE == 6;
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- var create = $create || asc;
- return function ($this, callbackfn, that) {
- var O = toObject($this);
- var self = IObject(O);
- var f = ctx(callbackfn, that, 3);
- var length = toLength(self.length);
- var index = 0;
- var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
- var val, res;
- for (;length > index; index++) if (NO_HOLES || index in self) {
- val = self[index];
- res = f(val, index, O);
- if (TYPE) {
- if (IS_MAP) result[index] = res; // map
- else if (res) switch (TYPE) {
- case 3: return true; // some
- case 5: return val; // find
- case 6: return index; // findIndex
- case 2: result.push(val); // filter
- } else if (IS_EVERY) return false; // every
- }
- }
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-reduce.js b/swh/web/static/jssources/core-js/modules/_array-reduce.js
deleted file mode 100644
index 8596ac70..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-reduce.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var aFunction = require('./_a-function');
-var toObject = require('./_to-object');
-var IObject = require('./_iobject');
-var toLength = require('./_to-length');
-
-module.exports = function (that, callbackfn, aLen, memo, isRight) {
- aFunction(callbackfn);
- var O = toObject(that);
- var self = IObject(O);
- var length = toLength(O.length);
- var index = isRight ? length - 1 : 0;
- var i = isRight ? -1 : 1;
- if (aLen < 2) for (;;) {
- if (index in self) {
- memo = self[index];
- index += i;
- break;
- }
- index += i;
- if (isRight ? index < 0 : length <= index) {
- throw TypeError('Reduce of empty array with no initial value');
- }
- }
- for (;isRight ? index >= 0 : length > index; index += i) if (index in self) {
- memo = callbackfn(memo, self[index], index, O);
- }
- return memo;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-species-constructor.js b/swh/web/static/jssources/core-js/modules/_array-species-constructor.js
deleted file mode 100644
index 0771c236..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-species-constructor.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var isObject = require('./_is-object');
-var isArray = require('./_is-array');
-var SPECIES = require('./_wks')('species');
-
-module.exports = function (original) {
- var C;
- if (isArray(original)) {
- C = original.constructor;
- // cross-realm fallback
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
- if (isObject(C)) {
- C = C[SPECIES];
- if (C === null) C = undefined;
- }
- } return C === undefined ? Array : C;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_array-species-create.js b/swh/web/static/jssources/core-js/modules/_array-species-create.js
deleted file mode 100644
index 36ed58bd..00000000
--- a/swh/web/static/jssources/core-js/modules/_array-species-create.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
-var speciesConstructor = require('./_array-species-constructor');
-
-module.exports = function (original, length) {
- return new (speciesConstructor(original))(length);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_bind.js b/swh/web/static/jssources/core-js/modules/_bind.js
deleted file mode 100644
index 3cf1e5ae..00000000
--- a/swh/web/static/jssources/core-js/modules/_bind.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-var aFunction = require('./_a-function');
-var isObject = require('./_is-object');
-var invoke = require('./_invoke');
-var arraySlice = [].slice;
-var factories = {};
-
-var construct = function (F, len, args) {
- if (!(len in factories)) {
- for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
- // eslint-disable-next-line no-new-func
- factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
- } return factories[len](F, args);
-};
-
-module.exports = Function.bind || function bind(that /* , ...args */) {
- var fn = aFunction(this);
- var partArgs = arraySlice.call(arguments, 1);
- var bound = function (/* args... */) {
- var args = partArgs.concat(arraySlice.call(arguments));
- return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
- };
- if (isObject(fn.prototype)) bound.prototype = fn.prototype;
- return bound;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_classof.js b/swh/web/static/jssources/core-js/modules/_classof.js
deleted file mode 100644
index d106d5be..00000000
--- a/swh/web/static/jssources/core-js/modules/_classof.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// getting tag from 19.1.3.6 Object.prototype.toString()
-var cof = require('./_cof');
-var TAG = require('./_wks')('toStringTag');
-// ES3 wrong here
-var ARG = cof(function () { return arguments; }()) == 'Arguments';
-
-// fallback for IE11 Script Access Denied error
-var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
-};
-
-module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_cof.js b/swh/web/static/jssources/core-js/modules/_cof.js
deleted file mode 100644
index 332c0bc0..00000000
--- a/swh/web/static/jssources/core-js/modules/_cof.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var toString = {}.toString;
-
-module.exports = function (it) {
- return toString.call(it).slice(8, -1);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_collection-strong.js b/swh/web/static/jssources/core-js/modules/_collection-strong.js
deleted file mode 100644
index 68ce63f0..00000000
--- a/swh/web/static/jssources/core-js/modules/_collection-strong.js
+++ /dev/null
@@ -1,144 +0,0 @@
-'use strict';
-var dP = require('./_object-dp').f;
-var create = require('./_object-create');
-var redefineAll = require('./_redefine-all');
-var ctx = require('./_ctx');
-var anInstance = require('./_an-instance');
-var forOf = require('./_for-of');
-var $iterDefine = require('./_iter-define');
-var step = require('./_iter-step');
-var setSpecies = require('./_set-species');
-var DESCRIPTORS = require('./_descriptors');
-var fastKey = require('./_meta').fastKey;
-var validate = require('./_validate-collection');
-var SIZE = DESCRIPTORS ? '_s' : 'size';
-
-var getEntry = function (that, key) {
- // fast case
- var index = fastKey(key);
- var entry;
- if (index !== 'F') return that._i[index];
- // frozen object case
- for (entry = that._f; entry; entry = entry.n) {
- if (entry.k == key) return entry;
- }
-};
-
-module.exports = {
- getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
- var C = wrapper(function (that, iterable) {
- anInstance(that, C, NAME, '_i');
- that._t = NAME; // collection type
- that._i = create(null); // index
- that._f = undefined; // first entry
- that._l = undefined; // last entry
- that[SIZE] = 0; // size
- if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
- });
- redefineAll(C.prototype, {
- // 23.1.3.1 Map.prototype.clear()
- // 23.2.3.2 Set.prototype.clear()
- clear: function clear() {
- for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
- entry.r = true;
- if (entry.p) entry.p = entry.p.n = undefined;
- delete data[entry.i];
- }
- that._f = that._l = undefined;
- that[SIZE] = 0;
- },
- // 23.1.3.3 Map.prototype.delete(key)
- // 23.2.3.4 Set.prototype.delete(value)
- 'delete': function (key) {
- var that = validate(this, NAME);
- var entry = getEntry(that, key);
- if (entry) {
- var next = entry.n;
- var prev = entry.p;
- delete that._i[entry.i];
- entry.r = true;
- if (prev) prev.n = next;
- if (next) next.p = prev;
- if (that._f == entry) that._f = next;
- if (that._l == entry) that._l = prev;
- that[SIZE]--;
- } return !!entry;
- },
- // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
- // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
- forEach: function forEach(callbackfn /* , that = undefined */) {
- validate(this, NAME);
- var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
- var entry;
- while (entry = entry ? entry.n : this._f) {
- f(entry.v, entry.k, this);
- // revert to the last existing entry
- while (entry && entry.r) entry = entry.p;
- }
- },
- // 23.1.3.7 Map.prototype.has(key)
- // 23.2.3.7 Set.prototype.has(value)
- has: function has(key) {
- return !!getEntry(validate(this, NAME), key);
- }
- });
- if (DESCRIPTORS) dP(C.prototype, 'size', {
- get: function () {
- return validate(this, NAME)[SIZE];
- }
- });
- return C;
- },
- def: function (that, key, value) {
- var entry = getEntry(that, key);
- var prev, index;
- // change existing entry
- if (entry) {
- entry.v = value;
- // create new entry
- } else {
- that._l = entry = {
- i: index = fastKey(key, true), // <- index
- k: key, // <- key
- v: value, // <- value
- p: prev = that._l, // <- previous entry
- n: undefined, // <- next entry
- r: false // <- removed
- };
- if (!that._f) that._f = entry;
- if (prev) prev.n = entry;
- that[SIZE]++;
- // add to index
- if (index !== 'F') that._i[index] = entry;
- } return that;
- },
- getEntry: getEntry,
- setStrong: function (C, NAME, IS_MAP) {
- // add .keys, .values, .entries, [@@iterator]
- // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
- $iterDefine(C, NAME, function (iterated, kind) {
- this._t = validate(iterated, NAME); // target
- this._k = kind; // kind
- this._l = undefined; // previous
- }, function () {
- var that = this;
- var kind = that._k;
- var entry = that._l;
- // revert to the last existing entry
- while (entry && entry.r) entry = entry.p;
- // get next entry
- if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
- // or finish the iteration
- that._t = undefined;
- return step(1);
- }
- // return step by kind
- if (kind == 'keys') return step(0, entry.k);
- if (kind == 'values') return step(0, entry.v);
- return step(0, [entry.k, entry.v]);
- }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
-
- // add [@@species], 23.1.2.2, 23.2.2.2
- setSpecies(NAME);
- }
-};
diff --git a/swh/web/static/jssources/core-js/modules/_collection-weak.js b/swh/web/static/jssources/core-js/modules/_collection-weak.js
deleted file mode 100644
index 04d3af5a..00000000
--- a/swh/web/static/jssources/core-js/modules/_collection-weak.js
+++ /dev/null
@@ -1,85 +0,0 @@
-'use strict';
-var redefineAll = require('./_redefine-all');
-var getWeak = require('./_meta').getWeak;
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-var anInstance = require('./_an-instance');
-var forOf = require('./_for-of');
-var createArrayMethod = require('./_array-methods');
-var $has = require('./_has');
-var validate = require('./_validate-collection');
-var arrayFind = createArrayMethod(5);
-var arrayFindIndex = createArrayMethod(6);
-var id = 0;
-
-// fallback for uncaught frozen keys
-var uncaughtFrozenStore = function (that) {
- return that._l || (that._l = new UncaughtFrozenStore());
-};
-var UncaughtFrozenStore = function () {
- this.a = [];
-};
-var findUncaughtFrozen = function (store, key) {
- return arrayFind(store.a, function (it) {
- return it[0] === key;
- });
-};
-UncaughtFrozenStore.prototype = {
- get: function (key) {
- var entry = findUncaughtFrozen(this, key);
- if (entry) return entry[1];
- },
- has: function (key) {
- return !!findUncaughtFrozen(this, key);
- },
- set: function (key, value) {
- var entry = findUncaughtFrozen(this, key);
- if (entry) entry[1] = value;
- else this.a.push([key, value]);
- },
- 'delete': function (key) {
- var index = arrayFindIndex(this.a, function (it) {
- return it[0] === key;
- });
- if (~index) this.a.splice(index, 1);
- return !!~index;
- }
-};
-
-module.exports = {
- getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
- var C = wrapper(function (that, iterable) {
- anInstance(that, C, NAME, '_i');
- that._t = NAME; // collection type
- that._i = id++; // collection id
- that._l = undefined; // leak store for uncaught frozen objects
- if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
- });
- redefineAll(C.prototype, {
- // 23.3.3.2 WeakMap.prototype.delete(key)
- // 23.4.3.3 WeakSet.prototype.delete(value)
- 'delete': function (key) {
- if (!isObject(key)) return false;
- var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
- return data && $has(data, this._i) && delete data[this._i];
- },
- // 23.3.3.4 WeakMap.prototype.has(key)
- // 23.4.3.4 WeakSet.prototype.has(value)
- has: function has(key) {
- if (!isObject(key)) return false;
- var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
- return data && $has(data, this._i);
- }
- });
- return C;
- },
- def: function (that, key, value) {
- var data = getWeak(anObject(key), true);
- if (data === true) uncaughtFrozenStore(that).set(key, value);
- else data[that._i] = value;
- return that;
- },
- ufstore: uncaughtFrozenStore
-};
diff --git a/swh/web/static/jssources/core-js/modules/_collection.js b/swh/web/static/jssources/core-js/modules/_collection.js
deleted file mode 100644
index 767dde50..00000000
--- a/swh/web/static/jssources/core-js/modules/_collection.js
+++ /dev/null
@@ -1,85 +0,0 @@
-'use strict';
-var global = require('./_global');
-var $export = require('./_export');
-var redefine = require('./_redefine');
-var redefineAll = require('./_redefine-all');
-var meta = require('./_meta');
-var forOf = require('./_for-of');
-var anInstance = require('./_an-instance');
-var isObject = require('./_is-object');
-var fails = require('./_fails');
-var $iterDetect = require('./_iter-detect');
-var setToStringTag = require('./_set-to-string-tag');
-var inheritIfRequired = require('./_inherit-if-required');
-
-module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
- var Base = global[NAME];
- var C = Base;
- var ADDER = IS_MAP ? 'set' : 'add';
- var proto = C && C.prototype;
- var O = {};
- var fixMethod = function (KEY) {
- var fn = proto[KEY];
- redefine(proto, KEY,
- KEY == 'delete' ? function (a) {
- return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
- } : KEY == 'has' ? function has(a) {
- return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
- } : KEY == 'get' ? function get(a) {
- return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
- } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }
- : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }
- );
- };
- if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
- new C().entries().next();
- }))) {
- // create collection constructor
- C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
- redefineAll(C.prototype, methods);
- meta.NEED = true;
- } else {
- var instance = new C();
- // early implementations not supports chaining
- var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
- // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
- var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
- // most early implementations doesn't supports iterables, most modern - not close it correctly
- var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new
- // for early implementations -0 and +0 not the same
- var BUGGY_ZERO = !IS_WEAK && fails(function () {
- // V8 ~ Chromium 42- fails only with 5+ elements
- var $instance = new C();
- var index = 5;
- while (index--) $instance[ADDER](index, index);
- return !$instance.has(-0);
- });
- if (!ACCEPT_ITERABLES) {
- C = wrapper(function (target, iterable) {
- anInstance(target, C, NAME);
- var that = inheritIfRequired(new Base(), target, C);
- if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
- return that;
- });
- C.prototype = proto;
- proto.constructor = C;
- }
- if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
- fixMethod('delete');
- fixMethod('has');
- IS_MAP && fixMethod('get');
- }
- if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
- // weak collections should not contains .clear method
- if (IS_WEAK && proto.clear) delete proto.clear;
- }
-
- setToStringTag(C, NAME);
-
- O[NAME] = C;
- $export($export.G + $export.W + $export.F * (C != Base), O);
-
- if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
-
- return C;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_core.js b/swh/web/static/jssources/core-js/modules/_core.js
deleted file mode 100644
index b5c278f9..00000000
--- a/swh/web/static/jssources/core-js/modules/_core.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var core = module.exports = { version: '2.6.5' };
-if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
diff --git a/swh/web/static/jssources/core-js/modules/_create-property.js b/swh/web/static/jssources/core-js/modules/_create-property.js
deleted file mode 100644
index fd0ea8c9..00000000
--- a/swh/web/static/jssources/core-js/modules/_create-property.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-var $defineProperty = require('./_object-dp');
-var createDesc = require('./_property-desc');
-
-module.exports = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
- else object[index] = value;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_ctx.js b/swh/web/static/jssources/core-js/modules/_ctx.js
deleted file mode 100644
index 0a100ff3..00000000
--- a/swh/web/static/jssources/core-js/modules/_ctx.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// optional / simple context binding
-var aFunction = require('./_a-function');
-module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_date-to-iso-string.js b/swh/web/static/jssources/core-js/modules/_date-to-iso-string.js
deleted file mode 100644
index 95a02e22..00000000
--- a/swh/web/static/jssources/core-js/modules/_date-to-iso-string.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
-var fails = require('./_fails');
-var getTime = Date.prototype.getTime;
-var $toISOString = Date.prototype.toISOString;
-
-var lz = function (num) {
- return num > 9 ? num : '0' + num;
-};
-
-// PhantomJS / old WebKit has a broken implementations
-module.exports = (fails(function () {
- return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
-}) || !fails(function () {
- $toISOString.call(new Date(NaN));
-})) ? function toISOString() {
- if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
- var d = this;
- var y = d.getUTCFullYear();
- var m = d.getUTCMilliseconds();
- var s = y < 0 ? '-' : y > 9999 ? '+' : '';
- return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
- '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
- 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
- ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
-} : $toISOString;
diff --git a/swh/web/static/jssources/core-js/modules/_date-to-primitive.js b/swh/web/static/jssources/core-js/modules/_date-to-primitive.js
deleted file mode 100644
index 57c32030..00000000
--- a/swh/web/static/jssources/core-js/modules/_date-to-primitive.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-var anObject = require('./_an-object');
-var toPrimitive = require('./_to-primitive');
-var NUMBER = 'number';
-
-module.exports = function (hint) {
- if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
- return toPrimitive(anObject(this), hint != NUMBER);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_defined.js b/swh/web/static/jssources/core-js/modules/_defined.js
deleted file mode 100644
index 66c7ed32..00000000
--- a/swh/web/static/jssources/core-js/modules/_defined.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.2.1 RequireObjectCoercible(argument)
-module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_descriptors.js b/swh/web/static/jssources/core-js/modules/_descriptors.js
deleted file mode 100644
index 04697406..00000000
--- a/swh/web/static/jssources/core-js/modules/_descriptors.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// Thank's IE8 for his funny defineProperty
-module.exports = !require('./_fails')(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
-});
diff --git a/swh/web/static/jssources/core-js/modules/_dom-create.js b/swh/web/static/jssources/core-js/modules/_dom-create.js
deleted file mode 100644
index 39ca2569..00000000
--- a/swh/web/static/jssources/core-js/modules/_dom-create.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var isObject = require('./_is-object');
-var document = require('./_global').document;
-// typeof document.createElement is 'object' in old IE
-var is = isObject(document) && isObject(document.createElement);
-module.exports = function (it) {
- return is ? document.createElement(it) : {};
-};
diff --git a/swh/web/static/jssources/core-js/modules/_enum-bug-keys.js b/swh/web/static/jssources/core-js/modules/_enum-bug-keys.js
deleted file mode 100644
index d9ad8551..00000000
--- a/swh/web/static/jssources/core-js/modules/_enum-bug-keys.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// IE 8- don't enum bug keys
-module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
-).split(',');
diff --git a/swh/web/static/jssources/core-js/modules/_enum-keys.js b/swh/web/static/jssources/core-js/modules/_enum-keys.js
deleted file mode 100644
index 3e7053d1..00000000
--- a/swh/web/static/jssources/core-js/modules/_enum-keys.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// all enumerable object keys, includes symbols
-var getKeys = require('./_object-keys');
-var gOPS = require('./_object-gops');
-var pIE = require('./_object-pie');
-module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_export.js b/swh/web/static/jssources/core-js/modules/_export.js
deleted file mode 100644
index 3c907c6e..00000000
--- a/swh/web/static/jssources/core-js/modules/_export.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var global = require('./_global');
-var core = require('./_core');
-var hide = require('./_hide');
-var redefine = require('./_redefine');
-var ctx = require('./_ctx');
-var PROTOTYPE = 'prototype';
-
-var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) redefine(target, key, out, type & $export.U);
- // export
- if (exports[key] != out) hide(exports, key, exp);
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
- }
-};
-global.core = core;
-// type bitmap
-$export.F = 1; // forced
-$export.G = 2; // global
-$export.S = 4; // static
-$export.P = 8; // proto
-$export.B = 16; // bind
-$export.W = 32; // wrap
-$export.U = 64; // safe
-$export.R = 128; // real proto method for `library`
-module.exports = $export;
diff --git a/swh/web/static/jssources/core-js/modules/_fails-is-regexp.js b/swh/web/static/jssources/core-js/modules/_fails-is-regexp.js
deleted file mode 100644
index 8eec2e47..00000000
--- a/swh/web/static/jssources/core-js/modules/_fails-is-regexp.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var MATCH = require('./_wks')('match');
-module.exports = function (KEY) {
- var re = /./;
- try {
- '/./'[KEY](re);
- } catch (e) {
- try {
- re[MATCH] = false;
- return !'/./'[KEY](re);
- } catch (f) { /* empty */ }
- } return true;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_fails.js b/swh/web/static/jssources/core-js/modules/_fails.js
deleted file mode 100644
index 3b4cdf67..00000000
--- a/swh/web/static/jssources/core-js/modules/_fails.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
-};
diff --git a/swh/web/static/jssources/core-js/modules/_fix-re-wks.js b/swh/web/static/jssources/core-js/modules/_fix-re-wks.js
deleted file mode 100644
index 64d00fe6..00000000
--- a/swh/web/static/jssources/core-js/modules/_fix-re-wks.js
+++ /dev/null
@@ -1,96 +0,0 @@
-'use strict';
-require('./es6.regexp.exec');
-var redefine = require('./_redefine');
-var hide = require('./_hide');
-var fails = require('./_fails');
-var defined = require('./_defined');
-var wks = require('./_wks');
-var regexpExec = require('./_regexp-exec');
-
-var SPECIES = wks('species');
-
-var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
- // #replace needs built-in support for named groups.
- // #match works fine because it just return the exec results, even if it has
- // a "grops" property.
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- return ''.replace(re, '$') !== '7';
-});
-
-var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length === 2 && result[0] === 'a' && result[1] === 'b';
-})();
-
-module.exports = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
-
- var DELEGATES_TO_SYMBOL = !fails(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
-
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- re.exec = function () { execCalled = true; return null; };
- if (KEY === 'split') {
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES] = function () { return re; };
- }
- re[SYMBOL]('');
- return !execCalled;
- }) : undefined;
-
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
- ) {
- var nativeRegExpMethod = /./[SYMBOL];
- var fns = exec(
- defined,
- SYMBOL,
- ''[KEY],
- function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }
- );
- var strfn = fns[0];
- var rxfn = fns[1];
-
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return rxfn.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return rxfn.call(string, this); }
- );
- }
-};
diff --git a/swh/web/static/jssources/core-js/modules/_flags.js b/swh/web/static/jssources/core-js/modules/_flags.js
deleted file mode 100644
index b6fc324b..00000000
--- a/swh/web/static/jssources/core-js/modules/_flags.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-// 21.2.5.3 get RegExp.prototype.flags
-var anObject = require('./_an-object');
-module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_for-of.js b/swh/web/static/jssources/core-js/modules/_for-of.js
deleted file mode 100644
index 9ed22818..00000000
--- a/swh/web/static/jssources/core-js/modules/_for-of.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var ctx = require('./_ctx');
-var call = require('./_iter-call');
-var isArrayIter = require('./_is-array-iter');
-var anObject = require('./_an-object');
-var toLength = require('./_to-length');
-var getIterFn = require('./core.get-iterator-method');
-var BREAK = {};
-var RETURN = {};
-var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
- var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
- var f = ctx(fn, that, entries ? 2 : 1);
- var index = 0;
- var length, step, iterator, result;
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
- // fast case for arrays with default iterator
- if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
- result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
- if (result === BREAK || result === RETURN) return result;
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
- result = call(iterator, f, step.value, entries);
- if (result === BREAK || result === RETURN) return result;
- }
-};
-exports.BREAK = BREAK;
-exports.RETURN = RETURN;
diff --git a/swh/web/static/jssources/core-js/modules/_function-to-string.js b/swh/web/static/jssources/core-js/modules/_function-to-string.js
deleted file mode 100644
index d7f5419c..00000000
--- a/swh/web/static/jssources/core-js/modules/_function-to-string.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./_shared')('native-function-to-string', Function.toString);
diff --git a/swh/web/static/jssources/core-js/modules/_global.js b/swh/web/static/jssources/core-js/modules/_global.js
deleted file mode 100644
index bf85b44a..00000000
--- a/swh/web/static/jssources/core-js/modules/_global.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
-if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
diff --git a/swh/web/static/jssources/core-js/modules/_has.js b/swh/web/static/jssources/core-js/modules/_has.js
deleted file mode 100644
index 2a37d8b7..00000000
--- a/swh/web/static/jssources/core-js/modules/_has.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var hasOwnProperty = {}.hasOwnProperty;
-module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_hide.js b/swh/web/static/jssources/core-js/modules/_hide.js
deleted file mode 100644
index cec258a0..00000000
--- a/swh/web/static/jssources/core-js/modules/_hide.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var dP = require('./_object-dp');
-var createDesc = require('./_property-desc');
-module.exports = require('./_descriptors') ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
-} : function (object, key, value) {
- object[key] = value;
- return object;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_html.js b/swh/web/static/jssources/core-js/modules/_html.js
deleted file mode 100644
index 7daff14c..00000000
--- a/swh/web/static/jssources/core-js/modules/_html.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var document = require('./_global').document;
-module.exports = document && document.documentElement;
diff --git a/swh/web/static/jssources/core-js/modules/_ie8-dom-define.js b/swh/web/static/jssources/core-js/modules/_ie8-dom-define.js
deleted file mode 100644
index a3805cb7..00000000
--- a/swh/web/static/jssources/core-js/modules/_ie8-dom-define.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = !require('./_descriptors') && !require('./_fails')(function () {
- return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;
-});
diff --git a/swh/web/static/jssources/core-js/modules/_inherit-if-required.js b/swh/web/static/jssources/core-js/modules/_inherit-if-required.js
deleted file mode 100644
index b95fcd98..00000000
--- a/swh/web/static/jssources/core-js/modules/_inherit-if-required.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var isObject = require('./_is-object');
-var setPrototypeOf = require('./_set-proto').set;
-module.exports = function (that, target, C) {
- var S = target.constructor;
- var P;
- if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
- setPrototypeOf(that, P);
- } return that;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_invoke.js b/swh/web/static/jssources/core-js/modules/_invoke.js
deleted file mode 100644
index 6cccebdc..00000000
--- a/swh/web/static/jssources/core-js/modules/_invoke.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// fast apply, http://jsperf.lnkit.com/fast-apply/5
-module.exports = function (fn, args, that) {
- var un = that === undefined;
- switch (args.length) {
- case 0: return un ? fn()
- : fn.call(that);
- case 1: return un ? fn(args[0])
- : fn.call(that, args[0]);
- case 2: return un ? fn(args[0], args[1])
- : fn.call(that, args[0], args[1]);
- case 3: return un ? fn(args[0], args[1], args[2])
- : fn.call(that, args[0], args[1], args[2]);
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
- : fn.call(that, args[0], args[1], args[2], args[3]);
- } return fn.apply(that, args);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iobject.js b/swh/web/static/jssources/core-js/modules/_iobject.js
deleted file mode 100644
index 2b57c8a0..00000000
--- a/swh/web/static/jssources/core-js/modules/_iobject.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// fallback for non-array-like ES3 and non-enumerable old V8 strings
-var cof = require('./_cof');
-// eslint-disable-next-line no-prototype-builtins
-module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_is-array-iter.js b/swh/web/static/jssources/core-js/modules/_is-array-iter.js
deleted file mode 100644
index 6f67d905..00000000
--- a/swh/web/static/jssources/core-js/modules/_is-array-iter.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// check on default Array iterator
-var Iterators = require('./_iterators');
-var ITERATOR = require('./_wks')('iterator');
-var ArrayProto = Array.prototype;
-
-module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_is-array.js b/swh/web/static/jssources/core-js/modules/_is-array.js
deleted file mode 100644
index 0581dc2e..00000000
--- a/swh/web/static/jssources/core-js/modules/_is-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.2.2 IsArray(argument)
-var cof = require('./_cof');
-module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
-};
diff --git a/swh/web/static/jssources/core-js/modules/_is-integer.js b/swh/web/static/jssources/core-js/modules/_is-integer.js
deleted file mode 100644
index 0074ae97..00000000
--- a/swh/web/static/jssources/core-js/modules/_is-integer.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 20.1.2.3 Number.isInteger(number)
-var isObject = require('./_is-object');
-var floor = Math.floor;
-module.exports = function isInteger(it) {
- return !isObject(it) && isFinite(it) && floor(it) === it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_is-object.js b/swh/web/static/jssources/core-js/modules/_is-object.js
deleted file mode 100644
index dda6e04d..00000000
--- a/swh/web/static/jssources/core-js/modules/_is-object.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
-};
diff --git a/swh/web/static/jssources/core-js/modules/_is-regexp.js b/swh/web/static/jssources/core-js/modules/_is-regexp.js
deleted file mode 100644
index 598d159d..00000000
--- a/swh/web/static/jssources/core-js/modules/_is-regexp.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 7.2.8 IsRegExp(argument)
-var isObject = require('./_is-object');
-var cof = require('./_cof');
-var MATCH = require('./_wks')('match');
-module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iter-call.js b/swh/web/static/jssources/core-js/modules/_iter-call.js
deleted file mode 100644
index a7026e34..00000000
--- a/swh/web/static/jssources/core-js/modules/_iter-call.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// call something on iterator step with safe closing on error
-var anObject = require('./_an-object');
-module.exports = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
- throw e;
- }
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iter-create.js b/swh/web/static/jssources/core-js/modules/_iter-create.js
deleted file mode 100644
index 04708c83..00000000
--- a/swh/web/static/jssources/core-js/modules/_iter-create.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-var create = require('./_object-create');
-var descriptor = require('./_property-desc');
-var setToStringTag = require('./_set-to-string-tag');
-var IteratorPrototype = {};
-
-// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
-require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });
-
-module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iter-define.js b/swh/web/static/jssources/core-js/modules/_iter-define.js
deleted file mode 100644
index 578dfb73..00000000
--- a/swh/web/static/jssources/core-js/modules/_iter-define.js
+++ /dev/null
@@ -1,69 +0,0 @@
-'use strict';
-var LIBRARY = require('./_library');
-var $export = require('./_export');
-var redefine = require('./_redefine');
-var hide = require('./_hide');
-var Iterators = require('./_iterators');
-var $iterCreate = require('./_iter-create');
-var setToStringTag = require('./_set-to-string-tag');
-var getPrototypeOf = require('./_object-gpo');
-var ITERATOR = require('./_wks')('iterator');
-var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
-var FF_ITERATOR = '@@iterator';
-var KEYS = 'keys';
-var VALUES = 'values';
-
-var returnThis = function () { return this; };
-
-module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iter-detect.js b/swh/web/static/jssources/core-js/modules/_iter-detect.js
deleted file mode 100644
index 5cb34973..00000000
--- a/swh/web/static/jssources/core-js/modules/_iter-detect.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var ITERATOR = require('./_wks')('iterator');
-var SAFE_CLOSING = false;
-
-try {
- var riter = [7][ITERATOR]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
-} catch (e) { /* empty */ }
-
-module.exports = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) return false;
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iter-step.js b/swh/web/static/jssources/core-js/modules/_iter-step.js
deleted file mode 100644
index b0691c88..00000000
--- a/swh/web/static/jssources/core-js/modules/_iter-step.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function (done, value) {
- return { value: value, done: !!done };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_iterators.js b/swh/web/static/jssources/core-js/modules/_iterators.js
deleted file mode 100644
index f053ebf7..00000000
--- a/swh/web/static/jssources/core-js/modules/_iterators.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = {};
diff --git a/swh/web/static/jssources/core-js/modules/_library.js b/swh/web/static/jssources/core-js/modules/_library.js
deleted file mode 100644
index a5d30209..00000000
--- a/swh/web/static/jssources/core-js/modules/_library.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = false;
diff --git a/swh/web/static/jssources/core-js/modules/_math-expm1.js b/swh/web/static/jssources/core-js/modules/_math-expm1.js
deleted file mode 100644
index 75c68501..00000000
--- a/swh/web/static/jssources/core-js/modules/_math-expm1.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 20.2.2.14 Math.expm1(x)
-var $expm1 = Math.expm1;
-module.exports = (!$expm1
- // Old FF bug
- || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
- // Tor Browser bug
- || $expm1(-2e-17) != -2e-17
-) ? function expm1(x) {
- return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
-} : $expm1;
diff --git a/swh/web/static/jssources/core-js/modules/_math-fround.js b/swh/web/static/jssources/core-js/modules/_math-fround.js
deleted file mode 100644
index c85eb4b7..00000000
--- a/swh/web/static/jssources/core-js/modules/_math-fround.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// 20.2.2.16 Math.fround(x)
-var sign = require('./_math-sign');
-var pow = Math.pow;
-var EPSILON = pow(2, -52);
-var EPSILON32 = pow(2, -23);
-var MAX32 = pow(2, 127) * (2 - EPSILON32);
-var MIN32 = pow(2, -126);
-
-var roundTiesToEven = function (n) {
- return n + 1 / EPSILON - 1 / EPSILON;
-};
-
-module.exports = Math.fround || function fround(x) {
- var $abs = Math.abs(x);
- var $sign = sign(x);
- var a, result;
- if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
- a = (1 + EPSILON32 / EPSILON) * $abs;
- result = a - (a - $abs);
- // eslint-disable-next-line no-self-compare
- if (result > MAX32 || result != result) return $sign * Infinity;
- return $sign * result;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_math-log1p.js b/swh/web/static/jssources/core-js/modules/_math-log1p.js
deleted file mode 100644
index 16d5f493..00000000
--- a/swh/web/static/jssources/core-js/modules/_math-log1p.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.2.2.20 Math.log1p(x)
-module.exports = Math.log1p || function log1p(x) {
- return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_math-sign.js b/swh/web/static/jssources/core-js/modules/_math-sign.js
deleted file mode 100644
index 7a46b9d0..00000000
--- a/swh/web/static/jssources/core-js/modules/_math-sign.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 20.2.2.28 Math.sign(x)
-module.exports = Math.sign || function sign(x) {
- // eslint-disable-next-line no-self-compare
- return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_meta.js b/swh/web/static/jssources/core-js/modules/_meta.js
deleted file mode 100644
index 2d4b3257..00000000
--- a/swh/web/static/jssources/core-js/modules/_meta.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var META = require('./_uid')('meta');
-var isObject = require('./_is-object');
-var has = require('./_has');
-var setDesc = require('./_object-dp').f;
-var id = 0;
-var isExtensible = Object.isExtensible || function () {
- return true;
-};
-var FREEZE = !require('./_fails')(function () {
- return isExtensible(Object.preventExtensions({}));
-});
-var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
-};
-var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
-};
-var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
-};
-// add metadata on freeze-family methods calling
-var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
-};
-var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
-};
diff --git a/swh/web/static/jssources/core-js/modules/_microtask.js b/swh/web/static/jssources/core-js/modules/_microtask.js
deleted file mode 100644
index b321c648..00000000
--- a/swh/web/static/jssources/core-js/modules/_microtask.js
+++ /dev/null
@@ -1,69 +0,0 @@
-var global = require('./_global');
-var macrotask = require('./_task').set;
-var Observer = global.MutationObserver || global.WebKitMutationObserver;
-var process = global.process;
-var Promise = global.Promise;
-var isNode = require('./_cof')(process) == 'process';
-
-module.exports = function () {
- var head, last, notify;
-
- var flush = function () {
- var parent, fn;
- if (isNode && (parent = process.domain)) parent.exit();
- while (head) {
- fn = head.fn;
- head = head.next;
- try {
- fn();
- } catch (e) {
- if (head) notify();
- else last = undefined;
- throw e;
- }
- } last = undefined;
- if (parent) parent.enter();
- };
-
- // Node.js
- if (isNode) {
- notify = function () {
- process.nextTick(flush);
- };
- // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
- } else if (Observer && !(global.navigator && global.navigator.standalone)) {
- var toggle = true;
- var node = document.createTextNode('');
- new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
- notify = function () {
- node.data = toggle = !toggle;
- };
- // environments with maybe non-completely correct, but existent Promise
- } else if (Promise && Promise.resolve) {
- // Promise.resolve without an argument throws an error in LG WebOS 2
- var promise = Promise.resolve(undefined);
- notify = function () {
- promise.then(flush);
- };
- // for other environments - macrotask based on:
- // - setImmediate
- // - MessageChannel
- // - window.postMessag
- // - onreadystatechange
- // - setTimeout
- } else {
- notify = function () {
- // strange IE + webpack dev server bug - use .call(global)
- macrotask.call(global, flush);
- };
- }
-
- return function (fn) {
- var task = { fn: fn, next: undefined };
- if (last) last.next = task;
- if (!head) {
- head = task;
- notify();
- } last = task;
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_new-promise-capability.js b/swh/web/static/jssources/core-js/modules/_new-promise-capability.js
deleted file mode 100644
index 82b74a33..00000000
--- a/swh/web/static/jssources/core-js/modules/_new-promise-capability.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-// 25.4.1.5 NewPromiseCapability(C)
-var aFunction = require('./_a-function');
-
-function PromiseCapability(C) {
- var resolve, reject;
- this.promise = new C(function ($$resolve, $$reject) {
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
- resolve = $$resolve;
- reject = $$reject;
- });
- this.resolve = aFunction(resolve);
- this.reject = aFunction(reject);
-}
-
-module.exports.f = function (C) {
- return new PromiseCapability(C);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-assign.js b/swh/web/static/jssources/core-js/modules/_object-assign.js
deleted file mode 100644
index 7d4943a2..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-assign.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-// 19.1.2.1 Object.assign(target, source, ...)
-var getKeys = require('./_object-keys');
-var gOPS = require('./_object-gops');
-var pIE = require('./_object-pie');
-var toObject = require('./_to-object');
-var IObject = require('./_iobject');
-var $assign = Object.assign;
-
-// should work with symbols and should have deterministic property order (V8 bug)
-module.exports = !$assign || require('./_fails')(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
-}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
- } return T;
-} : $assign;
diff --git a/swh/web/static/jssources/core-js/modules/_object-create.js b/swh/web/static/jssources/core-js/modules/_object-create.js
deleted file mode 100644
index a76808ea..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-create.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-var anObject = require('./_an-object');
-var dPs = require('./_object-dps');
-var enumBugKeys = require('./_enum-bug-keys');
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-var Empty = function () { /* empty */ };
-var PROTOTYPE = 'prototype';
-
-// Create object with fake `null` prototype: use iframe Object with cleared prototype
-var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = require('./_dom-create')('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- require('./_html').appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
-};
-
-module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-dp.js b/swh/web/static/jssources/core-js/modules/_object-dp.js
deleted file mode 100644
index 0340a830..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-dp.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var anObject = require('./_an-object');
-var IE8_DOM_DEFINE = require('./_ie8-dom-define');
-var toPrimitive = require('./_to-primitive');
-var dP = Object.defineProperty;
-
-exports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-dps.js b/swh/web/static/jssources/core-js/modules/_object-dps.js
deleted file mode 100644
index 173c338f..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-dps.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dP = require('./_object-dp');
-var anObject = require('./_an-object');
-var getKeys = require('./_object-keys');
-
-module.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-gopd.js b/swh/web/static/jssources/core-js/modules/_object-gopd.js
deleted file mode 100644
index 555dd31a..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-gopd.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var pIE = require('./_object-pie');
-var createDesc = require('./_property-desc');
-var toIObject = require('./_to-iobject');
-var toPrimitive = require('./_to-primitive');
-var has = require('./_has');
-var IE8_DOM_DEFINE = require('./_ie8-dom-define');
-var gOPD = Object.getOwnPropertyDescriptor;
-
-exports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-gopn-ext.js b/swh/web/static/jssources/core-js/modules/_object-gopn-ext.js
deleted file mode 100644
index 4abb6ae8..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-gopn-ext.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
-var toIObject = require('./_to-iobject');
-var gOPN = require('./_object-gopn').f;
-var toString = {}.toString;
-
-var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
-
-var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
-};
-
-module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-gopn.js b/swh/web/static/jssources/core-js/modules/_object-gopn.js
deleted file mode 100644
index da82333f..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-gopn.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
-var $keys = require('./_object-keys-internal');
-var hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');
-
-exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-gops.js b/swh/web/static/jssources/core-js/modules/_object-gops.js
deleted file mode 100644
index bc067290..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-gops.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.f = Object.getOwnPropertySymbols;
diff --git a/swh/web/static/jssources/core-js/modules/_object-gpo.js b/swh/web/static/jssources/core-js/modules/_object-gpo.js
deleted file mode 100644
index 27f2a94e..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-gpo.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
-var has = require('./_has');
-var toObject = require('./_to-object');
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-var ObjectProto = Object.prototype;
-
-module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-keys-internal.js b/swh/web/static/jssources/core-js/modules/_object-keys-internal.js
deleted file mode 100644
index 71abdd1a..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-keys-internal.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var has = require('./_has');
-var toIObject = require('./_to-iobject');
-var arrayIndexOf = require('./_array-includes')(false);
-var IE_PROTO = require('./_shared-key')('IE_PROTO');
-
-module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-keys.js b/swh/web/static/jssources/core-js/modules/_object-keys.js
deleted file mode 100644
index 62f73f91..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-keys.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// 19.1.2.14 / 15.2.3.14 Object.keys(O)
-var $keys = require('./_object-keys-internal');
-var enumBugKeys = require('./_enum-bug-keys');
-
-module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-pie.js b/swh/web/static/jssources/core-js/modules/_object-pie.js
deleted file mode 100644
index 4cc71072..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-pie.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.f = {}.propertyIsEnumerable;
diff --git a/swh/web/static/jssources/core-js/modules/_object-sap.js b/swh/web/static/jssources/core-js/modules/_object-sap.js
deleted file mode 100644
index 643535e0..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-sap.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// most Object methods by ES6 should accept primitives
-var $export = require('./_export');
-var core = require('./_core');
-var fails = require('./_fails');
-module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_object-to-array.js b/swh/web/static/jssources/core-js/modules/_object-to-array.js
deleted file mode 100644
index 120100d0..00000000
--- a/swh/web/static/jssources/core-js/modules/_object-to-array.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var getKeys = require('./_object-keys');
-var toIObject = require('./_to-iobject');
-var isEnum = require('./_object-pie').f;
-module.exports = function (isEntries) {
- return function (it) {
- var O = toIObject(it);
- var keys = getKeys(O);
- var length = keys.length;
- var i = 0;
- var result = [];
- var key;
- while (length > i) if (isEnum.call(O, key = keys[i++])) {
- result.push(isEntries ? [key, O[key]] : O[key]);
- } return result;
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_own-keys.js b/swh/web/static/jssources/core-js/modules/_own-keys.js
deleted file mode 100644
index 84faece8..00000000
--- a/swh/web/static/jssources/core-js/modules/_own-keys.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// all object keys, includes non-enumerable and symbols
-var gOPN = require('./_object-gopn');
-var gOPS = require('./_object-gops');
-var anObject = require('./_an-object');
-var Reflect = require('./_global').Reflect;
-module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
- var keys = gOPN.f(anObject(it));
- var getSymbols = gOPS.f;
- return getSymbols ? keys.concat(getSymbols(it)) : keys;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_parse-float.js b/swh/web/static/jssources/core-js/modules/_parse-float.js
deleted file mode 100644
index acfb350f..00000000
--- a/swh/web/static/jssources/core-js/modules/_parse-float.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var $parseFloat = require('./_global').parseFloat;
-var $trim = require('./_string-trim').trim;
-
-module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str) {
- var string = $trim(String(str), 3);
- var result = $parseFloat(string);
- return result === 0 && string.charAt(0) == '-' ? -0 : result;
-} : $parseFloat;
diff --git a/swh/web/static/jssources/core-js/modules/_parse-int.js b/swh/web/static/jssources/core-js/modules/_parse-int.js
deleted file mode 100644
index ddd7172a..00000000
--- a/swh/web/static/jssources/core-js/modules/_parse-int.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var $parseInt = require('./_global').parseInt;
-var $trim = require('./_string-trim').trim;
-var ws = require('./_string-ws');
-var hex = /^[-+]?0[xX]/;
-
-module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
- var string = $trim(String(str), 3);
- return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
-} : $parseInt;
diff --git a/swh/web/static/jssources/core-js/modules/_perform.js b/swh/web/static/jssources/core-js/modules/_perform.js
deleted file mode 100644
index bfc7b296..00000000
--- a/swh/web/static/jssources/core-js/modules/_perform.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function (exec) {
- try {
- return { e: false, v: exec() };
- } catch (e) {
- return { e: true, v: e };
- }
-};
diff --git a/swh/web/static/jssources/core-js/modules/_promise-resolve.js b/swh/web/static/jssources/core-js/modules/_promise-resolve.js
deleted file mode 100644
index c3cac764..00000000
--- a/swh/web/static/jssources/core-js/modules/_promise-resolve.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-var newPromiseCapability = require('./_new-promise-capability');
-
-module.exports = function (C, x) {
- anObject(C);
- if (isObject(x) && x.constructor === C) return x;
- var promiseCapability = newPromiseCapability.f(C);
- var resolve = promiseCapability.resolve;
- resolve(x);
- return promiseCapability.promise;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_property-desc.js b/swh/web/static/jssources/core-js/modules/_property-desc.js
deleted file mode 100644
index 09059340..00000000
--- a/swh/web/static/jssources/core-js/modules/_property-desc.js
+++ /dev/null
@@ -1,8 +0,0 @@
-module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_redefine-all.js b/swh/web/static/jssources/core-js/modules/_redefine-all.js
deleted file mode 100644
index dcf7944f..00000000
--- a/swh/web/static/jssources/core-js/modules/_redefine-all.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var redefine = require('./_redefine');
-module.exports = function (target, src, safe) {
- for (var key in src) redefine(target, key, src[key], safe);
- return target;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_redefine.js b/swh/web/static/jssources/core-js/modules/_redefine.js
deleted file mode 100644
index 442ea611..00000000
--- a/swh/web/static/jssources/core-js/modules/_redefine.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var global = require('./_global');
-var hide = require('./_hide');
-var has = require('./_has');
-var SRC = require('./_uid')('src');
-var $toString = require('./_function-to-string');
-var TO_STRING = 'toString';
-var TPL = ('' + $toString).split(TO_STRING);
-
-require('./_core').inspectSource = function (it) {
- return $toString.call(it);
-};
-
-(module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
- if (O[key] === val) return;
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
- }
-// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
-})(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
-});
diff --git a/swh/web/static/jssources/core-js/modules/_regexp-exec-abstract.js b/swh/web/static/jssources/core-js/modules/_regexp-exec-abstract.js
deleted file mode 100644
index b722aad1..00000000
--- a/swh/web/static/jssources/core-js/modules/_regexp-exec-abstract.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-var classof = require('./_classof');
-var builtinExec = RegExp.prototype.exec;
-
- // `RegExpExec` abstract operation
-// https://tc39.github.io/ecma262/#sec-regexpexec
-module.exports = function (R, S) {
- var exec = R.exec;
- if (typeof exec === 'function') {
- var result = exec.call(R, S);
- if (typeof result !== 'object') {
- throw new TypeError('RegExp exec method returned something other than an Object or null');
- }
- return result;
- }
- if (classof(R) !== 'RegExp') {
- throw new TypeError('RegExp#exec called on incompatible receiver');
- }
- return builtinExec.call(R, S);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_regexp-exec.js b/swh/web/static/jssources/core-js/modules/_regexp-exec.js
deleted file mode 100644
index f88bfe99..00000000
--- a/swh/web/static/jssources/core-js/modules/_regexp-exec.js
+++ /dev/null
@@ -1,58 +0,0 @@
-'use strict';
-
-var regexpFlags = require('./_flags');
-
-var nativeExec = RegExp.prototype.exec;
-// This always refers to the native implementation, because the
-// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
-// which loads this file before patching the method.
-var nativeReplace = String.prototype.replace;
-
-var patchedExec = nativeExec;
-
-var LAST_INDEX = 'lastIndex';
-
-var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/,
- re2 = /b*/g;
- nativeExec.call(re1, 'a');
- nativeExec.call(re2, 'a');
- return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
-})();
-
-// nonparticipating capturing group, copied from es5-shim's String#split patch.
-var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
-
-var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
-
-if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
-
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
-
- match = nativeExec.call(re, str);
-
- if (UPDATES_LAST_INDEX_WRONG && match) {
- re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- // eslint-disable-next-line no-loop-func
- nativeReplace.call(match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
-
- return match;
- };
-}
-
-module.exports = patchedExec;
diff --git a/swh/web/static/jssources/core-js/modules/_same-value.js b/swh/web/static/jssources/core-js/modules/_same-value.js
deleted file mode 100644
index c6d045e8..00000000
--- a/swh/web/static/jssources/core-js/modules/_same-value.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.2.9 SameValue(x, y)
-module.exports = Object.is || function is(x, y) {
- // eslint-disable-next-line no-self-compare
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_set-proto.js b/swh/web/static/jssources/core-js/modules/_set-proto.js
deleted file mode 100644
index c1990622..00000000
--- a/swh/web/static/jssources/core-js/modules/_set-proto.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Works with __proto__ only. Old v8 can't work with null proto objects.
-/* eslint-disable no-proto */
-var isObject = require('./_is-object');
-var anObject = require('./_an-object');
-var check = function (O, proto) {
- anObject(O);
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
-};
-module.exports = {
- set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
- function (test, buggy, set) {
- try {
- set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);
- set(test, []);
- buggy = !(test instanceof Array);
- } catch (e) { buggy = true; }
- return function setPrototypeOf(O, proto) {
- check(O, proto);
- if (buggy) O.__proto__ = proto;
- else set(O, proto);
- return O;
- };
- }({}, false) : undefined),
- check: check
-};
diff --git a/swh/web/static/jssources/core-js/modules/_set-species.js b/swh/web/static/jssources/core-js/modules/_set-species.js
deleted file mode 100644
index 2d505d2a..00000000
--- a/swh/web/static/jssources/core-js/modules/_set-species.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-var global = require('./_global');
-var dP = require('./_object-dp');
-var DESCRIPTORS = require('./_descriptors');
-var SPECIES = require('./_wks')('species');
-
-module.exports = function (KEY) {
- var C = global[KEY];
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
-};
diff --git a/swh/web/static/jssources/core-js/modules/_set-to-string-tag.js b/swh/web/static/jssources/core-js/modules/_set-to-string-tag.js
deleted file mode 100644
index 5bd64144..00000000
--- a/swh/web/static/jssources/core-js/modules/_set-to-string-tag.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var def = require('./_object-dp').f;
-var has = require('./_has');
-var TAG = require('./_wks')('toStringTag');
-
-module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
-};
diff --git a/swh/web/static/jssources/core-js/modules/_shared-key.js b/swh/web/static/jssources/core-js/modules/_shared-key.js
deleted file mode 100644
index d47fe7a2..00000000
--- a/swh/web/static/jssources/core-js/modules/_shared-key.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var shared = require('./_shared')('keys');
-var uid = require('./_uid');
-module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_shared.js b/swh/web/static/jssources/core-js/modules/_shared.js
deleted file mode 100644
index 3adec722..00000000
--- a/swh/web/static/jssources/core-js/modules/_shared.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var core = require('./_core');
-var global = require('./_global');
-var SHARED = '__core-js_shared__';
-var store = global[SHARED] || (global[SHARED] = {});
-
-(module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
-})('versions', []).push({
- version: core.version,
- mode: require('./_library') ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
-});
diff --git a/swh/web/static/jssources/core-js/modules/_species-constructor.js b/swh/web/static/jssources/core-js/modules/_species-constructor.js
deleted file mode 100644
index 0cb4ffb8..00000000
--- a/swh/web/static/jssources/core-js/modules/_species-constructor.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 7.3.20 SpeciesConstructor(O, defaultConstructor)
-var anObject = require('./_an-object');
-var aFunction = require('./_a-function');
-var SPECIES = require('./_wks')('species');
-module.exports = function (O, D) {
- var C = anObject(O).constructor;
- var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_strict-method.js b/swh/web/static/jssources/core-js/modules/_strict-method.js
deleted file mode 100644
index e68f41bb..00000000
--- a/swh/web/static/jssources/core-js/modules/_strict-method.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-var fails = require('./_fails');
-
-module.exports = function (method, arg) {
- return !!method && fails(function () {
- // eslint-disable-next-line no-useless-call
- arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
- });
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-at.js b/swh/web/static/jssources/core-js/modules/_string-at.js
deleted file mode 100644
index 88d66bd1..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-at.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var toInteger = require('./_to-integer');
-var defined = require('./_defined');
-// true -> String#at
-// false -> String#codePointAt
-module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-context.js b/swh/web/static/jssources/core-js/modules/_string-context.js
deleted file mode 100644
index becf3fbe..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-context.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// helper for String#{startsWith, endsWith, includes}
-var isRegExp = require('./_is-regexp');
-var defined = require('./_defined');
-
-module.exports = function (that, searchString, NAME) {
- if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
- return String(defined(that));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-html.js b/swh/web/static/jssources/core-js/modules/_string-html.js
deleted file mode 100644
index 1dcc95bc..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-html.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var $export = require('./_export');
-var fails = require('./_fails');
-var defined = require('./_defined');
-var quot = /"/g;
-// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
-var createHTML = function (string, tag, attribute, value) {
- var S = String(defined(string));
- var p1 = '<' + tag;
- if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
- return p1 + '>' + S + '' + tag + '>';
-};
-module.exports = function (NAME, exec) {
- var O = {};
- O[NAME] = exec(createHTML);
- $export($export.P + $export.F * fails(function () {
- var test = ''[NAME]('"');
- return test !== test.toLowerCase() || test.split('"').length > 3;
- }), 'String', O);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-pad.js b/swh/web/static/jssources/core-js/modules/_string-pad.js
deleted file mode 100644
index ceb6077f..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-pad.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// https://github.com/tc39/proposal-string-pad-start-end
-var toLength = require('./_to-length');
-var repeat = require('./_string-repeat');
-var defined = require('./_defined');
-
-module.exports = function (that, maxLength, fillString, left) {
- var S = String(defined(that));
- var stringLength = S.length;
- var fillStr = fillString === undefined ? ' ' : String(fillString);
- var intMaxLength = toLength(maxLength);
- if (intMaxLength <= stringLength || fillStr == '') return S;
- var fillLen = intMaxLength - stringLength;
- var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
- if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
- return left ? stringFiller + S : S + stringFiller;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-repeat.js b/swh/web/static/jssources/core-js/modules/_string-repeat.js
deleted file mode 100644
index a69b9626..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-repeat.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-var toInteger = require('./_to-integer');
-var defined = require('./_defined');
-
-module.exports = function repeat(count) {
- var str = String(defined(this));
- var res = '';
- var n = toInteger(count);
- if (n < 0 || n == Infinity) throw RangeError("Count can't be negative");
- for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;
- return res;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_string-trim.js b/swh/web/static/jssources/core-js/modules/_string-trim.js
deleted file mode 100644
index 6b54a81a..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-trim.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var $export = require('./_export');
-var defined = require('./_defined');
-var fails = require('./_fails');
-var spaces = require('./_string-ws');
-var space = '[' + spaces + ']';
-var non = '\u200b\u0085';
-var ltrim = RegExp('^' + space + space + '*');
-var rtrim = RegExp(space + space + '*$');
-
-var exporter = function (KEY, exec, ALIAS) {
- var exp = {};
- var FORCE = fails(function () {
- return !!spaces[KEY]() || non[KEY]() != non;
- });
- var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
- if (ALIAS) exp[ALIAS] = fn;
- $export($export.P + $export.F * FORCE, 'String', exp);
-};
-
-// 1 -> String#trimLeft
-// 2 -> String#trimRight
-// 3 -> String#trim
-var trim = exporter.trim = function (string, TYPE) {
- string = String(defined(string));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
-};
-
-module.exports = exporter;
diff --git a/swh/web/static/jssources/core-js/modules/_string-ws.js b/swh/web/static/jssources/core-js/modules/_string-ws.js
deleted file mode 100644
index 2c68cf9f..00000000
--- a/swh/web/static/jssources/core-js/modules/_string-ws.js
+++ /dev/null
@@ -1,2 +0,0 @@
-module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
diff --git a/swh/web/static/jssources/core-js/modules/_task.js b/swh/web/static/jssources/core-js/modules/_task.js
deleted file mode 100644
index 8777a6e2..00000000
--- a/swh/web/static/jssources/core-js/modules/_task.js
+++ /dev/null
@@ -1,84 +0,0 @@
-var ctx = require('./_ctx');
-var invoke = require('./_invoke');
-var html = require('./_html');
-var cel = require('./_dom-create');
-var global = require('./_global');
-var process = global.process;
-var setTask = global.setImmediate;
-var clearTask = global.clearImmediate;
-var MessageChannel = global.MessageChannel;
-var Dispatch = global.Dispatch;
-var counter = 0;
-var queue = {};
-var ONREADYSTATECHANGE = 'onreadystatechange';
-var defer, channel, port;
-var run = function () {
- var id = +this;
- // eslint-disable-next-line no-prototype-builtins
- if (queue.hasOwnProperty(id)) {
- var fn = queue[id];
- delete queue[id];
- fn();
- }
-};
-var listener = function (event) {
- run.call(event.data);
-};
-// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
-if (!setTask || !clearTask) {
- setTask = function setImmediate(fn) {
- var args = [];
- var i = 1;
- while (arguments.length > i) args.push(arguments[i++]);
- queue[++counter] = function () {
- // eslint-disable-next-line no-new-func
- invoke(typeof fn == 'function' ? fn : Function(fn), args);
- };
- defer(counter);
- return counter;
- };
- clearTask = function clearImmediate(id) {
- delete queue[id];
- };
- // Node.js 0.8-
- if (require('./_cof')(process) == 'process') {
- defer = function (id) {
- process.nextTick(ctx(run, id, 1));
- };
- // Sphere (JS game engine) Dispatch API
- } else if (Dispatch && Dispatch.now) {
- defer = function (id) {
- Dispatch.now(ctx(run, id, 1));
- };
- // Browsers with MessageChannel, includes WebWorkers
- } else if (MessageChannel) {
- channel = new MessageChannel();
- port = channel.port2;
- channel.port1.onmessage = listener;
- defer = ctx(port.postMessage, port, 1);
- // Browsers with postMessage, skip WebWorkers
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
- } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
- defer = function (id) {
- global.postMessage(id + '', '*');
- };
- global.addEventListener('message', listener, false);
- // IE8-
- } else if (ONREADYSTATECHANGE in cel('script')) {
- defer = function (id) {
- html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
- html.removeChild(this);
- run.call(id);
- };
- };
- // Rest old browsers
- } else {
- defer = function (id) {
- setTimeout(ctx(run, id, 1), 0);
- };
- }
-}
-module.exports = {
- set: setTask,
- clear: clearTask
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-absolute-index.js b/swh/web/static/jssources/core-js/modules/_to-absolute-index.js
deleted file mode 100644
index dfee02e8..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-absolute-index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var toInteger = require('./_to-integer');
-var max = Math.max;
-var min = Math.min;
-module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-index.js b/swh/web/static/jssources/core-js/modules/_to-index.js
deleted file mode 100644
index 8f51c32d..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// https://tc39.github.io/ecma262/#sec-toindex
-var toInteger = require('./_to-integer');
-var toLength = require('./_to-length');
-module.exports = function (it) {
- if (it === undefined) return 0;
- var number = toInteger(it);
- var length = toLength(number);
- if (number !== length) throw RangeError('Wrong length!');
- return length;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-integer.js b/swh/web/static/jssources/core-js/modules/_to-integer.js
deleted file mode 100644
index 3d50f97d..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-integer.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 7.1.4 ToInteger
-var ceil = Math.ceil;
-var floor = Math.floor;
-module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-iobject.js b/swh/web/static/jssources/core-js/modules/_to-iobject.js
deleted file mode 100644
index 7614503a..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-iobject.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// to indexed object, toObject with fallback for non-array-like ES3 strings
-var IObject = require('./_iobject');
-var defined = require('./_defined');
-module.exports = function (it) {
- return IObject(defined(it));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-length.js b/swh/web/static/jssources/core-js/modules/_to-length.js
deleted file mode 100644
index a9db5017..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-length.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 7.1.15 ToLength
-var toInteger = require('./_to-integer');
-var min = Math.min;
-module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-object.js b/swh/web/static/jssources/core-js/modules/_to-object.js
deleted file mode 100644
index 0efea4c6..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-object.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 7.1.13 ToObject(argument)
-var defined = require('./_defined');
-module.exports = function (it) {
- return Object(defined(it));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_to-primitive.js b/swh/web/static/jssources/core-js/modules/_to-primitive.js
deleted file mode 100644
index de3dd6b1..00000000
--- a/swh/web/static/jssources/core-js/modules/_to-primitive.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = require('./_is-object');
-// instead of the ES6 spec version, we didn't implement @@toPrimitive case
-// and the second argument - flag - preferred type is a string
-module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
-};
diff --git a/swh/web/static/jssources/core-js/modules/_typed-array.js b/swh/web/static/jssources/core-js/modules/_typed-array.js
deleted file mode 100644
index 30d9c0ba..00000000
--- a/swh/web/static/jssources/core-js/modules/_typed-array.js
+++ /dev/null
@@ -1,480 +0,0 @@
-'use strict';
-if (require('./_descriptors')) {
- var LIBRARY = require('./_library');
- var global = require('./_global');
- var fails = require('./_fails');
- var $export = require('./_export');
- var $typed = require('./_typed');
- var $buffer = require('./_typed-buffer');
- var ctx = require('./_ctx');
- var anInstance = require('./_an-instance');
- var propertyDesc = require('./_property-desc');
- var hide = require('./_hide');
- var redefineAll = require('./_redefine-all');
- var toInteger = require('./_to-integer');
- var toLength = require('./_to-length');
- var toIndex = require('./_to-index');
- var toAbsoluteIndex = require('./_to-absolute-index');
- var toPrimitive = require('./_to-primitive');
- var has = require('./_has');
- var classof = require('./_classof');
- var isObject = require('./_is-object');
- var toObject = require('./_to-object');
- var isArrayIter = require('./_is-array-iter');
- var create = require('./_object-create');
- var getPrototypeOf = require('./_object-gpo');
- var gOPN = require('./_object-gopn').f;
- var getIterFn = require('./core.get-iterator-method');
- var uid = require('./_uid');
- var wks = require('./_wks');
- var createArrayMethod = require('./_array-methods');
- var createArrayIncludes = require('./_array-includes');
- var speciesConstructor = require('./_species-constructor');
- var ArrayIterators = require('./es6.array.iterator');
- var Iterators = require('./_iterators');
- var $iterDetect = require('./_iter-detect');
- var setSpecies = require('./_set-species');
- var arrayFill = require('./_array-fill');
- var arrayCopyWithin = require('./_array-copy-within');
- var $DP = require('./_object-dp');
- var $GOPD = require('./_object-gopd');
- var dP = $DP.f;
- var gOPD = $GOPD.f;
- var RangeError = global.RangeError;
- var TypeError = global.TypeError;
- var Uint8Array = global.Uint8Array;
- var ARRAY_BUFFER = 'ArrayBuffer';
- var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;
- var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
- var PROTOTYPE = 'prototype';
- var ArrayProto = Array[PROTOTYPE];
- var $ArrayBuffer = $buffer.ArrayBuffer;
- var $DataView = $buffer.DataView;
- var arrayForEach = createArrayMethod(0);
- var arrayFilter = createArrayMethod(2);
- var arraySome = createArrayMethod(3);
- var arrayEvery = createArrayMethod(4);
- var arrayFind = createArrayMethod(5);
- var arrayFindIndex = createArrayMethod(6);
- var arrayIncludes = createArrayIncludes(true);
- var arrayIndexOf = createArrayIncludes(false);
- var arrayValues = ArrayIterators.values;
- var arrayKeys = ArrayIterators.keys;
- var arrayEntries = ArrayIterators.entries;
- var arrayLastIndexOf = ArrayProto.lastIndexOf;
- var arrayReduce = ArrayProto.reduce;
- var arrayReduceRight = ArrayProto.reduceRight;
- var arrayJoin = ArrayProto.join;
- var arraySort = ArrayProto.sort;
- var arraySlice = ArrayProto.slice;
- var arrayToString = ArrayProto.toString;
- var arrayToLocaleString = ArrayProto.toLocaleString;
- var ITERATOR = wks('iterator');
- var TAG = wks('toStringTag');
- var TYPED_CONSTRUCTOR = uid('typed_constructor');
- var DEF_CONSTRUCTOR = uid('def_constructor');
- var ALL_CONSTRUCTORS = $typed.CONSTR;
- var TYPED_ARRAY = $typed.TYPED;
- var VIEW = $typed.VIEW;
- var WRONG_LENGTH = 'Wrong length!';
-
- var $map = createArrayMethod(1, function (O, length) {
- return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
- });
-
- var LITTLE_ENDIAN = fails(function () {
- // eslint-disable-next-line no-undef
- return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
- });
-
- var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {
- new Uint8Array(1).set({});
- });
-
- var toOffset = function (it, BYTES) {
- var offset = toInteger(it);
- if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
- return offset;
- };
-
- var validate = function (it) {
- if (isObject(it) && TYPED_ARRAY in it) return it;
- throw TypeError(it + ' is not a typed array!');
- };
-
- var allocate = function (C, length) {
- if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {
- throw TypeError('It is not a typed array constructor!');
- } return new C(length);
- };
-
- var speciesFromList = function (O, list) {
- return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
- };
-
- var fromList = function (C, list) {
- var index = 0;
- var length = list.length;
- var result = allocate(C, length);
- while (length > index) result[index] = list[index++];
- return result;
- };
-
- var addGetter = function (it, key, internal) {
- dP(it, key, { get: function () { return this._d[internal]; } });
- };
-
- var $from = function from(source /* , mapfn, thisArg */) {
- var O = toObject(source);
- var aLen = arguments.length;
- var mapfn = aLen > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var iterFn = getIterFn(O);
- var i, length, values, result, step, iterator;
- if (iterFn != undefined && !isArrayIter(iterFn)) {
- for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {
- values.push(step.value);
- } O = values;
- }
- if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);
- for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {
- result[i] = mapping ? mapfn(O[i], i) : O[i];
- }
- return result;
- };
-
- var $of = function of(/* ...items */) {
- var index = 0;
- var length = arguments.length;
- var result = allocate(this, length);
- while (length > index) result[index] = arguments[index++];
- return result;
- };
-
- // iOS Safari 6.x fails here
- var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });
-
- var $toLocaleString = function toLocaleString() {
- return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);
- };
-
- var proto = {
- copyWithin: function copyWithin(target, start /* , end */) {
- return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
- },
- every: function every(callbackfn /* , thisArg */) {
- return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- },
- fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
- return arrayFill.apply(validate(this), arguments);
- },
- filter: function filter(callbackfn /* , thisArg */) {
- return speciesFromList(this, arrayFilter(validate(this), callbackfn,
- arguments.length > 1 ? arguments[1] : undefined));
- },
- find: function find(predicate /* , thisArg */) {
- return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
- },
- findIndex: function findIndex(predicate /* , thisArg */) {
- return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
- },
- forEach: function forEach(callbackfn /* , thisArg */) {
- arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- },
- indexOf: function indexOf(searchElement /* , fromIndex */) {
- return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
- },
- includes: function includes(searchElement /* , fromIndex */) {
- return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
- },
- join: function join(separator) { // eslint-disable-line no-unused-vars
- return arrayJoin.apply(validate(this), arguments);
- },
- lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars
- return arrayLastIndexOf.apply(validate(this), arguments);
- },
- map: function map(mapfn /* , thisArg */) {
- return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);
- },
- reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
- return arrayReduce.apply(validate(this), arguments);
- },
- reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
- return arrayReduceRight.apply(validate(this), arguments);
- },
- reverse: function reverse() {
- var that = this;
- var length = validate(that).length;
- var middle = Math.floor(length / 2);
- var index = 0;
- var value;
- while (index < middle) {
- value = that[index];
- that[index++] = that[--length];
- that[length] = value;
- } return that;
- },
- some: function some(callbackfn /* , thisArg */) {
- return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- },
- sort: function sort(comparefn) {
- return arraySort.call(validate(this), comparefn);
- },
- subarray: function subarray(begin, end) {
- var O = validate(this);
- var length = O.length;
- var $begin = toAbsoluteIndex(begin, length);
- return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
- O.buffer,
- O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
- toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
- );
- }
- };
-
- var $slice = function slice(start, end) {
- return speciesFromList(this, arraySlice.call(validate(this), start, end));
- };
-
- var $set = function set(arrayLike /* , offset */) {
- validate(this);
- var offset = toOffset(arguments[1], 1);
- var length = this.length;
- var src = toObject(arrayLike);
- var len = toLength(src.length);
- var index = 0;
- if (len + offset > length) throw RangeError(WRONG_LENGTH);
- while (index < len) this[offset + index] = src[index++];
- };
-
- var $iterators = {
- entries: function entries() {
- return arrayEntries.call(validate(this));
- },
- keys: function keys() {
- return arrayKeys.call(validate(this));
- },
- values: function values() {
- return arrayValues.call(validate(this));
- }
- };
-
- var isTAIndex = function (target, key) {
- return isObject(target)
- && target[TYPED_ARRAY]
- && typeof key != 'symbol'
- && key in target
- && String(+key) == String(key);
- };
- var $getDesc = function getOwnPropertyDescriptor(target, key) {
- return isTAIndex(target, key = toPrimitive(key, true))
- ? propertyDesc(2, target[key])
- : gOPD(target, key);
- };
- var $setDesc = function defineProperty(target, key, desc) {
- if (isTAIndex(target, key = toPrimitive(key, true))
- && isObject(desc)
- && has(desc, 'value')
- && !has(desc, 'get')
- && !has(desc, 'set')
- // TODO: add validation descriptor w/o calling accessors
- && !desc.configurable
- && (!has(desc, 'writable') || desc.writable)
- && (!has(desc, 'enumerable') || desc.enumerable)
- ) {
- target[key] = desc.value;
- return target;
- } return dP(target, key, desc);
- };
-
- if (!ALL_CONSTRUCTORS) {
- $GOPD.f = $getDesc;
- $DP.f = $setDesc;
- }
-
- $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {
- getOwnPropertyDescriptor: $getDesc,
- defineProperty: $setDesc
- });
-
- if (fails(function () { arrayToString.call({}); })) {
- arrayToString = arrayToLocaleString = function toString() {
- return arrayJoin.call(this);
- };
- }
-
- var $TypedArrayPrototype$ = redefineAll({}, proto);
- redefineAll($TypedArrayPrototype$, $iterators);
- hide($TypedArrayPrototype$, ITERATOR, $iterators.values);
- redefineAll($TypedArrayPrototype$, {
- slice: $slice,
- set: $set,
- constructor: function () { /* noop */ },
- toString: arrayToString,
- toLocaleString: $toLocaleString
- });
- addGetter($TypedArrayPrototype$, 'buffer', 'b');
- addGetter($TypedArrayPrototype$, 'byteOffset', 'o');
- addGetter($TypedArrayPrototype$, 'byteLength', 'l');
- addGetter($TypedArrayPrototype$, 'length', 'e');
- dP($TypedArrayPrototype$, TAG, {
- get: function () { return this[TYPED_ARRAY]; }
- });
-
- // eslint-disable-next-line max-statements
- module.exports = function (KEY, BYTES, wrapper, CLAMPED) {
- CLAMPED = !!CLAMPED;
- var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';
- var GETTER = 'get' + KEY;
- var SETTER = 'set' + KEY;
- var TypedArray = global[NAME];
- var Base = TypedArray || {};
- var TAC = TypedArray && getPrototypeOf(TypedArray);
- var FORCED = !TypedArray || !$typed.ABV;
- var O = {};
- var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];
- var getter = function (that, index) {
- var data = that._d;
- return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);
- };
- var setter = function (that, index, value) {
- var data = that._d;
- if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;
- data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);
- };
- var addElement = function (that, index) {
- dP(that, index, {
- get: function () {
- return getter(this, index);
- },
- set: function (value) {
- return setter(this, index, value);
- },
- enumerable: true
- });
- };
- if (FORCED) {
- TypedArray = wrapper(function (that, data, $offset, $length) {
- anInstance(that, TypedArray, NAME, '_d');
- var index = 0;
- var offset = 0;
- var buffer, byteLength, length, klass;
- if (!isObject(data)) {
- length = toIndex(data);
- byteLength = length * BYTES;
- buffer = new $ArrayBuffer(byteLength);
- } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
- buffer = data;
- offset = toOffset($offset, BYTES);
- var $len = data.byteLength;
- if ($length === undefined) {
- if ($len % BYTES) throw RangeError(WRONG_LENGTH);
- byteLength = $len - offset;
- if (byteLength < 0) throw RangeError(WRONG_LENGTH);
- } else {
- byteLength = toLength($length) * BYTES;
- if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
- }
- length = byteLength / BYTES;
- } else if (TYPED_ARRAY in data) {
- return fromList(TypedArray, data);
- } else {
- return $from.call(TypedArray, data);
- }
- hide(that, '_d', {
- b: buffer,
- o: offset,
- l: byteLength,
- e: length,
- v: new $DataView(buffer)
- });
- while (index < length) addElement(that, index++);
- });
- TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
- hide(TypedArrayPrototype, 'constructor', TypedArray);
- } else if (!fails(function () {
- TypedArray(1);
- }) || !fails(function () {
- new TypedArray(-1); // eslint-disable-line no-new
- }) || !$iterDetect(function (iter) {
- new TypedArray(); // eslint-disable-line no-new
- new TypedArray(null); // eslint-disable-line no-new
- new TypedArray(1.5); // eslint-disable-line no-new
- new TypedArray(iter); // eslint-disable-line no-new
- }, true)) {
- TypedArray = wrapper(function (that, data, $offset, $length) {
- anInstance(that, TypedArray, NAME);
- var klass;
- // `ws` module bug, temporarily remove validation length for Uint8Array
- // https://github.com/websockets/ws/pull/645
- if (!isObject(data)) return new Base(toIndex(data));
- if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
- return $length !== undefined
- ? new Base(data, toOffset($offset, BYTES), $length)
- : $offset !== undefined
- ? new Base(data, toOffset($offset, BYTES))
- : new Base(data);
- }
- if (TYPED_ARRAY in data) return fromList(TypedArray, data);
- return $from.call(TypedArray, data);
- });
- arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
- if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
- });
- TypedArray[PROTOTYPE] = TypedArrayPrototype;
- if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
- }
- var $nativeIterator = TypedArrayPrototype[ITERATOR];
- var CORRECT_ITER_NAME = !!$nativeIterator
- && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
- var $iterator = $iterators.values;
- hide(TypedArray, TYPED_CONSTRUCTOR, true);
- hide(TypedArrayPrototype, TYPED_ARRAY, NAME);
- hide(TypedArrayPrototype, VIEW, true);
- hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);
-
- if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {
- dP(TypedArrayPrototype, TAG, {
- get: function () { return NAME; }
- });
- }
-
- O[NAME] = TypedArray;
-
- $export($export.G + $export.W + $export.F * (TypedArray != Base), O);
-
- $export($export.S, NAME, {
- BYTES_PER_ELEMENT: BYTES
- });
-
- $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {
- from: $from,
- of: $of
- });
-
- if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
-
- $export($export.P, NAME, proto);
-
- setSpecies(NAME);
-
- $export($export.P + $export.F * FORCED_SET, NAME, { set: $set });
-
- $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);
-
- if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
-
- $export($export.P + $export.F * fails(function () {
- new TypedArray(1).slice();
- }), NAME, { slice: $slice });
-
- $export($export.P + $export.F * (fails(function () {
- return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();
- }) || !fails(function () {
- TypedArrayPrototype.toLocaleString.call([1, 2]);
- })), NAME, { toLocaleString: $toLocaleString });
-
- Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
- if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
- };
-} else module.exports = function () { /* empty */ };
diff --git a/swh/web/static/jssources/core-js/modules/_typed-buffer.js b/swh/web/static/jssources/core-js/modules/_typed-buffer.js
deleted file mode 100644
index c24cef38..00000000
--- a/swh/web/static/jssources/core-js/modules/_typed-buffer.js
+++ /dev/null
@@ -1,276 +0,0 @@
-'use strict';
-var global = require('./_global');
-var DESCRIPTORS = require('./_descriptors');
-var LIBRARY = require('./_library');
-var $typed = require('./_typed');
-var hide = require('./_hide');
-var redefineAll = require('./_redefine-all');
-var fails = require('./_fails');
-var anInstance = require('./_an-instance');
-var toInteger = require('./_to-integer');
-var toLength = require('./_to-length');
-var toIndex = require('./_to-index');
-var gOPN = require('./_object-gopn').f;
-var dP = require('./_object-dp').f;
-var arrayFill = require('./_array-fill');
-var setToStringTag = require('./_set-to-string-tag');
-var ARRAY_BUFFER = 'ArrayBuffer';
-var DATA_VIEW = 'DataView';
-var PROTOTYPE = 'prototype';
-var WRONG_LENGTH = 'Wrong length!';
-var WRONG_INDEX = 'Wrong index!';
-var $ArrayBuffer = global[ARRAY_BUFFER];
-var $DataView = global[DATA_VIEW];
-var Math = global.Math;
-var RangeError = global.RangeError;
-// eslint-disable-next-line no-shadow-restricted-names
-var Infinity = global.Infinity;
-var BaseBuffer = $ArrayBuffer;
-var abs = Math.abs;
-var pow = Math.pow;
-var floor = Math.floor;
-var log = Math.log;
-var LN2 = Math.LN2;
-var BUFFER = 'buffer';
-var BYTE_LENGTH = 'byteLength';
-var BYTE_OFFSET = 'byteOffset';
-var $BUFFER = DESCRIPTORS ? '_b' : BUFFER;
-var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH;
-var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;
-
-// IEEE754 conversions based on https://github.com/feross/ieee754
-function packIEEE754(value, mLen, nBytes) {
- var buffer = new Array(nBytes);
- var eLen = nBytes * 8 - mLen - 1;
- var eMax = (1 << eLen) - 1;
- var eBias = eMax >> 1;
- var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0;
- var i = 0;
- var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
- var e, m, c;
- value = abs(value);
- // eslint-disable-next-line no-self-compare
- if (value != value || value === Infinity) {
- // eslint-disable-next-line no-self-compare
- m = value != value ? 1 : 0;
- e = eMax;
- } else {
- e = floor(log(value) / LN2);
- if (value * (c = pow(2, -e)) < 1) {
- e--;
- c *= 2;
- }
- if (e + eBias >= 1) {
- value += rt / c;
- } else {
- value += rt * pow(2, 1 - eBias);
- }
- if (value * c >= 2) {
- e++;
- c /= 2;
- }
- if (e + eBias >= eMax) {
- m = 0;
- e = eMax;
- } else if (e + eBias >= 1) {
- m = (value * c - 1) * pow(2, mLen);
- e = e + eBias;
- } else {
- m = value * pow(2, eBias - 1) * pow(2, mLen);
- e = 0;
- }
- }
- for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);
- e = e << mLen | m;
- eLen += mLen;
- for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);
- buffer[--i] |= s * 128;
- return buffer;
-}
-function unpackIEEE754(buffer, mLen, nBytes) {
- var eLen = nBytes * 8 - mLen - 1;
- var eMax = (1 << eLen) - 1;
- var eBias = eMax >> 1;
- var nBits = eLen - 7;
- var i = nBytes - 1;
- var s = buffer[i--];
- var e = s & 127;
- var m;
- s >>= 7;
- for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);
- m = e & (1 << -nBits) - 1;
- e >>= -nBits;
- nBits += mLen;
- for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);
- if (e === 0) {
- e = 1 - eBias;
- } else if (e === eMax) {
- return m ? NaN : s ? -Infinity : Infinity;
- } else {
- m = m + pow(2, mLen);
- e = e - eBias;
- } return (s ? -1 : 1) * m * pow(2, e - mLen);
-}
-
-function unpackI32(bytes) {
- return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];
-}
-function packI8(it) {
- return [it & 0xff];
-}
-function packI16(it) {
- return [it & 0xff, it >> 8 & 0xff];
-}
-function packI32(it) {
- return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];
-}
-function packF64(it) {
- return packIEEE754(it, 52, 8);
-}
-function packF32(it) {
- return packIEEE754(it, 23, 4);
-}
-
-function addGetter(C, key, internal) {
- dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } });
-}
-
-function get(view, bytes, index, isLittleEndian) {
- var numIndex = +index;
- var intIndex = toIndex(numIndex);
- if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
- var store = view[$BUFFER]._b;
- var start = intIndex + view[$OFFSET];
- var pack = store.slice(start, start + bytes);
- return isLittleEndian ? pack : pack.reverse();
-}
-function set(view, bytes, index, conversion, value, isLittleEndian) {
- var numIndex = +index;
- var intIndex = toIndex(numIndex);
- if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
- var store = view[$BUFFER]._b;
- var start = intIndex + view[$OFFSET];
- var pack = conversion(+value);
- for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];
-}
-
-if (!$typed.ABV) {
- $ArrayBuffer = function ArrayBuffer(length) {
- anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
- var byteLength = toIndex(length);
- this._b = arrayFill.call(new Array(byteLength), 0);
- this[$LENGTH] = byteLength;
- };
-
- $DataView = function DataView(buffer, byteOffset, byteLength) {
- anInstance(this, $DataView, DATA_VIEW);
- anInstance(buffer, $ArrayBuffer, DATA_VIEW);
- var bufferLength = buffer[$LENGTH];
- var offset = toInteger(byteOffset);
- if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');
- byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
- if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
- this[$BUFFER] = buffer;
- this[$OFFSET] = offset;
- this[$LENGTH] = byteLength;
- };
-
- if (DESCRIPTORS) {
- addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
- addGetter($DataView, BUFFER, '_b');
- addGetter($DataView, BYTE_LENGTH, '_l');
- addGetter($DataView, BYTE_OFFSET, '_o');
- }
-
- redefineAll($DataView[PROTOTYPE], {
- getInt8: function getInt8(byteOffset) {
- return get(this, 1, byteOffset)[0] << 24 >> 24;
- },
- getUint8: function getUint8(byteOffset) {
- return get(this, 1, byteOffset)[0];
- },
- getInt16: function getInt16(byteOffset /* , littleEndian */) {
- var bytes = get(this, 2, byteOffset, arguments[1]);
- return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
- },
- getUint16: function getUint16(byteOffset /* , littleEndian */) {
- var bytes = get(this, 2, byteOffset, arguments[1]);
- return bytes[1] << 8 | bytes[0];
- },
- getInt32: function getInt32(byteOffset /* , littleEndian */) {
- return unpackI32(get(this, 4, byteOffset, arguments[1]));
- },
- getUint32: function getUint32(byteOffset /* , littleEndian */) {
- return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;
- },
- getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
- return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);
- },
- getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
- return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);
- },
- setInt8: function setInt8(byteOffset, value) {
- set(this, 1, byteOffset, packI8, value);
- },
- setUint8: function setUint8(byteOffset, value) {
- set(this, 1, byteOffset, packI8, value);
- },
- setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
- set(this, 2, byteOffset, packI16, value, arguments[2]);
- },
- setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
- set(this, 2, byteOffset, packI16, value, arguments[2]);
- },
- setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packI32, value, arguments[2]);
- },
- setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packI32, value, arguments[2]);
- },
- setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packF32, value, arguments[2]);
- },
- setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
- set(this, 8, byteOffset, packF64, value, arguments[2]);
- }
- });
-} else {
- if (!fails(function () {
- $ArrayBuffer(1);
- }) || !fails(function () {
- new $ArrayBuffer(-1); // eslint-disable-line no-new
- }) || fails(function () {
- new $ArrayBuffer(); // eslint-disable-line no-new
- new $ArrayBuffer(1.5); // eslint-disable-line no-new
- new $ArrayBuffer(NaN); // eslint-disable-line no-new
- return $ArrayBuffer.name != ARRAY_BUFFER;
- })) {
- $ArrayBuffer = function ArrayBuffer(length) {
- anInstance(this, $ArrayBuffer);
- return new BaseBuffer(toIndex(length));
- };
- var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];
- for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {
- if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]);
- }
- if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
- }
- // iOS Safari 7.x bug
- var view = new $DataView(new $ArrayBuffer(2));
- var $setInt8 = $DataView[PROTOTYPE].setInt8;
- view.setInt8(0, 2147483648);
- view.setInt8(1, 2147483649);
- if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {
- setInt8: function setInt8(byteOffset, value) {
- $setInt8.call(this, byteOffset, value << 24 >> 24);
- },
- setUint8: function setUint8(byteOffset, value) {
- $setInt8.call(this, byteOffset, value << 24 >> 24);
- }
- }, true);
-}
-setToStringTag($ArrayBuffer, ARRAY_BUFFER);
-setToStringTag($DataView, DATA_VIEW);
-hide($DataView[PROTOTYPE], $typed.VIEW, true);
-exports[ARRAY_BUFFER] = $ArrayBuffer;
-exports[DATA_VIEW] = $DataView;
diff --git a/swh/web/static/jssources/core-js/modules/_typed.js b/swh/web/static/jssources/core-js/modules/_typed.js
deleted file mode 100644
index 8747ffd7..00000000
--- a/swh/web/static/jssources/core-js/modules/_typed.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var global = require('./_global');
-var hide = require('./_hide');
-var uid = require('./_uid');
-var TYPED = uid('typed_array');
-var VIEW = uid('view');
-var ABV = !!(global.ArrayBuffer && global.DataView);
-var CONSTR = ABV;
-var i = 0;
-var l = 9;
-var Typed;
-
-var TypedArrayConstructors = (
- 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'
-).split(',');
-
-while (i < l) {
- if (Typed = global[TypedArrayConstructors[i++]]) {
- hide(Typed.prototype, TYPED, true);
- hide(Typed.prototype, VIEW, true);
- } else CONSTR = false;
-}
-
-module.exports = {
- ABV: ABV,
- CONSTR: CONSTR,
- TYPED: TYPED,
- VIEW: VIEW
-};
diff --git a/swh/web/static/jssources/core-js/modules/_uid.js b/swh/web/static/jssources/core-js/modules/_uid.js
deleted file mode 100644
index ffbe7185..00000000
--- a/swh/web/static/jssources/core-js/modules/_uid.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var id = 0;
-var px = Math.random();
-module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
-};
diff --git a/swh/web/static/jssources/core-js/modules/_user-agent.js b/swh/web/static/jssources/core-js/modules/_user-agent.js
deleted file mode 100644
index 363fedc2..00000000
--- a/swh/web/static/jssources/core-js/modules/_user-agent.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var global = require('./_global');
-var navigator = global.navigator;
-
-module.exports = navigator && navigator.userAgent || '';
diff --git a/swh/web/static/jssources/core-js/modules/_validate-collection.js b/swh/web/static/jssources/core-js/modules/_validate-collection.js
deleted file mode 100644
index cec1ceff..00000000
--- a/swh/web/static/jssources/core-js/modules/_validate-collection.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var isObject = require('./_is-object');
-module.exports = function (it, TYPE) {
- if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
- return it;
-};
diff --git a/swh/web/static/jssources/core-js/modules/_wks-define.js b/swh/web/static/jssources/core-js/modules/_wks-define.js
deleted file mode 100644
index 7284d6ad..00000000
--- a/swh/web/static/jssources/core-js/modules/_wks-define.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var global = require('./_global');
-var core = require('./_core');
-var LIBRARY = require('./_library');
-var wksExt = require('./_wks-ext');
-var defineProperty = require('./_object-dp').f;
-module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
-};
diff --git a/swh/web/static/jssources/core-js/modules/_wks-ext.js b/swh/web/static/jssources/core-js/modules/_wks-ext.js
deleted file mode 100644
index 13bd83b1..00000000
--- a/swh/web/static/jssources/core-js/modules/_wks-ext.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.f = require('./_wks');
diff --git a/swh/web/static/jssources/core-js/modules/_wks.js b/swh/web/static/jssources/core-js/modules/_wks.js
deleted file mode 100644
index e33f857a..00000000
--- a/swh/web/static/jssources/core-js/modules/_wks.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var store = require('./_shared')('wks');
-var uid = require('./_uid');
-var Symbol = require('./_global').Symbol;
-var USE_SYMBOL = typeof Symbol == 'function';
-
-var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
-};
-
-$exports.store = store;
diff --git a/swh/web/static/jssources/core-js/modules/core.get-iterator-method.js b/swh/web/static/jssources/core-js/modules/core.get-iterator-method.js
deleted file mode 100644
index 9b6fa62a..00000000
--- a/swh/web/static/jssources/core-js/modules/core.get-iterator-method.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var classof = require('./_classof');
-var ITERATOR = require('./_wks')('iterator');
-var Iterators = require('./_iterators');
-module.exports = require('./_core').getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
-};
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.copy-within.js b/swh/web/static/jssources/core-js/modules/es6.array.copy-within.js
deleted file mode 100644
index f866a959..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.copy-within.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
-var $export = require('./_export');
-
-$export($export.P, 'Array', { copyWithin: require('./_array-copy-within') });
-
-require('./_add-to-unscopables')('copyWithin');
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.every.js b/swh/web/static/jssources/core-js/modules/es6.array.every.js
deleted file mode 100644
index cfd448f5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.every.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $every = require('./_array-methods')(4);
-
-$export($export.P + $export.F * !require('./_strict-method')([].every, true), 'Array', {
- // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
- every: function every(callbackfn /* , thisArg */) {
- return $every(this, callbackfn, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.fill.js b/swh/web/static/jssources/core-js/modules/es6.array.fill.js
deleted file mode 100644
index ac171442..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.fill.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
-var $export = require('./_export');
-
-$export($export.P, 'Array', { fill: require('./_array-fill') });
-
-require('./_add-to-unscopables')('fill');
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.filter.js b/swh/web/static/jssources/core-js/modules/es6.array.filter.js
deleted file mode 100644
index 447ecf40..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.filter.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $filter = require('./_array-methods')(2);
-
-$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {
- // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
- filter: function filter(callbackfn /* , thisArg */) {
- return $filter(this, callbackfn, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.find-index.js b/swh/web/static/jssources/core-js/modules/es6.array.find-index.js
deleted file mode 100644
index 374cadd7..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.find-index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
-var $export = require('./_export');
-var $find = require('./_array-methods')(6);
-var KEY = 'findIndex';
-var forced = true;
-// Shouldn't skip holes
-if (KEY in []) Array(1)[KEY](function () { forced = false; });
-$export($export.P + $export.F * forced, 'Array', {
- findIndex: function findIndex(callbackfn /* , that = undefined */) {
- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
-});
-require('./_add-to-unscopables')(KEY);
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.find.js b/swh/web/static/jssources/core-js/modules/es6.array.find.js
deleted file mode 100644
index 4fbe76ce..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.find.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
-var $export = require('./_export');
-var $find = require('./_array-methods')(5);
-var KEY = 'find';
-var forced = true;
-// Shouldn't skip holes
-if (KEY in []) Array(1)[KEY](function () { forced = false; });
-$export($export.P + $export.F * forced, 'Array', {
- find: function find(callbackfn /* , that = undefined */) {
- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
-});
-require('./_add-to-unscopables')(KEY);
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.for-each.js b/swh/web/static/jssources/core-js/modules/es6.array.for-each.js
deleted file mode 100644
index 525ba074..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.for-each.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $forEach = require('./_array-methods')(0);
-var STRICT = require('./_strict-method')([].forEach, true);
-
-$export($export.P + $export.F * !STRICT, 'Array', {
- // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
- forEach: function forEach(callbackfn /* , thisArg */) {
- return $forEach(this, callbackfn, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.from.js b/swh/web/static/jssources/core-js/modules/es6.array.from.js
deleted file mode 100644
index 4db38017..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.from.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-var ctx = require('./_ctx');
-var $export = require('./_export');
-var toObject = require('./_to-object');
-var call = require('./_iter-call');
-var isArrayIter = require('./_is-array-iter');
-var toLength = require('./_to-length');
-var createProperty = require('./_create-property');
-var getIterFn = require('./core.get-iterator-method');
-
-$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {
- // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
- from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
- var O = toObject(arrayLike);
- var C = typeof this == 'function' ? this : Array;
- var aLen = arguments.length;
- var mapfn = aLen > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var index = 0;
- var iterFn = getIterFn(O);
- var length, result, step, iterator;
- if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
- // if object isn't iterable or it's array with default iterator - use simple case
- if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
- for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
- createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
- }
- } else {
- length = toLength(O.length);
- for (result = new C(length); length > index; index++) {
- createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
- }
- }
- result.length = index;
- return result;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.index-of.js b/swh/web/static/jssources/core-js/modules/es6.array.index-of.js
deleted file mode 100644
index 231c92e9..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.index-of.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $indexOf = require('./_array-includes')(false);
-var $native = [].indexOf;
-var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;
-
-$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {
- // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
- return NEGATIVE_ZERO
- // convert -0 to +0
- ? $native.apply(this, arguments) || 0
- : $indexOf(this, searchElement, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.is-array.js b/swh/web/static/jssources/core-js/modules/es6.array.is-array.js
deleted file mode 100644
index 27ca6fc5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.is-array.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
-var $export = require('./_export');
-
-$export($export.S, 'Array', { isArray: require('./_is-array') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.iterator.js b/swh/web/static/jssources/core-js/modules/es6.array.iterator.js
deleted file mode 100644
index c64e88b1..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.iterator.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-var addToUnscopables = require('./_add-to-unscopables');
-var step = require('./_iter-step');
-var Iterators = require('./_iterators');
-var toIObject = require('./_to-iobject');
-
-// 22.1.3.4 Array.prototype.entries()
-// 22.1.3.13 Array.prototype.keys()
-// 22.1.3.29 Array.prototype.values()
-// 22.1.3.30 Array.prototype[@@iterator]()
-module.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
-// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
-}, 'values');
-
-// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
-Iterators.Arguments = Iterators.Array;
-
-addToUnscopables('keys');
-addToUnscopables('values');
-addToUnscopables('entries');
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.join.js b/swh/web/static/jssources/core-js/modules/es6.array.join.js
deleted file mode 100644
index 48e55d2e..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.join.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-// 22.1.3.13 Array.prototype.join(separator)
-var $export = require('./_export');
-var toIObject = require('./_to-iobject');
-var arrayJoin = [].join;
-
-// fallback for not array-like strings
-$export($export.P + $export.F * (require('./_iobject') != Object || !require('./_strict-method')(arrayJoin)), 'Array', {
- join: function join(separator) {
- return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.last-index-of.js b/swh/web/static/jssources/core-js/modules/es6.array.last-index-of.js
deleted file mode 100644
index 1f70e340..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.last-index-of.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var toIObject = require('./_to-iobject');
-var toInteger = require('./_to-integer');
-var toLength = require('./_to-length');
-var $native = [].lastIndexOf;
-var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;
-
-$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {
- // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
- lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
- // convert -0 to +0
- if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0;
- var O = toIObject(this);
- var length = toLength(O.length);
- var index = length - 1;
- if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1]));
- if (index < 0) index = length + index;
- for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0;
- return -1;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.map.js b/swh/web/static/jssources/core-js/modules/es6.array.map.js
deleted file mode 100644
index 1326033f..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.map.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $map = require('./_array-methods')(1);
-
-$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {
- // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
- map: function map(callbackfn /* , thisArg */) {
- return $map(this, callbackfn, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.of.js b/swh/web/static/jssources/core-js/modules/es6.array.of.js
deleted file mode 100644
index b83e058c..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.of.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var createProperty = require('./_create-property');
-
-// WebKit Array.of isn't generic
-$export($export.S + $export.F * require('./_fails')(function () {
- function F() { /* empty */ }
- return !(Array.of.call(F) instanceof F);
-}), 'Array', {
- // 22.1.2.3 Array.of( ...items)
- of: function of(/* ...args */) {
- var index = 0;
- var aLen = arguments.length;
- var result = new (typeof this == 'function' ? this : Array)(aLen);
- while (aLen > index) createProperty(result, index, arguments[index++]);
- result.length = aLen;
- return result;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.reduce-right.js b/swh/web/static/jssources/core-js/modules/es6.array.reduce-right.js
deleted file mode 100644
index 168e421d..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.reduce-right.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $reduce = require('./_array-reduce');
-
-$export($export.P + $export.F * !require('./_strict-method')([].reduceRight, true), 'Array', {
- // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
- reduceRight: function reduceRight(callbackfn /* , initialValue */) {
- return $reduce(this, callbackfn, arguments.length, arguments[1], true);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.reduce.js b/swh/web/static/jssources/core-js/modules/es6.array.reduce.js
deleted file mode 100644
index f4e47612..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.reduce.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $reduce = require('./_array-reduce');
-
-$export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {
- // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
- reduce: function reduce(callbackfn /* , initialValue */) {
- return $reduce(this, callbackfn, arguments.length, arguments[1], false);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.slice.js b/swh/web/static/jssources/core-js/modules/es6.array.slice.js
deleted file mode 100644
index bdd496ec..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.slice.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var html = require('./_html');
-var cof = require('./_cof');
-var toAbsoluteIndex = require('./_to-absolute-index');
-var toLength = require('./_to-length');
-var arraySlice = [].slice;
-
-// fallback for not array-like ES3 strings and DOM objects
-$export($export.P + $export.F * require('./_fails')(function () {
- if (html) arraySlice.call(html);
-}), 'Array', {
- slice: function slice(begin, end) {
- var len = toLength(this.length);
- var klass = cof(this);
- end = end === undefined ? len : end;
- if (klass == 'Array') return arraySlice.call(this, begin, end);
- var start = toAbsoluteIndex(begin, len);
- var upTo = toAbsoluteIndex(end, len);
- var size = toLength(upTo - start);
- var cloned = new Array(size);
- var i = 0;
- for (; i < size; i++) cloned[i] = klass == 'String'
- ? this.charAt(start + i)
- : this[start + i];
- return cloned;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.some.js b/swh/web/static/jssources/core-js/modules/es6.array.some.js
deleted file mode 100644
index 14c5eec2..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.some.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $some = require('./_array-methods')(3);
-
-$export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Array', {
- // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
- some: function some(callbackfn /* , thisArg */) {
- return $some(this, callbackfn, arguments[1]);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.sort.js b/swh/web/static/jssources/core-js/modules/es6.array.sort.js
deleted file mode 100644
index 39817ffa..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.sort.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var aFunction = require('./_a-function');
-var toObject = require('./_to-object');
-var fails = require('./_fails');
-var $sort = [].sort;
-var test = [1, 2, 3];
-
-$export($export.P + $export.F * (fails(function () {
- // IE8-
- test.sort(undefined);
-}) || !fails(function () {
- // V8 bug
- test.sort(null);
- // Old WebKit
-}) || !require('./_strict-method')($sort)), 'Array', {
- // 22.1.3.25 Array.prototype.sort(comparefn)
- sort: function sort(comparefn) {
- return comparefn === undefined
- ? $sort.call(toObject(this))
- : $sort.call(toObject(this), aFunction(comparefn));
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.array.species.js b/swh/web/static/jssources/core-js/modules/es6.array.species.js
deleted file mode 100644
index ce0b8917..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.array.species.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./_set-species')('Array');
diff --git a/swh/web/static/jssources/core-js/modules/es6.date.now.js b/swh/web/static/jssources/core-js/modules/es6.date.now.js
deleted file mode 100644
index 65f134e5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.date.now.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.3.3.1 / 15.9.4.4 Date.now()
-var $export = require('./_export');
-
-$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });
diff --git a/swh/web/static/jssources/core-js/modules/es6.date.to-iso-string.js b/swh/web/static/jssources/core-js/modules/es6.date.to-iso-string.js
deleted file mode 100644
index 13b27818..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.date.to-iso-string.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
-var $export = require('./_export');
-var toISOString = require('./_date-to-iso-string');
-
-// PhantomJS / old WebKit has a broken implementations
-$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', {
- toISOString: toISOString
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.date.to-json.js b/swh/web/static/jssources/core-js/modules/es6.date.to-json.js
deleted file mode 100644
index 1508e042..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.date.to-json.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var toObject = require('./_to-object');
-var toPrimitive = require('./_to-primitive');
-
-$export($export.P + $export.F * require('./_fails')(function () {
- return new Date(NaN).toJSON() !== null
- || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
-}), 'Date', {
- // eslint-disable-next-line no-unused-vars
- toJSON: function toJSON(key) {
- var O = toObject(this);
- var pv = toPrimitive(O);
- return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.date.to-primitive.js b/swh/web/static/jssources/core-js/modules/es6.date.to-primitive.js
deleted file mode 100644
index 41754b9c..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.date.to-primitive.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var TO_PRIMITIVE = require('./_wks')('toPrimitive');
-var proto = Date.prototype;
-
-if (!(TO_PRIMITIVE in proto)) require('./_hide')(proto, TO_PRIMITIVE, require('./_date-to-primitive'));
diff --git a/swh/web/static/jssources/core-js/modules/es6.date.to-string.js b/swh/web/static/jssources/core-js/modules/es6.date.to-string.js
deleted file mode 100644
index 15ee75ac..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.date.to-string.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var DateProto = Date.prototype;
-var INVALID_DATE = 'Invalid Date';
-var TO_STRING = 'toString';
-var $toString = DateProto[TO_STRING];
-var getTime = DateProto.getTime;
-if (new Date(NaN) + '' != INVALID_DATE) {
- require('./_redefine')(DateProto, TO_STRING, function toString() {
- var value = getTime.call(this);
- // eslint-disable-next-line no-self-compare
- return value === value ? $toString.call(this) : INVALID_DATE;
- });
-}
diff --git a/swh/web/static/jssources/core-js/modules/es6.function.bind.js b/swh/web/static/jssources/core-js/modules/es6.function.bind.js
deleted file mode 100644
index 38e84e1a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.function.bind.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
-var $export = require('./_export');
-
-$export($export.P, 'Function', { bind: require('./_bind') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.function.has-instance.js b/swh/web/static/jssources/core-js/modules/es6.function.has-instance.js
deleted file mode 100644
index 7556ed9b..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.function.has-instance.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-var isObject = require('./_is-object');
-var getPrototypeOf = require('./_object-gpo');
-var HAS_INSTANCE = require('./_wks')('hasInstance');
-var FunctionProto = Function.prototype;
-// 19.2.3.6 Function.prototype[@@hasInstance](V)
-if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function (O) {
- if (typeof this != 'function' || !isObject(O)) return false;
- if (!isObject(this.prototype)) return O instanceof this;
- // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
- while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
- return false;
-} });
diff --git a/swh/web/static/jssources/core-js/modules/es6.function.name.js b/swh/web/static/jssources/core-js/modules/es6.function.name.js
deleted file mode 100644
index 05dd333f..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.function.name.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var dP = require('./_object-dp').f;
-var FProto = Function.prototype;
-var nameRE = /^\s*function ([^ (]*)/;
-var NAME = 'name';
-
-// 19.2.4.2 name
-NAME in FProto || require('./_descriptors') && dP(FProto, NAME, {
- configurable: true,
- get: function () {
- try {
- return ('' + this).match(nameRE)[1];
- } catch (e) {
- return '';
- }
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.map.js b/swh/web/static/jssources/core-js/modules/es6.map.js
deleted file mode 100644
index a282f022..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.map.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-var strong = require('./_collection-strong');
-var validate = require('./_validate-collection');
-var MAP = 'Map';
-
-// 23.1 Map Objects
-module.exports = require('./_collection')(MAP, function (get) {
- return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
-}, {
- // 23.1.3.6 Map.prototype.get(key)
- get: function get(key) {
- var entry = strong.getEntry(validate(this, MAP), key);
- return entry && entry.v;
- },
- // 23.1.3.9 Map.prototype.set(key, value)
- set: function set(key, value) {
- return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
- }
-}, strong, true);
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.acosh.js b/swh/web/static/jssources/core-js/modules/es6.math.acosh.js
deleted file mode 100644
index 8a8989eb..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.acosh.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// 20.2.2.3 Math.acosh(x)
-var $export = require('./_export');
-var log1p = require('./_math-log1p');
-var sqrt = Math.sqrt;
-var $acosh = Math.acosh;
-
-$export($export.S + $export.F * !($acosh
- // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
- && Math.floor($acosh(Number.MAX_VALUE)) == 710
- // Tor Browser bug: Math.acosh(Infinity) -> NaN
- && $acosh(Infinity) == Infinity
-), 'Math', {
- acosh: function acosh(x) {
- return (x = +x) < 1 ? NaN : x > 94906265.62425156
- ? Math.log(x) + Math.LN2
- : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.asinh.js b/swh/web/static/jssources/core-js/modules/es6.math.asinh.js
deleted file mode 100644
index ddf46662..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.asinh.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 20.2.2.5 Math.asinh(x)
-var $export = require('./_export');
-var $asinh = Math.asinh;
-
-function asinh(x) {
- return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
-}
-
-// Tor Browser bug: Math.asinh(0) -> -0
-$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.atanh.js b/swh/web/static/jssources/core-js/modules/es6.math.atanh.js
deleted file mode 100644
index af3c3e80..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.atanh.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 20.2.2.7 Math.atanh(x)
-var $export = require('./_export');
-var $atanh = Math.atanh;
-
-// Tor Browser bug: Math.atanh(-0) -> 0
-$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
- atanh: function atanh(x) {
- return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.cbrt.js b/swh/web/static/jssources/core-js/modules/es6.math.cbrt.js
deleted file mode 100644
index e45ac444..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.cbrt.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 20.2.2.9 Math.cbrt(x)
-var $export = require('./_export');
-var sign = require('./_math-sign');
-
-$export($export.S, 'Math', {
- cbrt: function cbrt(x) {
- return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.clz32.js b/swh/web/static/jssources/core-js/modules/es6.math.clz32.js
deleted file mode 100644
index 1e4d7e19..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.clz32.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 20.2.2.11 Math.clz32(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', {
- clz32: function clz32(x) {
- return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.cosh.js b/swh/web/static/jssources/core-js/modules/es6.math.cosh.js
deleted file mode 100644
index 1e0cffc1..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.cosh.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 20.2.2.12 Math.cosh(x)
-var $export = require('./_export');
-var exp = Math.exp;
-
-$export($export.S, 'Math', {
- cosh: function cosh(x) {
- return (exp(x = +x) + exp(-x)) / 2;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.expm1.js b/swh/web/static/jssources/core-js/modules/es6.math.expm1.js
deleted file mode 100644
index da4c90df..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.expm1.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 20.2.2.14 Math.expm1(x)
-var $export = require('./_export');
-var $expm1 = require('./_math-expm1');
-
-$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 });
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.fround.js b/swh/web/static/jssources/core-js/modules/es6.math.fround.js
deleted file mode 100644
index 9c262f2e..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.fround.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.2.2.16 Math.fround(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', { fround: require('./_math-fround') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.hypot.js b/swh/web/static/jssources/core-js/modules/es6.math.hypot.js
deleted file mode 100644
index 41ffdb27..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.hypot.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
-var $export = require('./_export');
-var abs = Math.abs;
-
-$export($export.S, 'Math', {
- hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
- var sum = 0;
- var i = 0;
- var aLen = arguments.length;
- var larg = 0;
- var arg, div;
- while (i < aLen) {
- arg = abs(arguments[i++]);
- if (larg < arg) {
- div = larg / arg;
- sum = sum * div * div + 1;
- larg = arg;
- } else if (arg > 0) {
- div = arg / larg;
- sum += div * div;
- } else sum += arg;
- }
- return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.imul.js b/swh/web/static/jssources/core-js/modules/es6.math.imul.js
deleted file mode 100644
index 96e683d2..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.imul.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// 20.2.2.18 Math.imul(x, y)
-var $export = require('./_export');
-var $imul = Math.imul;
-
-// some WebKit versions fails with big numbers, some has wrong arity
-$export($export.S + $export.F * require('./_fails')(function () {
- return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
-}), 'Math', {
- imul: function imul(x, y) {
- var UINT16 = 0xffff;
- var xn = +x;
- var yn = +y;
- var xl = UINT16 & xn;
- var yl = UINT16 & yn;
- return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.log10.js b/swh/web/static/jssources/core-js/modules/es6.math.log10.js
deleted file mode 100644
index 9ee8ae68..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.log10.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 20.2.2.21 Math.log10(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', {
- log10: function log10(x) {
- return Math.log(x) * Math.LOG10E;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.log1p.js b/swh/web/static/jssources/core-js/modules/es6.math.log1p.js
deleted file mode 100644
index 62959800..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.log1p.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.2.2.20 Math.log1p(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', { log1p: require('./_math-log1p') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.log2.js b/swh/web/static/jssources/core-js/modules/es6.math.log2.js
deleted file mode 100644
index 03d127cb..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.log2.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 20.2.2.22 Math.log2(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', {
- log2: function log2(x) {
- return Math.log(x) / Math.LN2;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.sign.js b/swh/web/static/jssources/core-js/modules/es6.math.sign.js
deleted file mode 100644
index 981f69e5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.sign.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.2.2.28 Math.sign(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', { sign: require('./_math-sign') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.sinh.js b/swh/web/static/jssources/core-js/modules/es6.math.sinh.js
deleted file mode 100644
index 57606333..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.sinh.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// 20.2.2.30 Math.sinh(x)
-var $export = require('./_export');
-var expm1 = require('./_math-expm1');
-var exp = Math.exp;
-
-// V8 near Chromium 38 has a problem with very small numbers
-$export($export.S + $export.F * require('./_fails')(function () {
- return !Math.sinh(-2e-17) != -2e-17;
-}), 'Math', {
- sinh: function sinh(x) {
- return Math.abs(x = +x) < 1
- ? (expm1(x) - expm1(-x)) / 2
- : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.tanh.js b/swh/web/static/jssources/core-js/modules/es6.math.tanh.js
deleted file mode 100644
index 0d3135b0..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.tanh.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// 20.2.2.33 Math.tanh(x)
-var $export = require('./_export');
-var expm1 = require('./_math-expm1');
-var exp = Math.exp;
-
-$export($export.S, 'Math', {
- tanh: function tanh(x) {
- var a = expm1(x = +x);
- var b = expm1(-x);
- return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.math.trunc.js b/swh/web/static/jssources/core-js/modules/es6.math.trunc.js
deleted file mode 100644
index 35ddb808..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.math.trunc.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 20.2.2.34 Math.trunc(x)
-var $export = require('./_export');
-
-$export($export.S, 'Math', {
- trunc: function trunc(it) {
- return (it > 0 ? Math.floor : Math.ceil)(it);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.constructor.js b/swh/web/static/jssources/core-js/modules/es6.number.constructor.js
deleted file mode 100644
index aee40e9a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.constructor.js
+++ /dev/null
@@ -1,69 +0,0 @@
-'use strict';
-var global = require('./_global');
-var has = require('./_has');
-var cof = require('./_cof');
-var inheritIfRequired = require('./_inherit-if-required');
-var toPrimitive = require('./_to-primitive');
-var fails = require('./_fails');
-var gOPN = require('./_object-gopn').f;
-var gOPD = require('./_object-gopd').f;
-var dP = require('./_object-dp').f;
-var $trim = require('./_string-trim').trim;
-var NUMBER = 'Number';
-var $Number = global[NUMBER];
-var Base = $Number;
-var proto = $Number.prototype;
-// Opera ~12 has broken Object#toString
-var BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;
-var TRIM = 'trim' in String.prototype;
-
-// 7.1.3 ToNumber(argument)
-var toNumber = function (argument) {
- var it = toPrimitive(argument, false);
- if (typeof it == 'string' && it.length > 2) {
- it = TRIM ? it.trim() : $trim(it, 3);
- var first = it.charCodeAt(0);
- var third, radix, maxCode;
- if (first === 43 || first === 45) {
- third = it.charCodeAt(2);
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
- } else if (first === 48) {
- switch (it.charCodeAt(1)) {
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
- default: return +it;
- }
- for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
- code = digits.charCodeAt(i);
- // parseInt parses a string to a first unavailable symbol
- // but ToNumber should return NaN if a string contains unavailable symbols
- if (code < 48 || code > maxCode) return NaN;
- } return parseInt(digits, radix);
- }
- } return +it;
-};
-
-if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
- $Number = function Number(value) {
- var it = arguments.length < 1 ? 0 : value;
- var that = this;
- return that instanceof $Number
- // check on 1..constructor(foo) case
- && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
- ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
- };
- for (var keys = require('./_descriptors') ? gOPN(Base) : (
- // ES3:
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
- // ES6 (in case, if modules with ES6 Number statics required before):
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
- ).split(','), j = 0, key; keys.length > j; j++) {
- if (has(Base, key = keys[j]) && !has($Number, key)) {
- dP($Number, key, gOPD(Base, key));
- }
- }
- $Number.prototype = proto;
- proto.constructor = $Number;
- require('./_redefine')(global, NUMBER, $Number);
-}
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.epsilon.js b/swh/web/static/jssources/core-js/modules/es6.number.epsilon.js
deleted file mode 100644
index 34a2ec5f..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.epsilon.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.1.2.1 Number.EPSILON
-var $export = require('./_export');
-
-$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.is-finite.js b/swh/web/static/jssources/core-js/modules/es6.number.is-finite.js
deleted file mode 100644
index 8719da97..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.is-finite.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 20.1.2.2 Number.isFinite(number)
-var $export = require('./_export');
-var _isFinite = require('./_global').isFinite;
-
-$export($export.S, 'Number', {
- isFinite: function isFinite(it) {
- return typeof it == 'number' && _isFinite(it);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.is-integer.js b/swh/web/static/jssources/core-js/modules/es6.number.is-integer.js
deleted file mode 100644
index f1ab5dc4..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.is-integer.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.1.2.3 Number.isInteger(number)
-var $export = require('./_export');
-
-$export($export.S, 'Number', { isInteger: require('./_is-integer') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.is-nan.js b/swh/web/static/jssources/core-js/modules/es6.number.is-nan.js
deleted file mode 100644
index 01d76ba2..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.is-nan.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 20.1.2.4 Number.isNaN(number)
-var $export = require('./_export');
-
-$export($export.S, 'Number', {
- isNaN: function isNaN(number) {
- // eslint-disable-next-line no-self-compare
- return number != number;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.is-safe-integer.js b/swh/web/static/jssources/core-js/modules/es6.number.is-safe-integer.js
deleted file mode 100644
index 004e7d16..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.is-safe-integer.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 20.1.2.5 Number.isSafeInteger(number)
-var $export = require('./_export');
-var isInteger = require('./_is-integer');
-var abs = Math.abs;
-
-$export($export.S, 'Number', {
- isSafeInteger: function isSafeInteger(number) {
- return isInteger(number) && abs(number) <= 0x1fffffffffffff;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.max-safe-integer.js b/swh/web/static/jssources/core-js/modules/es6.number.max-safe-integer.js
deleted file mode 100644
index a4f248f1..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.max-safe-integer.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.1.2.6 Number.MAX_SAFE_INTEGER
-var $export = require('./_export');
-
-$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.min-safe-integer.js b/swh/web/static/jssources/core-js/modules/es6.number.min-safe-integer.js
deleted file mode 100644
index 34df374b..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.min-safe-integer.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 20.1.2.10 Number.MIN_SAFE_INTEGER
-var $export = require('./_export');
-
-$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.parse-float.js b/swh/web/static/jssources/core-js/modules/es6.number.parse-float.js
deleted file mode 100644
index 317c4310..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.parse-float.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-var $parseFloat = require('./_parse-float');
-// 20.1.2.12 Number.parseFloat(string)
-$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.parse-int.js b/swh/web/static/jssources/core-js/modules/es6.number.parse-int.js
deleted file mode 100644
index cb48da28..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.parse-int.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-var $parseInt = require('./_parse-int');
-// 20.1.2.13 Number.parseInt(string, radix)
-$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt });
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.to-fixed.js b/swh/web/static/jssources/core-js/modules/es6.number.to-fixed.js
deleted file mode 100644
index 2bf78af9..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.to-fixed.js
+++ /dev/null
@@ -1,114 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var toInteger = require('./_to-integer');
-var aNumberValue = require('./_a-number-value');
-var repeat = require('./_string-repeat');
-var $toFixed = 1.0.toFixed;
-var floor = Math.floor;
-var data = [0, 0, 0, 0, 0, 0];
-var ERROR = 'Number.toFixed: incorrect invocation!';
-var ZERO = '0';
-
-var multiply = function (n, c) {
- var i = -1;
- var c2 = c;
- while (++i < 6) {
- c2 += n * data[i];
- data[i] = c2 % 1e7;
- c2 = floor(c2 / 1e7);
- }
-};
-var divide = function (n) {
- var i = 6;
- var c = 0;
- while (--i >= 0) {
- c += data[i];
- data[i] = floor(c / n);
- c = (c % n) * 1e7;
- }
-};
-var numToString = function () {
- var i = 6;
- var s = '';
- while (--i >= 0) {
- if (s !== '' || i === 0 || data[i] !== 0) {
- var t = String(data[i]);
- s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;
- }
- } return s;
-};
-var pow = function (x, n, acc) {
- return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
-};
-var log = function (x) {
- var n = 0;
- var x2 = x;
- while (x2 >= 4096) {
- n += 12;
- x2 /= 4096;
- }
- while (x2 >= 2) {
- n += 1;
- x2 /= 2;
- } return n;
-};
-
-$export($export.P + $export.F * (!!$toFixed && (
- 0.00008.toFixed(3) !== '0.000' ||
- 0.9.toFixed(0) !== '1' ||
- 1.255.toFixed(2) !== '1.25' ||
- 1000000000000000128.0.toFixed(0) !== '1000000000000000128'
-) || !require('./_fails')(function () {
- // V8 ~ Android 4.3-
- $toFixed.call({});
-})), 'Number', {
- toFixed: function toFixed(fractionDigits) {
- var x = aNumberValue(this, ERROR);
- var f = toInteger(fractionDigits);
- var s = '';
- var m = ZERO;
- var e, z, j, k;
- if (f < 0 || f > 20) throw RangeError(ERROR);
- // eslint-disable-next-line no-self-compare
- if (x != x) return 'NaN';
- if (x <= -1e21 || x >= 1e21) return String(x);
- if (x < 0) {
- s = '-';
- x = -x;
- }
- if (x > 1e-21) {
- e = log(x * pow(2, 69, 1)) - 69;
- z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);
- z *= 0x10000000000000;
- e = 52 - e;
- if (e > 0) {
- multiply(0, z);
- j = f;
- while (j >= 7) {
- multiply(1e7, 0);
- j -= 7;
- }
- multiply(pow(10, j, 1), 0);
- j = e - 1;
- while (j >= 23) {
- divide(1 << 23);
- j -= 23;
- }
- divide(1 << j);
- multiply(1, 1);
- divide(2);
- m = numToString();
- } else {
- multiply(0, z);
- multiply(1 << -e, 0);
- m = numToString() + repeat.call(ZERO, f);
- }
- }
- if (f > 0) {
- k = m.length;
- m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));
- } else {
- m = s + m;
- } return m;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.number.to-precision.js b/swh/web/static/jssources/core-js/modules/es6.number.to-precision.js
deleted file mode 100644
index 0d92527f..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.number.to-precision.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $fails = require('./_fails');
-var aNumberValue = require('./_a-number-value');
-var $toPrecision = 1.0.toPrecision;
-
-$export($export.P + $export.F * ($fails(function () {
- // IE7-
- return $toPrecision.call(1, undefined) !== '1';
-}) || !$fails(function () {
- // V8 ~ Android 4.3-
- $toPrecision.call({});
-})), 'Number', {
- toPrecision: function toPrecision(precision) {
- var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');
- return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.assign.js b/swh/web/static/jssources/core-js/modules/es6.object.assign.js
deleted file mode 100644
index d28085a7..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.assign.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 19.1.3.1 Object.assign(target, source)
-var $export = require('./_export');
-
-$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.create.js b/swh/web/static/jssources/core-js/modules/es6.object.create.js
deleted file mode 100644
index 70627d69..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.create.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var $export = require('./_export');
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-$export($export.S, 'Object', { create: require('./_object-create') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.define-properties.js b/swh/web/static/jssources/core-js/modules/es6.object.define-properties.js
deleted file mode 100644
index 5ec34214..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.define-properties.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var $export = require('./_export');
-// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
-$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.define-property.js b/swh/web/static/jssources/core-js/modules/es6.object.define-property.js
deleted file mode 100644
index 12068582..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.define-property.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var $export = require('./_export');
-// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
-$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.freeze.js b/swh/web/static/jssources/core-js/modules/es6.object.freeze.js
deleted file mode 100644
index 0856ce9d..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.freeze.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.5 Object.freeze(O)
-var isObject = require('./_is-object');
-var meta = require('./_meta').onFreeze;
-
-require('./_object-sap')('freeze', function ($freeze) {
- return function freeze(it) {
- return $freeze && isObject(it) ? $freeze(meta(it)) : it;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-descriptor.js b/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-descriptor.js
deleted file mode 100644
index 9df21417..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-descriptor.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
-var toIObject = require('./_to-iobject');
-var $getOwnPropertyDescriptor = require('./_object-gopd').f;
-
-require('./_object-sap')('getOwnPropertyDescriptor', function () {
- return function getOwnPropertyDescriptor(it, key) {
- return $getOwnPropertyDescriptor(toIObject(it), key);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-names.js b/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-names.js
deleted file mode 100644
index 172f51c7..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.get-own-property-names.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 19.1.2.7 Object.getOwnPropertyNames(O)
-require('./_object-sap')('getOwnPropertyNames', function () {
- return require('./_object-gopn-ext').f;
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.get-prototype-of.js b/swh/web/static/jssources/core-js/modules/es6.object.get-prototype-of.js
deleted file mode 100644
index 8fe2728c..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.get-prototype-of.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.9 Object.getPrototypeOf(O)
-var toObject = require('./_to-object');
-var $getPrototypeOf = require('./_object-gpo');
-
-require('./_object-sap')('getPrototypeOf', function () {
- return function getPrototypeOf(it) {
- return $getPrototypeOf(toObject(it));
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.is-extensible.js b/swh/web/static/jssources/core-js/modules/es6.object.is-extensible.js
deleted file mode 100644
index 5cd4575a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.is-extensible.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 19.1.2.11 Object.isExtensible(O)
-var isObject = require('./_is-object');
-
-require('./_object-sap')('isExtensible', function ($isExtensible) {
- return function isExtensible(it) {
- return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.is-frozen.js b/swh/web/static/jssources/core-js/modules/es6.object.is-frozen.js
deleted file mode 100644
index 0ceeabbb..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.is-frozen.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 19.1.2.12 Object.isFrozen(O)
-var isObject = require('./_is-object');
-
-require('./_object-sap')('isFrozen', function ($isFrozen) {
- return function isFrozen(it) {
- return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.is-sealed.js b/swh/web/static/jssources/core-js/modules/es6.object.is-sealed.js
deleted file mode 100644
index 7fa8dded..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.is-sealed.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 19.1.2.13 Object.isSealed(O)
-var isObject = require('./_is-object');
-
-require('./_object-sap')('isSealed', function ($isSealed) {
- return function isSealed(it) {
- return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.is.js b/swh/web/static/jssources/core-js/modules/es6.object.is.js
deleted file mode 100644
index 204d7030..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.is.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// 19.1.3.10 Object.is(value1, value2)
-var $export = require('./_export');
-$export($export.S, 'Object', { is: require('./_same-value') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.keys.js b/swh/web/static/jssources/core-js/modules/es6.object.keys.js
deleted file mode 100644
index e9dade7d..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.keys.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.14 Object.keys(O)
-var toObject = require('./_to-object');
-var $keys = require('./_object-keys');
-
-require('./_object-sap')('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.prevent-extensions.js b/swh/web/static/jssources/core-js/modules/es6.object.prevent-extensions.js
deleted file mode 100644
index 2f729181..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.prevent-extensions.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.15 Object.preventExtensions(O)
-var isObject = require('./_is-object');
-var meta = require('./_meta').onFreeze;
-
-require('./_object-sap')('preventExtensions', function ($preventExtensions) {
- return function preventExtensions(it) {
- return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.seal.js b/swh/web/static/jssources/core-js/modules/es6.object.seal.js
deleted file mode 100644
index 12c3f6a3..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.seal.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 19.1.2.17 Object.seal(O)
-var isObject = require('./_is-object');
-var meta = require('./_meta').onFreeze;
-
-require('./_object-sap')('seal', function ($seal) {
- return function seal(it) {
- return $seal && isObject(it) ? $seal(meta(it)) : it;
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.set-prototype-of.js b/swh/web/static/jssources/core-js/modules/es6.object.set-prototype-of.js
deleted file mode 100644
index 461dbd2e..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.set-prototype-of.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// 19.1.3.19 Object.setPrototypeOf(O, proto)
-var $export = require('./_export');
-$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });
diff --git a/swh/web/static/jssources/core-js/modules/es6.object.to-string.js b/swh/web/static/jssources/core-js/modules/es6.object.to-string.js
deleted file mode 100644
index 1c7b85fe..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.object.to-string.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-// 19.1.3.6 Object.prototype.toString()
-var classof = require('./_classof');
-var test = {};
-test[require('./_wks')('toStringTag')] = 'z';
-if (test + '' != '[object z]') {
- require('./_redefine')(Object.prototype, 'toString', function toString() {
- return '[object ' + classof(this) + ']';
- }, true);
-}
diff --git a/swh/web/static/jssources/core-js/modules/es6.parse-float.js b/swh/web/static/jssources/core-js/modules/es6.parse-float.js
deleted file mode 100644
index cbf50ead..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.parse-float.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-var $parseFloat = require('./_parse-float');
-// 18.2.4 parseFloat(string)
-$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat });
diff --git a/swh/web/static/jssources/core-js/modules/es6.parse-int.js b/swh/web/static/jssources/core-js/modules/es6.parse-int.js
deleted file mode 100644
index 7ea358e8..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.parse-int.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-var $parseInt = require('./_parse-int');
-// 18.2.5 parseInt(string, radix)
-$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });
diff --git a/swh/web/static/jssources/core-js/modules/es6.promise.js b/swh/web/static/jssources/core-js/modules/es6.promise.js
deleted file mode 100644
index b0ff3bfc..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.promise.js
+++ /dev/null
@@ -1,286 +0,0 @@
-'use strict';
-var LIBRARY = require('./_library');
-var global = require('./_global');
-var ctx = require('./_ctx');
-var classof = require('./_classof');
-var $export = require('./_export');
-var isObject = require('./_is-object');
-var aFunction = require('./_a-function');
-var anInstance = require('./_an-instance');
-var forOf = require('./_for-of');
-var speciesConstructor = require('./_species-constructor');
-var task = require('./_task').set;
-var microtask = require('./_microtask')();
-var newPromiseCapabilityModule = require('./_new-promise-capability');
-var perform = require('./_perform');
-var userAgent = require('./_user-agent');
-var promiseResolve = require('./_promise-resolve');
-var PROMISE = 'Promise';
-var TypeError = global.TypeError;
-var process = global.process;
-var versions = process && process.versions;
-var v8 = versions && versions.v8 || '';
-var $Promise = global[PROMISE];
-var isNode = classof(process) == 'process';
-var empty = function () { /* empty */ };
-var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
-var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
-
-var USE_NATIVE = !!function () {
- try {
- // correct subclassing with @@species support
- var promise = $Promise.resolve(1);
- var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {
- exec(empty, empty);
- };
- // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
- return (isNode || typeof PromiseRejectionEvent == 'function')
- && promise.then(empty) instanceof FakePromise
- // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
- // we can't detect it synchronously, so just check versions
- && v8.indexOf('6.6') !== 0
- && userAgent.indexOf('Chrome/66') === -1;
- } catch (e) { /* empty */ }
-}();
-
-// helpers
-var isThenable = function (it) {
- var then;
- return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
-};
-var notify = function (promise, isReject) {
- if (promise._n) return;
- promise._n = true;
- var chain = promise._c;
- microtask(function () {
- var value = promise._v;
- var ok = promise._s == 1;
- var i = 0;
- var run = function (reaction) {
- var handler = ok ? reaction.ok : reaction.fail;
- var resolve = reaction.resolve;
- var reject = reaction.reject;
- var domain = reaction.domain;
- var result, then, exited;
- try {
- if (handler) {
- if (!ok) {
- if (promise._h == 2) onHandleUnhandled(promise);
- promise._h = 1;
- }
- if (handler === true) result = value;
- else {
- if (domain) domain.enter();
- result = handler(value); // may throw
- if (domain) {
- domain.exit();
- exited = true;
- }
- }
- if (result === reaction.promise) {
- reject(TypeError('Promise-chain cycle'));
- } else if (then = isThenable(result)) {
- then.call(result, resolve, reject);
- } else resolve(result);
- } else reject(value);
- } catch (e) {
- if (domain && !exited) domain.exit();
- reject(e);
- }
- };
- while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
- promise._c = [];
- promise._n = false;
- if (isReject && !promise._h) onUnhandled(promise);
- });
-};
-var onUnhandled = function (promise) {
- task.call(global, function () {
- var value = promise._v;
- var unhandled = isUnhandled(promise);
- var result, handler, console;
- if (unhandled) {
- result = perform(function () {
- if (isNode) {
- process.emit('unhandledRejection', value, promise);
- } else if (handler = global.onunhandledrejection) {
- handler({ promise: promise, reason: value });
- } else if ((console = global.console) && console.error) {
- console.error('Unhandled promise rejection', value);
- }
- });
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
- promise._h = isNode || isUnhandled(promise) ? 2 : 1;
- } promise._a = undefined;
- if (unhandled && result.e) throw result.v;
- });
-};
-var isUnhandled = function (promise) {
- return promise._h !== 1 && (promise._a || promise._c).length === 0;
-};
-var onHandleUnhandled = function (promise) {
- task.call(global, function () {
- var handler;
- if (isNode) {
- process.emit('rejectionHandled', promise);
- } else if (handler = global.onrejectionhandled) {
- handler({ promise: promise, reason: promise._v });
- }
- });
-};
-var $reject = function (value) {
- var promise = this;
- if (promise._d) return;
- promise._d = true;
- promise = promise._w || promise; // unwrap
- promise._v = value;
- promise._s = 2;
- if (!promise._a) promise._a = promise._c.slice();
- notify(promise, true);
-};
-var $resolve = function (value) {
- var promise = this;
- var then;
- if (promise._d) return;
- promise._d = true;
- promise = promise._w || promise; // unwrap
- try {
- if (promise === value) throw TypeError("Promise can't be resolved itself");
- if (then = isThenable(value)) {
- microtask(function () {
- var wrapper = { _w: promise, _d: false }; // wrap
- try {
- then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
- } catch (e) {
- $reject.call(wrapper, e);
- }
- });
- } else {
- promise._v = value;
- promise._s = 1;
- notify(promise, false);
- }
- } catch (e) {
- $reject.call({ _w: promise, _d: false }, e); // wrap
- }
-};
-
-// constructor polyfill
-if (!USE_NATIVE) {
- // 25.4.3.1 Promise(executor)
- $Promise = function Promise(executor) {
- anInstance(this, $Promise, PROMISE, '_h');
- aFunction(executor);
- Internal.call(this);
- try {
- executor(ctx($resolve, this, 1), ctx($reject, this, 1));
- } catch (err) {
- $reject.call(this, err);
- }
- };
- // eslint-disable-next-line no-unused-vars
- Internal = function Promise(executor) {
- this._c = []; // <- awaiting reactions
- this._a = undefined; // <- checked in isUnhandled reactions
- this._s = 0; // <- state
- this._d = false; // <- done
- this._v = undefined; // <- value
- this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
- this._n = false; // <- notify
- };
- Internal.prototype = require('./_redefine-all')($Promise.prototype, {
- // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
- then: function then(onFulfilled, onRejected) {
- var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
- reaction.fail = typeof onRejected == 'function' && onRejected;
- reaction.domain = isNode ? process.domain : undefined;
- this._c.push(reaction);
- if (this._a) this._a.push(reaction);
- if (this._s) notify(this, false);
- return reaction.promise;
- },
- // 25.4.5.1 Promise.prototype.catch(onRejected)
- 'catch': function (onRejected) {
- return this.then(undefined, onRejected);
- }
- });
- OwnPromiseCapability = function () {
- var promise = new Internal();
- this.promise = promise;
- this.resolve = ctx($resolve, promise, 1);
- this.reject = ctx($reject, promise, 1);
- };
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
- return C === $Promise || C === Wrapper
- ? new OwnPromiseCapability(C)
- : newGenericPromiseCapability(C);
- };
-}
-
-$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
-require('./_set-to-string-tag')($Promise, PROMISE);
-require('./_set-species')(PROMISE);
-Wrapper = require('./_core')[PROMISE];
-
-// statics
-$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
- // 25.4.4.5 Promise.reject(r)
- reject: function reject(r) {
- var capability = newPromiseCapability(this);
- var $$reject = capability.reject;
- $$reject(r);
- return capability.promise;
- }
-});
-$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
- // 25.4.4.6 Promise.resolve(x)
- resolve: function resolve(x) {
- return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
- }
-});
-$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {
- $Promise.all(iter)['catch'](empty);
-})), PROMISE, {
- // 25.4.4.1 Promise.all(iterable)
- all: function all(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var resolve = capability.resolve;
- var reject = capability.reject;
- var result = perform(function () {
- var values = [];
- var index = 0;
- var remaining = 1;
- forOf(iterable, false, function (promise) {
- var $index = index++;
- var alreadyCalled = false;
- values.push(undefined);
- remaining++;
- C.resolve(promise).then(function (value) {
- if (alreadyCalled) return;
- alreadyCalled = true;
- values[$index] = value;
- --remaining || resolve(values);
- }, reject);
- });
- --remaining || resolve(values);
- });
- if (result.e) reject(result.v);
- return capability.promise;
- },
- // 25.4.4.4 Promise.race(iterable)
- race: function race(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var reject = capability.reject;
- var result = perform(function () {
- forOf(iterable, false, function (promise) {
- C.resolve(promise).then(capability.resolve, reject);
- });
- });
- if (result.e) reject(result.v);
- return capability.promise;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.apply.js b/swh/web/static/jssources/core-js/modules/es6.reflect.apply.js
deleted file mode 100644
index 3b9c03a9..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.apply.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
-var $export = require('./_export');
-var aFunction = require('./_a-function');
-var anObject = require('./_an-object');
-var rApply = (require('./_global').Reflect || {}).apply;
-var fApply = Function.apply;
-// MS Edge argumentsList argument is optional
-$export($export.S + $export.F * !require('./_fails')(function () {
- rApply(function () { /* empty */ });
-}), 'Reflect', {
- apply: function apply(target, thisArgument, argumentsList) {
- var T = aFunction(target);
- var L = anObject(argumentsList);
- return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.construct.js b/swh/web/static/jssources/core-js/modules/es6.reflect.construct.js
deleted file mode 100644
index 380addb5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.construct.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
-var $export = require('./_export');
-var create = require('./_object-create');
-var aFunction = require('./_a-function');
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-var fails = require('./_fails');
-var bind = require('./_bind');
-var rConstruct = (require('./_global').Reflect || {}).construct;
-
-// MS Edge supports only 2 arguments and argumentsList argument is optional
-// FF Nightly sets third argument as `new.target`, but does not create `this` from it
-var NEW_TARGET_BUG = fails(function () {
- function F() { /* empty */ }
- return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
-});
-var ARGS_BUG = !fails(function () {
- rConstruct(function () { /* empty */ });
-});
-
-$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
- construct: function construct(Target, args /* , newTarget */) {
- aFunction(Target);
- anObject(args);
- var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
- if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
- if (Target == newTarget) {
- // w/o altered newTarget, optimization for 0-4 arguments
- switch (args.length) {
- case 0: return new Target();
- case 1: return new Target(args[0]);
- case 2: return new Target(args[0], args[1]);
- case 3: return new Target(args[0], args[1], args[2]);
- case 4: return new Target(args[0], args[1], args[2], args[3]);
- }
- // w/o altered newTarget, lot of arguments case
- var $args = [null];
- $args.push.apply($args, args);
- return new (bind.apply(Target, $args))();
- }
- // with altered newTarget, not support built-in constructors
- var proto = newTarget.prototype;
- var instance = create(isObject(proto) ? proto : Object.prototype);
- var result = Function.apply.call(Target, instance, args);
- return isObject(result) ? result : instance;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.define-property.js b/swh/web/static/jssources/core-js/modules/es6.reflect.define-property.js
deleted file mode 100644
index be7fbde6..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.define-property.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
-var dP = require('./_object-dp');
-var $export = require('./_export');
-var anObject = require('./_an-object');
-var toPrimitive = require('./_to-primitive');
-
-// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
-$export($export.S + $export.F * require('./_fails')(function () {
- // eslint-disable-next-line no-undef
- Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
-}), 'Reflect', {
- defineProperty: function defineProperty(target, propertyKey, attributes) {
- anObject(target);
- propertyKey = toPrimitive(propertyKey, true);
- anObject(attributes);
- try {
- dP.f(target, propertyKey, attributes);
- return true;
- } catch (e) {
- return false;
- }
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.delete-property.js b/swh/web/static/jssources/core-js/modules/es6.reflect.delete-property.js
deleted file mode 100644
index 0902b38a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.delete-property.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// 26.1.4 Reflect.deleteProperty(target, propertyKey)
-var $export = require('./_export');
-var gOPD = require('./_object-gopd').f;
-var anObject = require('./_an-object');
-
-$export($export.S, 'Reflect', {
- deleteProperty: function deleteProperty(target, propertyKey) {
- var desc = gOPD(anObject(target), propertyKey);
- return desc && !desc.configurable ? false : delete target[propertyKey];
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.enumerate.js b/swh/web/static/jssources/core-js/modules/es6.reflect.enumerate.js
deleted file mode 100644
index 9e7c76a3..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.enumerate.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-// 26.1.5 Reflect.enumerate(target)
-var $export = require('./_export');
-var anObject = require('./_an-object');
-var Enumerate = function (iterated) {
- this._t = anObject(iterated); // target
- this._i = 0; // next index
- var keys = this._k = []; // keys
- var key;
- for (key in iterated) keys.push(key);
-};
-require('./_iter-create')(Enumerate, 'Object', function () {
- var that = this;
- var keys = that._k;
- var key;
- do {
- if (that._i >= keys.length) return { value: undefined, done: true };
- } while (!((key = keys[that._i++]) in that._t));
- return { value: key, done: false };
-});
-
-$export($export.S, 'Reflect', {
- enumerate: function enumerate(target) {
- return new Enumerate(target);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.get-own-property-descriptor.js b/swh/web/static/jssources/core-js/modules/es6.reflect.get-own-property-descriptor.js
deleted file mode 100644
index e1299f90..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.get-own-property-descriptor.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
-var gOPD = require('./_object-gopd');
-var $export = require('./_export');
-var anObject = require('./_an-object');
-
-$export($export.S, 'Reflect', {
- getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
- return gOPD.f(anObject(target), propertyKey);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.get-prototype-of.js b/swh/web/static/jssources/core-js/modules/es6.reflect.get-prototype-of.js
deleted file mode 100644
index 28351d41..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.get-prototype-of.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// 26.1.8 Reflect.getPrototypeOf(target)
-var $export = require('./_export');
-var getProto = require('./_object-gpo');
-var anObject = require('./_an-object');
-
-$export($export.S, 'Reflect', {
- getPrototypeOf: function getPrototypeOf(target) {
- return getProto(anObject(target));
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.get.js b/swh/web/static/jssources/core-js/modules/es6.reflect.get.js
deleted file mode 100644
index a7ee7666..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.get.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// 26.1.6 Reflect.get(target, propertyKey [, receiver])
-var gOPD = require('./_object-gopd');
-var getPrototypeOf = require('./_object-gpo');
-var has = require('./_has');
-var $export = require('./_export');
-var isObject = require('./_is-object');
-var anObject = require('./_an-object');
-
-function get(target, propertyKey /* , receiver */) {
- var receiver = arguments.length < 3 ? target : arguments[2];
- var desc, proto;
- if (anObject(target) === receiver) return target[propertyKey];
- if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
- ? desc.value
- : desc.get !== undefined
- ? desc.get.call(receiver)
- : undefined;
- if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
-}
-
-$export($export.S, 'Reflect', { get: get });
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.has.js b/swh/web/static/jssources/core-js/modules/es6.reflect.has.js
deleted file mode 100644
index 4f5efa99..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.has.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// 26.1.9 Reflect.has(target, propertyKey)
-var $export = require('./_export');
-
-$export($export.S, 'Reflect', {
- has: function has(target, propertyKey) {
- return propertyKey in target;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.is-extensible.js b/swh/web/static/jssources/core-js/modules/es6.reflect.is-extensible.js
deleted file mode 100644
index 700f938a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.is-extensible.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// 26.1.10 Reflect.isExtensible(target)
-var $export = require('./_export');
-var anObject = require('./_an-object');
-var $isExtensible = Object.isExtensible;
-
-$export($export.S, 'Reflect', {
- isExtensible: function isExtensible(target) {
- anObject(target);
- return $isExtensible ? $isExtensible(target) : true;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.own-keys.js b/swh/web/static/jssources/core-js/modules/es6.reflect.own-keys.js
deleted file mode 100644
index 9f2424ae..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.own-keys.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 26.1.11 Reflect.ownKeys(target)
-var $export = require('./_export');
-
-$export($export.S, 'Reflect', { ownKeys: require('./_own-keys') });
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.prevent-extensions.js b/swh/web/static/jssources/core-js/modules/es6.reflect.prevent-extensions.js
deleted file mode 100644
index e1037fa1..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.prevent-extensions.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// 26.1.12 Reflect.preventExtensions(target)
-var $export = require('./_export');
-var anObject = require('./_an-object');
-var $preventExtensions = Object.preventExtensions;
-
-$export($export.S, 'Reflect', {
- preventExtensions: function preventExtensions(target) {
- anObject(target);
- try {
- if ($preventExtensions) $preventExtensions(target);
- return true;
- } catch (e) {
- return false;
- }
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.set-prototype-of.js b/swh/web/static/jssources/core-js/modules/es6.reflect.set-prototype-of.js
deleted file mode 100644
index 5dae9012..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.set-prototype-of.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// 26.1.14 Reflect.setPrototypeOf(target, proto)
-var $export = require('./_export');
-var setProto = require('./_set-proto');
-
-if (setProto) $export($export.S, 'Reflect', {
- setPrototypeOf: function setPrototypeOf(target, proto) {
- setProto.check(target, proto);
- try {
- setProto.set(target, proto);
- return true;
- } catch (e) {
- return false;
- }
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.reflect.set.js b/swh/web/static/jssources/core-js/modules/es6.reflect.set.js
deleted file mode 100644
index d809d7a4..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.reflect.set.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
-var dP = require('./_object-dp');
-var gOPD = require('./_object-gopd');
-var getPrototypeOf = require('./_object-gpo');
-var has = require('./_has');
-var $export = require('./_export');
-var createDesc = require('./_property-desc');
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-
-function set(target, propertyKey, V /* , receiver */) {
- var receiver = arguments.length < 4 ? target : arguments[3];
- var ownDesc = gOPD.f(anObject(target), propertyKey);
- var existingDescriptor, proto;
- if (!ownDesc) {
- if (isObject(proto = getPrototypeOf(target))) {
- return set(proto, propertyKey, V, receiver);
- }
- ownDesc = createDesc(0);
- }
- if (has(ownDesc, 'value')) {
- if (ownDesc.writable === false || !isObject(receiver)) return false;
- if (existingDescriptor = gOPD.f(receiver, propertyKey)) {
- if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
- existingDescriptor.value = V;
- dP.f(receiver, propertyKey, existingDescriptor);
- } else dP.f(receiver, propertyKey, createDesc(0, V));
- return true;
- }
- return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
-}
-
-$export($export.S, 'Reflect', { set: set });
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.constructor.js b/swh/web/static/jssources/core-js/modules/es6.regexp.constructor.js
deleted file mode 100644
index 76247c32..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.constructor.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var global = require('./_global');
-var inheritIfRequired = require('./_inherit-if-required');
-var dP = require('./_object-dp').f;
-var gOPN = require('./_object-gopn').f;
-var isRegExp = require('./_is-regexp');
-var $flags = require('./_flags');
-var $RegExp = global.RegExp;
-var Base = $RegExp;
-var proto = $RegExp.prototype;
-var re1 = /a/g;
-var re2 = /a/g;
-// "new" creates a new object, old webkit buggy here
-var CORRECT_NEW = new $RegExp(re1) !== re1;
-
-if (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {
- re2[require('./_wks')('match')] = false;
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
- return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
-}))) {
- $RegExp = function RegExp(p, f) {
- var tiRE = this instanceof $RegExp;
- var piRE = isRegExp(p);
- var fiU = f === undefined;
- return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
- : inheritIfRequired(CORRECT_NEW
- ? new Base(piRE && !fiU ? p.source : p, f)
- : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
- , tiRE ? this : proto, $RegExp);
- };
- var proxy = function (key) {
- key in $RegExp || dP($RegExp, key, {
- configurable: true,
- get: function () { return Base[key]; },
- set: function (it) { Base[key] = it; }
- });
- };
- for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
- proto.constructor = $RegExp;
- $RegExp.prototype = proto;
- require('./_redefine')(global, 'RegExp', $RegExp);
-}
-
-require('./_set-species')('RegExp');
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.exec.js b/swh/web/static/jssources/core-js/modules/es6.regexp.exec.js
deleted file mode 100644
index a19f1eee..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.exec.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-var regexpExec = require('./_regexp-exec');
-require('./_export')({
- target: 'RegExp',
- proto: true,
- forced: regexpExec !== /./.exec
-}, {
- exec: regexpExec
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.flags.js b/swh/web/static/jssources/core-js/modules/es6.regexp.flags.js
deleted file mode 100644
index 47008680..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.flags.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// 21.2.5.3 get RegExp.prototype.flags()
-if (require('./_descriptors') && /./g.flags != 'g') require('./_object-dp').f(RegExp.prototype, 'flags', {
- configurable: true,
- get: require('./_flags')
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.match.js b/swh/web/static/jssources/core-js/modules/es6.regexp.match.js
deleted file mode 100644
index 6ac294eb..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.match.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var anObject = require('./_an-object');
-var toLength = require('./_to-length');
-var advanceStringIndex = require('./_advance-string-index');
-var regExpExec = require('./_regexp-exec-abstract');
-
-// @@match logic
-require('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {
- return [
- // `String.prototype.match` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.match
- function match(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[MATCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
- },
- // `RegExp.prototype[@@match]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
- function (regexp) {
- var res = maybeCallNative($match, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- if (!rx.global) return regExpExec(rx, S);
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- var A = [];
- var n = 0;
- var result;
- while ((result = regExpExec(rx, S)) !== null) {
- var matchStr = String(result[0]);
- A[n] = matchStr;
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- n++;
- }
- return n === 0 ? null : A;
- }
- ];
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.replace.js b/swh/web/static/jssources/core-js/modules/es6.regexp.replace.js
deleted file mode 100644
index abd0f9c8..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.replace.js
+++ /dev/null
@@ -1,118 +0,0 @@
-'use strict';
-
-var anObject = require('./_an-object');
-var toObject = require('./_to-object');
-var toLength = require('./_to-length');
-var toInteger = require('./_to-integer');
-var advanceStringIndex = require('./_advance-string-index');
-var regExpExec = require('./_regexp-exec-abstract');
-var max = Math.max;
-var min = Math.min;
-var floor = Math.floor;
-var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
-var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
-
-var maybeToString = function (it) {
- return it === undefined ? it : String(it);
-};
-
-// @@replace logic
-require('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = defined(this);
- var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
- return fn !== undefined
- ? fn.call(searchValue, O, replaceValue)
- : $replace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function (regexp, replaceValue) {
- var res = maybeCallNative($replace, regexp, this, replaceValue);
- if (res.done) return res.value;
-
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === 'function';
- if (!functionalReplace) replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- results.push(result);
- if (!global) break;
- var matchStr = String(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
-
- // https://tc39.github.io/ecma262/#sec-getsubstitution
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return $replace.call(replacement, symbols, function (match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return str.slice(0, position);
- case "'": return str.slice(tailPos);
- case '<':
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.search.js b/swh/web/static/jssources/core-js/modules/es6.regexp.search.js
deleted file mode 100644
index ecb53bb3..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.search.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-var anObject = require('./_an-object');
-var sameValue = require('./_same-value');
-var regExpExec = require('./_regexp-exec-abstract');
-
-// @@search logic
-require('./_fix-re-wks')('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
- return [
- // `String.prototype.search` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.search
- function search(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[SEARCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
- },
- // `RegExp.prototype[@@search]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
- function (regexp) {
- var res = maybeCallNative($search, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var previousLastIndex = rx.lastIndex;
- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
- var result = regExpExec(rx, S);
- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
- return result === null ? -1 : result.index;
- }
- ];
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.split.js b/swh/web/static/jssources/core-js/modules/es6.regexp.split.js
deleted file mode 100644
index 45f81ce4..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.split.js
+++ /dev/null
@@ -1,134 +0,0 @@
-'use strict';
-
-var isRegExp = require('./_is-regexp');
-var anObject = require('./_an-object');
-var speciesConstructor = require('./_species-constructor');
-var advanceStringIndex = require('./_advance-string-index');
-var toLength = require('./_to-length');
-var callRegExpExec = require('./_regexp-exec-abstract');
-var regexpExec = require('./_regexp-exec');
-var fails = require('./_fails');
-var $min = Math.min;
-var $push = [].push;
-var $SPLIT = 'split';
-var LENGTH = 'length';
-var LAST_INDEX = 'lastIndex';
-var MAX_UINT32 = 0xffffffff;
-
-// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
-var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
-
-// @@split logic
-require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
- var internalSplit;
- if (
- 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
- 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
- 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
- '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
- '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
- ''[$SPLIT](/.?/)[LENGTH]
- ) {
- // based on es5-shim implementation, need to rework it
- internalSplit = function (separator, limit) {
- var string = String(this);
- if (separator === undefined && limit === 0) return [];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) return $split.call(string, separator, limit);
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var match, lastIndex, lastLength;
- while (match = regexpExec.call(separatorCopy, string)) {
- lastIndex = separatorCopy[LAST_INDEX];
- if (lastIndex > lastLastIndex) {
- output.push(string.slice(lastLastIndex, match.index));
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
- lastLength = match[0][LENGTH];
- lastLastIndex = lastIndex;
- if (output[LENGTH] >= splitLimit) break;
- }
- if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
- }
- if (lastLastIndex === string[LENGTH]) {
- if (lastLength || !separatorCopy.test('')) output.push('');
- } else output.push(string.slice(lastLastIndex));
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
- };
- // Chakra, V8
- } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
- internalSplit = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
- };
- } else {
- internalSplit = $split;
- }
-
- return [
- // `String.prototype.split` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.split
- function split(separator, limit) {
- var O = defined(this);
- var splitter = separator == undefined ? undefined : separator[SPLIT];
- return splitter !== undefined
- ? splitter.call(separator, O, limit)
- : internalSplit.call(String(O), separator, limit);
- },
- // `RegExp.prototype[@@split]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
- //
- // NOTE: This cannot be properly polyfilled in engines that don't support
- // the 'y' flag.
- function (regexp, limit) {
- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
- if (res.done) return res.value;
-
- var rx = anObject(regexp);
- var S = String(this);
- var C = speciesConstructor(rx, RegExp);
-
- var unicodeMatching = rx.unicode;
- var flags = (rx.ignoreCase ? 'i' : '') +
- (rx.multiline ? 'm' : '') +
- (rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
-
- // ^(? + rx + ) is needed, in combination with some S slicing, to
- // simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
- var p = 0;
- var q = 0;
- var A = [];
- while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
- var e;
- if (
- z === null ||
- (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
- ) {
- q = advanceStringIndex(S, q, unicodeMatching);
- } else {
- A.push(S.slice(p, q));
- if (A.length === lim) return A;
- for (var i = 1; i <= z.length - 1; i++) {
- A.push(z[i]);
- if (A.length === lim) return A;
- }
- q = p = e;
- }
- }
- A.push(S.slice(p));
- return A;
- }
- ];
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.regexp.to-string.js b/swh/web/static/jssources/core-js/modules/es6.regexp.to-string.js
deleted file mode 100644
index 33d6e6fe..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.regexp.to-string.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-require('./es6.regexp.flags');
-var anObject = require('./_an-object');
-var $flags = require('./_flags');
-var DESCRIPTORS = require('./_descriptors');
-var TO_STRING = 'toString';
-var $toString = /./[TO_STRING];
-
-var define = function (fn) {
- require('./_redefine')(RegExp.prototype, TO_STRING, fn, true);
-};
-
-// 21.2.5.14 RegExp.prototype.toString()
-if (require('./_fails')(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
- define(function toString() {
- var R = anObject(this);
- return '/'.concat(R.source, '/',
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
- });
-// FF44- RegExp#toString has a wrong name
-} else if ($toString.name != TO_STRING) {
- define(function toString() {
- return $toString.call(this);
- });
-}
diff --git a/swh/web/static/jssources/core-js/modules/es6.set.js b/swh/web/static/jssources/core-js/modules/es6.set.js
deleted file mode 100644
index 55b8bdd8..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.set.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-var strong = require('./_collection-strong');
-var validate = require('./_validate-collection');
-var SET = 'Set';
-
-// 23.2 Set Objects
-module.exports = require('./_collection')(SET, function (get) {
- return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
-}, {
- // 23.2.3.1 Set.prototype.add(value)
- add: function add(value) {
- return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
- }
-}, strong);
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.anchor.js b/swh/web/static/jssources/core-js/modules/es6.string.anchor.js
deleted file mode 100644
index 3493e54c..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.anchor.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.2 String.prototype.anchor(name)
-require('./_string-html')('anchor', function (createHTML) {
- return function anchor(name) {
- return createHTML(this, 'a', 'name', name);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.big.js b/swh/web/static/jssources/core-js/modules/es6.string.big.js
deleted file mode 100644
index 38aab341..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.big.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.3 String.prototype.big()
-require('./_string-html')('big', function (createHTML) {
- return function big() {
- return createHTML(this, 'big', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.blink.js b/swh/web/static/jssources/core-js/modules/es6.string.blink.js
deleted file mode 100644
index 6188d96e..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.blink.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.4 String.prototype.blink()
-require('./_string-html')('blink', function (createHTML) {
- return function blink() {
- return createHTML(this, 'blink', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.bold.js b/swh/web/static/jssources/core-js/modules/es6.string.bold.js
deleted file mode 100644
index ff3ecb9c..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.bold.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.5 String.prototype.bold()
-require('./_string-html')('bold', function (createHTML) {
- return function bold() {
- return createHTML(this, 'b', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.code-point-at.js b/swh/web/static/jssources/core-js/modules/es6.string.code-point-at.js
deleted file mode 100644
index e39b8c5e..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.code-point-at.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $at = require('./_string-at')(false);
-$export($export.P, 'String', {
- // 21.1.3.3 String.prototype.codePointAt(pos)
- codePointAt: function codePointAt(pos) {
- return $at(this, pos);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.ends-with.js b/swh/web/static/jssources/core-js/modules/es6.string.ends-with.js
deleted file mode 100644
index 06568888..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.ends-with.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
-'use strict';
-var $export = require('./_export');
-var toLength = require('./_to-length');
-var context = require('./_string-context');
-var ENDS_WITH = 'endsWith';
-var $endsWith = ''[ENDS_WITH];
-
-$export($export.P + $export.F * require('./_fails-is-regexp')(ENDS_WITH), 'String', {
- endsWith: function endsWith(searchString /* , endPosition = @length */) {
- var that = context(this, searchString, ENDS_WITH);
- var endPosition = arguments.length > 1 ? arguments[1] : undefined;
- var len = toLength(that.length);
- var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);
- var search = String(searchString);
- return $endsWith
- ? $endsWith.call(that, search, end)
- : that.slice(end - search.length, end) === search;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.fixed.js b/swh/web/static/jssources/core-js/modules/es6.string.fixed.js
deleted file mode 100644
index d4a60f37..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.fixed.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.6 String.prototype.fixed()
-require('./_string-html')('fixed', function (createHTML) {
- return function fixed() {
- return createHTML(this, 'tt', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.fontcolor.js b/swh/web/static/jssources/core-js/modules/es6.string.fontcolor.js
deleted file mode 100644
index f7b95957..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.fontcolor.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.7 String.prototype.fontcolor(color)
-require('./_string-html')('fontcolor', function (createHTML) {
- return function fontcolor(color) {
- return createHTML(this, 'font', 'color', color);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.fontsize.js b/swh/web/static/jssources/core-js/modules/es6.string.fontsize.js
deleted file mode 100644
index f4cc20ae..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.fontsize.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.8 String.prototype.fontsize(size)
-require('./_string-html')('fontsize', function (createHTML) {
- return function fontsize(size) {
- return createHTML(this, 'font', 'size', size);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.from-code-point.js b/swh/web/static/jssources/core-js/modules/es6.string.from-code-point.js
deleted file mode 100644
index bece66e2..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.from-code-point.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var $export = require('./_export');
-var toAbsoluteIndex = require('./_to-absolute-index');
-var fromCharCode = String.fromCharCode;
-var $fromCodePoint = String.fromCodePoint;
-
-// length should be 1, old FF problem
-$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
- // 21.1.2.2 String.fromCodePoint(...codePoints)
- fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
- var res = [];
- var aLen = arguments.length;
- var i = 0;
- var code;
- while (aLen > i) {
- code = +arguments[i++];
- if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');
- res.push(code < 0x10000
- ? fromCharCode(code)
- : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
- );
- } return res.join('');
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.includes.js b/swh/web/static/jssources/core-js/modules/es6.string.includes.js
deleted file mode 100644
index 28d17416..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.includes.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// 21.1.3.7 String.prototype.includes(searchString, position = 0)
-'use strict';
-var $export = require('./_export');
-var context = require('./_string-context');
-var INCLUDES = 'includes';
-
-$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {
- includes: function includes(searchString /* , position = 0 */) {
- return !!~context(this, searchString, INCLUDES)
- .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.italics.js b/swh/web/static/jssources/core-js/modules/es6.string.italics.js
deleted file mode 100644
index ed4cc3bf..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.italics.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.9 String.prototype.italics()
-require('./_string-html')('italics', function (createHTML) {
- return function italics() {
- return createHTML(this, 'i', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.iterator.js b/swh/web/static/jssources/core-js/modules/es6.string.iterator.js
deleted file mode 100644
index 5d84c7fd..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.iterator.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-var $at = require('./_string-at')(true);
-
-// 21.1.3.27 String.prototype[@@iterator]()
-require('./_iter-define')(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
-// 21.1.5.2.1 %StringIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) return { value: undefined, done: true };
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.link.js b/swh/web/static/jssources/core-js/modules/es6.string.link.js
deleted file mode 100644
index d0255edd..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.link.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.10 String.prototype.link(url)
-require('./_string-html')('link', function (createHTML) {
- return function link(url) {
- return createHTML(this, 'a', 'href', url);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.raw.js b/swh/web/static/jssources/core-js/modules/es6.string.raw.js
deleted file mode 100644
index aa40ff6f..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.raw.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var $export = require('./_export');
-var toIObject = require('./_to-iobject');
-var toLength = require('./_to-length');
-
-$export($export.S, 'String', {
- // 21.1.2.4 String.raw(callSite, ...substitutions)
- raw: function raw(callSite) {
- var tpl = toIObject(callSite.raw);
- var len = toLength(tpl.length);
- var aLen = arguments.length;
- var res = [];
- var i = 0;
- while (len > i) {
- res.push(String(tpl[i++]));
- if (i < aLen) res.push(String(arguments[i]));
- } return res.join('');
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.repeat.js b/swh/web/static/jssources/core-js/modules/es6.string.repeat.js
deleted file mode 100644
index 08412d91..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.repeat.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var $export = require('./_export');
-
-$export($export.P, 'String', {
- // 21.1.3.13 String.prototype.repeat(count)
- repeat: require('./_string-repeat')
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.small.js b/swh/web/static/jssources/core-js/modules/es6.string.small.js
deleted file mode 100644
index 941e4a76..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.small.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.11 String.prototype.small()
-require('./_string-html')('small', function (createHTML) {
- return function small() {
- return createHTML(this, 'small', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.starts-with.js b/swh/web/static/jssources/core-js/modules/es6.string.starts-with.js
deleted file mode 100644
index c1723767..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.starts-with.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
-'use strict';
-var $export = require('./_export');
-var toLength = require('./_to-length');
-var context = require('./_string-context');
-var STARTS_WITH = 'startsWith';
-var $startsWith = ''[STARTS_WITH];
-
-$export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'String', {
- startsWith: function startsWith(searchString /* , position = 0 */) {
- var that = context(this, searchString, STARTS_WITH);
- var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
- var search = String(searchString);
- return $startsWith
- ? $startsWith.call(that, search, index)
- : that.slice(index, index + search.length) === search;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.strike.js b/swh/web/static/jssources/core-js/modules/es6.string.strike.js
deleted file mode 100644
index 66055bc0..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.strike.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.12 String.prototype.strike()
-require('./_string-html')('strike', function (createHTML) {
- return function strike() {
- return createHTML(this, 'strike', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.sub.js b/swh/web/static/jssources/core-js/modules/es6.string.sub.js
deleted file mode 100644
index e295a27b..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.sub.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.13 String.prototype.sub()
-require('./_string-html')('sub', function (createHTML) {
- return function sub() {
- return createHTML(this, 'sub', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.sup.js b/swh/web/static/jssources/core-js/modules/es6.string.sup.js
deleted file mode 100644
index 125a989a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.sup.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// B.2.3.14 String.prototype.sup()
-require('./_string-html')('sup', function (createHTML) {
- return function sup() {
- return createHTML(this, 'sup', '', '');
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.string.trim.js b/swh/web/static/jssources/core-js/modules/es6.string.trim.js
deleted file mode 100644
index 02b8a6c6..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.string.trim.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-// 21.1.3.25 String.prototype.trim()
-require('./_string-trim')('trim', function ($trim) {
- return function trim() {
- return $trim(this, 3);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.symbol.js b/swh/web/static/jssources/core-js/modules/es6.symbol.js
deleted file mode 100644
index 5bf7c488..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.symbol.js
+++ /dev/null
@@ -1,234 +0,0 @@
-'use strict';
-// ECMAScript 6 symbols shim
-var global = require('./_global');
-var has = require('./_has');
-var DESCRIPTORS = require('./_descriptors');
-var $export = require('./_export');
-var redefine = require('./_redefine');
-var META = require('./_meta').KEY;
-var $fails = require('./_fails');
-var shared = require('./_shared');
-var setToStringTag = require('./_set-to-string-tag');
-var uid = require('./_uid');
-var wks = require('./_wks');
-var wksExt = require('./_wks-ext');
-var wksDefine = require('./_wks-define');
-var enumKeys = require('./_enum-keys');
-var isArray = require('./_is-array');
-var anObject = require('./_an-object');
-var isObject = require('./_is-object');
-var toIObject = require('./_to-iobject');
-var toPrimitive = require('./_to-primitive');
-var createDesc = require('./_property-desc');
-var _create = require('./_object-create');
-var gOPNExt = require('./_object-gopn-ext');
-var $GOPD = require('./_object-gopd');
-var $DP = require('./_object-dp');
-var $keys = require('./_object-keys');
-var gOPD = $GOPD.f;
-var dP = $DP.f;
-var gOPN = gOPNExt.f;
-var $Symbol = global.Symbol;
-var $JSON = global.JSON;
-var _stringify = $JSON && $JSON.stringify;
-var PROTOTYPE = 'prototype';
-var HIDDEN = wks('_hidden');
-var TO_PRIMITIVE = wks('toPrimitive');
-var isEnum = {}.propertyIsEnumerable;
-var SymbolRegistry = shared('symbol-registry');
-var AllSymbols = shared('symbols');
-var OPSymbols = shared('op-symbols');
-var ObjectProto = Object[PROTOTYPE];
-var USE_NATIVE = typeof $Symbol == 'function';
-var QObject = global.QObject;
-// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
-var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
-
-// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
-var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
-}) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
-} : dP;
-
-var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
-};
-
-var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
-} : function (it) {
- return it instanceof $Symbol;
-};
-
-var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
-};
-var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
-};
-var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
-};
-var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
-};
-var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
-};
-var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
-};
-var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
-};
-
-// 19.4.1.1 Symbol([description])
-if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
-
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;
- require('./_object-pie').f = $propertyIsEnumerable;
- require('./_object-gops').f = $getOwnPropertySymbols;
-
- if (DESCRIPTORS && !require('./_library')) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
-
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
-}
-
-$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
-
-for (var es6Symbols = (
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
-).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
-
-for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
-
-$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
-});
-
-$export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
-});
-
-// 24.3.2 JSON.stringify(value [, replacer [, space]])
-$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
-})), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
-});
-
-// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
-$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
-// 19.4.3.5 Symbol.prototype[@@toStringTag]
-setToStringTag($Symbol, 'Symbol');
-// 20.2.1.9 Math[@@toStringTag]
-setToStringTag(Math, 'Math', true);
-// 24.3.3 JSON[@@toStringTag]
-setToStringTag(global.JSON, 'JSON', true);
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.array-buffer.js b/swh/web/static/jssources/core-js/modules/es6.typed.array-buffer.js
deleted file mode 100644
index b2473709..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.array-buffer.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var $typed = require('./_typed');
-var buffer = require('./_typed-buffer');
-var anObject = require('./_an-object');
-var toAbsoluteIndex = require('./_to-absolute-index');
-var toLength = require('./_to-length');
-var isObject = require('./_is-object');
-var ArrayBuffer = require('./_global').ArrayBuffer;
-var speciesConstructor = require('./_species-constructor');
-var $ArrayBuffer = buffer.ArrayBuffer;
-var $DataView = buffer.DataView;
-var $isView = $typed.ABV && ArrayBuffer.isView;
-var $slice = $ArrayBuffer.prototype.slice;
-var VIEW = $typed.VIEW;
-var ARRAY_BUFFER = 'ArrayBuffer';
-
-$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });
-
-$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {
- // 24.1.3.1 ArrayBuffer.isView(arg)
- isView: function isView(it) {
- return $isView && $isView(it) || isObject(it) && VIEW in it;
- }
-});
-
-$export($export.P + $export.U + $export.F * require('./_fails')(function () {
- return !new $ArrayBuffer(2).slice(1, undefined).byteLength;
-}), ARRAY_BUFFER, {
- // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
- slice: function slice(start, end) {
- if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix
- var len = anObject(this).byteLength;
- var first = toAbsoluteIndex(start, len);
- var fin = toAbsoluteIndex(end === undefined ? len : end, len);
- var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first));
- var viewS = new $DataView(this);
- var viewT = new $DataView(result);
- var index = 0;
- while (first < fin) {
- viewT.setUint8(index++, viewS.getUint8(first++));
- } return result;
- }
-});
-
-require('./_set-species')(ARRAY_BUFFER);
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.data-view.js b/swh/web/static/jssources/core-js/modules/es6.typed.data-view.js
deleted file mode 100644
index d0e23536..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.data-view.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var $export = require('./_export');
-$export($export.G + $export.W + $export.F * !require('./_typed').ABV, {
- DataView: require('./_typed-buffer').DataView
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.float32-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.float32-array.js
deleted file mode 100644
index f4970061..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.float32-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Float32', 4, function (init) {
- return function Float32Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.float64-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.float64-array.js
deleted file mode 100644
index 85dedcd5..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.float64-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Float64', 8, function (init) {
- return function Float64Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.int16-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.int16-array.js
deleted file mode 100644
index b20ed041..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.int16-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Int16', 2, function (init) {
- return function Int16Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.int32-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.int32-array.js
deleted file mode 100644
index c7e6ae06..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.int32-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Int32', 4, function (init) {
- return function Int32Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.int8-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.int8-array.js
deleted file mode 100644
index 58ab9f36..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.int8-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Int8', 1, function (init) {
- return function Int8Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.uint16-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.uint16-array.js
deleted file mode 100644
index 992805d6..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.uint16-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Uint16', 2, function (init) {
- return function Uint16Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.uint32-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.uint32-array.js
deleted file mode 100644
index 5c444246..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.uint32-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Uint32', 4, function (init) {
- return function Uint32Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.uint8-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.uint8-array.js
deleted file mode 100644
index 465cdc80..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.uint8-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Uint8', 1, function (init) {
- return function Uint8Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-});
diff --git a/swh/web/static/jssources/core-js/modules/es6.typed.uint8-clamped-array.js b/swh/web/static/jssources/core-js/modules/es6.typed.uint8-clamped-array.js
deleted file mode 100644
index a84a1c1a..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.typed.uint8-clamped-array.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./_typed-array')('Uint8', 1, function (init) {
- return function Uint8ClampedArray(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
-}, true);
diff --git a/swh/web/static/jssources/core-js/modules/es6.weak-map.js b/swh/web/static/jssources/core-js/modules/es6.weak-map.js
deleted file mode 100644
index 35605214..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.weak-map.js
+++ /dev/null
@@ -1,60 +0,0 @@
-'use strict';
-var global = require('./_global');
-var each = require('./_array-methods')(0);
-var redefine = require('./_redefine');
-var meta = require('./_meta');
-var assign = require('./_object-assign');
-var weak = require('./_collection-weak');
-var isObject = require('./_is-object');
-var validate = require('./_validate-collection');
-var NATIVE_WEAK_MAP = require('./_validate-collection');
-var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
-var WEAK_MAP = 'WeakMap';
-var getWeak = meta.getWeak;
-var isExtensible = Object.isExtensible;
-var uncaughtFrozenStore = weak.ufstore;
-var InternalMap;
-
-var wrapper = function (get) {
- return function WeakMap() {
- return get(this, arguments.length > 0 ? arguments[0] : undefined);
- };
-};
-
-var methods = {
- // 23.3.3.3 WeakMap.prototype.get(key)
- get: function get(key) {
- if (isObject(key)) {
- var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
- return data ? data[this._i] : undefined;
- }
- },
- // 23.3.3.5 WeakMap.prototype.set(key, value)
- set: function set(key, value) {
- return weak.def(validate(this, WEAK_MAP), key, value);
- }
-};
-
-// 23.3 WeakMap Objects
-var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true);
-
-// IE11 WeakMap frozen keys fix
-if (NATIVE_WEAK_MAP && IS_IE11) {
- InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
- assign(InternalMap.prototype, methods);
- meta.NEED = true;
- each(['delete', 'has', 'get', 'set'], function (key) {
- var proto = $WeakMap.prototype;
- var method = proto[key];
- redefine(proto, key, function (a, b) {
- // store frozen objects on internal weakmap shim
- if (isObject(a) && !isExtensible(a)) {
- if (!this._f) this._f = new InternalMap();
- var result = this._f[key](a, b);
- return key == 'set' ? this : result;
- // store all the rest on native weakmap
- } return method.call(this, a, b);
- });
- });
-}
diff --git a/swh/web/static/jssources/core-js/modules/es6.weak-set.js b/swh/web/static/jssources/core-js/modules/es6.weak-set.js
deleted file mode 100644
index 18a81e52..00000000
--- a/swh/web/static/jssources/core-js/modules/es6.weak-set.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-var weak = require('./_collection-weak');
-var validate = require('./_validate-collection');
-var WEAK_SET = 'WeakSet';
-
-// 23.4 WeakSet Objects
-require('./_collection')(WEAK_SET, function (get) {
- return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
-}, {
- // 23.4.3.1 WeakSet.prototype.add(value)
- add: function add(value) {
- return weak.def(validate(this, WEAK_SET), value, true);
- }
-}, weak, false, true);
diff --git a/swh/web/static/jssources/core-js/modules/es7.array.includes.js b/swh/web/static/jssources/core-js/modules/es7.array.includes.js
deleted file mode 100644
index 1b77f0eb..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.array.includes.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-// https://github.com/tc39/Array.prototype.includes
-var $export = require('./_export');
-var $includes = require('./_array-includes')(true);
-
-$export($export.P, 'Array', {
- includes: function includes(el /* , fromIndex = 0 */) {
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
- }
-});
-
-require('./_add-to-unscopables')('includes');
diff --git a/swh/web/static/jssources/core-js/modules/es7.object.entries.js b/swh/web/static/jssources/core-js/modules/es7.object.entries.js
deleted file mode 100644
index 2f83437c..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.object.entries.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// https://github.com/tc39/proposal-object-values-entries
-var $export = require('./_export');
-var $entries = require('./_object-to-array')(true);
-
-$export($export.S, 'Object', {
- entries: function entries(it) {
- return $entries(it);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es7.object.get-own-property-descriptors.js b/swh/web/static/jssources/core-js/modules/es7.object.get-own-property-descriptors.js
deleted file mode 100644
index b1ab72fd..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.object.get-own-property-descriptors.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// https://github.com/tc39/proposal-object-getownpropertydescriptors
-var $export = require('./_export');
-var ownKeys = require('./_own-keys');
-var toIObject = require('./_to-iobject');
-var gOPD = require('./_object-gopd');
-var createProperty = require('./_create-property');
-
-$export($export.S, 'Object', {
- getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
- var O = toIObject(object);
- var getDesc = gOPD.f;
- var keys = ownKeys(O);
- var result = {};
- var i = 0;
- var key, desc;
- while (keys.length > i) {
- desc = getDesc(O, key = keys[i++]);
- if (desc !== undefined) createProperty(result, key, desc);
- }
- return result;
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es7.object.values.js b/swh/web/static/jssources/core-js/modules/es7.object.values.js
deleted file mode 100644
index d6f09527..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.object.values.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// https://github.com/tc39/proposal-object-values-entries
-var $export = require('./_export');
-var $values = require('./_object-to-array')(false);
-
-$export($export.S, 'Object', {
- values: function values(it) {
- return $values(it);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es7.promise.finally.js b/swh/web/static/jssources/core-js/modules/es7.promise.finally.js
deleted file mode 100644
index fa04b639..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.promise.finally.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// https://github.com/tc39/proposal-promise-finally
-'use strict';
-var $export = require('./_export');
-var core = require('./_core');
-var global = require('./_global');
-var speciesConstructor = require('./_species-constructor');
-var promiseResolve = require('./_promise-resolve');
-
-$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
- var C = speciesConstructor(this, core.Promise || global.Promise);
- var isFunction = typeof onFinally == 'function';
- return this.then(
- isFunction ? function (x) {
- return promiseResolve(C, onFinally()).then(function () { return x; });
- } : onFinally,
- isFunction ? function (e) {
- return promiseResolve(C, onFinally()).then(function () { throw e; });
- } : onFinally
- );
-} });
diff --git a/swh/web/static/jssources/core-js/modules/es7.string.pad-end.js b/swh/web/static/jssources/core-js/modules/es7.string.pad-end.js
deleted file mode 100644
index 5a531a1c..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.string.pad-end.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-// https://github.com/tc39/proposal-string-pad-start-end
-var $export = require('./_export');
-var $pad = require('./_string-pad');
-var userAgent = require('./_user-agent');
-
-// https://github.com/zloirock/core-js/issues/280
-var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
-
-$export($export.P + $export.F * WEBKIT_BUG, 'String', {
- padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
- return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es7.string.pad-start.js b/swh/web/static/jssources/core-js/modules/es7.string.pad-start.js
deleted file mode 100644
index 729ed933..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.string.pad-start.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-// https://github.com/tc39/proposal-string-pad-start-end
-var $export = require('./_export');
-var $pad = require('./_string-pad');
-var userAgent = require('./_user-agent');
-
-// https://github.com/zloirock/core-js/issues/280
-var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
-
-$export($export.P + $export.F * WEBKIT_BUG, 'String', {
- padStart: function padStart(maxLength /* , fillString = ' ' */) {
- return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
- }
-});
diff --git a/swh/web/static/jssources/core-js/modules/es7.symbol.async-iterator.js b/swh/web/static/jssources/core-js/modules/es7.symbol.async-iterator.js
deleted file mode 100644
index f56dc2a8..00000000
--- a/swh/web/static/jssources/core-js/modules/es7.symbol.async-iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./_wks-define')('asyncIterator');
diff --git a/swh/web/static/jssources/core-js/modules/web.dom.iterable.js b/swh/web/static/jssources/core-js/modules/web.dom.iterable.js
deleted file mode 100644
index 40834b02..00000000
--- a/swh/web/static/jssources/core-js/modules/web.dom.iterable.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var $iterators = require('./es6.array.iterator');
-var getKeys = require('./_object-keys');
-var redefine = require('./_redefine');
-var global = require('./_global');
-var hide = require('./_hide');
-var Iterators = require('./_iterators');
-var wks = require('./_wks');
-var ITERATOR = wks('iterator');
-var TO_STRING_TAG = wks('toStringTag');
-var ArrayValues = Iterators.Array;
-
-var DOMIterables = {
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
- CSSStyleDeclaration: false,
- CSSValueList: false,
- ClientRectList: false,
- DOMRectList: false,
- DOMStringList: false,
- DOMTokenList: true,
- DataTransferItemList: false,
- FileList: false,
- HTMLAllCollection: false,
- HTMLCollection: false,
- HTMLFormElement: false,
- HTMLSelectElement: false,
- MediaList: true, // TODO: Not spec compliant, should be false.
- MimeTypeArray: false,
- NamedNodeMap: false,
- NodeList: true,
- PaintRequestList: false,
- Plugin: false,
- PluginArray: false,
- SVGLengthList: false,
- SVGNumberList: false,
- SVGPathSegList: false,
- SVGPointList: false,
- SVGStringList: false,
- SVGTransformList: false,
- SourceBufferList: false,
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
- TextTrackCueList: false,
- TextTrackList: false,
- TouchList: false
-};
-
-for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
- var NAME = collections[i];
- var explicit = DOMIterables[NAME];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- var key;
- if (proto) {
- if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = ArrayValues;
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
- }
-}
diff --git a/swh/web/static/jssources/core-js/modules/web.immediate.js b/swh/web/static/jssources/core-js/modules/web.immediate.js
deleted file mode 100644
index 70f3e70d..00000000
--- a/swh/web/static/jssources/core-js/modules/web.immediate.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var $export = require('./_export');
-var $task = require('./_task');
-$export($export.G + $export.B, {
- setImmediate: $task.set,
- clearImmediate: $task.clear
-});
diff --git a/swh/web/static/jssources/core-js/modules/web.timers.js b/swh/web/static/jssources/core-js/modules/web.timers.js
deleted file mode 100644
index c8790830..00000000
--- a/swh/web/static/jssources/core-js/modules/web.timers.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// ie9- setTimeout & setInterval additional parameters fix
-var global = require('./_global');
-var $export = require('./_export');
-var userAgent = require('./_user-agent');
-var slice = [].slice;
-var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
-var wrap = function (set) {
- return function (fn, time /* , ...args */) {
- var boundArgs = arguments.length > 2;
- var args = boundArgs ? slice.call(arguments, 2) : false;
- return set(boundArgs ? function () {
- // eslint-disable-next-line no-new-func
- (typeof fn == 'function' ? fn : Function(fn)).apply(this, args);
- } : fn, time);
- };
-};
-$export($export.G + $export.B + $export.F * MSIE, {
- setTimeout: wrap(global.setTimeout),
- setInterval: wrap(global.setInterval)
-});
diff --git a/swh/web/static/jssources/core-js/web/index.js b/swh/web/static/jssources/core-js/web/index.js
deleted file mode 100644
index 66db256d..00000000
--- a/swh/web/static/jssources/core-js/web/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-require('../modules/web.timers');
-require('../modules/web.immediate');
-require('../modules/web.dom.iterable');
-module.exports = require('../modules/_core');
diff --git a/swh/web/static/jssources/d3-array/LICENSE.txt b/swh/web/static/jssources/d3-array/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-array/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-array/src/array.js b/swh/web/static/jssources/d3-array/src/array.js
deleted file mode 100644
index 80084030..00000000
--- a/swh/web/static/jssources/d3-array/src/array.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var array = Array.prototype;
-
-export var slice = array.slice;
-export var map = array.map;
diff --git a/swh/web/static/jssources/d3-array/src/ascending.js b/swh/web/static/jssources/d3-array/src/ascending.js
deleted file mode 100644
index 21a4b8f5..00000000
--- a/swh/web/static/jssources/d3-array/src/ascending.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(a, b) {
- return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
-}
diff --git a/swh/web/static/jssources/d3-array/src/bisect.js b/swh/web/static/jssources/d3-array/src/bisect.js
deleted file mode 100644
index a4be741e..00000000
--- a/swh/web/static/jssources/d3-array/src/bisect.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import ascending from "./ascending";
-import bisector from "./bisector";
-
-var ascendingBisect = bisector(ascending);
-export var bisectRight = ascendingBisect.right;
-export var bisectLeft = ascendingBisect.left;
-export default bisectRight;
diff --git a/swh/web/static/jssources/d3-array/src/bisector.js b/swh/web/static/jssources/d3-array/src/bisector.js
deleted file mode 100644
index bbab44af..00000000
--- a/swh/web/static/jssources/d3-array/src/bisector.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import ascending from "./ascending";
-
-export default function(compare) {
- if (compare.length === 1) compare = ascendingComparator(compare);
- return {
- left: function(a, x, lo, hi) {
- if (lo == null) lo = 0;
- if (hi == null) hi = a.length;
- while (lo < hi) {
- var mid = lo + hi >>> 1;
- if (compare(a[mid], x) < 0) lo = mid + 1;
- else hi = mid;
- }
- return lo;
- },
- right: function(a, x, lo, hi) {
- if (lo == null) lo = 0;
- if (hi == null) hi = a.length;
- while (lo < hi) {
- var mid = lo + hi >>> 1;
- if (compare(a[mid], x) > 0) hi = mid;
- else lo = mid + 1;
- }
- return lo;
- }
- };
-}
-
-function ascendingComparator(f) {
- return function(d, x) {
- return ascending(f(d), x);
- };
-}
diff --git a/swh/web/static/jssources/d3-array/src/constant.js b/swh/web/static/jssources/d3-array/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-array/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-array/src/cross.js b/swh/web/static/jssources/d3-array/src/cross.js
deleted file mode 100644
index 26d9b4c5..00000000
--- a/swh/web/static/jssources/d3-array/src/cross.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import {pair} from "./pairs";
-
-export default function(values0, values1, reduce) {
- var n0 = values0.length,
- n1 = values1.length,
- values = new Array(n0 * n1),
- i0,
- i1,
- i,
- value0;
-
- if (reduce == null) reduce = pair;
-
- for (i0 = i = 0; i0 < n0; ++i0) {
- for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {
- values[i] = reduce(value0, values1[i1]);
- }
- }
-
- return values;
-}
diff --git a/swh/web/static/jssources/d3-array/src/descending.js b/swh/web/static/jssources/d3-array/src/descending.js
deleted file mode 100644
index a4e2d7fb..00000000
--- a/swh/web/static/jssources/d3-array/src/descending.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(a, b) {
- return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
-}
diff --git a/swh/web/static/jssources/d3-array/src/deviation.js b/swh/web/static/jssources/d3-array/src/deviation.js
deleted file mode 100644
index 48e66186..00000000
--- a/swh/web/static/jssources/d3-array/src/deviation.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import variance from "./variance";
-
-export default function(array, f) {
- var v = variance(array, f);
- return v ? Math.sqrt(v) : v;
-}
diff --git a/swh/web/static/jssources/d3-array/src/extent.js b/swh/web/static/jssources/d3-array/src/extent.js
deleted file mode 100644
index 3650407d..00000000
--- a/swh/web/static/jssources/d3-array/src/extent.js
+++ /dev/null
@@ -1,37 +0,0 @@
-export default function(values, valueof) {
- var n = values.length,
- i = -1,
- value,
- min,
- max;
-
- if (valueof == null) {
- while (++i < n) { // Find the first comparable value.
- if ((value = values[i]) != null && value >= value) {
- min = max = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = values[i]) != null) {
- if (min > value) min = value;
- if (max < value) max = value;
- }
- }
- }
- }
- }
-
- else {
- while (++i < n) { // Find the first comparable value.
- if ((value = valueof(values[i], i, values)) != null && value >= value) {
- min = max = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = valueof(values[i], i, values)) != null) {
- if (min > value) min = value;
- if (max < value) max = value;
- }
- }
- }
- }
- }
-
- return [min, max];
-}
diff --git a/swh/web/static/jssources/d3-array/src/histogram.js b/swh/web/static/jssources/d3-array/src/histogram.js
deleted file mode 100644
index 8cb7f487..00000000
--- a/swh/web/static/jssources/d3-array/src/histogram.js
+++ /dev/null
@@ -1,75 +0,0 @@
-import {slice} from "./array";
-import bisect from "./bisect";
-import constant from "./constant";
-import extent from "./extent";
-import identity from "./identity";
-import range from "./range";
-import {tickStep} from "./ticks";
-import sturges from "./threshold/sturges";
-
-export default function() {
- var value = identity,
- domain = extent,
- threshold = sturges;
-
- function histogram(data) {
- var i,
- n = data.length,
- x,
- values = new Array(n);
-
- for (i = 0; i < n; ++i) {
- values[i] = value(data[i], i, data);
- }
-
- var xz = domain(values),
- x0 = xz[0],
- x1 = xz[1],
- tz = threshold(values, x0, x1);
-
- // Convert number of thresholds into uniform thresholds.
- if (!Array.isArray(tz)) {
- tz = tickStep(x0, x1, tz);
- tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
- }
-
- // Remove any thresholds outside the domain.
- var m = tz.length;
- while (tz[0] <= x0) tz.shift(), --m;
- while (tz[m - 1] > x1) tz.pop(), --m;
-
- var bins = new Array(m + 1),
- bin;
-
- // Initialize bins.
- for (i = 0; i <= m; ++i) {
- bin = bins[i] = [];
- bin.x0 = i > 0 ? tz[i - 1] : x0;
- bin.x1 = i < m ? tz[i] : x1;
- }
-
- // Assign data to bins by value, ignoring any outside the domain.
- for (i = 0; i < n; ++i) {
- x = values[i];
- if (x0 <= x && x <= x1) {
- bins[bisect(tz, x, 0, m)].push(data[i]);
- }
- }
-
- return bins;
- }
-
- histogram.value = function(_) {
- return arguments.length ? (value = typeof _ === "function" ? _ : constant(_), histogram) : value;
- };
-
- histogram.domain = function(_) {
- return arguments.length ? (domain = typeof _ === "function" ? _ : constant([_[0], _[1]]), histogram) : domain;
- };
-
- histogram.thresholds = function(_) {
- return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;
- };
-
- return histogram;
-}
diff --git a/swh/web/static/jssources/d3-array/src/identity.js b/swh/web/static/jssources/d3-array/src/identity.js
deleted file mode 100644
index b2f94b2e..00000000
--- a/swh/web/static/jssources/d3-array/src/identity.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return x;
-}
diff --git a/swh/web/static/jssources/d3-array/src/index.js b/swh/web/static/jssources/d3-array/src/index.js
deleted file mode 100644
index 1d2b3a75..00000000
--- a/swh/web/static/jssources/d3-array/src/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-export {default as bisect, bisectRight, bisectLeft} from "./bisect";
-export {default as ascending} from "./ascending";
-export {default as bisector} from "./bisector";
-export {default as cross} from "./cross";
-export {default as descending} from "./descending";
-export {default as deviation} from "./deviation";
-export {default as extent} from "./extent";
-export {default as histogram} from "./histogram";
-export {default as thresholdFreedmanDiaconis} from "./threshold/freedmanDiaconis";
-export {default as thresholdScott} from "./threshold/scott";
-export {default as thresholdSturges} from "./threshold/sturges";
-export {default as max} from "./max";
-export {default as mean} from "./mean";
-export {default as median} from "./median";
-export {default as merge} from "./merge";
-export {default as min} from "./min";
-export {default as pairs} from "./pairs";
-export {default as permute} from "./permute";
-export {default as quantile} from "./quantile";
-export {default as range} from "./range";
-export {default as scan} from "./scan";
-export {default as shuffle} from "./shuffle";
-export {default as sum} from "./sum";
-export {default as ticks, tickIncrement, tickStep} from "./ticks";
-export {default as transpose} from "./transpose";
-export {default as variance} from "./variance";
-export {default as zip} from "./zip";
diff --git a/swh/web/static/jssources/d3-array/src/max.js b/swh/web/static/jssources/d3-array/src/max.js
deleted file mode 100644
index db45a0f5..00000000
--- a/swh/web/static/jssources/d3-array/src/max.js
+++ /dev/null
@@ -1,34 +0,0 @@
-export default function(values, valueof) {
- var n = values.length,
- i = -1,
- value,
- max;
-
- if (valueof == null) {
- while (++i < n) { // Find the first comparable value.
- if ((value = values[i]) != null && value >= value) {
- max = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = values[i]) != null && value > max) {
- max = value;
- }
- }
- }
- }
- }
-
- else {
- while (++i < n) { // Find the first comparable value.
- if ((value = valueof(values[i], i, values)) != null && value >= value) {
- max = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = valueof(values[i], i, values)) != null && value > max) {
- max = value;
- }
- }
- }
- }
- }
-
- return max;
-}
diff --git a/swh/web/static/jssources/d3-array/src/mean.js b/swh/web/static/jssources/d3-array/src/mean.js
deleted file mode 100644
index de4b4bb7..00000000
--- a/swh/web/static/jssources/d3-array/src/mean.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import number from "./number";
-
-export default function(values, valueof) {
- var n = values.length,
- m = n,
- i = -1,
- value,
- sum = 0;
-
- if (valueof == null) {
- while (++i < n) {
- if (!isNaN(value = number(values[i]))) sum += value;
- else --m;
- }
- }
-
- else {
- while (++i < n) {
- if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;
- else --m;
- }
- }
-
- if (m) return sum / m;
-}
diff --git a/swh/web/static/jssources/d3-array/src/median.js b/swh/web/static/jssources/d3-array/src/median.js
deleted file mode 100644
index 75df4535..00000000
--- a/swh/web/static/jssources/d3-array/src/median.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import ascending from "./ascending";
-import number from "./number";
-import quantile from "./quantile";
-
-export default function(values, valueof) {
- var n = values.length,
- i = -1,
- value,
- numbers = [];
-
- if (valueof == null) {
- while (++i < n) {
- if (!isNaN(value = number(values[i]))) {
- numbers.push(value);
- }
- }
- }
-
- else {
- while (++i < n) {
- if (!isNaN(value = number(valueof(values[i], i, values)))) {
- numbers.push(value);
- }
- }
- }
-
- return quantile(numbers.sort(ascending), 0.5);
-}
diff --git a/swh/web/static/jssources/d3-array/src/merge.js b/swh/web/static/jssources/d3-array/src/merge.js
deleted file mode 100644
index d08221e0..00000000
--- a/swh/web/static/jssources/d3-array/src/merge.js
+++ /dev/null
@@ -1,21 +0,0 @@
-export default function(arrays) {
- var n = arrays.length,
- m,
- i = -1,
- j = 0,
- merged,
- array;
-
- while (++i < n) j += arrays[i].length;
- merged = new Array(j);
-
- while (--n >= 0) {
- array = arrays[n];
- m = array.length;
- while (--m >= 0) {
- merged[--j] = array[m];
- }
- }
-
- return merged;
-}
diff --git a/swh/web/static/jssources/d3-array/src/min.js b/swh/web/static/jssources/d3-array/src/min.js
deleted file mode 100644
index 8c0807ae..00000000
--- a/swh/web/static/jssources/d3-array/src/min.js
+++ /dev/null
@@ -1,34 +0,0 @@
-export default function(values, valueof) {
- var n = values.length,
- i = -1,
- value,
- min;
-
- if (valueof == null) {
- while (++i < n) { // Find the first comparable value.
- if ((value = values[i]) != null && value >= value) {
- min = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = values[i]) != null && min > value) {
- min = value;
- }
- }
- }
- }
- }
-
- else {
- while (++i < n) { // Find the first comparable value.
- if ((value = valueof(values[i], i, values)) != null && value >= value) {
- min = value;
- while (++i < n) { // Compare the remaining values.
- if ((value = valueof(values[i], i, values)) != null && min > value) {
- min = value;
- }
- }
- }
- }
- }
-
- return min;
-}
diff --git a/swh/web/static/jssources/d3-array/src/number.js b/swh/web/static/jssources/d3-array/src/number.js
deleted file mode 100644
index 37681896..00000000
--- a/swh/web/static/jssources/d3-array/src/number.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return x === null ? NaN : +x;
-}
diff --git a/swh/web/static/jssources/d3-array/src/pairs.js b/swh/web/static/jssources/d3-array/src/pairs.js
deleted file mode 100644
index 644dc23c..00000000
--- a/swh/web/static/jssources/d3-array/src/pairs.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export default function(array, f) {
- if (f == null) f = pair;
- var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);
- while (i < n) pairs[i] = f(p, p = array[++i]);
- return pairs;
-}
-
-export function pair(a, b) {
- return [a, b];
-}
diff --git a/swh/web/static/jssources/d3-array/src/permute.js b/swh/web/static/jssources/d3-array/src/permute.js
deleted file mode 100644
index cd19524a..00000000
--- a/swh/web/static/jssources/d3-array/src/permute.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(array, indexes) {
- var i = indexes.length, permutes = new Array(i);
- while (i--) permutes[i] = array[indexes[i]];
- return permutes;
-}
diff --git a/swh/web/static/jssources/d3-array/src/quantile.js b/swh/web/static/jssources/d3-array/src/quantile.js
deleted file mode 100644
index 889b7932..00000000
--- a/swh/web/static/jssources/d3-array/src/quantile.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import number from "./number";
-
-export default function(values, p, valueof) {
- if (valueof == null) valueof = number;
- if (!(n = values.length)) return;
- if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
- if (p >= 1) return +valueof(values[n - 1], n - 1, values);
- var n,
- i = (n - 1) * p,
- i0 = Math.floor(i),
- value0 = +valueof(values[i0], i0, values),
- value1 = +valueof(values[i0 + 1], i0 + 1, values);
- return value0 + (value1 - value0) * (i - i0);
-}
diff --git a/swh/web/static/jssources/d3-array/src/range.js b/swh/web/static/jssources/d3-array/src/range.js
deleted file mode 100644
index 59756015..00000000
--- a/swh/web/static/jssources/d3-array/src/range.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function(start, stop, step) {
- start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
-
- var i = -1,
- n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
- range = new Array(n);
-
- while (++i < n) {
- range[i] = start + i * step;
- }
-
- return range;
-}
diff --git a/swh/web/static/jssources/d3-array/src/scan.js b/swh/web/static/jssources/d3-array/src/scan.js
deleted file mode 100644
index 98115b22..00000000
--- a/swh/web/static/jssources/d3-array/src/scan.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import ascending from "./ascending";
-
-export default function(values, compare) {
- if (!(n = values.length)) return;
- var n,
- i = 0,
- j = 0,
- xi,
- xj = values[j];
-
- if (compare == null) compare = ascending;
-
- while (++i < n) {
- if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
- xj = xi, j = i;
- }
- }
-
- if (compare(xj, xj) === 0) return j;
-}
diff --git a/swh/web/static/jssources/d3-array/src/shuffle.js b/swh/web/static/jssources/d3-array/src/shuffle.js
deleted file mode 100644
index 02c66765..00000000
--- a/swh/web/static/jssources/d3-array/src/shuffle.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function(array, i0, i1) {
- var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),
- t,
- i;
-
- while (m) {
- i = Math.random() * m-- | 0;
- t = array[m + i0];
- array[m + i0] = array[i + i0];
- array[i + i0] = t;
- }
-
- return array;
-}
diff --git a/swh/web/static/jssources/d3-array/src/sum.js b/swh/web/static/jssources/d3-array/src/sum.js
deleted file mode 100644
index a9ce82b5..00000000
--- a/swh/web/static/jssources/d3-array/src/sum.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export default function(values, valueof) {
- var n = values.length,
- i = -1,
- value,
- sum = 0;
-
- if (valueof == null) {
- while (++i < n) {
- if (value = +values[i]) sum += value; // Note: zero and null are equivalent.
- }
- }
-
- else {
- while (++i < n) {
- if (value = +valueof(values[i], i, values)) sum += value;
- }
- }
-
- return sum;
-}
diff --git a/swh/web/static/jssources/d3-array/src/threshold/freedmanDiaconis.js b/swh/web/static/jssources/d3-array/src/threshold/freedmanDiaconis.js
deleted file mode 100644
index 8cc07fb8..00000000
--- a/swh/web/static/jssources/d3-array/src/threshold/freedmanDiaconis.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import {map} from "../array";
-import ascending from "../ascending";
-import number from "../number";
-import quantile from "../quantile";
-
-export default function(values, min, max) {
- values = map.call(values, number).sort(ascending);
- return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));
-}
diff --git a/swh/web/static/jssources/d3-array/src/threshold/scott.js b/swh/web/static/jssources/d3-array/src/threshold/scott.js
deleted file mode 100644
index dc6e0b7d..00000000
--- a/swh/web/static/jssources/d3-array/src/threshold/scott.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import deviation from "../deviation";
-
-export default function(values, min, max) {
- return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));
-}
diff --git a/swh/web/static/jssources/d3-array/src/threshold/sturges.js b/swh/web/static/jssources/d3-array/src/threshold/sturges.js
deleted file mode 100644
index 28ac9bd1..00000000
--- a/swh/web/static/jssources/d3-array/src/threshold/sturges.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(values) {
- return Math.ceil(Math.log(values.length) / Math.LN2) + 1;
-}
diff --git a/swh/web/static/jssources/d3-array/src/ticks.js b/swh/web/static/jssources/d3-array/src/ticks.js
deleted file mode 100644
index e9553fe5..00000000
--- a/swh/web/static/jssources/d3-array/src/ticks.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var e10 = Math.sqrt(50),
- e5 = Math.sqrt(10),
- e2 = Math.sqrt(2);
-
-export default function(start, stop, count) {
- var reverse,
- i = -1,
- n,
- ticks,
- step;
-
- stop = +stop, start = +start, count = +count;
- if (start === stop && count > 0) return [start];
- if (reverse = stop < start) n = start, start = stop, stop = n;
- if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
-
- if (step > 0) {
- start = Math.ceil(start / step);
- stop = Math.floor(stop / step);
- ticks = new Array(n = Math.ceil(stop - start + 1));
- while (++i < n) ticks[i] = (start + i) * step;
- } else {
- start = Math.floor(start * step);
- stop = Math.ceil(stop * step);
- ticks = new Array(n = Math.ceil(start - stop + 1));
- while (++i < n) ticks[i] = (start - i) / step;
- }
-
- if (reverse) ticks.reverse();
-
- return ticks;
-}
-
-export function tickIncrement(start, stop, count) {
- var step = (stop - start) / Math.max(0, count),
- power = Math.floor(Math.log(step) / Math.LN10),
- error = step / Math.pow(10, power);
- return power >= 0
- ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
- : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
-}
-
-export function tickStep(start, stop, count) {
- var step0 = Math.abs(stop - start) / Math.max(0, count),
- step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
- error = step0 / step1;
- if (error >= e10) step1 *= 10;
- else if (error >= e5) step1 *= 5;
- else if (error >= e2) step1 *= 2;
- return stop < start ? -step1 : step1;
-}
diff --git a/swh/web/static/jssources/d3-array/src/transpose.js b/swh/web/static/jssources/d3-array/src/transpose.js
deleted file mode 100644
index a2eb406c..00000000
--- a/swh/web/static/jssources/d3-array/src/transpose.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import min from "./min";
-
-export default function(matrix) {
- if (!(n = matrix.length)) return [];
- for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {
- for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {
- row[j] = matrix[j][i];
- }
- }
- return transpose;
-}
-
-function length(d) {
- return d.length;
-}
diff --git a/swh/web/static/jssources/d3-array/src/variance.js b/swh/web/static/jssources/d3-array/src/variance.js
deleted file mode 100644
index 09da08ed..00000000
--- a/swh/web/static/jssources/d3-array/src/variance.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import number from "./number";
-
-export default function(values, valueof) {
- var n = values.length,
- m = 0,
- i = -1,
- mean = 0,
- value,
- delta,
- sum = 0;
-
- if (valueof == null) {
- while (++i < n) {
- if (!isNaN(value = number(values[i]))) {
- delta = value - mean;
- mean += delta / ++m;
- sum += delta * (value - mean);
- }
- }
- }
-
- else {
- while (++i < n) {
- if (!isNaN(value = number(valueof(values[i], i, values)))) {
- delta = value - mean;
- mean += delta / ++m;
- sum += delta * (value - mean);
- }
- }
- }
-
- if (m > 1) return sum / (m - 1);
-}
diff --git a/swh/web/static/jssources/d3-array/src/zip.js b/swh/web/static/jssources/d3-array/src/zip.js
deleted file mode 100644
index e9a8898b..00000000
--- a/swh/web/static/jssources/d3-array/src/zip.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import transpose from "./transpose";
-
-export default function() {
- return transpose(arguments);
-}
diff --git a/swh/web/static/jssources/d3-axis/LICENSE.txt b/swh/web/static/jssources/d3-axis/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-axis/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-axis/src/array.js b/swh/web/static/jssources/d3-axis/src/array.js
deleted file mode 100644
index 8eeac161..00000000
--- a/swh/web/static/jssources/d3-axis/src/array.js
+++ /dev/null
@@ -1 +0,0 @@
-export var slice = Array.prototype.slice;
diff --git a/swh/web/static/jssources/d3-axis/src/axis.js b/swh/web/static/jssources/d3-axis/src/axis.js
deleted file mode 100644
index e12283f6..00000000
--- a/swh/web/static/jssources/d3-axis/src/axis.js
+++ /dev/null
@@ -1,174 +0,0 @@
-import {slice} from "./array";
-import identity from "./identity";
-
-var top = 1,
- right = 2,
- bottom = 3,
- left = 4,
- epsilon = 1e-6;
-
-function translateX(x) {
- return "translate(" + (x + 0.5) + ",0)";
-}
-
-function translateY(y) {
- return "translate(0," + (y + 0.5) + ")";
-}
-
-function number(scale) {
- return function(d) {
- return +scale(d);
- };
-}
-
-function center(scale) {
- var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.
- if (scale.round()) offset = Math.round(offset);
- return function(d) {
- return +scale(d) + offset;
- };
-}
-
-function entering() {
- return !this.__axis;
-}
-
-function axis(orient, scale) {
- var tickArguments = [],
- tickValues = null,
- tickFormat = null,
- tickSizeInner = 6,
- tickSizeOuter = 6,
- tickPadding = 3,
- k = orient === top || orient === left ? -1 : 1,
- x = orient === left || orient === right ? "x" : "y",
- transform = orient === top || orient === bottom ? translateX : translateY;
-
- function axis(context) {
- var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
- format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,
- spacing = Math.max(tickSizeInner, 0) + tickPadding,
- range = scale.range(),
- range0 = +range[0] + 0.5,
- range1 = +range[range.length - 1] + 0.5,
- position = (scale.bandwidth ? center : number)(scale.copy()),
- selection = context.selection ? context.selection() : context,
- path = selection.selectAll(".domain").data([null]),
- tick = selection.selectAll(".tick").data(values, scale).order(),
- tickExit = tick.exit(),
- tickEnter = tick.enter().append("g").attr("class", "tick"),
- line = tick.select("line"),
- text = tick.select("text");
-
- path = path.merge(path.enter().insert("path", ".tick")
- .attr("class", "domain")
- .attr("stroke", "currentColor"));
-
- tick = tick.merge(tickEnter);
-
- line = line.merge(tickEnter.append("line")
- .attr("stroke", "currentColor")
- .attr(x + "2", k * tickSizeInner));
-
- text = text.merge(tickEnter.append("text")
- .attr("fill", "currentColor")
- .attr(x, k * spacing)
- .attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
-
- if (context !== selection) {
- path = path.transition(context);
- tick = tick.transition(context);
- line = line.transition(context);
- text = text.transition(context);
-
- tickExit = tickExit.transition(context)
- .attr("opacity", epsilon)
- .attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute("transform"); });
-
- tickEnter
- .attr("opacity", epsilon)
- .attr("transform", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });
- }
-
- tickExit.remove();
-
- path
- .attr("d", orient === left || orient == right
- ? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1)
- : (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1));
-
- tick
- .attr("opacity", 1)
- .attr("transform", function(d) { return transform(position(d)); });
-
- line
- .attr(x + "2", k * tickSizeInner);
-
- text
- .attr(x, k * spacing)
- .text(format);
-
- selection.filter(entering)
- .attr("fill", "none")
- .attr("font-size", 10)
- .attr("font-family", "sans-serif")
- .attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
-
- selection
- .each(function() { this.__axis = position; });
- }
-
- axis.scale = function(_) {
- return arguments.length ? (scale = _, axis) : scale;
- };
-
- axis.ticks = function() {
- return tickArguments = slice.call(arguments), axis;
- };
-
- axis.tickArguments = function(_) {
- return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();
- };
-
- axis.tickValues = function(_) {
- return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();
- };
-
- axis.tickFormat = function(_) {
- return arguments.length ? (tickFormat = _, axis) : tickFormat;
- };
-
- axis.tickSize = function(_) {
- return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
- };
-
- axis.tickSizeInner = function(_) {
- return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
- };
-
- axis.tickSizeOuter = function(_) {
- return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
- };
-
- axis.tickPadding = function(_) {
- return arguments.length ? (tickPadding = +_, axis) : tickPadding;
- };
-
- return axis;
-}
-
-export function axisTop(scale) {
- return axis(top, scale);
-}
-
-export function axisRight(scale) {
- return axis(right, scale);
-}
-
-export function axisBottom(scale) {
- return axis(bottom, scale);
-}
-
-export function axisLeft(scale) {
- return axis(left, scale);
-}
diff --git a/swh/web/static/jssources/d3-axis/src/identity.js b/swh/web/static/jssources/d3-axis/src/identity.js
deleted file mode 100644
index b2f94b2e..00000000
--- a/swh/web/static/jssources/d3-axis/src/identity.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return x;
-}
diff --git a/swh/web/static/jssources/d3-axis/src/index.js b/swh/web/static/jssources/d3-axis/src/index.js
deleted file mode 100644
index df2183de..00000000
--- a/swh/web/static/jssources/d3-axis/src/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export {
- axisTop,
- axisRight,
- axisBottom,
- axisLeft
-} from "./axis";
diff --git a/swh/web/static/jssources/d3-brush/LICENSE.txt b/swh/web/static/jssources/d3-brush/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-brush/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-brush/src/brush.js b/swh/web/static/jssources/d3-brush/src/brush.js
deleted file mode 100644
index 4bf8fe44..00000000
--- a/swh/web/static/jssources/d3-brush/src/brush.js
+++ /dev/null
@@ -1,539 +0,0 @@
-import {dispatch} from "d3-dispatch";
-import {dragDisable, dragEnable} from "d3-drag";
-import {interpolate} from "d3-interpolate";
-import {customEvent, event, mouse, select} from "d3-selection";
-import {interrupt} from "d3-transition";
-import constant from "./constant";
-import BrushEvent from "./event";
-import noevent, {nopropagation} from "./noevent";
-
-var MODE_DRAG = {name: "drag"},
- MODE_SPACE = {name: "space"},
- MODE_HANDLE = {name: "handle"},
- MODE_CENTER = {name: "center"};
-
-var X = {
- name: "x",
- handles: ["e", "w"].map(type),
- input: function(x, e) { return x && [[x[0], e[0][1]], [x[1], e[1][1]]]; },
- output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }
-};
-
-var Y = {
- name: "y",
- handles: ["n", "s"].map(type),
- input: function(y, e) { return y && [[e[0][0], y[0]], [e[1][0], y[1]]]; },
- output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }
-};
-
-var XY = {
- name: "xy",
- handles: ["n", "e", "s", "w", "nw", "ne", "se", "sw"].map(type),
- input: function(xy) { return xy; },
- output: function(xy) { return xy; }
-};
-
-var cursors = {
- overlay: "crosshair",
- selection: "move",
- n: "ns-resize",
- e: "ew-resize",
- s: "ns-resize",
- w: "ew-resize",
- nw: "nwse-resize",
- ne: "nesw-resize",
- se: "nwse-resize",
- sw: "nesw-resize"
-};
-
-var flipX = {
- e: "w",
- w: "e",
- nw: "ne",
- ne: "nw",
- se: "sw",
- sw: "se"
-};
-
-var flipY = {
- n: "s",
- s: "n",
- nw: "sw",
- ne: "se",
- se: "ne",
- sw: "nw"
-};
-
-var signsX = {
- overlay: +1,
- selection: +1,
- n: null,
- e: +1,
- s: null,
- w: -1,
- nw: -1,
- ne: +1,
- se: +1,
- sw: -1
-};
-
-var signsY = {
- overlay: +1,
- selection: +1,
- n: -1,
- e: null,
- s: +1,
- w: null,
- nw: -1,
- ne: -1,
- se: +1,
- sw: +1
-};
-
-function type(t) {
- return {type: t};
-}
-
-// Ignore right-click, since that should open the context menu.
-function defaultFilter() {
- return !event.button;
-}
-
-function defaultExtent() {
- var svg = this.ownerSVGElement || this;
- return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];
-}
-
-// Like d3.local, but with the name “__brush” rather than auto-generated.
-function local(node) {
- while (!node.__brush) if (!(node = node.parentNode)) return;
- return node.__brush;
-}
-
-function empty(extent) {
- return extent[0][0] === extent[1][0]
- || extent[0][1] === extent[1][1];
-}
-
-export function brushSelection(node) {
- var state = node.__brush;
- return state ? state.dim.output(state.selection) : null;
-}
-
-export function brushX() {
- return brush(X);
-}
-
-export function brushY() {
- return brush(Y);
-}
-
-export default function() {
- return brush(XY);
-}
-
-function brush(dim) {
- var extent = defaultExtent,
- filter = defaultFilter,
- listeners = dispatch(brush, "start", "brush", "end"),
- handleSize = 6,
- touchending;
-
- function brush(group) {
- var overlay = group
- .property("__brush", initialize)
- .selectAll(".overlay")
- .data([type("overlay")]);
-
- overlay.enter().append("rect")
- .attr("class", "overlay")
- .attr("pointer-events", "all")
- .attr("cursor", cursors.overlay)
- .merge(overlay)
- .each(function() {
- var extent = local(this).extent;
- select(this)
- .attr("x", extent[0][0])
- .attr("y", extent[0][1])
- .attr("width", extent[1][0] - extent[0][0])
- .attr("height", extent[1][1] - extent[0][1]);
- });
-
- group.selectAll(".selection")
- .data([type("selection")])
- .enter().append("rect")
- .attr("class", "selection")
- .attr("cursor", cursors.selection)
- .attr("fill", "#777")
- .attr("fill-opacity", 0.3)
- .attr("stroke", "#fff")
- .attr("shape-rendering", "crispEdges");
-
- var handle = group.selectAll(".handle")
- .data(dim.handles, function(d) { return d.type; });
-
- handle.exit().remove();
-
- handle.enter().append("rect")
- .attr("class", function(d) { return "handle handle--" + d.type; })
- .attr("cursor", function(d) { return cursors[d.type]; });
-
- group
- .each(redraw)
- .attr("fill", "none")
- .attr("pointer-events", "all")
- .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)")
- .on("mousedown.brush touchstart.brush", started);
- }
-
- brush.move = function(group, selection) {
- if (group.selection) {
- group
- .on("start.brush", function() { emitter(this, arguments).beforestart().start(); })
- .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); })
- .tween("brush", function() {
- var that = this,
- state = that.__brush,
- emit = emitter(that, arguments),
- selection0 = state.selection,
- selection1 = dim.input(typeof selection === "function" ? selection.apply(this, arguments) : selection, state.extent),
- i = interpolate(selection0, selection1);
-
- function tween(t) {
- state.selection = t === 1 && empty(selection1) ? null : i(t);
- redraw.call(that);
- emit.brush();
- }
-
- return selection0 && selection1 ? tween : tween(1);
- });
- } else {
- group
- .each(function() {
- var that = this,
- args = arguments,
- state = that.__brush,
- selection1 = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent),
- emit = emitter(that, args).beforestart();
-
- interrupt(that);
- state.selection = selection1 == null || empty(selection1) ? null : selection1;
- redraw.call(that);
- emit.start().brush().end();
- });
- }
- };
-
- function redraw() {
- var group = select(this),
- selection = local(this).selection;
-
- if (selection) {
- group.selectAll(".selection")
- .style("display", null)
- .attr("x", selection[0][0])
- .attr("y", selection[0][1])
- .attr("width", selection[1][0] - selection[0][0])
- .attr("height", selection[1][1] - selection[0][1]);
-
- group.selectAll(".handle")
- .style("display", null)
- .attr("x", function(d) { return d.type[d.type.length - 1] === "e" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })
- .attr("y", function(d) { return d.type[0] === "s" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })
- .attr("width", function(d) { return d.type === "n" || d.type === "s" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })
- .attr("height", function(d) { return d.type === "e" || d.type === "w" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });
- }
-
- else {
- group.selectAll(".selection,.handle")
- .style("display", "none")
- .attr("x", null)
- .attr("y", null)
- .attr("width", null)
- .attr("height", null);
- }
- }
-
- function emitter(that, args) {
- return that.__brush.emitter || new Emitter(that, args);
- }
-
- function Emitter(that, args) {
- this.that = that;
- this.args = args;
- this.state = that.__brush;
- this.active = 0;
- }
-
- Emitter.prototype = {
- beforestart: function() {
- if (++this.active === 1) this.state.emitter = this, this.starting = true;
- return this;
- },
- start: function() {
- if (this.starting) this.starting = false, this.emit("start");
- return this;
- },
- brush: function() {
- this.emit("brush");
- return this;
- },
- end: function() {
- if (--this.active === 0) delete this.state.emitter, this.emit("end");
- return this;
- },
- emit: function(type) {
- customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);
- }
- };
-
- function started() {
- if (event.touches) { if (event.changedTouches.length < event.touches.length) return noevent(); }
- else if (touchending) return;
- if (!filter.apply(this, arguments)) return;
-
- var that = this,
- type = event.target.__data__.type,
- mode = (event.metaKey ? type = "overlay" : type) === "selection" ? MODE_DRAG : (event.altKey ? MODE_CENTER : MODE_HANDLE),
- signX = dim === Y ? null : signsX[type],
- signY = dim === X ? null : signsY[type],
- state = local(that),
- extent = state.extent,
- selection = state.selection,
- W = extent[0][0], w0, w1,
- N = extent[0][1], n0, n1,
- E = extent[1][0], e0, e1,
- S = extent[1][1], s0, s1,
- dx,
- dy,
- moving,
- shifting = signX && signY && event.shiftKey,
- lockX,
- lockY,
- point0 = mouse(that),
- point = point0,
- emit = emitter(that, arguments).beforestart();
-
- if (type === "overlay") {
- state.selection = selection = [
- [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],
- [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]
- ];
- } else {
- w0 = selection[0][0];
- n0 = selection[0][1];
- e0 = selection[1][0];
- s0 = selection[1][1];
- }
-
- w1 = w0;
- n1 = n0;
- e1 = e0;
- s1 = s0;
-
- var group = select(that)
- .attr("pointer-events", "none");
-
- var overlay = group.selectAll(".overlay")
- .attr("cursor", cursors[type]);
-
- if (event.touches) {
- group
- .on("touchmove.brush", moved, true)
- .on("touchend.brush touchcancel.brush", ended, true);
- } else {
- var view = select(event.view)
- .on("keydown.brush", keydowned, true)
- .on("keyup.brush", keyupped, true)
- .on("mousemove.brush", moved, true)
- .on("mouseup.brush", ended, true);
-
- dragDisable(event.view);
- }
-
- nopropagation();
- interrupt(that);
- redraw.call(that);
- emit.start();
-
- function moved() {
- var point1 = mouse(that);
- if (shifting && !lockX && !lockY) {
- if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;
- else lockX = true;
- }
- point = point1;
- moving = true;
- noevent();
- move();
- }
-
- function move() {
- var t;
-
- dx = point[0] - point0[0];
- dy = point[1] - point0[1];
-
- switch (mode) {
- case MODE_SPACE:
- case MODE_DRAG: {
- if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;
- if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;
- break;
- }
- case MODE_HANDLE: {
- if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;
- else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;
- if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;
- else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;
- break;
- }
- case MODE_CENTER: {
- if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));
- if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));
- break;
- }
- }
-
- if (e1 < w1) {
- signX *= -1;
- t = w0, w0 = e0, e0 = t;
- t = w1, w1 = e1, e1 = t;
- if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]);
- }
-
- if (s1 < n1) {
- signY *= -1;
- t = n0, n0 = s0, s0 = t;
- t = n1, n1 = s1, s1 = t;
- if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]);
- }
-
- if (state.selection) selection = state.selection; // May be set by brush.move!
- if (lockX) w1 = selection[0][0], e1 = selection[1][0];
- if (lockY) n1 = selection[0][1], s1 = selection[1][1];
-
- if (selection[0][0] !== w1
- || selection[0][1] !== n1
- || selection[1][0] !== e1
- || selection[1][1] !== s1) {
- state.selection = [[w1, n1], [e1, s1]];
- redraw.call(that);
- emit.brush();
- }
- }
-
- function ended() {
- nopropagation();
- if (event.touches) {
- if (event.touches.length) return;
- if (touchending) clearTimeout(touchending);
- touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
- group.on("touchmove.brush touchend.brush touchcancel.brush", null);
- } else {
- dragEnable(event.view, moving);
- view.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
- }
- group.attr("pointer-events", "all");
- overlay.attr("cursor", cursors.overlay);
- if (state.selection) selection = state.selection; // May be set by brush.move (on start)!
- if (empty(selection)) state.selection = null, redraw.call(that);
- emit.end();
- }
-
- function keydowned() {
- switch (event.keyCode) {
- case 16: { // SHIFT
- shifting = signX && signY;
- break;
- }
- case 18: { // ALT
- if (mode === MODE_HANDLE) {
- if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
- if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
- mode = MODE_CENTER;
- move();
- }
- break;
- }
- case 32: { // SPACE; takes priority over ALT
- if (mode === MODE_HANDLE || mode === MODE_CENTER) {
- if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;
- if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;
- mode = MODE_SPACE;
- overlay.attr("cursor", cursors.selection);
- move();
- }
- break;
- }
- default: return;
- }
- noevent();
- }
-
- function keyupped() {
- switch (event.keyCode) {
- case 16: { // SHIFT
- if (shifting) {
- lockX = lockY = shifting = false;
- move();
- }
- break;
- }
- case 18: { // ALT
- if (mode === MODE_CENTER) {
- if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
- if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
- mode = MODE_HANDLE;
- move();
- }
- break;
- }
- case 32: { // SPACE
- if (mode === MODE_SPACE) {
- if (event.altKey) {
- if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
- if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
- mode = MODE_CENTER;
- } else {
- if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
- if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
- mode = MODE_HANDLE;
- }
- overlay.attr("cursor", cursors[type]);
- move();
- }
- break;
- }
- default: return;
- }
- noevent();
- }
- }
-
- function initialize() {
- var state = this.__brush || {selection: null};
- state.extent = extent.apply(this, arguments);
- state.dim = dim;
- return state;
- }
-
- brush.extent = function(_) {
- return arguments.length ? (extent = typeof _ === "function" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), brush) : extent;
- };
-
- brush.filter = function(_) {
- return arguments.length ? (filter = typeof _ === "function" ? _ : constant(!!_), brush) : filter;
- };
-
- brush.handleSize = function(_) {
- return arguments.length ? (handleSize = +_, brush) : handleSize;
- };
-
- brush.on = function() {
- var value = listeners.on.apply(listeners, arguments);
- return value === listeners ? brush : value;
- };
-
- return brush;
-}
diff --git a/swh/web/static/jssources/d3-brush/src/constant.js b/swh/web/static/jssources/d3-brush/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-brush/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-brush/src/event.js b/swh/web/static/jssources/d3-brush/src/event.js
deleted file mode 100644
index d7ec78db..00000000
--- a/swh/web/static/jssources/d3-brush/src/event.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(target, type, selection) {
- this.target = target;
- this.type = type;
- this.selection = selection;
-}
diff --git a/swh/web/static/jssources/d3-brush/src/index.js b/swh/web/static/jssources/d3-brush/src/index.js
deleted file mode 100644
index b0c4d2c2..00000000
--- a/swh/web/static/jssources/d3-brush/src/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export {
- default as brush,
- brushX,
- brushY,
- brushSelection
-} from "./brush";
diff --git a/swh/web/static/jssources/d3-brush/src/noevent.js b/swh/web/static/jssources/d3-brush/src/noevent.js
deleted file mode 100644
index ed25745b..00000000
--- a/swh/web/static/jssources/d3-brush/src/noevent.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import {event} from "d3-selection";
-
-export function nopropagation() {
- event.stopImmediatePropagation();
-}
-
-export default function() {
- event.preventDefault();
- event.stopImmediatePropagation();
-}
diff --git a/swh/web/static/jssources/d3-chord/LICENSE.txt b/swh/web/static/jssources/d3-chord/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-chord/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-chord/src/array.js b/swh/web/static/jssources/d3-chord/src/array.js
deleted file mode 100644
index 8eeac161..00000000
--- a/swh/web/static/jssources/d3-chord/src/array.js
+++ /dev/null
@@ -1 +0,0 @@
-export var slice = Array.prototype.slice;
diff --git a/swh/web/static/jssources/d3-chord/src/chord.js b/swh/web/static/jssources/d3-chord/src/chord.js
deleted file mode 100644
index 468ab4f9..00000000
--- a/swh/web/static/jssources/d3-chord/src/chord.js
+++ /dev/null
@@ -1,121 +0,0 @@
-import {range} from "d3-array";
-import {max, tau} from "./math";
-
-function compareValue(compare) {
- return function(a, b) {
- return compare(
- a.source.value + a.target.value,
- b.source.value + b.target.value
- );
- };
-}
-
-export default function() {
- var padAngle = 0,
- sortGroups = null,
- sortSubgroups = null,
- sortChords = null;
-
- function chord(matrix) {
- var n = matrix.length,
- groupSums = [],
- groupIndex = range(n),
- subgroupIndex = [],
- chords = [],
- groups = chords.groups = new Array(n),
- subgroups = new Array(n * n),
- k,
- x,
- x0,
- dx,
- i,
- j;
-
- // Compute the sum.
- k = 0, i = -1; while (++i < n) {
- x = 0, j = -1; while (++j < n) {
- x += matrix[i][j];
- }
- groupSums.push(x);
- subgroupIndex.push(range(n));
- k += x;
- }
-
- // Sort groups…
- if (sortGroups) groupIndex.sort(function(a, b) {
- return sortGroups(groupSums[a], groupSums[b]);
- });
-
- // Sort subgroups…
- if (sortSubgroups) subgroupIndex.forEach(function(d, i) {
- d.sort(function(a, b) {
- return sortSubgroups(matrix[i][a], matrix[i][b]);
- });
- });
-
- // Convert the sum to scaling factor for [0, 2pi].
- // TODO Allow start and end angle to be specified?
- // TODO Allow padding to be specified as percentage?
- k = max(0, tau - padAngle * n) / k;
- dx = k ? padAngle : tau / n;
-
- // Compute the start and end angle for each group and subgroup.
- // Note: Opera has a bug reordering object literal properties!
- x = 0, i = -1; while (++i < n) {
- x0 = x, j = -1; while (++j < n) {
- var di = groupIndex[i],
- dj = subgroupIndex[di][j],
- v = matrix[di][dj],
- a0 = x,
- a1 = x += v * k;
- subgroups[dj * n + di] = {
- index: di,
- subindex: dj,
- startAngle: a0,
- endAngle: a1,
- value: v
- };
- }
- groups[di] = {
- index: di,
- startAngle: x0,
- endAngle: x,
- value: groupSums[di]
- };
- x += dx;
- }
-
- // Generate chords for each (non-empty) subgroup-subgroup link.
- i = -1; while (++i < n) {
- j = i - 1; while (++j < n) {
- var source = subgroups[j * n + i],
- target = subgroups[i * n + j];
- if (source.value || target.value) {
- chords.push(source.value < target.value
- ? {source: target, target: source}
- : {source: source, target: target});
- }
- }
- }
-
- return sortChords ? chords.sort(sortChords) : chords;
- }
-
- chord.padAngle = function(_) {
- return arguments.length ? (padAngle = max(0, _), chord) : padAngle;
- };
-
- chord.sortGroups = function(_) {
- return arguments.length ? (sortGroups = _, chord) : sortGroups;
- };
-
- chord.sortSubgroups = function(_) {
- return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;
- };
-
- chord.sortChords = function(_) {
- return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;
- };
-
- return chord;
-}
diff --git a/swh/web/static/jssources/d3-chord/src/constant.js b/swh/web/static/jssources/d3-chord/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-chord/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-chord/src/index.js b/swh/web/static/jssources/d3-chord/src/index.js
deleted file mode 100644
index 9b2d4323..00000000
--- a/swh/web/static/jssources/d3-chord/src/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export {default as chord} from "./chord";
-export {default as ribbon} from "./ribbon";
diff --git a/swh/web/static/jssources/d3-chord/src/math.js b/swh/web/static/jssources/d3-chord/src/math.js
deleted file mode 100644
index 2293edfe..00000000
--- a/swh/web/static/jssources/d3-chord/src/math.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export var cos = Math.cos;
-export var sin = Math.sin;
-export var pi = Math.PI;
-export var halfPi = pi / 2;
-export var tau = pi * 2;
-export var max = Math.max;
diff --git a/swh/web/static/jssources/d3-chord/src/ribbon.js b/swh/web/static/jssources/d3-chord/src/ribbon.js
deleted file mode 100644
index 671386e6..00000000
--- a/swh/web/static/jssources/d3-chord/src/ribbon.js
+++ /dev/null
@@ -1,87 +0,0 @@
-import {slice} from "./array";
-import constant from "./constant";
-import {cos, halfPi, sin} from "./math";
-import {path} from "d3-path";
-
-function defaultSource(d) {
- return d.source;
-}
-
-function defaultTarget(d) {
- return d.target;
-}
-
-function defaultRadius(d) {
- return d.radius;
-}
-
-function defaultStartAngle(d) {
- return d.startAngle;
-}
-
-function defaultEndAngle(d) {
- return d.endAngle;
-}
-
-export default function() {
- var source = defaultSource,
- target = defaultTarget,
- radius = defaultRadius,
- startAngle = defaultStartAngle,
- endAngle = defaultEndAngle,
- context = null;
-
- function ribbon() {
- var buffer,
- argv = slice.call(arguments),
- s = source.apply(this, argv),
- t = target.apply(this, argv),
- sr = +radius.apply(this, (argv[0] = s, argv)),
- sa0 = startAngle.apply(this, argv) - halfPi,
- sa1 = endAngle.apply(this, argv) - halfPi,
- sx0 = sr * cos(sa0),
- sy0 = sr * sin(sa0),
- tr = +radius.apply(this, (argv[0] = t, argv)),
- ta0 = startAngle.apply(this, argv) - halfPi,
- ta1 = endAngle.apply(this, argv) - halfPi;
-
- if (!context) context = buffer = path();
-
- context.moveTo(sx0, sy0);
- context.arc(0, 0, sr, sa0, sa1);
- if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?
- context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));
- context.arc(0, 0, tr, ta0, ta1);
- }
- context.quadraticCurveTo(0, 0, sx0, sy0);
- context.closePath();
-
- if (buffer) return context = null, buffer + "" || null;
- }
-
- ribbon.radius = function(_) {
- return arguments.length ? (radius = typeof _ === "function" ? _ : constant(+_), ribbon) : radius;
- };
-
- ribbon.startAngle = function(_) {
- return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), ribbon) : startAngle;
- };
-
- ribbon.endAngle = function(_) {
- return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), ribbon) : endAngle;
- };
-
- ribbon.source = function(_) {
- return arguments.length ? (source = _, ribbon) : source;
- };
-
- ribbon.target = function(_) {
- return arguments.length ? (target = _, ribbon) : target;
- };
-
- ribbon.context = function(_) {
- return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;
- };
-
- return ribbon;
-}
diff --git a/swh/web/static/jssources/d3-collection/LICENSE.txt b/swh/web/static/jssources/d3-collection/LICENSE.txt
deleted file mode 100644
index 12e3727d..00000000
--- a/swh/web/static/jssources/d3-collection/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016, Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-collection/src/entries.js b/swh/web/static/jssources/d3-collection/src/entries.js
deleted file mode 100644
index 03d5ee6f..00000000
--- a/swh/web/static/jssources/d3-collection/src/entries.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(map) {
- var entries = [];
- for (var key in map) entries.push({key: key, value: map[key]});
- return entries;
-}
diff --git a/swh/web/static/jssources/d3-collection/src/index.js b/swh/web/static/jssources/d3-collection/src/index.js
deleted file mode 100644
index d454e730..00000000
--- a/swh/web/static/jssources/d3-collection/src/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export {default as nest} from "./nest";
-export {default as set} from "./set";
-export {default as map} from "./map";
-export {default as keys} from "./keys";
-export {default as values} from "./values";
-export {default as entries} from "./entries";
diff --git a/swh/web/static/jssources/d3-collection/src/keys.js b/swh/web/static/jssources/d3-collection/src/keys.js
deleted file mode 100644
index 1206f615..00000000
--- a/swh/web/static/jssources/d3-collection/src/keys.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(map) {
- var keys = [];
- for (var key in map) keys.push(key);
- return keys;
-}
diff --git a/swh/web/static/jssources/d3-collection/src/map.js b/swh/web/static/jssources/d3-collection/src/map.js
deleted file mode 100644
index 6459e573..00000000
--- a/swh/web/static/jssources/d3-collection/src/map.js
+++ /dev/null
@@ -1,75 +0,0 @@
-export var prefix = "$";
-
-function Map() {}
-
-Map.prototype = map.prototype = {
- constructor: Map,
- has: function(key) {
- return (prefix + key) in this;
- },
- get: function(key) {
- return this[prefix + key];
- },
- set: function(key, value) {
- this[prefix + key] = value;
- return this;
- },
- remove: function(key) {
- var property = prefix + key;
- return property in this && delete this[property];
- },
- clear: function() {
- for (var property in this) if (property[0] === prefix) delete this[property];
- },
- keys: function() {
- var keys = [];
- for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));
- return keys;
- },
- values: function() {
- var values = [];
- for (var property in this) if (property[0] === prefix) values.push(this[property]);
- return values;
- },
- entries: function() {
- var entries = [];
- for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});
- return entries;
- },
- size: function() {
- var size = 0;
- for (var property in this) if (property[0] === prefix) ++size;
- return size;
- },
- empty: function() {
- for (var property in this) if (property[0] === prefix) return false;
- return true;
- },
- each: function(f) {
- for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);
- }
-};
-
-function map(object, f) {
- var map = new Map;
-
- // Copy constructor.
- if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });
-
- // Index array by numeric index or specified key function.
- else if (Array.isArray(object)) {
- var i = -1,
- n = object.length,
- o;
-
- if (f == null) while (++i < n) map.set(i, object[i]);
- else while (++i < n) map.set(f(o = object[i], i, object), o);
- }
-
- // Convert object to map.
- else if (object) for (var key in object) map.set(key, object[key]);
-
- return map;
-}
-
-export default map;
diff --git a/swh/web/static/jssources/d3-collection/src/nest.js b/swh/web/static/jssources/d3-collection/src/nest.js
deleted file mode 100644
index 21c2a4a5..00000000
--- a/swh/web/static/jssources/d3-collection/src/nest.js
+++ /dev/null
@@ -1,73 +0,0 @@
-import map from "./map";
-
-export default function() {
- var keys = [],
- sortKeys = [],
- sortValues,
- rollup,
- nest;
-
- function apply(array, depth, createResult, setResult) {
- if (depth >= keys.length) {
- if (sortValues != null) array.sort(sortValues);
- return rollup != null ? rollup(array) : array;
- }
-
- var i = -1,
- n = array.length,
- key = keys[depth++],
- keyValue,
- value,
- valuesByKey = map(),
- values,
- result = createResult();
-
- while (++i < n) {
- if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) {
- values.push(value);
- } else {
- valuesByKey.set(keyValue, [value]);
- }
- }
-
- valuesByKey.each(function(values, key) {
- setResult(result, key, apply(values, depth, createResult, setResult));
- });
-
- return result;
- }
-
- function entries(map, depth) {
- if (++depth > keys.length) return map;
- var array, sortKey = sortKeys[depth - 1];
- if (rollup != null && depth >= keys.length) array = map.entries();
- else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });
- return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;
- }
-
- return nest = {
- object: function(array) { return apply(array, 0, createObject, setObject); },
- map: function(array) { return apply(array, 0, createMap, setMap); },
- entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },
- key: function(d) { keys.push(d); return nest; },
- sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },
- sortValues: function(order) { sortValues = order; return nest; },
- rollup: function(f) { rollup = f; return nest; }
- };
-}
-
-function createObject() {
- return {};
-}
-
-function setObject(object, key, value) {
- object[key] = value;
-}
-
-function createMap() {
- return map();
-}
-
-function setMap(map, key, value) {
- map.set(key, value);
-}
diff --git a/swh/web/static/jssources/d3-collection/src/set.js b/swh/web/static/jssources/d3-collection/src/set.js
deleted file mode 100644
index 7c67e006..00000000
--- a/swh/web/static/jssources/d3-collection/src/set.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import {default as map, prefix} from "./map";
-
-function Set() {}
-
-var proto = map.prototype;
-
-Set.prototype = set.prototype = {
- constructor: Set,
- has: proto.has,
- add: function(value) {
- value += "";
- this[prefix + value] = value;
- return this;
- },
- remove: proto.remove,
- clear: proto.clear,
- values: proto.keys,
- size: proto.size,
- empty: proto.empty,
- each: proto.each
-};
-
-function set(object, f) {
- var set = new Set;
-
- // Copy constructor.
- if (object instanceof Set) object.each(function(value) { set.add(value); });
-
- // Otherwise, assume it’s an array.
- else if (object) {
- var i = -1, n = object.length;
- if (f == null) while (++i < n) set.add(object[i]);
- else while (++i < n) set.add(f(object[i], i, object));
- }
-
- return set;
-}
-
-export default set;
diff --git a/swh/web/static/jssources/d3-collection/src/values.js b/swh/web/static/jssources/d3-collection/src/values.js
deleted file mode 100644
index 69b093de..00000000
--- a/swh/web/static/jssources/d3-collection/src/values.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(map) {
- var values = [];
- for (var key in map) values.push(map[key]);
- return values;
-}
diff --git a/swh/web/static/jssources/d3-color/LICENSE.txt b/swh/web/static/jssources/d3-color/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-color/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-color/src/color.js b/swh/web/static/jssources/d3-color/src/color.js
deleted file mode 100644
index 442f2056..00000000
--- a/swh/web/static/jssources/d3-color/src/color.js
+++ /dev/null
@@ -1,341 +0,0 @@
-import define, {extend} from "./define";
-
-export function Color() {}
-
-export var darker = 0.7;
-export var brighter = 1 / darker;
-
-var reI = "\\s*([+-]?\\d+)\\s*",
- reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
- reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
- reHex3 = /^#([0-9a-f]{3})$/,
- reHex6 = /^#([0-9a-f]{6})$/,
- reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
- reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
- reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
- reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
- reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
- reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
-
-var named = {
- aliceblue: 0xf0f8ff,
- antiquewhite: 0xfaebd7,
- aqua: 0x00ffff,
- aquamarine: 0x7fffd4,
- azure: 0xf0ffff,
- beige: 0xf5f5dc,
- bisque: 0xffe4c4,
- black: 0x000000,
- blanchedalmond: 0xffebcd,
- blue: 0x0000ff,
- blueviolet: 0x8a2be2,
- brown: 0xa52a2a,
- burlywood: 0xdeb887,
- cadetblue: 0x5f9ea0,
- chartreuse: 0x7fff00,
- chocolate: 0xd2691e,
- coral: 0xff7f50,
- cornflowerblue: 0x6495ed,
- cornsilk: 0xfff8dc,
- crimson: 0xdc143c,
- cyan: 0x00ffff,
- darkblue: 0x00008b,
- darkcyan: 0x008b8b,
- darkgoldenrod: 0xb8860b,
- darkgray: 0xa9a9a9,
- darkgreen: 0x006400,
- darkgrey: 0xa9a9a9,
- darkkhaki: 0xbdb76b,
- darkmagenta: 0x8b008b,
- darkolivegreen: 0x556b2f,
- darkorange: 0xff8c00,
- darkorchid: 0x9932cc,
- darkred: 0x8b0000,
- darksalmon: 0xe9967a,
- darkseagreen: 0x8fbc8f,
- darkslateblue: 0x483d8b,
- darkslategray: 0x2f4f4f,
- darkslategrey: 0x2f4f4f,
- darkturquoise: 0x00ced1,
- darkviolet: 0x9400d3,
- deeppink: 0xff1493,
- deepskyblue: 0x00bfff,
- dimgray: 0x696969,
- dimgrey: 0x696969,
- dodgerblue: 0x1e90ff,
- firebrick: 0xb22222,
- floralwhite: 0xfffaf0,
- forestgreen: 0x228b22,
- fuchsia: 0xff00ff,
- gainsboro: 0xdcdcdc,
- ghostwhite: 0xf8f8ff,
- gold: 0xffd700,
- goldenrod: 0xdaa520,
- gray: 0x808080,
- green: 0x008000,
- greenyellow: 0xadff2f,
- grey: 0x808080,
- honeydew: 0xf0fff0,
- hotpink: 0xff69b4,
- indianred: 0xcd5c5c,
- indigo: 0x4b0082,
- ivory: 0xfffff0,
- khaki: 0xf0e68c,
- lavender: 0xe6e6fa,
- lavenderblush: 0xfff0f5,
- lawngreen: 0x7cfc00,
- lemonchiffon: 0xfffacd,
- lightblue: 0xadd8e6,
- lightcoral: 0xf08080,
- lightcyan: 0xe0ffff,
- lightgoldenrodyellow: 0xfafad2,
- lightgray: 0xd3d3d3,
- lightgreen: 0x90ee90,
- lightgrey: 0xd3d3d3,
- lightpink: 0xffb6c1,
- lightsalmon: 0xffa07a,
- lightseagreen: 0x20b2aa,
- lightskyblue: 0x87cefa,
- lightslategray: 0x778899,
- lightslategrey: 0x778899,
- lightsteelblue: 0xb0c4de,
- lightyellow: 0xffffe0,
- lime: 0x00ff00,
- limegreen: 0x32cd32,
- linen: 0xfaf0e6,
- magenta: 0xff00ff,
- maroon: 0x800000,
- mediumaquamarine: 0x66cdaa,
- mediumblue: 0x0000cd,
- mediumorchid: 0xba55d3,
- mediumpurple: 0x9370db,
- mediumseagreen: 0x3cb371,
- mediumslateblue: 0x7b68ee,
- mediumspringgreen: 0x00fa9a,
- mediumturquoise: 0x48d1cc,
- mediumvioletred: 0xc71585,
- midnightblue: 0x191970,
- mintcream: 0xf5fffa,
- mistyrose: 0xffe4e1,
- moccasin: 0xffe4b5,
- navajowhite: 0xffdead,
- navy: 0x000080,
- oldlace: 0xfdf5e6,
- olive: 0x808000,
- olivedrab: 0x6b8e23,
- orange: 0xffa500,
- orangered: 0xff4500,
- orchid: 0xda70d6,
- palegoldenrod: 0xeee8aa,
- palegreen: 0x98fb98,
- paleturquoise: 0xafeeee,
- palevioletred: 0xdb7093,
- papayawhip: 0xffefd5,
- peachpuff: 0xffdab9,
- peru: 0xcd853f,
- pink: 0xffc0cb,
- plum: 0xdda0dd,
- powderblue: 0xb0e0e6,
- purple: 0x800080,
- rebeccapurple: 0x663399,
- red: 0xff0000,
- rosybrown: 0xbc8f8f,
- royalblue: 0x4169e1,
- saddlebrown: 0x8b4513,
- salmon: 0xfa8072,
- sandybrown: 0xf4a460,
- seagreen: 0x2e8b57,
- seashell: 0xfff5ee,
- sienna: 0xa0522d,
- silver: 0xc0c0c0,
- skyblue: 0x87ceeb,
- slateblue: 0x6a5acd,
- slategray: 0x708090,
- slategrey: 0x708090,
- snow: 0xfffafa,
- springgreen: 0x00ff7f,
- steelblue: 0x4682b4,
- tan: 0xd2b48c,
- teal: 0x008080,
- thistle: 0xd8bfd8,
- tomato: 0xff6347,
- turquoise: 0x40e0d0,
- violet: 0xee82ee,
- wheat: 0xf5deb3,
- white: 0xffffff,
- whitesmoke: 0xf5f5f5,
- yellow: 0xffff00,
- yellowgreen: 0x9acd32
-};
-
-define(Color, color, {
- displayable: function() {
- return this.rgb().displayable();
- },
- hex: function() {
- return this.rgb().hex();
- },
- toString: function() {
- return this.rgb() + "";
- }
-});
-
-export default function color(format) {
- var m;
- format = (format + "").trim().toLowerCase();
- return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00
- : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000
- : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
- : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
- : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
- : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
- : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
- : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
- : named.hasOwnProperty(format) ? rgbn(named[format])
- : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
- : null;
-}
-
-function rgbn(n) {
- return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
-}
-
-function rgba(r, g, b, a) {
- if (a <= 0) r = g = b = NaN;
- return new Rgb(r, g, b, a);
-}
-
-export function rgbConvert(o) {
- if (!(o instanceof Color)) o = color(o);
- if (!o) return new Rgb;
- o = o.rgb();
- return new Rgb(o.r, o.g, o.b, o.opacity);
-}
-
-export function rgb(r, g, b, opacity) {
- return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
-}
-
-export function Rgb(r, g, b, opacity) {
- this.r = +r;
- this.g = +g;
- this.b = +b;
- this.opacity = +opacity;
-}
-
-define(Rgb, rgb, extend(Color, {
- brighter: function(k) {
- k = k == null ? brighter : Math.pow(brighter, k);
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
- },
- darker: function(k) {
- k = k == null ? darker : Math.pow(darker, k);
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
- },
- rgb: function() {
- return this;
- },
- displayable: function() {
- return (0 <= this.r && this.r <= 255)
- && (0 <= this.g && this.g <= 255)
- && (0 <= this.b && this.b <= 255)
- && (0 <= this.opacity && this.opacity <= 1);
- },
- hex: function() {
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
- },
- toString: function() {
- var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
- return (a === 1 ? "rgb(" : "rgba(")
- + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
- + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
- + Math.max(0, Math.min(255, Math.round(this.b) || 0))
- + (a === 1 ? ")" : ", " + a + ")");
- }
-}));
-
-function hex(value) {
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
- return (value < 16 ? "0" : "") + value.toString(16);
-}
-
-function hsla(h, s, l, a) {
- if (a <= 0) h = s = l = NaN;
- else if (l <= 0 || l >= 1) h = s = NaN;
- else if (s <= 0) h = NaN;
- return new Hsl(h, s, l, a);
-}
-
-export function hslConvert(o) {
- if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
- if (!(o instanceof Color)) o = color(o);
- if (!o) return new Hsl;
- if (o instanceof Hsl) return o;
- o = o.rgb();
- var r = o.r / 255,
- g = o.g / 255,
- b = o.b / 255,
- min = Math.min(r, g, b),
- max = Math.max(r, g, b),
- h = NaN,
- s = max - min,
- l = (max + min) / 2;
- if (s) {
- if (r === max) h = (g - b) / s + (g < b) * 6;
- else if (g === max) h = (b - r) / s + 2;
- else h = (r - g) / s + 4;
- s /= l < 0.5 ? max + min : 2 - max - min;
- h *= 60;
- } else {
- s = l > 0 && l < 1 ? 0 : h;
- }
- return new Hsl(h, s, l, o.opacity);
-}
-
-export function hsl(h, s, l, opacity) {
- return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
-}
-
-function Hsl(h, s, l, opacity) {
- this.h = +h;
- this.s = +s;
- this.l = +l;
- this.opacity = +opacity;
-}
-
-define(Hsl, hsl, extend(Color, {
- brighter: function(k) {
- k = k == null ? brighter : Math.pow(brighter, k);
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
- },
- darker: function(k) {
- k = k == null ? darker : Math.pow(darker, k);
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
- },
- rgb: function() {
- var h = this.h % 360 + (this.h < 0) * 360,
- s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
- l = this.l,
- m2 = l + (l < 0.5 ? l : 1 - l) * s,
- m1 = 2 * l - m2;
- return new Rgb(
- hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
- hsl2rgb(h, m1, m2),
- hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
- this.opacity
- );
- },
- displayable: function() {
- return (0 <= this.s && this.s <= 1 || isNaN(this.s))
- && (0 <= this.l && this.l <= 1)
- && (0 <= this.opacity && this.opacity <= 1);
- }
-}));
-
-/* From FvD 13.37, CSS Color Module Level 3 */
-function hsl2rgb(h, m1, m2) {
- return (h < 60 ? m1 + (m2 - m1) * h / 60
- : h < 180 ? m2
- : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
- : m1) * 255;
-}
diff --git a/swh/web/static/jssources/d3-color/src/cubehelix.js b/swh/web/static/jssources/d3-color/src/cubehelix.js
deleted file mode 100644
index f77b00fb..00000000
--- a/swh/web/static/jssources/d3-color/src/cubehelix.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import define, {extend} from "./define";
-import {Color, rgbConvert, Rgb, darker, brighter} from "./color";
-import {deg2rad, rad2deg} from "./math";
-
-var A = -0.14861,
- B = +1.78277,
- C = -0.29227,
- D = -0.90649,
- E = +1.97294,
- ED = E * D,
- EB = E * B,
- BC_DA = B * C - D * A;
-
-function cubehelixConvert(o) {
- if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
- if (!(o instanceof Rgb)) o = rgbConvert(o);
- var r = o.r / 255,
- g = o.g / 255,
- b = o.b / 255,
- l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
- bl = b - l,
- k = (E * (g - l) - C * bl) / D,
- s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
- h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;
- return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
-}
-
-export default function cubehelix(h, s, l, opacity) {
- return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
-}
-
-export function Cubehelix(h, s, l, opacity) {
- this.h = +h;
- this.s = +s;
- this.l = +l;
- this.opacity = +opacity;
-}
-
-define(Cubehelix, cubehelix, extend(Color, {
- brighter: function(k) {
- k = k == null ? brighter : Math.pow(brighter, k);
- return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
- },
- darker: function(k) {
- k = k == null ? darker : Math.pow(darker, k);
- return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
- },
- rgb: function() {
- var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,
- l = +this.l,
- a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
- cosh = Math.cos(h),
- sinh = Math.sin(h);
- return new Rgb(
- 255 * (l + a * (A * cosh + B * sinh)),
- 255 * (l + a * (C * cosh + D * sinh)),
- 255 * (l + a * (E * cosh)),
- this.opacity
- );
- }
-}));
diff --git a/swh/web/static/jssources/d3-color/src/define.js b/swh/web/static/jssources/d3-color/src/define.js
deleted file mode 100644
index 2bba2d3a..00000000
--- a/swh/web/static/jssources/d3-color/src/define.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export default function(constructor, factory, prototype) {
- constructor.prototype = factory.prototype = prototype;
- prototype.constructor = constructor;
-}
-
-export function extend(parent, definition) {
- var prototype = Object.create(parent.prototype);
- for (var key in definition) prototype[key] = definition[key];
- return prototype;
-}
diff --git a/swh/web/static/jssources/d3-color/src/index.js b/swh/web/static/jssources/d3-color/src/index.js
deleted file mode 100644
index 19938903..00000000
--- a/swh/web/static/jssources/d3-color/src/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export {default as color, rgb, hsl} from "./color";
-export {default as lab, hcl, lch, gray} from "./lab";
-export {default as cubehelix} from "./cubehelix";
diff --git a/swh/web/static/jssources/d3-color/src/lab.js b/swh/web/static/jssources/d3-color/src/lab.js
deleted file mode 100644
index d9a009f7..00000000
--- a/swh/web/static/jssources/d3-color/src/lab.js
+++ /dev/null
@@ -1,121 +0,0 @@
-import define, {extend} from "./define";
-import {Color, rgbConvert, Rgb} from "./color";
-import {deg2rad, rad2deg} from "./math";
-
-// https://beta.observablehq.com/@mbostock/lab-and-rgb
-var K = 18,
- Xn = 0.96422,
- Yn = 1,
- Zn = 0.82521,
- t0 = 4 / 29,
- t1 = 6 / 29,
- t2 = 3 * t1 * t1,
- t3 = t1 * t1 * t1;
-
-function labConvert(o) {
- if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
- if (o instanceof Hcl) {
- if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
- var h = o.h * deg2rad;
- return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
- }
- if (!(o instanceof Rgb)) o = rgbConvert(o);
- var r = rgb2lrgb(o.r),
- g = rgb2lrgb(o.g),
- b = rgb2lrgb(o.b),
- y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
- if (r === g && g === b) x = z = y; else {
- x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
- z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
- }
- return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
-}
-
-export function gray(l, opacity) {
- return new Lab(l, 0, 0, opacity == null ? 1 : opacity);
-}
-
-export default function lab(l, a, b, opacity) {
- return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
-}
-
-export function Lab(l, a, b, opacity) {
- this.l = +l;
- this.a = +a;
- this.b = +b;
- this.opacity = +opacity;
-}
-
-define(Lab, lab, extend(Color, {
- brighter: function(k) {
- return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
- },
- darker: function(k) {
- return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
- },
- rgb: function() {
- var y = (this.l + 16) / 116,
- x = isNaN(this.a) ? y : y + this.a / 500,
- z = isNaN(this.b) ? y : y - this.b / 200;
- x = Xn * lab2xyz(x);
- y = Yn * lab2xyz(y);
- z = Zn * lab2xyz(z);
- return new Rgb(
- lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
- lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
- lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
- this.opacity
- );
- }
-}));
-
-function xyz2lab(t) {
- return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
-}
-
-function lab2xyz(t) {
- return t > t1 ? t * t * t : t2 * (t - t0);
-}
-
-function lrgb2rgb(x) {
- return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
-}
-
-function rgb2lrgb(x) {
- return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
-}
-
-function hclConvert(o) {
- if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
- if (!(o instanceof Lab)) o = labConvert(o);
- if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0, o.l, o.opacity);
- var h = Math.atan2(o.b, o.a) * rad2deg;
- return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
-}
-
-export function lch(l, c, h, opacity) {
- return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
-}
-
-export function hcl(h, c, l, opacity) {
- return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
-}
-
-export function Hcl(h, c, l, opacity) {
- this.h = +h;
- this.c = +c;
- this.l = +l;
- this.opacity = +opacity;
-}
-
-define(Hcl, hcl, extend(Color, {
- brighter: function(k) {
- return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
- },
- darker: function(k) {
- return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
- },
- rgb: function() {
- return labConvert(this).rgb();
- }
-}));
diff --git a/swh/web/static/jssources/d3-color/src/math.js b/swh/web/static/jssources/d3-color/src/math.js
deleted file mode 100644
index e94b840f..00000000
--- a/swh/web/static/jssources/d3-color/src/math.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export var deg2rad = Math.PI / 180;
-export var rad2deg = 180 / Math.PI;
diff --git a/swh/web/static/jssources/d3-contour/LICENSE.txt b/swh/web/static/jssources/d3-contour/LICENSE.txt
deleted file mode 100644
index b1c85d06..00000000
--- a/swh/web/static/jssources/d3-contour/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2012-2017 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-contour/src/area.js b/swh/web/static/jssources/d3-contour/src/area.js
deleted file mode 100644
index 2157a7ef..00000000
--- a/swh/web/static/jssources/d3-contour/src/area.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(ring) {
- var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
- while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
- return area;
-}
diff --git a/swh/web/static/jssources/d3-contour/src/array.js b/swh/web/static/jssources/d3-contour/src/array.js
deleted file mode 100644
index d2361352..00000000
--- a/swh/web/static/jssources/d3-contour/src/array.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var array = Array.prototype;
-
-export var slice = array.slice;
diff --git a/swh/web/static/jssources/d3-contour/src/ascending.js b/swh/web/static/jssources/d3-contour/src/ascending.js
deleted file mode 100644
index 8939af70..00000000
--- a/swh/web/static/jssources/d3-contour/src/ascending.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(a, b) {
- return a - b;
-}
diff --git a/swh/web/static/jssources/d3-contour/src/blur.js b/swh/web/static/jssources/d3-contour/src/blur.js
deleted file mode 100644
index 0edfb3ef..00000000
--- a/swh/web/static/jssources/d3-contour/src/blur.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// TODO Optimize edge cases.
-// TODO Optimize index calculation.
-// TODO Optimize arguments.
-export function blurX(source, target, r) {
- var n = source.width,
- m = source.height,
- w = (r << 1) + 1;
- for (var j = 0; j < m; ++j) {
- for (var i = 0, sr = 0; i < n + r; ++i) {
- if (i < n) {
- sr += source.data[i + j * n];
- }
- if (i >= r) {
- if (i >= w) {
- sr -= source.data[i - w + j * n];
- }
- target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);
- }
- }
- }
-}
-
-// TODO Optimize edge cases.
-// TODO Optimize index calculation.
-// TODO Optimize arguments.
-export function blurY(source, target, r) {
- var n = source.width,
- m = source.height,
- w = (r << 1) + 1;
- for (var i = 0; i < n; ++i) {
- for (var j = 0, sr = 0; j < m + r; ++j) {
- if (j < m) {
- sr += source.data[i + j * n];
- }
- if (j >= r) {
- if (j >= w) {
- sr -= source.data[i + (j - w) * n];
- }
- target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);
- }
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-contour/src/constant.js b/swh/web/static/jssources/d3-contour/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-contour/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-contour/src/contains.js b/swh/web/static/jssources/d3-contour/src/contains.js
deleted file mode 100644
index f364b354..00000000
--- a/swh/web/static/jssources/d3-contour/src/contains.js
+++ /dev/null
@@ -1,27 +0,0 @@
-export default function(ring, hole) {
- var i = -1, n = hole.length, c;
- while (++i < n) if (c = ringContains(ring, hole[i])) return c;
- return 0;
-}
-
-function ringContains(ring, point) {
- var x = point[0], y = point[1], contains = -1;
- for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
- var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];
- if (segmentContains(pi, pj, point)) return 0;
- if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;
- }
- return contains;
-}
-
-function segmentContains(a, b, c) {
- var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);
-}
-
-function collinear(a, b, c) {
- return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);
-}
-
-function within(p, q, r) {
- return p <= q && q <= r || r <= q && q <= p;
-}
diff --git a/swh/web/static/jssources/d3-contour/src/contours.js b/swh/web/static/jssources/d3-contour/src/contours.js
deleted file mode 100644
index 278716b3..00000000
--- a/swh/web/static/jssources/d3-contour/src/contours.js
+++ /dev/null
@@ -1,203 +0,0 @@
-import {extent, thresholdSturges, tickStep, range} from "d3-array";
-import {slice} from "./array";
-import ascending from "./ascending";
-import area from "./area";
-import constant from "./constant";
-import contains from "./contains";
-import noop from "./noop";
-
-var cases = [
- [],
- [[[1.0, 1.5], [0.5, 1.0]]],
- [[[1.5, 1.0], [1.0, 1.5]]],
- [[[1.5, 1.0], [0.5, 1.0]]],
- [[[1.0, 0.5], [1.5, 1.0]]],
- [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],
- [[[1.0, 0.5], [1.0, 1.5]]],
- [[[1.0, 0.5], [0.5, 1.0]]],
- [[[0.5, 1.0], [1.0, 0.5]]],
- [[[1.0, 1.5], [1.0, 0.5]]],
- [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],
- [[[1.5, 1.0], [1.0, 0.5]]],
- [[[0.5, 1.0], [1.5, 1.0]]],
- [[[1.0, 1.5], [1.5, 1.0]]],
- [[[0.5, 1.0], [1.0, 1.5]]],
- []
-];
-
-export default function() {
- var dx = 1,
- dy = 1,
- threshold = thresholdSturges,
- smooth = smoothLinear;
-
- function contours(values) {
- var tz = threshold(values);
-
- // Convert number of thresholds into uniform thresholds.
- if (!Array.isArray(tz)) {
- var domain = extent(values), start = domain[0], stop = domain[1];
- tz = tickStep(start, stop, tz);
- tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);
- } else {
- tz = tz.slice().sort(ascending);
- }
-
- return tz.map(function(value) {
- return contour(values, value);
- });
- }
-
- // Accumulate, smooth contour rings, assign holes to exterior rings.
- // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js
- function contour(values, value) {
- var polygons = [],
- holes = [];
-
- isorings(values, value, function(ring) {
- smooth(ring, values, value);
- if (area(ring) > 0) polygons.push([ring]);
- else holes.push(ring);
- });
-
- holes.forEach(function(hole) {
- for (var i = 0, n = polygons.length, polygon; i < n; ++i) {
- if (contains((polygon = polygons[i])[0], hole) !== -1) {
- polygon.push(hole);
- return;
- }
- }
- });
-
- return {
- type: "MultiPolygon",
- value: value,
- coordinates: polygons
- };
- }
-
- // Marching squares with isolines stitched into rings.
- // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js
- function isorings(values, value, callback) {
- var fragmentByStart = new Array,
- fragmentByEnd = new Array,
- x, y, t0, t1, t2, t3;
-
- // Special case for the first row (y = -1, t2 = t3 = 0).
- x = y = -1;
- t1 = values[0] >= value;
- cases[t1 << 1].forEach(stitch);
- while (++x < dx - 1) {
- t0 = t1, t1 = values[x + 1] >= value;
- cases[t0 | t1 << 1].forEach(stitch);
- }
- cases[t1 << 0].forEach(stitch);
-
- // General case for the intermediate rows.
- while (++y < dy - 1) {
- x = -1;
- t1 = values[y * dx + dx] >= value;
- t2 = values[y * dx] >= value;
- cases[t1 << 1 | t2 << 2].forEach(stitch);
- while (++x < dx - 1) {
- t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;
- t3 = t2, t2 = values[y * dx + x + 1] >= value;
- cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);
- }
- cases[t1 | t2 << 3].forEach(stitch);
- }
-
- // Special case for the last row (y = dy - 1, t0 = t1 = 0).
- x = -1;
- t2 = values[y * dx] >= value;
- cases[t2 << 2].forEach(stitch);
- while (++x < dx - 1) {
- t3 = t2, t2 = values[y * dx + x + 1] >= value;
- cases[t2 << 2 | t3 << 3].forEach(stitch);
- }
- cases[t2 << 3].forEach(stitch);
-
- function stitch(line) {
- var start = [line[0][0] + x, line[0][1] + y],
- end = [line[1][0] + x, line[1][1] + y],
- startIndex = index(start),
- endIndex = index(end),
- f, g;
- if (f = fragmentByEnd[startIndex]) {
- if (g = fragmentByStart[endIndex]) {
- delete fragmentByEnd[f.end];
- delete fragmentByStart[g.start];
- if (f === g) {
- f.ring.push(end);
- callback(f.ring);
- } else {
- fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};
- }
- } else {
- delete fragmentByEnd[f.end];
- f.ring.push(end);
- fragmentByEnd[f.end = endIndex] = f;
- }
- } else if (f = fragmentByStart[endIndex]) {
- if (g = fragmentByEnd[startIndex]) {
- delete fragmentByStart[f.start];
- delete fragmentByEnd[g.end];
- if (f === g) {
- f.ring.push(end);
- callback(f.ring);
- } else {
- fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};
- }
- } else {
- delete fragmentByStart[f.start];
- f.ring.unshift(start);
- fragmentByStart[f.start = startIndex] = f;
- }
- } else {
- fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};
- }
- }
- }
-
- function index(point) {
- return point[0] * 2 + point[1] * (dx + 1) * 4;
- }
-
- function smoothLinear(ring, values, value) {
- ring.forEach(function(point) {
- var x = point[0],
- y = point[1],
- xt = x | 0,
- yt = y | 0,
- v0,
- v1 = values[yt * dx + xt];
- if (x > 0 && x < dx && xt === x) {
- v0 = values[yt * dx + xt - 1];
- point[0] = x + (value - v0) / (v1 - v0) - 0.5;
- }
- if (y > 0 && y < dy && yt === y) {
- v0 = values[(yt - 1) * dx + xt];
- point[1] = y + (value - v0) / (v1 - v0) - 0.5;
- }
- });
- }
-
- contours.contour = contour;
-
- contours.size = function(_) {
- if (!arguments.length) return [dx, dy];
- var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
- if (!(_0 > 0) || !(_1 > 0)) throw new Error("invalid size");
- return dx = _0, dy = _1, contours;
- };
-
- contours.thresholds = function(_) {
- return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;
- };
-
- contours.smooth = function(_) {
- return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;
- };
-
- return contours;
-}
diff --git a/swh/web/static/jssources/d3-contour/src/density.js b/swh/web/static/jssources/d3-contour/src/density.js
deleted file mode 100644
index f0870826..00000000
--- a/swh/web/static/jssources/d3-contour/src/density.js
+++ /dev/null
@@ -1,133 +0,0 @@
-import {max, range, tickStep} from "d3-array";
-import {slice} from "./array";
-import {blurX, blurY} from "./blur";
-import constant from "./constant";
-import contours from "./contours";
-
-function defaultX(d) {
- return d[0];
-}
-
-function defaultY(d) {
- return d[1];
-}
-
-function defaultWeight() {
- return 1;
-}
-
-export default function() {
- var x = defaultX,
- y = defaultY,
- weight = defaultWeight,
- dx = 960,
- dy = 500,
- r = 20, // blur radius
- k = 2, // log2(grid cell size)
- o = r * 3, // grid offset, to pad for blur
- n = (dx + o * 2) >> k, // grid width
- m = (dy + o * 2) >> k, // grid height
- threshold = constant(20);
-
- function density(data) {
- var values0 = new Float32Array(n * m),
- values1 = new Float32Array(n * m);
-
- data.forEach(function(d, i, data) {
- var xi = (+x(d, i, data) + o) >> k,
- yi = (+y(d, i, data) + o) >> k,
- wi = +weight(d, i, data);
- if (xi >= 0 && xi < n && yi >= 0 && yi < m) {
- values0[xi + yi * n] += wi;
- }
- });
-
- // TODO Optimize.
- blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
- blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
- blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
- blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
- blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
- blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
-
- var tz = threshold(values0);
-
- // Convert number of thresholds into uniform thresholds.
- if (!Array.isArray(tz)) {
- var stop = max(values0);
- tz = tickStep(0, stop, tz);
- tz = range(0, Math.floor(stop / tz) * tz, tz);
- tz.shift();
- }
-
- return contours()
- .thresholds(tz)
- .size([n, m])
- (values0)
- .map(transform);
- }
-
- function transform(geometry) {
- geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.
- geometry.coordinates.forEach(transformPolygon);
- return geometry;
- }
-
- function transformPolygon(coordinates) {
- coordinates.forEach(transformRing);
- }
-
- function transformRing(coordinates) {
- coordinates.forEach(transformPoint);
- }
-
- // TODO Optimize.
- function transformPoint(coordinates) {
- coordinates[0] = coordinates[0] * Math.pow(2, k) - o;
- coordinates[1] = coordinates[1] * Math.pow(2, k) - o;
- }
-
- function resize() {
- o = r * 3;
- n = (dx + o * 2) >> k;
- m = (dy + o * 2) >> k;
- return density;
- }
-
- density.x = function(_) {
- return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), density) : x;
- };
-
- density.y = function(_) {
- return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), density) : y;
- };
-
- density.weight = function(_) {
- return arguments.length ? (weight = typeof _ === "function" ? _ : constant(+_), density) : weight;
- };
-
- density.size = function(_) {
- if (!arguments.length) return [dx, dy];
- var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
- if (!(_0 >= 0) && !(_0 >= 0)) throw new Error("invalid size");
- return dx = _0, dy = _1, resize();
- };
-
- density.cellSize = function(_) {
- if (!arguments.length) return 1 << k;
- if (!((_ = +_) >= 1)) throw new Error("invalid cell size");
- return k = Math.floor(Math.log(_) / Math.LN2), resize();
- };
-
- density.thresholds = function(_) {
- return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;
- };
-
- density.bandwidth = function(_) {
- if (!arguments.length) return Math.sqrt(r * (r + 1));
- if (!((_ = +_) >= 0)) throw new Error("invalid bandwidth");
- return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();
- };
-
- return density;
-}
diff --git a/swh/web/static/jssources/d3-contour/src/index.js b/swh/web/static/jssources/d3-contour/src/index.js
deleted file mode 100644
index 4b7e5ceb..00000000
--- a/swh/web/static/jssources/d3-contour/src/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export {default as contours} from "./contours";
-export {default as contourDensity} from "./density";
diff --git a/swh/web/static/jssources/d3-contour/src/noop.js b/swh/web/static/jssources/d3-contour/src/noop.js
deleted file mode 100644
index 6ab80bc8..00000000
--- a/swh/web/static/jssources/d3-contour/src/noop.js
+++ /dev/null
@@ -1 +0,0 @@
-export default function() {}
diff --git a/swh/web/static/jssources/d3-dispatch/LICENSE.txt b/swh/web/static/jssources/d3-dispatch/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-dispatch/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-dispatch/src/dispatch.js b/swh/web/static/jssources/d3-dispatch/src/dispatch.js
deleted file mode 100644
index cbca731f..00000000
--- a/swh/web/static/jssources/d3-dispatch/src/dispatch.js
+++ /dev/null
@@ -1,84 +0,0 @@
-var noop = {value: function() {}};
-
-function dispatch() {
- for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
- if (!(t = arguments[i] + "") || (t in _)) throw new Error("illegal type: " + t);
- _[t] = [];
- }
- return new Dispatch(_);
-}
-
-function Dispatch(_) {
- this._ = _;
-}
-
-function parseTypenames(typenames, types) {
- return typenames.trim().split(/^|\s+/).map(function(t) {
- var name = "", i = t.indexOf(".");
- if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
- if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
- return {type: t, name: name};
- });
-}
-
-Dispatch.prototype = dispatch.prototype = {
- constructor: Dispatch,
- on: function(typename, callback) {
- var _ = this._,
- T = parseTypenames(typename + "", _),
- t,
- i = -1,
- n = T.length;
-
- // If no callback was specified, return the callback of the given type and name.
- if (arguments.length < 2) {
- while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;
- return;
- }
-
- // If a type was specified, set the callback for the given type and name.
- // Otherwise, if a null callback was specified, remove callbacks of the given name.
- if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
- while (++i < n) {
- if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);
- else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);
- }
-
- return this;
- },
- copy: function() {
- var copy = {}, _ = this._;
- for (var t in _) copy[t] = _[t].slice();
- return new Dispatch(copy);
- },
- call: function(type, that) {
- if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
- if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
- for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
- },
- apply: function(type, that, args) {
- if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
- for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
- }
-};
-
-function get(type, name) {
- for (var i = 0, n = type.length, c; i < n; ++i) {
- if ((c = type[i]).name === name) {
- return c.value;
- }
- }
-}
-
-function set(type, name, callback) {
- for (var i = 0, n = type.length; i < n; ++i) {
- if (type[i].name === name) {
- type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
- break;
- }
- }
- if (callback != null) type.push({name: name, value: callback});
- return type;
-}
-
-export default dispatch;
diff --git a/swh/web/static/jssources/d3-dispatch/src/index.js b/swh/web/static/jssources/d3-dispatch/src/index.js
deleted file mode 100644
index dae274a3..00000000
--- a/swh/web/static/jssources/d3-dispatch/src/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export {default as dispatch} from "./dispatch";
diff --git a/swh/web/static/jssources/d3-drag/LICENSE.txt b/swh/web/static/jssources/d3-drag/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-drag/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-drag/src/constant.js b/swh/web/static/jssources/d3-drag/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-drag/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-drag/src/drag.js b/swh/web/static/jssources/d3-drag/src/drag.js
deleted file mode 100644
index 7235923c..00000000
--- a/swh/web/static/jssources/d3-drag/src/drag.js
+++ /dev/null
@@ -1,167 +0,0 @@
-import {dispatch} from "d3-dispatch";
-import {event, customEvent, select, mouse, touch} from "d3-selection";
-import nodrag, {yesdrag} from "./nodrag";
-import noevent, {nopropagation} from "./noevent";
-import constant from "./constant";
-import DragEvent from "./event";
-
-// Ignore right-click, since that should open the context menu.
-function defaultFilter() {
- return !event.button;
-}
-
-function defaultContainer() {
- return this.parentNode;
-}
-
-function defaultSubject(d) {
- return d == null ? {x: event.x, y: event.y} : d;
-}
-
-function defaultTouchable() {
- return "ontouchstart" in this;
-}
-
-export default function() {
- var filter = defaultFilter,
- container = defaultContainer,
- subject = defaultSubject,
- touchable = defaultTouchable,
- gestures = {},
- listeners = dispatch("start", "drag", "end"),
- active = 0,
- mousedownx,
- mousedowny,
- mousemoving,
- touchending,
- clickDistance2 = 0;
-
- function drag(selection) {
- selection
- .on("mousedown.drag", mousedowned)
- .filter(touchable)
- .on("touchstart.drag", touchstarted)
- .on("touchmove.drag", touchmoved)
- .on("touchend.drag touchcancel.drag", touchended)
- .style("touch-action", "none")
- .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
- }
-
- function mousedowned() {
- if (touchending || !filter.apply(this, arguments)) return;
- var gesture = beforestart("mouse", container.apply(this, arguments), mouse, this, arguments);
- if (!gesture) return;
- select(event.view).on("mousemove.drag", mousemoved, true).on("mouseup.drag", mouseupped, true);
- nodrag(event.view);
- nopropagation();
- mousemoving = false;
- mousedownx = event.clientX;
- mousedowny = event.clientY;
- gesture("start");
- }
-
- function mousemoved() {
- noevent();
- if (!mousemoving) {
- var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;
- mousemoving = dx * dx + dy * dy > clickDistance2;
- }
- gestures.mouse("drag");
- }
-
- function mouseupped() {
- select(event.view).on("mousemove.drag mouseup.drag", null);
- yesdrag(event.view, mousemoving);
- noevent();
- gestures.mouse("end");
- }
-
- function touchstarted() {
- if (!filter.apply(this, arguments)) return;
- var touches = event.changedTouches,
- c = container.apply(this, arguments),
- n = touches.length, i, gesture;
-
- for (i = 0; i < n; ++i) {
- if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {
- nopropagation();
- gesture("start");
- }
- }
- }
-
- function touchmoved() {
- var touches = event.changedTouches,
- n = touches.length, i, gesture;
-
- for (i = 0; i < n; ++i) {
- if (gesture = gestures[touches[i].identifier]) {
- noevent();
- gesture("drag");
- }
- }
- }
-
- function touchended() {
- var touches = event.changedTouches,
- n = touches.length, i, gesture;
-
- if (touchending) clearTimeout(touchending);
- touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
- for (i = 0; i < n; ++i) {
- if (gesture = gestures[touches[i].identifier]) {
- nopropagation();
- gesture("end");
- }
- }
- }
-
- function beforestart(id, container, point, that, args) {
- var p = point(container, id), s, dx, dy,
- sublisteners = listeners.copy();
-
- if (!customEvent(new DragEvent(drag, "beforestart", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {
- if ((event.subject = s = subject.apply(that, args)) == null) return false;
- dx = s.x - p[0] || 0;
- dy = s.y - p[1] || 0;
- return true;
- })) return;
-
- return function gesture(type) {
- var p0 = p, n;
- switch (type) {
- case "start": gestures[id] = gesture, n = active++; break;
- case "end": delete gestures[id], --active; // nobreak
- case "drag": p = point(container, id), n = active; break;
- }
- customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);
- };
- }
-
- drag.filter = function(_) {
- return arguments.length ? (filter = typeof _ === "function" ? _ : constant(!!_), drag) : filter;
- };
-
- drag.container = function(_) {
- return arguments.length ? (container = typeof _ === "function" ? _ : constant(_), drag) : container;
- };
-
- drag.subject = function(_) {
- return arguments.length ? (subject = typeof _ === "function" ? _ : constant(_), drag) : subject;
- };
-
- drag.touchable = function(_) {
- return arguments.length ? (touchable = typeof _ === "function" ? _ : constant(!!_), drag) : touchable;
- };
-
- drag.on = function() {
- var value = listeners.on.apply(listeners, arguments);
- return value === listeners ? drag : value;
- };
-
- drag.clickDistance = function(_) {
- return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);
- };
-
- return drag;
-}
diff --git a/swh/web/static/jssources/d3-drag/src/event.js b/swh/web/static/jssources/d3-drag/src/event.js
deleted file mode 100644
index 9e9fb9ae..00000000
--- a/swh/web/static/jssources/d3-drag/src/event.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {
- this.target = target;
- this.type = type;
- this.subject = subject;
- this.identifier = id;
- this.active = active;
- this.x = x;
- this.y = y;
- this.dx = dx;
- this.dy = dy;
- this._ = dispatch;
-}
-
-DragEvent.prototype.on = function() {
- var value = this._.on.apply(this._, arguments);
- return value === this._ ? this : value;
-};
diff --git a/swh/web/static/jssources/d3-drag/src/index.js b/swh/web/static/jssources/d3-drag/src/index.js
deleted file mode 100644
index 3d860278..00000000
--- a/swh/web/static/jssources/d3-drag/src/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export {default as drag} from "./drag";
-export {default as dragDisable, yesdrag as dragEnable} from "./nodrag";
diff --git a/swh/web/static/jssources/d3-drag/src/nodrag.js b/swh/web/static/jssources/d3-drag/src/nodrag.js
deleted file mode 100644
index fe085ee1..00000000
--- a/swh/web/static/jssources/d3-drag/src/nodrag.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import {select} from "d3-selection";
-import noevent from "./noevent";
-
-export default function(view) {
- var root = view.document.documentElement,
- selection = select(view).on("dragstart.drag", noevent, true);
- if ("onselectstart" in root) {
- selection.on("selectstart.drag", noevent, true);
- } else {
- root.__noselect = root.style.MozUserSelect;
- root.style.MozUserSelect = "none";
- }
-}
-
-export function yesdrag(view, noclick) {
- var root = view.document.documentElement,
- selection = select(view).on("dragstart.drag", null);
- if (noclick) {
- selection.on("click.drag", noevent, true);
- setTimeout(function() { selection.on("click.drag", null); }, 0);
- }
- if ("onselectstart" in root) {
- selection.on("selectstart.drag", null);
- } else {
- root.style.MozUserSelect = root.__noselect;
- delete root.__noselect;
- }
-}
diff --git a/swh/web/static/jssources/d3-drag/src/noevent.js b/swh/web/static/jssources/d3-drag/src/noevent.js
deleted file mode 100644
index ed25745b..00000000
--- a/swh/web/static/jssources/d3-drag/src/noevent.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import {event} from "d3-selection";
-
-export function nopropagation() {
- event.stopImmediatePropagation();
-}
-
-export default function() {
- event.preventDefault();
- event.stopImmediatePropagation();
-}
diff --git a/swh/web/static/jssources/d3-dsv/LICENSE.txt b/swh/web/static/jssources/d3-dsv/LICENSE.txt
deleted file mode 100644
index 3d0802c3..00000000
--- a/swh/web/static/jssources/d3-dsv/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2013-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-dsv/src/autoType.js b/swh/web/static/jssources/d3-dsv/src/autoType.js
deleted file mode 100644
index 4754cdf9..00000000
--- a/swh/web/static/jssources/d3-dsv/src/autoType.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function autoType(object) {
- for (var key in object) {
- var value = object[key].trim(), number;
- if (!value) value = null;
- else if (value === "true") value = true;
- else if (value === "false") value = false;
- else if (value === "NaN") value = NaN;
- else if (!isNaN(number = +value)) value = number;
- else if (/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/.test(value)) value = new Date(value);
- else continue;
- object[key] = value;
- }
- return object;
-}
diff --git a/swh/web/static/jssources/d3-dsv/src/csv.js b/swh/web/static/jssources/d3-dsv/src/csv.js
deleted file mode 100644
index aa9144a1..00000000
--- a/swh/web/static/jssources/d3-dsv/src/csv.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import dsv from "./dsv";
-
-var csv = dsv(",");
-
-export var csvParse = csv.parse;
-export var csvParseRows = csv.parseRows;
-export var csvFormat = csv.format;
-export var csvFormatBody = csv.formatBody;
-export var csvFormatRows = csv.formatRows;
diff --git a/swh/web/static/jssources/d3-dsv/src/dsv.js b/swh/web/static/jssources/d3-dsv/src/dsv.js
deleted file mode 100644
index 037d6240..00000000
--- a/swh/web/static/jssources/d3-dsv/src/dsv.js
+++ /dev/null
@@ -1,162 +0,0 @@
-var EOL = {},
- EOF = {},
- QUOTE = 34,
- NEWLINE = 10,
- RETURN = 13;
-
-function objectConverter(columns) {
- return new Function("d", "return {" + columns.map(function(name, i) {
- return JSON.stringify(name) + ": d[" + i + "]";
- }).join(",") + "}");
-}
-
-function customConverter(columns, f) {
- var object = objectConverter(columns);
- return function(row, i) {
- return f(object(row), i, columns);
- };
-}
-
-// Compute unique columns in order of discovery.
-function inferColumns(rows) {
- var columnSet = Object.create(null),
- columns = [];
-
- rows.forEach(function(row) {
- for (var column in row) {
- if (!(column in columnSet)) {
- columns.push(columnSet[column] = column);
- }
- }
- });
-
- return columns;
-}
-
-function pad(value, width) {
- var s = value + "", length = s.length;
- return length < width ? new Array(width - length + 1).join(0) + s : s;
-}
-
-function formatYear(year) {
- return year < 0 ? "-" + pad(-year, 6)
- : year > 9999 ? "+" + pad(year, 6)
- : pad(year, 4);
-}
-
-function formatDate(date) {
- var hours = date.getUTCHours(),
- minutes = date.getUTCMinutes(),
- seconds = date.getUTCSeconds(),
- milliseconds = date.getUTCMilliseconds();
- return isNaN(date) ? "Invalid Date"
- : formatYear(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1, 2) + "-" + pad(date.getUTCDate(), 2)
- + (milliseconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "." + pad(milliseconds, 3) + "Z"
- : seconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "Z"
- : minutes || hours ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + "Z"
- : "");
-}
-
-export default function(delimiter) {
- var reFormat = new RegExp("[\"" + delimiter + "\n\r]"),
- DELIMITER = delimiter.charCodeAt(0);
-
- function parse(text, f) {
- var convert, columns, rows = parseRows(text, function(row, i) {
- if (convert) return convert(row, i - 1);
- columns = row, convert = f ? customConverter(row, f) : objectConverter(row);
- });
- rows.columns = columns || [];
- return rows;
- }
-
- function parseRows(text, f) {
- var rows = [], // output rows
- N = text.length,
- I = 0, // current character index
- n = 0, // current line number
- t, // current token
- eof = N <= 0, // current token followed by EOF?
- eol = false; // current token followed by EOL?
-
- // Strip the trailing newline.
- if (text.charCodeAt(N - 1) === NEWLINE) --N;
- if (text.charCodeAt(N - 1) === RETURN) --N;
-
- function token() {
- if (eof) return EOF;
- if (eol) return eol = false, EOL;
-
- // Unescape quotes.
- var i, j = I, c;
- if (text.charCodeAt(j) === QUOTE) {
- while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);
- if ((i = I) >= N) eof = true;
- else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;
- else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
- return text.slice(j + 1, i - 1).replace(/""/g, "\"");
- }
-
- // Find next delimiter or newline.
- while (I < N) {
- if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;
- else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
- else if (c !== DELIMITER) continue;
- return text.slice(j, i);
- }
-
- // Return last token before EOF.
- return eof = true, text.slice(j, N);
- }
-
- while ((t = token()) !== EOF) {
- var row = [];
- while (t !== EOL && t !== EOF) row.push(t), t = token();
- if (f && (row = f(row, n++)) == null) continue;
- rows.push(row);
- }
-
- return rows;
- }
-
- function preformatBody(rows, columns) {
- return rows.map(function(row) {
- return columns.map(function(column) {
- return formatValue(row[column]);
- }).join(delimiter);
- });
- }
-
- function format(rows, columns) {
- if (columns == null) columns = inferColumns(rows);
- return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join("\n");
- }
-
- function formatBody(rows, columns) {
- if (columns == null) columns = inferColumns(rows);
- return preformatBody(rows, columns).join("\n");
- }
-
- function formatRows(rows) {
- return rows.map(formatRow).join("\n");
- }
-
- function formatRow(row) {
- return row.map(formatValue).join(delimiter);
- }
-
- function formatValue(value) {
- return value == null ? ""
- : value instanceof Date ? formatDate(value)
- : reFormat.test(value += "") ? "\"" + value.replace(/"/g, "\"\"") + "\""
- : value;
- }
-
- return {
- parse: parse,
- parseRows: parseRows,
- format: format,
- formatBody: formatBody,
- formatRows: formatRows
- };
-}
diff --git a/swh/web/static/jssources/d3-dsv/src/index.js b/swh/web/static/jssources/d3-dsv/src/index.js
deleted file mode 100644
index b3053b9f..00000000
--- a/swh/web/static/jssources/d3-dsv/src/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export {default as dsvFormat} from "./dsv";
-export {csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows} from "./csv";
-export {tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows} from "./tsv";
-export {default as autoType} from "./autoType";
diff --git a/swh/web/static/jssources/d3-dsv/src/tsv.js b/swh/web/static/jssources/d3-dsv/src/tsv.js
deleted file mode 100644
index 9fe418a0..00000000
--- a/swh/web/static/jssources/d3-dsv/src/tsv.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import dsv from "./dsv";
-
-var tsv = dsv("\t");
-
-export var tsvParse = tsv.parse;
-export var tsvParseRows = tsv.parseRows;
-export var tsvFormat = tsv.format;
-export var tsvFormatBody = tsv.formatBody;
-export var tsvFormatRows = tsv.formatRows;
diff --git a/swh/web/static/jssources/d3-ease/LICENSE.txt b/swh/web/static/jssources/d3-ease/LICENSE.txt
deleted file mode 100644
index 6c05ba05..00000000
--- a/swh/web/static/jssources/d3-ease/LICENSE.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-Copyright 2001 Robert Penner
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-ease/src/back.js b/swh/web/static/jssources/d3-ease/src/back.js
deleted file mode 100644
index 1e694bbf..00000000
--- a/swh/web/static/jssources/d3-ease/src/back.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var overshoot = 1.70158;
-
-export var backIn = (function custom(s) {
- s = +s;
-
- function backIn(t) {
- return t * t * ((s + 1) * t - s);
- }
-
- backIn.overshoot = custom;
-
- return backIn;
-})(overshoot);
-
-export var backOut = (function custom(s) {
- s = +s;
-
- function backOut(t) {
- return --t * t * ((s + 1) * t + s) + 1;
- }
-
- backOut.overshoot = custom;
-
- return backOut;
-})(overshoot);
-
-export var backInOut = (function custom(s) {
- s = +s;
-
- function backInOut(t) {
- return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
- }
-
- backInOut.overshoot = custom;
-
- return backInOut;
-})(overshoot);
diff --git a/swh/web/static/jssources/d3-ease/src/bounce.js b/swh/web/static/jssources/d3-ease/src/bounce.js
deleted file mode 100644
index d2d81caf..00000000
--- a/swh/web/static/jssources/d3-ease/src/bounce.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var b1 = 4 / 11,
- b2 = 6 / 11,
- b3 = 8 / 11,
- b4 = 3 / 4,
- b5 = 9 / 11,
- b6 = 10 / 11,
- b7 = 15 / 16,
- b8 = 21 / 22,
- b9 = 63 / 64,
- b0 = 1 / b1 / b1;
-
-export function bounceIn(t) {
- return 1 - bounceOut(1 - t);
-}
-
-export function bounceOut(t) {
- return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
-}
-
-export function bounceInOut(t) {
- return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/circle.js b/swh/web/static/jssources/d3-ease/src/circle.js
deleted file mode 100644
index 8b9bb1de..00000000
--- a/swh/web/static/jssources/d3-ease/src/circle.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export function circleIn(t) {
- return 1 - Math.sqrt(1 - t * t);
-}
-
-export function circleOut(t) {
- return Math.sqrt(1 - --t * t);
-}
-
-export function circleInOut(t) {
- return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/cubic.js b/swh/web/static/jssources/d3-ease/src/cubic.js
deleted file mode 100644
index bad3a7ca..00000000
--- a/swh/web/static/jssources/d3-ease/src/cubic.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export function cubicIn(t) {
- return t * t * t;
-}
-
-export function cubicOut(t) {
- return --t * t * t + 1;
-}
-
-export function cubicInOut(t) {
- return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/elastic.js b/swh/web/static/jssources/d3-ease/src/elastic.js
deleted file mode 100644
index ce970813..00000000
--- a/swh/web/static/jssources/d3-ease/src/elastic.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var tau = 2 * Math.PI,
- amplitude = 1,
- period = 0.3;
-
-export var elasticIn = (function custom(a, p) {
- var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
-
- function elasticIn(t) {
- return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);
- }
-
- elasticIn.amplitude = function(a) { return custom(a, p * tau); };
- elasticIn.period = function(p) { return custom(a, p); };
-
- return elasticIn;
-})(amplitude, period);
-
-export var elasticOut = (function custom(a, p) {
- var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
-
- function elasticOut(t) {
- return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);
- }
-
- elasticOut.amplitude = function(a) { return custom(a, p * tau); };
- elasticOut.period = function(p) { return custom(a, p); };
-
- return elasticOut;
-})(amplitude, period);
-
-export var elasticInOut = (function custom(a, p) {
- var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
-
- function elasticInOut(t) {
- return ((t = t * 2 - 1) < 0
- ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)
- : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;
- }
-
- elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
- elasticInOut.period = function(p) { return custom(a, p); };
-
- return elasticInOut;
-})(amplitude, period);
diff --git a/swh/web/static/jssources/d3-ease/src/exp.js b/swh/web/static/jssources/d3-ease/src/exp.js
deleted file mode 100644
index c6cbbc58..00000000
--- a/swh/web/static/jssources/d3-ease/src/exp.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export function expIn(t) {
- return Math.pow(2, 10 * t - 10);
-}
-
-export function expOut(t) {
- return 1 - Math.pow(2, -10 * t);
-}
-
-export function expInOut(t) {
- return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/index.js b/swh/web/static/jssources/d3-ease/src/index.js
deleted file mode 100644
index e475d2e7..00000000
--- a/swh/web/static/jssources/d3-ease/src/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-export {
- linear as easeLinear
-} from "./linear";
-
-export {
- quadInOut as easeQuad,
- quadIn as easeQuadIn,
- quadOut as easeQuadOut,
- quadInOut as easeQuadInOut
-} from "./quad";
-
-export {
- cubicInOut as easeCubic,
- cubicIn as easeCubicIn,
- cubicOut as easeCubicOut,
- cubicInOut as easeCubicInOut
-} from "./cubic";
-
-export {
- polyInOut as easePoly,
- polyIn as easePolyIn,
- polyOut as easePolyOut,
- polyInOut as easePolyInOut
-} from "./poly";
-
-export {
- sinInOut as easeSin,
- sinIn as easeSinIn,
- sinOut as easeSinOut,
- sinInOut as easeSinInOut
-} from "./sin";
-
-export {
- expInOut as easeExp,
- expIn as easeExpIn,
- expOut as easeExpOut,
- expInOut as easeExpInOut
-} from "./exp";
-
-export {
- circleInOut as easeCircle,
- circleIn as easeCircleIn,
- circleOut as easeCircleOut,
- circleInOut as easeCircleInOut
-} from "./circle";
-
-export {
- bounceOut as easeBounce,
- bounceIn as easeBounceIn,
- bounceOut as easeBounceOut,
- bounceInOut as easeBounceInOut
-} from "./bounce";
-
-export {
- backInOut as easeBack,
- backIn as easeBackIn,
- backOut as easeBackOut,
- backInOut as easeBackInOut
-} from "./back";
-
-export {
- elasticOut as easeElastic,
- elasticIn as easeElasticIn,
- elasticOut as easeElasticOut,
- elasticInOut as easeElasticInOut
-} from "./elastic";
diff --git a/swh/web/static/jssources/d3-ease/src/linear.js b/swh/web/static/jssources/d3-ease/src/linear.js
deleted file mode 100644
index fa234623..00000000
--- a/swh/web/static/jssources/d3-ease/src/linear.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export function linear(t) {
- return +t;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/poly.js b/swh/web/static/jssources/d3-ease/src/poly.js
deleted file mode 100644
index 827cf874..00000000
--- a/swh/web/static/jssources/d3-ease/src/poly.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var exponent = 3;
-
-export var polyIn = (function custom(e) {
- e = +e;
-
- function polyIn(t) {
- return Math.pow(t, e);
- }
-
- polyIn.exponent = custom;
-
- return polyIn;
-})(exponent);
-
-export var polyOut = (function custom(e) {
- e = +e;
-
- function polyOut(t) {
- return 1 - Math.pow(1 - t, e);
- }
-
- polyOut.exponent = custom;
-
- return polyOut;
-})(exponent);
-
-export var polyInOut = (function custom(e) {
- e = +e;
-
- function polyInOut(t) {
- return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
- }
-
- polyInOut.exponent = custom;
-
- return polyInOut;
-})(exponent);
diff --git a/swh/web/static/jssources/d3-ease/src/quad.js b/swh/web/static/jssources/d3-ease/src/quad.js
deleted file mode 100644
index df65bc29..00000000
--- a/swh/web/static/jssources/d3-ease/src/quad.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export function quadIn(t) {
- return t * t;
-}
-
-export function quadOut(t) {
- return t * (2 - t);
-}
-
-export function quadInOut(t) {
- return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
-}
diff --git a/swh/web/static/jssources/d3-ease/src/sin.js b/swh/web/static/jssources/d3-ease/src/sin.js
deleted file mode 100644
index 57ae8da4..00000000
--- a/swh/web/static/jssources/d3-ease/src/sin.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var pi = Math.PI,
- halfPi = pi / 2;
-
-export function sinIn(t) {
- return 1 - Math.cos(t * halfPi);
-}
-
-export function sinOut(t) {
- return Math.sin(t * halfPi);
-}
-
-export function sinInOut(t) {
- return (1 - Math.cos(pi * t)) / 2;
-}
diff --git a/swh/web/static/jssources/d3-fetch/LICENSE.txt b/swh/web/static/jssources/d3-fetch/LICENSE.txt
deleted file mode 100644
index fb54fc9e..00000000
--- a/swh/web/static/jssources/d3-fetch/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-fetch/src/blob.js b/swh/web/static/jssources/d3-fetch/src/blob.js
deleted file mode 100644
index 646664c3..00000000
--- a/swh/web/static/jssources/d3-fetch/src/blob.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function responseBlob(response) {
- if (!response.ok) throw new Error(response.status + " " + response.statusText);
- return response.blob();
-}
-
-export default function(input, init) {
- return fetch(input, init).then(responseBlob);
-}
diff --git a/swh/web/static/jssources/d3-fetch/src/buffer.js b/swh/web/static/jssources/d3-fetch/src/buffer.js
deleted file mode 100644
index f776a94b..00000000
--- a/swh/web/static/jssources/d3-fetch/src/buffer.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function responseArrayBuffer(response) {
- if (!response.ok) throw new Error(response.status + " " + response.statusText);
- return response.arrayBuffer();
-}
-
-export default function(input, init) {
- return fetch(input, init).then(responseArrayBuffer);
-}
diff --git a/swh/web/static/jssources/d3-fetch/src/dsv.js b/swh/web/static/jssources/d3-fetch/src/dsv.js
deleted file mode 100644
index 99ee4fe5..00000000
--- a/swh/web/static/jssources/d3-fetch/src/dsv.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import {csvParse, dsvFormat, tsvParse} from "d3-dsv";
-import text from "./text";
-
-function dsvParse(parse) {
- return function(input, init, row) {
- if (arguments.length === 2 && typeof init === "function") row = init, init = undefined;
- return text(input, init).then(function(response) {
- return parse(response, row);
- });
- };
-}
-
-export default function dsv(delimiter, input, init, row) {
- if (arguments.length === 3 && typeof init === "function") row = init, init = undefined;
- var format = dsvFormat(delimiter);
- return text(input, init).then(function(response) {
- return format.parse(response, row);
- });
-}
-
-export var csv = dsvParse(csvParse);
-export var tsv = dsvParse(tsvParse);
diff --git a/swh/web/static/jssources/d3-fetch/src/image.js b/swh/web/static/jssources/d3-fetch/src/image.js
deleted file mode 100644
index c80a74bc..00000000
--- a/swh/web/static/jssources/d3-fetch/src/image.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function(input, init) {
- return new Promise(function(resolve, reject) {
- var image = new Image;
- for (var key in init) image[key] = init[key];
- image.onerror = reject;
- image.onload = function() { resolve(image); };
- image.src = input;
- });
-}
diff --git a/swh/web/static/jssources/d3-fetch/src/index.js b/swh/web/static/jssources/d3-fetch/src/index.js
deleted file mode 100644
index ef8c92f9..00000000
--- a/swh/web/static/jssources/d3-fetch/src/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export {default as blob} from "./blob";
-export {default as buffer} from "./buffer";
-export {default as dsv, csv, tsv} from "./dsv";
-export {default as image} from "./image";
-export {default as json} from "./json";
-export {default as text} from "./text";
-export {default as xml, html, svg} from "./xml";
diff --git a/swh/web/static/jssources/d3-fetch/src/json.js b/swh/web/static/jssources/d3-fetch/src/json.js
deleted file mode 100644
index 758141dc..00000000
--- a/swh/web/static/jssources/d3-fetch/src/json.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function responseJson(response) {
- if (!response.ok) throw new Error(response.status + " " + response.statusText);
- return response.json();
-}
-
-export default function(input, init) {
- return fetch(input, init).then(responseJson);
-}
diff --git a/swh/web/static/jssources/d3-fetch/src/text.js b/swh/web/static/jssources/d3-fetch/src/text.js
deleted file mode 100644
index 8ea18f8e..00000000
--- a/swh/web/static/jssources/d3-fetch/src/text.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function responseText(response) {
- if (!response.ok) throw new Error(response.status + " " + response.statusText);
- return response.text();
-}
-
-export default function(input, init) {
- return fetch(input, init).then(responseText);
-}
diff --git a/swh/web/static/jssources/d3-fetch/src/xml.js b/swh/web/static/jssources/d3-fetch/src/xml.js
deleted file mode 100644
index 6f7d1e14..00000000
--- a/swh/web/static/jssources/d3-fetch/src/xml.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import text from "./text";
-
-function parser(type) {
- return function(input, init) {
- return text(input, init).then(function(text) {
- return (new DOMParser).parseFromString(text, type);
- });
- };
-}
-
-export default parser("application/xml");
-
-export var html = parser("text/html");
-
-export var svg = parser("image/svg+xml");
diff --git a/swh/web/static/jssources/d3-force/LICENSE.txt b/swh/web/static/jssources/d3-force/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-force/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-force/src/center.js b/swh/web/static/jssources/d3-force/src/center.js
deleted file mode 100644
index b8ce38ea..00000000
--- a/swh/web/static/jssources/d3-force/src/center.js
+++ /dev/null
@@ -1,36 +0,0 @@
-export default function(x, y) {
- var nodes;
-
- if (x == null) x = 0;
- if (y == null) y = 0;
-
- function force() {
- var i,
- n = nodes.length,
- node,
- sx = 0,
- sy = 0;
-
- for (i = 0; i < n; ++i) {
- node = nodes[i], sx += node.x, sy += node.y;
- }
-
- for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {
- node = nodes[i], node.x -= sx, node.y -= sy;
- }
- }
-
- force.initialize = function(_) {
- nodes = _;
- };
-
- force.x = function(_) {
- return arguments.length ? (x = +_, force) : x;
- };
-
- force.y = function(_) {
- return arguments.length ? (y = +_, force) : y;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/collide.js b/swh/web/static/jssources/d3-force/src/collide.js
deleted file mode 100644
index e5f28631..00000000
--- a/swh/web/static/jssources/d3-force/src/collide.js
+++ /dev/null
@@ -1,98 +0,0 @@
-import constant from "./constant";
-import jiggle from "./jiggle";
-import {quadtree} from "d3-quadtree";
-
-function x(d) {
- return d.x + d.vx;
-}
-
-function y(d) {
- return d.y + d.vy;
-}
-
-export default function(radius) {
- var nodes,
- radii,
- strength = 1,
- iterations = 1;
-
- if (typeof radius !== "function") radius = constant(radius == null ? 1 : +radius);
-
- function force() {
- var i, n = nodes.length,
- tree,
- node,
- xi,
- yi,
- ri,
- ri2;
-
- for (var k = 0; k < iterations; ++k) {
- tree = quadtree(nodes, x, y).visitAfter(prepare);
- for (i = 0; i < n; ++i) {
- node = nodes[i];
- ri = radii[node.index], ri2 = ri * ri;
- xi = node.x + node.vx;
- yi = node.y + node.vy;
- tree.visit(apply);
- }
- }
-
- function apply(quad, x0, y0, x1, y1) {
- var data = quad.data, rj = quad.r, r = ri + rj;
- if (data) {
- if (data.index > node.index) {
- var x = xi - data.x - data.vx,
- y = yi - data.y - data.vy,
- l = x * x + y * y;
- if (l < r * r) {
- if (x === 0) x = jiggle(), l += x * x;
- if (y === 0) y = jiggle(), l += y * y;
- l = (r - (l = Math.sqrt(l))) / l * strength;
- node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));
- node.vy += (y *= l) * r;
- data.vx -= x * (r = 1 - r);
- data.vy -= y * r;
- }
- }
- return;
- }
- return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;
- }
- }
-
- function prepare(quad) {
- if (quad.data) return quad.r = radii[quad.data.index];
- for (var i = quad.r = 0; i < 4; ++i) {
- if (quad[i] && quad[i].r > quad.r) {
- quad.r = quad[i].r;
- }
- }
- }
-
- function initialize() {
- if (!nodes) return;
- var i, n = nodes.length, node;
- radii = new Array(n);
- for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);
- }
-
- force.initialize = function(_) {
- nodes = _;
- initialize();
- };
-
- force.iterations = function(_) {
- return arguments.length ? (iterations = +_, force) : iterations;
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = +_, force) : strength;
- };
-
- force.radius = function(_) {
- return arguments.length ? (radius = typeof _ === "function" ? _ : constant(+_), initialize(), force) : radius;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/constant.js b/swh/web/static/jssources/d3-force/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-force/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-force/src/index.js b/swh/web/static/jssources/d3-force/src/index.js
deleted file mode 100644
index b08bf480..00000000
--- a/swh/web/static/jssources/d3-force/src/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export {default as forceCenter} from "./center";
-export {default as forceCollide} from "./collide";
-export {default as forceLink} from "./link";
-export {default as forceManyBody} from "./manyBody";
-export {default as forceRadial} from "./radial";
-export {default as forceSimulation} from "./simulation";
-export {default as forceX} from "./x";
-export {default as forceY} from "./y";
diff --git a/swh/web/static/jssources/d3-force/src/jiggle.js b/swh/web/static/jssources/d3-force/src/jiggle.js
deleted file mode 100644
index de46cffb..00000000
--- a/swh/web/static/jssources/d3-force/src/jiggle.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function() {
- return (Math.random() - 0.5) * 1e-6;
-}
diff --git a/swh/web/static/jssources/d3-force/src/link.js b/swh/web/static/jssources/d3-force/src/link.js
deleted file mode 100644
index 0d57a7a1..00000000
--- a/swh/web/static/jssources/d3-force/src/link.js
+++ /dev/null
@@ -1,116 +0,0 @@
-import constant from "./constant";
-import jiggle from "./jiggle";
-import {map} from "d3-collection";
-
-function index(d) {
- return d.index;
-}
-
-function find(nodeById, nodeId) {
- var node = nodeById.get(nodeId);
- if (!node) throw new Error("missing: " + nodeId);
- return node;
-}
-
-export default function(links) {
- var id = index,
- strength = defaultStrength,
- strengths,
- distance = constant(30),
- distances,
- nodes,
- count,
- bias,
- iterations = 1;
-
- if (links == null) links = [];
-
- function defaultStrength(link) {
- return 1 / Math.min(count[link.source.index], count[link.target.index]);
- }
-
- function force(alpha) {
- for (var k = 0, n = links.length; k < iterations; ++k) {
- for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {
- link = links[i], source = link.source, target = link.target;
- x = target.x + target.vx - source.x - source.vx || jiggle();
- y = target.y + target.vy - source.y - source.vy || jiggle();
- l = Math.sqrt(x * x + y * y);
- l = (l - distances[i]) / l * alpha * strengths[i];
- x *= l, y *= l;
- target.vx -= x * (b = bias[i]);
- target.vy -= y * b;
- source.vx += x * (b = 1 - b);
- source.vy += y * b;
- }
- }
- }
-
- function initialize() {
- if (!nodes) return;
-
- var i,
- n = nodes.length,
- m = links.length,
- nodeById = map(nodes, id),
- link;
-
- for (i = 0, count = new Array(n); i < m; ++i) {
- link = links[i], link.index = i;
- if (typeof link.source !== "object") link.source = find(nodeById, link.source);
- if (typeof link.target !== "object") link.target = find(nodeById, link.target);
- count[link.source.index] = (count[link.source.index] || 0) + 1;
- count[link.target.index] = (count[link.target.index] || 0) + 1;
- }
-
- for (i = 0, bias = new Array(m); i < m; ++i) {
- link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);
- }
-
- strengths = new Array(m), initializeStrength();
- distances = new Array(m), initializeDistance();
- }
-
- function initializeStrength() {
- if (!nodes) return;
-
- for (var i = 0, n = links.length; i < n; ++i) {
- strengths[i] = +strength(links[i], i, links);
- }
- }
-
- function initializeDistance() {
- if (!nodes) return;
-
- for (var i = 0, n = links.length; i < n; ++i) {
- distances[i] = +distance(links[i], i, links);
- }
- }
-
- force.initialize = function(_) {
- nodes = _;
- initialize();
- };
-
- force.links = function(_) {
- return arguments.length ? (links = _, initialize(), force) : links;
- };
-
- force.id = function(_) {
- return arguments.length ? (id = _, force) : id;
- };
-
- force.iterations = function(_) {
- return arguments.length ? (iterations = +_, force) : iterations;
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant(+_), initializeStrength(), force) : strength;
- };
-
- force.distance = function(_) {
- return arguments.length ? (distance = typeof _ === "function" ? _ : constant(+_), initializeDistance(), force) : distance;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/manyBody.js b/swh/web/static/jssources/d3-force/src/manyBody.js
deleted file mode 100644
index eb45e9c2..00000000
--- a/swh/web/static/jssources/d3-force/src/manyBody.js
+++ /dev/null
@@ -1,114 +0,0 @@
-import constant from "./constant";
-import jiggle from "./jiggle";
-import {quadtree} from "d3-quadtree";
-import {x, y} from "./simulation";
-
-export default function() {
- var nodes,
- node,
- alpha,
- strength = constant(-30),
- strengths,
- distanceMin2 = 1,
- distanceMax2 = Infinity,
- theta2 = 0.81;
-
- function force(_) {
- var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);
- for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);
- }
-
- function initialize() {
- if (!nodes) return;
- var i, n = nodes.length, node;
- strengths = new Array(n);
- for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);
- }
-
- function accumulate(quad) {
- var strength = 0, q, c, weight = 0, x, y, i;
-
- // For internal nodes, accumulate forces from child quadrants.
- if (quad.length) {
- for (x = y = i = 0; i < 4; ++i) {
- if ((q = quad[i]) && (c = Math.abs(q.value))) {
- strength += q.value, weight += c, x += c * q.x, y += c * q.y;
- }
- }
- quad.x = x / weight;
- quad.y = y / weight;
- }
-
- // For leaf nodes, accumulate forces from coincident quadrants.
- else {
- q = quad;
- q.x = q.data.x;
- q.y = q.data.y;
- do strength += strengths[q.data.index];
- while (q = q.next);
- }
-
- quad.value = strength;
- }
-
- function apply(quad, x1, _, x2) {
- if (!quad.value) return true;
-
- var x = quad.x - node.x,
- y = quad.y - node.y,
- w = x2 - x1,
- l = x * x + y * y;
-
- // Apply the Barnes-Hut approximation if possible.
- // Limit forces for very close nodes; randomize direction if coincident.
- if (w * w / theta2 < l) {
- if (l < distanceMax2) {
- if (x === 0) x = jiggle(), l += x * x;
- if (y === 0) y = jiggle(), l += y * y;
- if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
- node.vx += x * quad.value * alpha / l;
- node.vy += y * quad.value * alpha / l;
- }
- return true;
- }
-
- // Otherwise, process points directly.
- else if (quad.length || l >= distanceMax2) return;
-
- // Limit forces for very close nodes; randomize direction if coincident.
- if (quad.data !== node || quad.next) {
- if (x === 0) x = jiggle(), l += x * x;
- if (y === 0) y = jiggle(), l += y * y;
- if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
- }
-
- do if (quad.data !== node) {
- w = strengths[quad.data.index] * alpha / l;
- node.vx += x * w;
- node.vy += y * w;
- } while (quad = quad.next);
- }
-
- force.initialize = function(_) {
- nodes = _;
- initialize();
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant(+_), initialize(), force) : strength;
- };
-
- force.distanceMin = function(_) {
- return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);
- };
-
- force.distanceMax = function(_) {
- return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);
- };
-
- force.theta = function(_) {
- return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/radial.js b/swh/web/static/jssources/d3-force/src/radial.js
deleted file mode 100644
index 517144d2..00000000
--- a/swh/web/static/jssources/d3-force/src/radial.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import constant from "./constant";
-
-export default function(radius, x, y) {
- var nodes,
- strength = constant(0.1),
- strengths,
- radiuses;
-
- if (typeof radius !== "function") radius = constant(+radius);
- if (x == null) x = 0;
- if (y == null) y = 0;
-
- function force(alpha) {
- for (var i = 0, n = nodes.length; i < n; ++i) {
- var node = nodes[i],
- dx = node.x - x || 1e-6,
- dy = node.y - y || 1e-6,
- r = Math.sqrt(dx * dx + dy * dy),
- k = (radiuses[i] - r) * strengths[i] * alpha / r;
- node.vx += dx * k;
- node.vy += dy * k;
- }
- }
-
- function initialize() {
- if (!nodes) return;
- var i, n = nodes.length;
- strengths = new Array(n);
- radiuses = new Array(n);
- for (i = 0; i < n; ++i) {
- radiuses[i] = +radius(nodes[i], i, nodes);
- strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);
- }
- }
-
- force.initialize = function(_) {
- nodes = _, initialize();
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant(+_), initialize(), force) : strength;
- };
-
- force.radius = function(_) {
- return arguments.length ? (radius = typeof _ === "function" ? _ : constant(+_), initialize(), force) : radius;
- };
-
- force.x = function(_) {
- return arguments.length ? (x = +_, force) : x;
- };
-
- force.y = function(_) {
- return arguments.length ? (y = +_, force) : y;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/simulation.js b/swh/web/static/jssources/d3-force/src/simulation.js
deleted file mode 100644
index 083be266..00000000
--- a/swh/web/static/jssources/d3-force/src/simulation.js
+++ /dev/null
@@ -1,151 +0,0 @@
-import {dispatch} from "d3-dispatch";
-import {map} from "d3-collection";
-import {timer} from "d3-timer";
-
-export function x(d) {
- return d.x;
-}
-
-export function y(d) {
- return d.y;
-}
-
-var initialRadius = 10,
- initialAngle = Math.PI * (3 - Math.sqrt(5));
-
-export default function(nodes) {
- var simulation,
- alpha = 1,
- alphaMin = 0.001,
- alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),
- alphaTarget = 0,
- velocityDecay = 0.6,
- forces = map(),
- stepper = timer(step),
- event = dispatch("tick", "end");
-
- if (nodes == null) nodes = [];
-
- function step() {
- tick();
- event.call("tick", simulation);
- if (alpha < alphaMin) {
- stepper.stop();
- event.call("end", simulation);
- }
- }
-
- function tick(iterations) {
- var i, n = nodes.length, node;
-
- if (iterations === undefined) iterations = 1;
-
- for (var k = 0; k < iterations; ++k) {
- alpha += (alphaTarget - alpha) * alphaDecay;
-
- forces.each(function (force) {
- force(alpha);
- });
-
- for (i = 0; i < n; ++i) {
- node = nodes[i];
- if (node.fx == null) node.x += node.vx *= velocityDecay;
- else node.x = node.fx, node.vx = 0;
- if (node.fy == null) node.y += node.vy *= velocityDecay;
- else node.y = node.fy, node.vy = 0;
- }
- }
-
- return simulation;
- }
-
- function initializeNodes() {
- for (var i = 0, n = nodes.length, node; i < n; ++i) {
- node = nodes[i], node.index = i;
- if (!isNaN(node.fx)) node.x = node.fx;
- if (!isNaN(node.fy)) node.y = node.fy;
- if (isNaN(node.x) || isNaN(node.y)) {
- var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;
- node.x = radius * Math.cos(angle);
- node.y = radius * Math.sin(angle);
- }
- if (isNaN(node.vx) || isNaN(node.vy)) {
- node.vx = node.vy = 0;
- }
- }
- }
-
- function initializeForce(force) {
- if (force.initialize) force.initialize(nodes);
- return force;
- }
-
- initializeNodes();
-
- return simulation = {
- tick: tick,
-
- restart: function() {
- return stepper.restart(step), simulation;
- },
-
- stop: function() {
- return stepper.stop(), simulation;
- },
-
- nodes: function(_) {
- return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;
- },
-
- alpha: function(_) {
- return arguments.length ? (alpha = +_, simulation) : alpha;
- },
-
- alphaMin: function(_) {
- return arguments.length ? (alphaMin = +_, simulation) : alphaMin;
- },
-
- alphaDecay: function(_) {
- return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;
- },
-
- alphaTarget: function(_) {
- return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;
- },
-
- velocityDecay: function(_) {
- return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;
- },
-
- force: function(name, _) {
- return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);
- },
-
- find: function(x, y, radius) {
- var i = 0,
- n = nodes.length,
- dx,
- dy,
- d2,
- node,
- closest;
-
- if (radius == null) radius = Infinity;
- else radius *= radius;
-
- for (i = 0; i < n; ++i) {
- node = nodes[i];
- dx = x - node.x;
- dy = y - node.y;
- d2 = dx * dx + dy * dy;
- if (d2 < radius) closest = node, radius = d2;
- }
-
- return closest;
- },
-
- on: function(name, _) {
- return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);
- }
- };
-}
diff --git a/swh/web/static/jssources/d3-force/src/x.js b/swh/web/static/jssources/d3-force/src/x.js
deleted file mode 100644
index 894e7483..00000000
--- a/swh/web/static/jssources/d3-force/src/x.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import constant from "./constant";
-
-export default function(x) {
- var strength = constant(0.1),
- nodes,
- strengths,
- xz;
-
- if (typeof x !== "function") x = constant(x == null ? 0 : +x);
-
- function force(alpha) {
- for (var i = 0, n = nodes.length, node; i < n; ++i) {
- node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;
- }
- }
-
- function initialize() {
- if (!nodes) return;
- var i, n = nodes.length;
- strengths = new Array(n);
- xz = new Array(n);
- for (i = 0; i < n; ++i) {
- strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
- }
- }
-
- force.initialize = function(_) {
- nodes = _;
- initialize();
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant(+_), initialize(), force) : strength;
- };
-
- force.x = function(_) {
- return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), initialize(), force) : x;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-force/src/y.js b/swh/web/static/jssources/d3-force/src/y.js
deleted file mode 100644
index bdf68e49..00000000
--- a/swh/web/static/jssources/d3-force/src/y.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import constant from "./constant";
-
-export default function(y) {
- var strength = constant(0.1),
- nodes,
- strengths,
- yz;
-
- if (typeof y !== "function") y = constant(y == null ? 0 : +y);
-
- function force(alpha) {
- for (var i = 0, n = nodes.length, node; i < n; ++i) {
- node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;
- }
- }
-
- function initialize() {
- if (!nodes) return;
- var i, n = nodes.length;
- strengths = new Array(n);
- yz = new Array(n);
- for (i = 0; i < n; ++i) {
- strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
- }
- }
-
- force.initialize = function(_) {
- nodes = _;
- initialize();
- };
-
- force.strength = function(_) {
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant(+_), initialize(), force) : strength;
- };
-
- force.y = function(_) {
- return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), initialize(), force) : y;
- };
-
- return force;
-}
diff --git a/swh/web/static/jssources/d3-format/LICENSE.txt b/swh/web/static/jssources/d3-format/LICENSE.txt
deleted file mode 100644
index 4f0b022c..00000000
--- a/swh/web/static/jssources/d3-format/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2015 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-format/src/defaultLocale.js b/swh/web/static/jssources/d3-format/src/defaultLocale.js
deleted file mode 100644
index f22eca30..00000000
--- a/swh/web/static/jssources/d3-format/src/defaultLocale.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import formatLocale from "./locale";
-
-var locale;
-export var format;
-export var formatPrefix;
-
-defaultLocale({
- decimal: ".",
- thousands: ",",
- grouping: [3],
- currency: ["$", ""]
-});
-
-export default function defaultLocale(definition) {
- locale = formatLocale(definition);
- format = locale.format;
- formatPrefix = locale.formatPrefix;
- return locale;
-}
diff --git a/swh/web/static/jssources/d3-format/src/exponent.js b/swh/web/static/jssources/d3-format/src/exponent.js
deleted file mode 100644
index 615dd44f..00000000
--- a/swh/web/static/jssources/d3-format/src/exponent.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import formatDecimal from "./formatDecimal";
-
-export default function(x) {
- return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatDecimal.js b/swh/web/static/jssources/d3-format/src/formatDecimal.js
deleted file mode 100644
index c199ad83..00000000
--- a/swh/web/static/jssources/d3-format/src/formatDecimal.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// Computes the decimal coefficient and exponent of the specified number x with
-// significant digits p, where x is positive and p is in [1, 21] or undefined.
-// For example, formatDecimal(1.23) returns ["123", 0].
-export default function(x, p) {
- if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
- var i, coefficient = x.slice(0, i);
-
- // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
- // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
- return [
- coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
- +x.slice(i + 1)
- ];
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatGroup.js b/swh/web/static/jssources/d3-format/src/formatGroup.js
deleted file mode 100644
index ae603d3a..00000000
--- a/swh/web/static/jssources/d3-format/src/formatGroup.js
+++ /dev/null
@@ -1,18 +0,0 @@
-export default function(grouping, thousands) {
- return function(value, width) {
- var i = value.length,
- t = [],
- j = 0,
- g = grouping[0],
- length = 0;
-
- while (i > 0 && g > 0) {
- if (length + g + 1 > width) g = Math.max(1, width - length);
- t.push(value.substring(i -= g, i + g));
- if ((length += g + 1) > width) break;
- g = grouping[j = (j + 1) % grouping.length];
- }
-
- return t.reverse().join(thousands);
- };
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatNumerals.js b/swh/web/static/jssources/d3-format/src/formatNumerals.js
deleted file mode 100644
index 046317e9..00000000
--- a/swh/web/static/jssources/d3-format/src/formatNumerals.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function(numerals) {
- return function(value) {
- return value.replace(/[0-9]/g, function(i) {
- return numerals[+i];
- });
- };
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatPrefixAuto.js b/swh/web/static/jssources/d3-format/src/formatPrefixAuto.js
deleted file mode 100644
index edf80f9b..00000000
--- a/swh/web/static/jssources/d3-format/src/formatPrefixAuto.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import formatDecimal from "./formatDecimal";
-
-export var prefixExponent;
-
-export default function(x, p) {
- var d = formatDecimal(x, p);
- if (!d) return x + "";
- var coefficient = d[0],
- exponent = d[1],
- i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
- n = coefficient.length;
- return i === n ? coefficient
- : i > n ? coefficient + new Array(i - n + 1).join("0")
- : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
- : "0." + new Array(1 - i).join("0") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatRounded.js b/swh/web/static/jssources/d3-format/src/formatRounded.js
deleted file mode 100644
index ffc79cb5..00000000
--- a/swh/web/static/jssources/d3-format/src/formatRounded.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import formatDecimal from "./formatDecimal";
-
-export default function(x, p) {
- var d = formatDecimal(x, p);
- if (!d) return x + "";
- var coefficient = d[0],
- exponent = d[1];
- return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
- : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
- : coefficient + new Array(exponent - coefficient.length + 2).join("0");
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatSpecifier.js b/swh/web/static/jssources/d3-format/src/formatSpecifier.js
deleted file mode 100644
index 414dc975..00000000
--- a/swh/web/static/jssources/d3-format/src/formatSpecifier.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
-var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-
-export default function formatSpecifier(specifier) {
- return new FormatSpecifier(specifier);
-}
-
-formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
-
-function FormatSpecifier(specifier) {
- if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
- var match;
- this.fill = match[1] || " ";
- this.align = match[2] || ">";
- this.sign = match[3] || "-";
- this.symbol = match[4] || "";
- this.zero = !!match[5];
- this.width = match[6] && +match[6];
- this.comma = !!match[7];
- this.precision = match[8] && +match[8].slice(1);
- this.trim = !!match[9];
- this.type = match[10] || "";
-}
-
-FormatSpecifier.prototype.toString = function() {
- return this.fill
- + this.align
- + this.sign
- + this.symbol
- + (this.zero ? "0" : "")
- + (this.width == null ? "" : Math.max(1, this.width | 0))
- + (this.comma ? "," : "")
- + (this.precision == null ? "" : "." + Math.max(0, this.precision | 0))
- + (this.trim ? "~" : "")
- + this.type;
-};
diff --git a/swh/web/static/jssources/d3-format/src/formatTrim.js b/swh/web/static/jssources/d3-format/src/formatTrim.js
deleted file mode 100644
index 6806f382..00000000
--- a/swh/web/static/jssources/d3-format/src/formatTrim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
-export default function(s) {
- out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
- switch (s[i]) {
- case ".": i0 = i1 = i; break;
- case "0": if (i0 === 0) i0 = i; i1 = i; break;
- default: if (i0 > 0) { if (!+s[i]) break out; i0 = 0; } break;
- }
- }
- return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
-}
diff --git a/swh/web/static/jssources/d3-format/src/formatTypes.js b/swh/web/static/jssources/d3-format/src/formatTypes.js
deleted file mode 100644
index f5f9f087..00000000
--- a/swh/web/static/jssources/d3-format/src/formatTypes.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import formatPrefixAuto from "./formatPrefixAuto";
-import formatRounded from "./formatRounded";
-
-export default {
- "%": function(x, p) { return (x * 100).toFixed(p); },
- "b": function(x) { return Math.round(x).toString(2); },
- "c": function(x) { return x + ""; },
- "d": function(x) { return Math.round(x).toString(10); },
- "e": function(x, p) { return x.toExponential(p); },
- "f": function(x, p) { return x.toFixed(p); },
- "g": function(x, p) { return x.toPrecision(p); },
- "o": function(x) { return Math.round(x).toString(8); },
- "p": function(x, p) { return formatRounded(x * 100, p); },
- "r": formatRounded,
- "s": formatPrefixAuto,
- "X": function(x) { return Math.round(x).toString(16).toUpperCase(); },
- "x": function(x) { return Math.round(x).toString(16); }
-};
diff --git a/swh/web/static/jssources/d3-format/src/identity.js b/swh/web/static/jssources/d3-format/src/identity.js
deleted file mode 100644
index b2f94b2e..00000000
--- a/swh/web/static/jssources/d3-format/src/identity.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return x;
-}
diff --git a/swh/web/static/jssources/d3-format/src/index.js b/swh/web/static/jssources/d3-format/src/index.js
deleted file mode 100644
index e794c51e..00000000
--- a/swh/web/static/jssources/d3-format/src/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export {default as formatDefaultLocale, format, formatPrefix} from "./defaultLocale";
-export {default as formatLocale} from "./locale";
-export {default as formatSpecifier} from "./formatSpecifier";
-export {default as precisionFixed} from "./precisionFixed";
-export {default as precisionPrefix} from "./precisionPrefix";
-export {default as precisionRound} from "./precisionRound";
diff --git a/swh/web/static/jssources/d3-format/src/locale.js b/swh/web/static/jssources/d3-format/src/locale.js
deleted file mode 100644
index ecea30d7..00000000
--- a/swh/web/static/jssources/d3-format/src/locale.js
+++ /dev/null
@@ -1,142 +0,0 @@
-import exponent from "./exponent";
-import formatGroup from "./formatGroup";
-import formatNumerals from "./formatNumerals";
-import formatSpecifier from "./formatSpecifier";
-import formatTrim from "./formatTrim";
-import formatTypes from "./formatTypes";
-import {prefixExponent} from "./formatPrefixAuto";
-import identity from "./identity";
-
-var prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
-
-export default function(locale) {
- var group = locale.grouping && locale.thousands ? formatGroup(locale.grouping, locale.thousands) : identity,
- currency = locale.currency,
- decimal = locale.decimal,
- numerals = locale.numerals ? formatNumerals(locale.numerals) : identity,
- percent = locale.percent || "%";
-
- function newFormat(specifier) {
- specifier = formatSpecifier(specifier);
-
- var fill = specifier.fill,
- align = specifier.align,
- sign = specifier.sign,
- symbol = specifier.symbol,
- zero = specifier.zero,
- width = specifier.width,
- comma = specifier.comma,
- precision = specifier.precision,
- trim = specifier.trim,
- type = specifier.type;
-
- // The "n" type is an alias for ",g".
- if (type === "n") comma = true, type = "g";
-
- // The "" type, and any invalid type, is an alias for ".12~g".
- else if (!formatTypes[type]) precision == null && (precision = 12), trim = true, type = "g";
-
- // If zero fill is specified, padding goes after sign and before digits.
- if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";
-
- // Compute the prefix and suffix.
- // For SI-prefix, the suffix is lazily computed.
- var prefix = symbol === "$" ? currency[0] : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
- suffix = symbol === "$" ? currency[1] : /[%p]/.test(type) ? percent : "";
-
- // What format function should we use?
- // Is this an integer type?
- // Can this type generate exponential notation?
- var formatType = formatTypes[type],
- maybeSuffix = /[defgprs%]/.test(type);
-
- // Set the default precision if not specified,
- // or clamp the specified precision to the supported range.
- // For significant precision, it must be in [1, 21].
- // For fixed precision, it must be in [0, 20].
- precision = precision == null ? 6
- : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
- : Math.max(0, Math.min(20, precision));
-
- function format(value) {
- var valuePrefix = prefix,
- valueSuffix = suffix,
- i, n, c;
-
- if (type === "c") {
- valueSuffix = formatType(value) + valueSuffix;
- value = "";
- } else {
- value = +value;
-
- // Perform the initial formatting.
- var valueNegative = value < 0;
- value = formatType(Math.abs(value), precision);
-
- // Trim insignificant zeros.
- if (trim) value = formatTrim(value);
-
- // If a negative value rounds to zero during formatting, treat as positive.
- if (valueNegative && +value === 0) valueNegative = false;
-
- // Compute the prefix and suffix.
- valuePrefix = (valueNegative ? (sign === "(" ? sign : "-") : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
- valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
-
- // Break the formatted value into the integer “value” part that can be
- // grouped, and fractional or exponential “suffix” part that is not.
- if (maybeSuffix) {
- i = -1, n = value.length;
- while (++i < n) {
- if (c = value.charCodeAt(i), 48 > c || c > 57) {
- valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
- value = value.slice(0, i);
- break;
- }
- }
- }
- }
-
- // If the fill character is not "0", grouping is applied before padding.
- if (comma && !zero) value = group(value, Infinity);
-
- // Compute the padding.
- var length = valuePrefix.length + value.length + valueSuffix.length,
- padding = length < width ? new Array(width - length + 1).join(fill) : "";
-
- // If the fill character is "0", grouping is applied after padding.
- if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
-
- // Reconstruct the final output based on the desired alignment.
- switch (align) {
- case "<": value = valuePrefix + value + valueSuffix + padding; break;
- case "=": value = valuePrefix + padding + value + valueSuffix; break;
- case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
- default: value = padding + valuePrefix + value + valueSuffix; break;
- }
-
- return numerals(value);
- }
-
- format.toString = function() {
- return specifier + "";
- };
-
- return format;
- }
-
- function formatPrefix(specifier, value) {
- var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
- e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
- k = Math.pow(10, -e),
- prefix = prefixes[8 + e / 3];
- return function(value) {
- return f(k * value) + prefix;
- };
- }
-
- return {
- format: newFormat,
- formatPrefix: formatPrefix
- };
-}
diff --git a/swh/web/static/jssources/d3-format/src/precisionFixed.js b/swh/web/static/jssources/d3-format/src/precisionFixed.js
deleted file mode 100644
index d94bb70c..00000000
--- a/swh/web/static/jssources/d3-format/src/precisionFixed.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import exponent from "./exponent";
-
-export default function(step) {
- return Math.max(0, -exponent(Math.abs(step)));
-}
diff --git a/swh/web/static/jssources/d3-format/src/precisionPrefix.js b/swh/web/static/jssources/d3-format/src/precisionPrefix.js
deleted file mode 100644
index 4713f479..00000000
--- a/swh/web/static/jssources/d3-format/src/precisionPrefix.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import exponent from "./exponent";
-
-export default function(step, value) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
-}
diff --git a/swh/web/static/jssources/d3-format/src/precisionRound.js b/swh/web/static/jssources/d3-format/src/precisionRound.js
deleted file mode 100644
index df198c28..00000000
--- a/swh/web/static/jssources/d3-format/src/precisionRound.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import exponent from "./exponent";
-
-export default function(step, max) {
- step = Math.abs(step), max = Math.abs(max) - step;
- return Math.max(0, exponent(max) - exponent(step)) + 1;
-}
diff --git a/swh/web/static/jssources/d3-geo/LICENSE.txt b/swh/web/static/jssources/d3-geo/LICENSE.txt
deleted file mode 100644
index f9488eb5..00000000
--- a/swh/web/static/jssources/d3-geo/LICENSE.txt
+++ /dev/null
@@ -1,48 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-This license applies to GeographicLib, versions 1.12 and later.
-
-Copyright (c) 2008-2012, Charles Karney
-
-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.
diff --git a/swh/web/static/jssources/d3-geo/src/adder.js b/swh/web/static/jssources/d3-geo/src/adder.js
deleted file mode 100644
index c9efd999..00000000
--- a/swh/web/static/jssources/d3-geo/src/adder.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Adds floating point numbers with twice the normal precision.
-// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
-// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
-// 305–363 (1997).
-// Code adapted from GeographicLib by Charles F. F. Karney,
-// http://geographiclib.sourceforge.net/
-
-export default function() {
- return new Adder;
-}
-
-function Adder() {
- this.reset();
-}
-
-Adder.prototype = {
- constructor: Adder,
- reset: function() {
- this.s = // rounded value
- this.t = 0; // exact error
- },
- add: function(y) {
- add(temp, y, this.t);
- add(this, temp.s, this.s);
- if (this.s) this.t += temp.t;
- else this.s = temp.t;
- },
- valueOf: function() {
- return this.s;
- }
-};
-
-var temp = new Adder;
-
-function add(adder, a, b) {
- var x = adder.s = a + b,
- bv = x - a,
- av = x - bv;
- adder.t = (a - av) + (b - bv);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/area.js b/swh/web/static/jssources/d3-geo/src/area.js
deleted file mode 100644
index e7e25973..00000000
--- a/swh/web/static/jssources/d3-geo/src/area.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import adder from "./adder";
-import {atan2, cos, quarterPi, radians, sin, tau} from "./math";
-import noop from "./noop";
-import stream from "./stream";
-
-export var areaRingSum = adder();
-
-var areaSum = adder(),
- lambda00,
- phi00,
- lambda0,
- cosPhi0,
- sinPhi0;
-
-export var areaStream = {
- point: noop,
- lineStart: noop,
- lineEnd: noop,
- polygonStart: function() {
- areaRingSum.reset();
- areaStream.lineStart = areaRingStart;
- areaStream.lineEnd = areaRingEnd;
- },
- polygonEnd: function() {
- var areaRing = +areaRingSum;
- areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);
- this.lineStart = this.lineEnd = this.point = noop;
- },
- sphere: function() {
- areaSum.add(tau);
- }
-};
-
-function areaRingStart() {
- areaStream.point = areaPointFirst;
-}
-
-function areaRingEnd() {
- areaPoint(lambda00, phi00);
-}
-
-function areaPointFirst(lambda, phi) {
- areaStream.point = areaPoint;
- lambda00 = lambda, phi00 = phi;
- lambda *= radians, phi *= radians;
- lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);
-}
-
-function areaPoint(lambda, phi) {
- lambda *= radians, phi *= radians;
- phi = phi / 2 + quarterPi; // half the angular distance from south pole
-
- // Spherical excess E for a spherical triangle with vertices: south pole,
- // previous point, current point. Uses a formula derived from Cagnoli’s
- // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
- var dLambda = lambda - lambda0,
- sdLambda = dLambda >= 0 ? 1 : -1,
- adLambda = sdLambda * dLambda,
- cosPhi = cos(phi),
- sinPhi = sin(phi),
- k = sinPhi0 * sinPhi,
- u = cosPhi0 * cosPhi + k * cos(adLambda),
- v = k * sdLambda * sin(adLambda);
- areaRingSum.add(atan2(v, u));
-
- // Advance the previous points.
- lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;
-}
-
-export default function(object) {
- areaSum.reset();
- stream(object, areaStream);
- return areaSum * 2;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/bounds.js b/swh/web/static/jssources/d3-geo/src/bounds.js
deleted file mode 100644
index 5e1d29e3..00000000
--- a/swh/web/static/jssources/d3-geo/src/bounds.js
+++ /dev/null
@@ -1,176 +0,0 @@
-import adder from "./adder";
-import {areaStream, areaRingSum} from "./area";
-import {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from "./cartesian";
-import {abs, degrees, epsilon, radians} from "./math";
-import stream from "./stream";
-
-var lambda0, phi0, lambda1, phi1, // bounds
- lambda2, // previous lambda-coordinate
- lambda00, phi00, // first point
- p0, // previous 3D point
- deltaSum = adder(),
- ranges,
- range;
-
-var boundsStream = {
- point: boundsPoint,
- lineStart: boundsLineStart,
- lineEnd: boundsLineEnd,
- polygonStart: function() {
- boundsStream.point = boundsRingPoint;
- boundsStream.lineStart = boundsRingStart;
- boundsStream.lineEnd = boundsRingEnd;
- deltaSum.reset();
- areaStream.polygonStart();
- },
- polygonEnd: function() {
- areaStream.polygonEnd();
- boundsStream.point = boundsPoint;
- boundsStream.lineStart = boundsLineStart;
- boundsStream.lineEnd = boundsLineEnd;
- if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
- else if (deltaSum > epsilon) phi1 = 90;
- else if (deltaSum < -epsilon) phi0 = -90;
- range[0] = lambda0, range[1] = lambda1;
- }
-};
-
-function boundsPoint(lambda, phi) {
- ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
- if (phi < phi0) phi0 = phi;
- if (phi > phi1) phi1 = phi;
-}
-
-function linePoint(lambda, phi) {
- var p = cartesian([lambda * radians, phi * radians]);
- if (p0) {
- var normal = cartesianCross(p0, p),
- equatorial = [normal[1], -normal[0], 0],
- inflection = cartesianCross(equatorial, normal);
- cartesianNormalizeInPlace(inflection);
- inflection = spherical(inflection);
- var delta = lambda - lambda2,
- sign = delta > 0 ? 1 : -1,
- lambdai = inflection[0] * degrees * sign,
- phii,
- antimeridian = abs(delta) > 180;
- if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
- phii = inflection[1] * degrees;
- if (phii > phi1) phi1 = phii;
- } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
- phii = -inflection[1] * degrees;
- if (phii < phi0) phi0 = phii;
- } else {
- if (phi < phi0) phi0 = phi;
- if (phi > phi1) phi1 = phi;
- }
- if (antimeridian) {
- if (lambda < lambda2) {
- if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
- } else {
- if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
- }
- } else {
- if (lambda1 >= lambda0) {
- if (lambda < lambda0) lambda0 = lambda;
- if (lambda > lambda1) lambda1 = lambda;
- } else {
- if (lambda > lambda2) {
- if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
- } else {
- if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
- }
- }
- }
- } else {
- ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
- }
- if (phi < phi0) phi0 = phi;
- if (phi > phi1) phi1 = phi;
- p0 = p, lambda2 = lambda;
-}
-
-function boundsLineStart() {
- boundsStream.point = linePoint;
-}
-
-function boundsLineEnd() {
- range[0] = lambda0, range[1] = lambda1;
- boundsStream.point = boundsPoint;
- p0 = null;
-}
-
-function boundsRingPoint(lambda, phi) {
- if (p0) {
- var delta = lambda - lambda2;
- deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);
- } else {
- lambda00 = lambda, phi00 = phi;
- }
- areaStream.point(lambda, phi);
- linePoint(lambda, phi);
-}
-
-function boundsRingStart() {
- areaStream.lineStart();
-}
-
-function boundsRingEnd() {
- boundsRingPoint(lambda00, phi00);
- areaStream.lineEnd();
- if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);
- range[0] = lambda0, range[1] = lambda1;
- p0 = null;
-}
-
-// Finds the left-right distance between two longitudes.
-// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want
-// the distance between ±180° to be 360°.
-function angle(lambda0, lambda1) {
- return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;
-}
-
-function rangeCompare(a, b) {
- return a[0] - b[0];
-}
-
-function rangeContains(range, x) {
- return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
-}
-
-export default function(feature) {
- var i, n, a, b, merged, deltaMax, delta;
-
- phi1 = lambda1 = -(lambda0 = phi0 = Infinity);
- ranges = [];
- stream(feature, boundsStream);
-
- // First, sort ranges by their minimum longitudes.
- if (n = ranges.length) {
- ranges.sort(rangeCompare);
-
- // Then, merge any ranges that overlap.
- for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {
- b = ranges[i];
- if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {
- if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
- if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
- } else {
- merged.push(a = b);
- }
- }
-
- // Finally, find the largest gap between the merged ranges.
- // The final bounding box will be the inverse of this gap.
- for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {
- b = merged[i];
- if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];
- }
- }
-
- ranges = range = null;
-
- return lambda0 === Infinity || phi0 === Infinity
- ? [[NaN, NaN], [NaN, NaN]]
- : [[lambda0, phi0], [lambda1, phi1]];
-}
diff --git a/swh/web/static/jssources/d3-geo/src/cartesian.js b/swh/web/static/jssources/d3-geo/src/cartesian.js
deleted file mode 100644
index 2526fa8a..00000000
--- a/swh/web/static/jssources/d3-geo/src/cartesian.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import {asin, atan2, cos, sin, sqrt} from "./math";
-
-export function spherical(cartesian) {
- return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];
-}
-
-export function cartesian(spherical) {
- var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);
- return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];
-}
-
-export function cartesianDot(a, b) {
- return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
-}
-
-export function cartesianCross(a, b) {
- return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
-}
-
-// TODO return a
-export function cartesianAddInPlace(a, b) {
- a[0] += b[0], a[1] += b[1], a[2] += b[2];
-}
-
-export function cartesianScale(vector, k) {
- return [vector[0] * k, vector[1] * k, vector[2] * k];
-}
-
-// TODO return d
-export function cartesianNormalizeInPlace(d) {
- var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
- d[0] /= l, d[1] /= l, d[2] /= l;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/centroid.js b/swh/web/static/jssources/d3-geo/src/centroid.js
deleted file mode 100644
index 37a924c8..00000000
--- a/swh/web/static/jssources/d3-geo/src/centroid.js
+++ /dev/null
@@ -1,140 +0,0 @@
-import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from "./math";
-import noop from "./noop";
-import stream from "./stream";
-
-var W0, W1,
- X0, Y0, Z0,
- X1, Y1, Z1,
- X2, Y2, Z2,
- lambda00, phi00, // first point
- x0, y0, z0; // previous point
-
-var centroidStream = {
- sphere: noop,
- point: centroidPoint,
- lineStart: centroidLineStart,
- lineEnd: centroidLineEnd,
- polygonStart: function() {
- centroidStream.lineStart = centroidRingStart;
- centroidStream.lineEnd = centroidRingEnd;
- },
- polygonEnd: function() {
- centroidStream.lineStart = centroidLineStart;
- centroidStream.lineEnd = centroidLineEnd;
- }
-};
-
-// Arithmetic mean of Cartesian vectors.
-function centroidPoint(lambda, phi) {
- lambda *= radians, phi *= radians;
- var cosPhi = cos(phi);
- centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));
-}
-
-function centroidPointCartesian(x, y, z) {
- ++W0;
- X0 += (x - X0) / W0;
- Y0 += (y - Y0) / W0;
- Z0 += (z - Z0) / W0;
-}
-
-function centroidLineStart() {
- centroidStream.point = centroidLinePointFirst;
-}
-
-function centroidLinePointFirst(lambda, phi) {
- lambda *= radians, phi *= radians;
- var cosPhi = cos(phi);
- x0 = cosPhi * cos(lambda);
- y0 = cosPhi * sin(lambda);
- z0 = sin(phi);
- centroidStream.point = centroidLinePoint;
- centroidPointCartesian(x0, y0, z0);
-}
-
-function centroidLinePoint(lambda, phi) {
- lambda *= radians, phi *= radians;
- var cosPhi = cos(phi),
- x = cosPhi * cos(lambda),
- y = cosPhi * sin(lambda),
- z = sin(phi),
- w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
- W1 += w;
- X1 += w * (x0 + (x0 = x));
- Y1 += w * (y0 + (y0 = y));
- Z1 += w * (z0 + (z0 = z));
- centroidPointCartesian(x0, y0, z0);
-}
-
-function centroidLineEnd() {
- centroidStream.point = centroidPoint;
-}
-
-// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,
-// J. Applied Mechanics 42, 239 (1975).
-function centroidRingStart() {
- centroidStream.point = centroidRingPointFirst;
-}
-
-function centroidRingEnd() {
- centroidRingPoint(lambda00, phi00);
- centroidStream.point = centroidPoint;
-}
-
-function centroidRingPointFirst(lambda, phi) {
- lambda00 = lambda, phi00 = phi;
- lambda *= radians, phi *= radians;
- centroidStream.point = centroidRingPoint;
- var cosPhi = cos(phi);
- x0 = cosPhi * cos(lambda);
- y0 = cosPhi * sin(lambda);
- z0 = sin(phi);
- centroidPointCartesian(x0, y0, z0);
-}
-
-function centroidRingPoint(lambda, phi) {
- lambda *= radians, phi *= radians;
- var cosPhi = cos(phi),
- x = cosPhi * cos(lambda),
- y = cosPhi * sin(lambda),
- z = sin(phi),
- cx = y0 * z - z0 * y,
- cy = z0 * x - x0 * z,
- cz = x0 * y - y0 * x,
- m = sqrt(cx * cx + cy * cy + cz * cz),
- w = asin(m), // line weight = angle
- v = m && -w / m; // area weight multiplier
- X2 += v * cx;
- Y2 += v * cy;
- Z2 += v * cz;
- W1 += w;
- X1 += w * (x0 + (x0 = x));
- Y1 += w * (y0 + (y0 = y));
- Z1 += w * (z0 + (z0 = z));
- centroidPointCartesian(x0, y0, z0);
-}
-
-export default function(object) {
- W0 = W1 =
- X0 = Y0 = Z0 =
- X1 = Y1 = Z1 =
- X2 = Y2 = Z2 = 0;
- stream(object, centroidStream);
-
- var x = X2,
- y = Y2,
- z = Z2,
- m = x * x + y * y + z * z;
-
- // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.
- if (m < epsilon2) {
- x = X1, y = Y1, z = Z1;
- // If the feature has zero length, fall back to arithmetic mean of point vectors.
- if (W1 < epsilon) x = X0, y = Y0, z = Z0;
- m = x * x + y * y + z * z;
- // If the feature still has an undefined ccentroid, then return.
- if (m < epsilon2) return [NaN, NaN];
- }
-
- return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];
-}
diff --git a/swh/web/static/jssources/d3-geo/src/circle.js b/swh/web/static/jssources/d3-geo/src/circle.js
deleted file mode 100644
index 9dbdbefe..00000000
--- a/swh/web/static/jssources/d3-geo/src/circle.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import {cartesian, cartesianNormalizeInPlace, spherical} from "./cartesian";
-import constant from "./constant";
-import {acos, cos, degrees, epsilon, radians, sin, tau} from "./math";
-import {rotateRadians} from "./rotation";
-
-// Generates a circle centered at [0°, 0°], with a given radius and precision.
-export function circleStream(stream, radius, delta, direction, t0, t1) {
- if (!delta) return;
- var cosRadius = cos(radius),
- sinRadius = sin(radius),
- step = direction * delta;
- if (t0 == null) {
- t0 = radius + direction * tau;
- t1 = radius - step / 2;
- } else {
- t0 = circleRadius(cosRadius, t0);
- t1 = circleRadius(cosRadius, t1);
- if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;
- }
- for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
- point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);
- stream.point(point[0], point[1]);
- }
-}
-
-// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
-function circleRadius(cosRadius, point) {
- point = cartesian(point), point[0] -= cosRadius;
- cartesianNormalizeInPlace(point);
- var radius = acos(-point[1]);
- return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
-}
-
-export default function() {
- var center = constant([0, 0]),
- radius = constant(90),
- precision = constant(6),
- ring,
- rotate,
- stream = {point: point};
-
- function point(x, y) {
- ring.push(x = rotate(x, y));
- x[0] *= degrees, x[1] *= degrees;
- }
-
- function circle() {
- var c = center.apply(this, arguments),
- r = radius.apply(this, arguments) * radians,
- p = precision.apply(this, arguments) * radians;
- ring = [];
- rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;
- circleStream(stream, r, p, 1);
- c = {type: "Polygon", coordinates: [ring]};
- ring = rotate = null;
- return c;
- }
-
- circle.center = function(_) {
- return arguments.length ? (center = typeof _ === "function" ? _ : constant([+_[0], +_[1]]), circle) : center;
- };
-
- circle.radius = function(_) {
- return arguments.length ? (radius = typeof _ === "function" ? _ : constant(+_), circle) : radius;
- };
-
- circle.precision = function(_) {
- return arguments.length ? (precision = typeof _ === "function" ? _ : constant(+_), circle) : precision;
- };
-
- return circle;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/antimeridian.js b/swh/web/static/jssources/d3-geo/src/clip/antimeridian.js
deleted file mode 100644
index 41b5ced0..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/antimeridian.js
+++ /dev/null
@@ -1,92 +0,0 @@
-import clip from "./index";
-import {abs, atan, cos, epsilon, halfPi, pi, sin} from "../math";
-
-export default clip(
- function() { return true; },
- clipAntimeridianLine,
- clipAntimeridianInterpolate,
- [-pi, -halfPi]
-);
-
-// Takes a line and cuts into visible segments. Return values: 0 - there were
-// intersections or the line was empty; 1 - no intersections; 2 - there were
-// intersections, and the first and last segments should be rejoined.
-function clipAntimeridianLine(stream) {
- var lambda0 = NaN,
- phi0 = NaN,
- sign0 = NaN,
- clean; // no intersections
-
- return {
- lineStart: function() {
- stream.lineStart();
- clean = 1;
- },
- point: function(lambda1, phi1) {
- var sign1 = lambda1 > 0 ? pi : -pi,
- delta = abs(lambda1 - lambda0);
- if (abs(delta - pi) < epsilon) { // line crosses a pole
- stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);
- stream.point(sign0, phi0);
- stream.lineEnd();
- stream.lineStart();
- stream.point(sign1, phi0);
- stream.point(lambda1, phi0);
- clean = 0;
- } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian
- if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies
- if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;
- phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
- stream.point(sign0, phi0);
- stream.lineEnd();
- stream.lineStart();
- stream.point(sign1, phi0);
- clean = 0;
- }
- stream.point(lambda0 = lambda1, phi0 = phi1);
- sign0 = sign1;
- },
- lineEnd: function() {
- stream.lineEnd();
- lambda0 = phi0 = NaN;
- },
- clean: function() {
- return 2 - clean; // if intersections, rejoin first and last segments
- }
- };
-}
-
-function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
- var cosPhi0,
- cosPhi1,
- sinLambda0Lambda1 = sin(lambda0 - lambda1);
- return abs(sinLambda0Lambda1) > epsilon
- ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)
- - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))
- / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))
- : (phi0 + phi1) / 2;
-}
-
-function clipAntimeridianInterpolate(from, to, direction, stream) {
- var phi;
- if (from == null) {
- phi = direction * halfPi;
- stream.point(-pi, phi);
- stream.point(0, phi);
- stream.point(pi, phi);
- stream.point(pi, 0);
- stream.point(pi, -phi);
- stream.point(0, -phi);
- stream.point(-pi, -phi);
- stream.point(-pi, 0);
- stream.point(-pi, phi);
- } else if (abs(from[0] - to[0]) > epsilon) {
- var lambda = from[0] < to[0] ? pi : -pi;
- phi = direction * lambda / 2;
- stream.point(-lambda, phi);
- stream.point(0, phi);
- stream.point(lambda, phi);
- } else {
- stream.point(to[0], to[1]);
- }
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/buffer.js b/swh/web/static/jssources/d3-geo/src/clip/buffer.js
deleted file mode 100644
index 0cb6b91d..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/buffer.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import noop from "../noop";
-
-export default function() {
- var lines = [],
- line;
- return {
- point: function(x, y) {
- line.push([x, y]);
- },
- lineStart: function() {
- lines.push(line = []);
- },
- lineEnd: noop,
- rejoin: function() {
- if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
- },
- result: function() {
- var result = lines;
- lines = [];
- line = null;
- return result;
- }
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/circle.js b/swh/web/static/jssources/d3-geo/src/clip/circle.js
deleted file mode 100644
index bac77e82..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/circle.js
+++ /dev/null
@@ -1,182 +0,0 @@
-import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from "../cartesian";
-import {circleStream} from "../circle";
-import {abs, cos, epsilon, pi, radians, sqrt} from "../math";
-import pointEqual from "../pointEqual";
-import clip from "./index";
-
-export default function(radius) {
- var cr = cos(radius),
- delta = 6 * radians,
- smallRadius = cr > 0,
- notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case
-
- function interpolate(from, to, direction, stream) {
- circleStream(stream, radius, delta, direction, from, to);
- }
-
- function visible(lambda, phi) {
- return cos(lambda) * cos(phi) > cr;
- }
-
- // Takes a line and cuts into visible segments. Return values used for polygon
- // clipping: 0 - there were intersections or the line was empty; 1 - no
- // intersections 2 - there were intersections, and the first and last segments
- // should be rejoined.
- function clipLine(stream) {
- var point0, // previous point
- c0, // code for previous point
- v0, // visibility of previous point
- v00, // visibility of first point
- clean; // no intersections
- return {
- lineStart: function() {
- v00 = v0 = false;
- clean = 1;
- },
- point: function(lambda, phi) {
- var point1 = [lambda, phi],
- point2,
- v = visible(lambda, phi),
- c = smallRadius
- ? v ? 0 : code(lambda, phi)
- : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;
- if (!point0 && (v00 = v0 = v)) stream.lineStart();
- // Handle degeneracies.
- // TODO ignore if not clipping polygons.
- if (v !== v0) {
- point2 = intersect(point0, point1);
- if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {
- point1[0] += epsilon;
- point1[1] += epsilon;
- v = visible(point1[0], point1[1]);
- }
- }
- if (v !== v0) {
- clean = 0;
- if (v) {
- // outside going in
- stream.lineStart();
- point2 = intersect(point1, point0);
- stream.point(point2[0], point2[1]);
- } else {
- // inside going out
- point2 = intersect(point0, point1);
- stream.point(point2[0], point2[1]);
- stream.lineEnd();
- }
- point0 = point2;
- } else if (notHemisphere && point0 && smallRadius ^ v) {
- var t;
- // If the codes for two points are different, or are both zero,
- // and there this segment intersects with the small circle.
- if (!(c & c0) && (t = intersect(point1, point0, true))) {
- clean = 0;
- if (smallRadius) {
- stream.lineStart();
- stream.point(t[0][0], t[0][1]);
- stream.point(t[1][0], t[1][1]);
- stream.lineEnd();
- } else {
- stream.point(t[1][0], t[1][1]);
- stream.lineEnd();
- stream.lineStart();
- stream.point(t[0][0], t[0][1]);
- }
- }
- }
- if (v && (!point0 || !pointEqual(point0, point1))) {
- stream.point(point1[0], point1[1]);
- }
- point0 = point1, v0 = v, c0 = c;
- },
- lineEnd: function() {
- if (v0) stream.lineEnd();
- point0 = null;
- },
- // Rejoin first and last segments if there were intersections and the first
- // and last points were visible.
- clean: function() {
- return clean | ((v00 && v0) << 1);
- }
- };
- }
-
- // Intersects the great circle between a and b with the clip circle.
- function intersect(a, b, two) {
- var pa = cartesian(a),
- pb = cartesian(b);
-
- // We have two planes, n1.p = d1 and n2.p = d2.
- // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).
- var n1 = [1, 0, 0], // normal
- n2 = cartesianCross(pa, pb),
- n2n2 = cartesianDot(n2, n2),
- n1n2 = n2[0], // cartesianDot(n1, n2),
- determinant = n2n2 - n1n2 * n1n2;
-
- // Two polar points.
- if (!determinant) return !two && a;
-
- var c1 = cr * n2n2 / determinant,
- c2 = -cr * n1n2 / determinant,
- n1xn2 = cartesianCross(n1, n2),
- A = cartesianScale(n1, c1),
- B = cartesianScale(n2, c2);
- cartesianAddInPlace(A, B);
-
- // Solve |p(t)|^2 = 1.
- var u = n1xn2,
- w = cartesianDot(A, u),
- uu = cartesianDot(u, u),
- t2 = w * w - uu * (cartesianDot(A, A) - 1);
-
- if (t2 < 0) return;
-
- var t = sqrt(t2),
- q = cartesianScale(u, (-w - t) / uu);
- cartesianAddInPlace(q, A);
- q = spherical(q);
-
- if (!two) return q;
-
- // Two intersection points.
- var lambda0 = a[0],
- lambda1 = b[0],
- phi0 = a[1],
- phi1 = b[1],
- z;
-
- if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;
-
- var delta = lambda1 - lambda0,
- polar = abs(delta - pi) < epsilon,
- meridian = polar || delta < epsilon;
-
- if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
-
- // Check that the first point is between a and b.
- if (meridian
- ? polar
- ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)
- : phi0 <= q[1] && q[1] <= phi1
- : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {
- var q1 = cartesianScale(u, (-w + t) / uu);
- cartesianAddInPlace(q1, A);
- return [q, spherical(q1)];
- }
- }
-
- // Generates a 4-bit vector representing the location of a point relative to
- // the small circle's bounding box.
- function code(lambda, phi) {
- var r = smallRadius ? radius : pi - radius,
- code = 0;
- if (lambda < -r) code |= 1; // left
- else if (lambda > r) code |= 2; // right
- if (phi < -r) code |= 4; // below
- else if (phi > r) code |= 8; // above
- return code;
- }
-
- return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/extent.js b/swh/web/static/jssources/d3-geo/src/clip/extent.js
deleted file mode 100644
index ca09032a..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/extent.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import clipRectangle from "./rectangle";
-
-export default function() {
- var x0 = 0,
- y0 = 0,
- x1 = 960,
- y1 = 500,
- cache,
- cacheStream,
- clip;
-
- return clip = {
- stream: function(stream) {
- return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);
- },
- extent: function(_) {
- return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];
- }
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/index.js b/swh/web/static/jssources/d3-geo/src/clip/index.js
deleted file mode 100644
index ca17cd76..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/index.js
+++ /dev/null
@@ -1,131 +0,0 @@
-import clipBuffer from "./buffer";
-import clipRejoin from "./rejoin";
-import {epsilon, halfPi} from "../math";
-import polygonContains from "../polygonContains";
-import {merge} from "d3-array";
-
-export default function(pointVisible, clipLine, interpolate, start) {
- return function(sink) {
- var line = clipLine(sink),
- ringBuffer = clipBuffer(),
- ringSink = clipLine(ringBuffer),
- polygonStarted = false,
- polygon,
- segments,
- ring;
-
- var clip = {
- point: point,
- lineStart: lineStart,
- lineEnd: lineEnd,
- polygonStart: function() {
- clip.point = pointRing;
- clip.lineStart = ringStart;
- clip.lineEnd = ringEnd;
- segments = [];
- polygon = [];
- },
- polygonEnd: function() {
- clip.point = point;
- clip.lineStart = lineStart;
- clip.lineEnd = lineEnd;
- segments = merge(segments);
- var startInside = polygonContains(polygon, start);
- if (segments.length) {
- if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
- clipRejoin(segments, compareIntersection, startInside, interpolate, sink);
- } else if (startInside) {
- if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
- sink.lineStart();
- interpolate(null, null, 1, sink);
- sink.lineEnd();
- }
- if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
- segments = polygon = null;
- },
- sphere: function() {
- sink.polygonStart();
- sink.lineStart();
- interpolate(null, null, 1, sink);
- sink.lineEnd();
- sink.polygonEnd();
- }
- };
-
- function point(lambda, phi) {
- if (pointVisible(lambda, phi)) sink.point(lambda, phi);
- }
-
- function pointLine(lambda, phi) {
- line.point(lambda, phi);
- }
-
- function lineStart() {
- clip.point = pointLine;
- line.lineStart();
- }
-
- function lineEnd() {
- clip.point = point;
- line.lineEnd();
- }
-
- function pointRing(lambda, phi) {
- ring.push([lambda, phi]);
- ringSink.point(lambda, phi);
- }
-
- function ringStart() {
- ringSink.lineStart();
- ring = [];
- }
-
- function ringEnd() {
- pointRing(ring[0][0], ring[0][1]);
- ringSink.lineEnd();
-
- var clean = ringSink.clean(),
- ringSegments = ringBuffer.result(),
- i, n = ringSegments.length, m,
- segment,
- point;
-
- ring.pop();
- polygon.push(ring);
- ring = null;
-
- if (!n) return;
-
- // No intersections.
- if (clean & 1) {
- segment = ringSegments[0];
- if ((m = segment.length - 1) > 0) {
- if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
- sink.lineStart();
- for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);
- sink.lineEnd();
- }
- return;
- }
-
- // Rejoin connected segments.
- // TODO reuse ringBuffer.rejoin()?
- if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
-
- segments.push(ringSegments.filter(validSegment));
- }
-
- return clip;
- };
-}
-
-function validSegment(segment) {
- return segment.length > 1;
-}
-
-// Intersections are sorted along the clip edge. For both antimeridian cutting
-// and circle clipping, the same comparison is used.
-function compareIntersection(a, b) {
- return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])
- - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/line.js b/swh/web/static/jssources/d3-geo/src/clip/line.js
deleted file mode 100644
index 3b173d7b..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/line.js
+++ /dev/null
@@ -1,59 +0,0 @@
-export default function(a, b, x0, y0, x1, y1) {
- var ax = a[0],
- ay = a[1],
- bx = b[0],
- by = b[1],
- t0 = 0,
- t1 = 1,
- dx = bx - ax,
- dy = by - ay,
- r;
-
- r = x0 - ax;
- if (!dx && r > 0) return;
- r /= dx;
- if (dx < 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- } else if (dx > 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- }
-
- r = x1 - ax;
- if (!dx && r < 0) return;
- r /= dx;
- if (dx < 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- } else if (dx > 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- }
-
- r = y0 - ay;
- if (!dy && r > 0) return;
- r /= dy;
- if (dy < 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- } else if (dy > 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- }
-
- r = y1 - ay;
- if (!dy && r < 0) return;
- r /= dy;
- if (dy < 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- } else if (dy > 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- }
-
- if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;
- if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;
- return true;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/rectangle.js b/swh/web/static/jssources/d3-geo/src/clip/rectangle.js
deleted file mode 100644
index ceab1c4e..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/rectangle.js
+++ /dev/null
@@ -1,168 +0,0 @@
-import {abs, epsilon} from "../math";
-import clipBuffer from "./buffer";
-import clipLine from "./line";
-import clipRejoin from "./rejoin";
-import {merge} from "d3-array";
-
-var clipMax = 1e9, clipMin = -clipMax;
-
-// TODO Use d3-polygon’s polygonContains here for the ring check?
-// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
-
-export default function clipRectangle(x0, y0, x1, y1) {
-
- function visible(x, y) {
- return x0 <= x && x <= x1 && y0 <= y && y <= y1;
- }
-
- function interpolate(from, to, direction, stream) {
- var a = 0, a1 = 0;
- if (from == null
- || (a = corner(from, direction)) !== (a1 = corner(to, direction))
- || comparePoint(from, to) < 0 ^ direction > 0) {
- do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
- while ((a = (a + direction + 4) % 4) !== a1);
- } else {
- stream.point(to[0], to[1]);
- }
- }
-
- function corner(p, direction) {
- return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3
- : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1
- : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0
- : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
- }
-
- function compareIntersection(a, b) {
- return comparePoint(a.x, b.x);
- }
-
- function comparePoint(a, b) {
- var ca = corner(a, 1),
- cb = corner(b, 1);
- return ca !== cb ? ca - cb
- : ca === 0 ? b[1] - a[1]
- : ca === 1 ? a[0] - b[0]
- : ca === 2 ? a[1] - b[1]
- : b[0] - a[0];
- }
-
- return function(stream) {
- var activeStream = stream,
- bufferStream = clipBuffer(),
- segments,
- polygon,
- ring,
- x__, y__, v__, // first point
- x_, y_, v_, // previous point
- first,
- clean;
-
- var clipStream = {
- point: point,
- lineStart: lineStart,
- lineEnd: lineEnd,
- polygonStart: polygonStart,
- polygonEnd: polygonEnd
- };
-
- function point(x, y) {
- if (visible(x, y)) activeStream.point(x, y);
- }
-
- function polygonInside() {
- var winding = 0;
-
- for (var i = 0, n = polygon.length; i < n; ++i) {
- for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {
- a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];
- if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }
- else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }
- }
- }
-
- return winding;
- }
-
- // Buffer geometry within a polygon and then clip it en masse.
- function polygonStart() {
- activeStream = bufferStream, segments = [], polygon = [], clean = true;
- }
-
- function polygonEnd() {
- var startInside = polygonInside(),
- cleanInside = clean && startInside,
- visible = (segments = merge(segments)).length;
- if (cleanInside || visible) {
- stream.polygonStart();
- if (cleanInside) {
- stream.lineStart();
- interpolate(null, null, 1, stream);
- stream.lineEnd();
- }
- if (visible) {
- clipRejoin(segments, compareIntersection, startInside, interpolate, stream);
- }
- stream.polygonEnd();
- }
- activeStream = stream, segments = polygon = ring = null;
- }
-
- function lineStart() {
- clipStream.point = linePoint;
- if (polygon) polygon.push(ring = []);
- first = true;
- v_ = false;
- x_ = y_ = NaN;
- }
-
- // TODO rather than special-case polygons, simply handle them separately.
- // Ideally, coincident intersection points should be jittered to avoid
- // clipping issues.
- function lineEnd() {
- if (segments) {
- linePoint(x__, y__);
- if (v__ && v_) bufferStream.rejoin();
- segments.push(bufferStream.result());
- }
- clipStream.point = point;
- if (v_) activeStream.lineEnd();
- }
-
- function linePoint(x, y) {
- var v = visible(x, y);
- if (polygon) ring.push([x, y]);
- if (first) {
- x__ = x, y__ = y, v__ = v;
- first = false;
- if (v) {
- activeStream.lineStart();
- activeStream.point(x, y);
- }
- } else {
- if (v && v_) activeStream.point(x, y);
- else {
- var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],
- b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];
- if (clipLine(a, b, x0, y0, x1, y1)) {
- if (!v_) {
- activeStream.lineStart();
- activeStream.point(a[0], a[1]);
- }
- activeStream.point(b[0], b[1]);
- if (!v) activeStream.lineEnd();
- clean = false;
- } else if (v) {
- activeStream.lineStart();
- activeStream.point(x, y);
- clean = false;
- }
- }
- }
- x_ = x, y_ = y, v_ = v;
- }
-
- return clipStream;
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/clip/rejoin.js b/swh/web/static/jssources/d3-geo/src/clip/rejoin.js
deleted file mode 100644
index dc42516c..00000000
--- a/swh/web/static/jssources/d3-geo/src/clip/rejoin.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import pointEqual from "../pointEqual";
-
-function Intersection(point, points, other, entry) {
- this.x = point;
- this.z = points;
- this.o = other; // another intersection
- this.e = entry; // is an entry?
- this.v = false; // visited
- this.n = this.p = null; // next & previous
-}
-
-// A generalized polygon clipping algorithm: given a polygon that has been cut
-// into its visible line segments, and rejoins the segments by interpolating
-// along the clip edge.
-export default function(segments, compareIntersection, startInside, interpolate, stream) {
- var subject = [],
- clip = [],
- i,
- n;
-
- segments.forEach(function(segment) {
- if ((n = segment.length - 1) <= 0) return;
- var n, p0 = segment[0], p1 = segment[n], x;
-
- // If the first and last points of a segment are coincident, then treat as a
- // closed ring. TODO if all rings are closed, then the winding order of the
- // exterior ring should be checked.
- if (pointEqual(p0, p1)) {
- stream.lineStart();
- for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);
- stream.lineEnd();
- return;
- }
-
- subject.push(x = new Intersection(p0, segment, null, true));
- clip.push(x.o = new Intersection(p0, null, x, false));
- subject.push(x = new Intersection(p1, segment, null, false));
- clip.push(x.o = new Intersection(p1, null, x, true));
- });
-
- if (!subject.length) return;
-
- clip.sort(compareIntersection);
- link(subject);
- link(clip);
-
- for (i = 0, n = clip.length; i < n; ++i) {
- clip[i].e = startInside = !startInside;
- }
-
- var start = subject[0],
- points,
- point;
-
- while (1) {
- // Find first unvisited intersection.
- var current = start,
- isSubject = true;
- while (current.v) if ((current = current.n) === start) return;
- points = current.z;
- stream.lineStart();
- do {
- current.v = current.o.v = true;
- if (current.e) {
- if (isSubject) {
- for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);
- } else {
- interpolate(current.x, current.n.x, 1, stream);
- }
- current = current.n;
- } else {
- if (isSubject) {
- points = current.p.z;
- for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);
- } else {
- interpolate(current.x, current.p.x, -1, stream);
- }
- current = current.p;
- }
- current = current.o;
- points = current.z;
- isSubject = !isSubject;
- } while (!current.v);
- stream.lineEnd();
- }
-}
-
-function link(array) {
- if (!(n = array.length)) return;
- var n,
- i = 0,
- a = array[0],
- b;
- while (++i < n) {
- a.n = b = array[i];
- b.p = a;
- a = b;
- }
- a.n = b = array[0];
- b.p = a;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/compose.js b/swh/web/static/jssources/d3-geo/src/compose.js
deleted file mode 100644
index f6a967a7..00000000
--- a/swh/web/static/jssources/d3-geo/src/compose.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export default function(a, b) {
-
- function compose(x, y) {
- return x = a(x, y), b(x[0], x[1]);
- }
-
- if (a.invert && b.invert) compose.invert = function(x, y) {
- return x = b.invert(x, y), x && a.invert(x[0], x[1]);
- };
-
- return compose;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/constant.js b/swh/web/static/jssources/d3-geo/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-geo/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/contains.js b/swh/web/static/jssources/d3-geo/src/contains.js
deleted file mode 100644
index 952a62d7..00000000
--- a/swh/web/static/jssources/d3-geo/src/contains.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import {default as polygonContains} from "./polygonContains";
-import {default as distance} from "./distance";
-import {epsilon, radians} from "./math";
-
-var containsObjectType = {
- Feature: function(object, point) {
- return containsGeometry(object.geometry, point);
- },
- FeatureCollection: function(object, point) {
- var features = object.features, i = -1, n = features.length;
- while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;
- return false;
- }
-};
-
-var containsGeometryType = {
- Sphere: function() {
- return true;
- },
- Point: function(object, point) {
- return containsPoint(object.coordinates, point);
- },
- MultiPoint: function(object, point) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) if (containsPoint(coordinates[i], point)) return true;
- return false;
- },
- LineString: function(object, point) {
- return containsLine(object.coordinates, point);
- },
- MultiLineString: function(object, point) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) if (containsLine(coordinates[i], point)) return true;
- return false;
- },
- Polygon: function(object, point) {
- return containsPolygon(object.coordinates, point);
- },
- MultiPolygon: function(object, point) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) if (containsPolygon(coordinates[i], point)) return true;
- return false;
- },
- GeometryCollection: function(object, point) {
- var geometries = object.geometries, i = -1, n = geometries.length;
- while (++i < n) if (containsGeometry(geometries[i], point)) return true;
- return false;
- }
-};
-
-function containsGeometry(geometry, point) {
- return geometry && containsGeometryType.hasOwnProperty(geometry.type)
- ? containsGeometryType[geometry.type](geometry, point)
- : false;
-}
-
-function containsPoint(coordinates, point) {
- return distance(coordinates, point) === 0;
-}
-
-function containsLine(coordinates, point) {
- var ab = distance(coordinates[0], coordinates[1]),
- ao = distance(coordinates[0], point),
- ob = distance(point, coordinates[1]);
- return ao + ob <= ab + epsilon;
-}
-
-function containsPolygon(coordinates, point) {
- return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));
-}
-
-function ringRadians(ring) {
- return ring = ring.map(pointRadians), ring.pop(), ring;
-}
-
-function pointRadians(point) {
- return [point[0] * radians, point[1] * radians];
-}
-
-export default function(object, point) {
- return (object && containsObjectType.hasOwnProperty(object.type)
- ? containsObjectType[object.type]
- : containsGeometry)(object, point);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/distance.js b/swh/web/static/jssources/d3-geo/src/distance.js
deleted file mode 100644
index 654472f7..00000000
--- a/swh/web/static/jssources/d3-geo/src/distance.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import length from "./length";
-
-var coordinates = [null, null],
- object = {type: "LineString", coordinates: coordinates};
-
-export default function(a, b) {
- coordinates[0] = a;
- coordinates[1] = b;
- return length(object);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/graticule.js b/swh/web/static/jssources/d3-geo/src/graticule.js
deleted file mode 100644
index ce0f2bd4..00000000
--- a/swh/web/static/jssources/d3-geo/src/graticule.js
+++ /dev/null
@@ -1,105 +0,0 @@
-import {range} from "d3-array";
-import {abs, ceil, epsilon} from "./math";
-
-function graticuleX(y0, y1, dy) {
- var y = range(y0, y1 - epsilon, dy).concat(y1);
- return function(x) { return y.map(function(y) { return [x, y]; }); };
-}
-
-function graticuleY(x0, x1, dx) {
- var x = range(x0, x1 - epsilon, dx).concat(x1);
- return function(y) { return x.map(function(x) { return [x, y]; }); };
-}
-
-export default function graticule() {
- var x1, x0, X1, X0,
- y1, y0, Y1, Y0,
- dx = 10, dy = dx, DX = 90, DY = 360,
- x, y, X, Y,
- precision = 2.5;
-
- function graticule() {
- return {type: "MultiLineString", coordinates: lines()};
- }
-
- function lines() {
- return range(ceil(X0 / DX) * DX, X1, DX).map(X)
- .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))
- .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))
- .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));
- }
-
- graticule.lines = function() {
- return lines().map(function(coordinates) { return {type: "LineString", coordinates: coordinates}; });
- };
-
- graticule.outline = function() {
- return {
- type: "Polygon",
- coordinates: [
- X(X0).concat(
- Y(Y1).slice(1),
- X(X1).reverse().slice(1),
- Y(Y0).reverse().slice(1))
- ]
- };
- };
-
- graticule.extent = function(_) {
- if (!arguments.length) return graticule.extentMinor();
- return graticule.extentMajor(_).extentMinor(_);
- };
-
- graticule.extentMajor = function(_) {
- if (!arguments.length) return [[X0, Y0], [X1, Y1]];
- X0 = +_[0][0], X1 = +_[1][0];
- Y0 = +_[0][1], Y1 = +_[1][1];
- if (X0 > X1) _ = X0, X0 = X1, X1 = _;
- if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;
- return graticule.precision(precision);
- };
-
- graticule.extentMinor = function(_) {
- if (!arguments.length) return [[x0, y0], [x1, y1]];
- x0 = +_[0][0], x1 = +_[1][0];
- y0 = +_[0][1], y1 = +_[1][1];
- if (x0 > x1) _ = x0, x0 = x1, x1 = _;
- if (y0 > y1) _ = y0, y0 = y1, y1 = _;
- return graticule.precision(precision);
- };
-
- graticule.step = function(_) {
- if (!arguments.length) return graticule.stepMinor();
- return graticule.stepMajor(_).stepMinor(_);
- };
-
- graticule.stepMajor = function(_) {
- if (!arguments.length) return [DX, DY];
- DX = +_[0], DY = +_[1];
- return graticule;
- };
-
- graticule.stepMinor = function(_) {
- if (!arguments.length) return [dx, dy];
- dx = +_[0], dy = +_[1];
- return graticule;
- };
-
- graticule.precision = function(_) {
- if (!arguments.length) return precision;
- precision = +_;
- x = graticuleX(y0, y1, 90);
- y = graticuleY(x0, x1, precision);
- X = graticuleX(Y0, Y1, 90);
- Y = graticuleY(X0, X1, precision);
- return graticule;
- };
-
- return graticule
- .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])
- .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);
-}
-
-export function graticule10() {
- return graticule()();
-}
diff --git a/swh/web/static/jssources/d3-geo/src/identity.js b/swh/web/static/jssources/d3-geo/src/identity.js
deleted file mode 100644
index b2f94b2e..00000000
--- a/swh/web/static/jssources/d3-geo/src/identity.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return x;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/index.js b/swh/web/static/jssources/d3-geo/src/index.js
deleted file mode 100644
index d8253c9f..00000000
--- a/swh/web/static/jssources/d3-geo/src/index.js
+++ /dev/null
@@ -1,34 +0,0 @@
-export {default as geoArea} from "./area";
-export {default as geoBounds} from "./bounds";
-export {default as geoCentroid} from "./centroid";
-export {default as geoCircle} from "./circle";
-export {default as geoClipAntimeridian} from "./clip/antimeridian";
-export {default as geoClipCircle} from "./clip/circle";
-export {default as geoClipExtent} from "./clip/extent"; // DEPRECATED! Use d3.geoIdentity().clipExtent(…).
-export {default as geoClipRectangle} from "./clip/rectangle";
-export {default as geoContains} from "./contains";
-export {default as geoDistance} from "./distance";
-export {default as geoGraticule, graticule10 as geoGraticule10} from "./graticule";
-export {default as geoInterpolate} from "./interpolate";
-export {default as geoLength} from "./length";
-export {default as geoPath} from "./path/index";
-export {default as geoAlbers} from "./projection/albers";
-export {default as geoAlbersUsa} from "./projection/albersUsa";
-export {default as geoAzimuthalEqualArea, azimuthalEqualAreaRaw as geoAzimuthalEqualAreaRaw} from "./projection/azimuthalEqualArea";
-export {default as geoAzimuthalEquidistant, azimuthalEquidistantRaw as geoAzimuthalEquidistantRaw} from "./projection/azimuthalEquidistant";
-export {default as geoConicConformal, conicConformalRaw as geoConicConformalRaw} from "./projection/conicConformal";
-export {default as geoConicEqualArea, conicEqualAreaRaw as geoConicEqualAreaRaw} from "./projection/conicEqualArea";
-export {default as geoConicEquidistant, conicEquidistantRaw as geoConicEquidistantRaw} from "./projection/conicEquidistant";
-export {default as geoEqualEarth, equalEarthRaw as geoEqualEarthRaw} from "./projection/equalEarth";
-export {default as geoEquirectangular, equirectangularRaw as geoEquirectangularRaw} from "./projection/equirectangular";
-export {default as geoGnomonic, gnomonicRaw as geoGnomonicRaw} from "./projection/gnomonic";
-export {default as geoIdentity} from "./projection/identity";
-export {default as geoProjection, projectionMutator as geoProjectionMutator} from "./projection/index";
-export {default as geoMercator, mercatorRaw as geoMercatorRaw} from "./projection/mercator";
-export {default as geoNaturalEarth1, naturalEarth1Raw as geoNaturalEarth1Raw} from "./projection/naturalEarth1";
-export {default as geoOrthographic, orthographicRaw as geoOrthographicRaw} from "./projection/orthographic";
-export {default as geoStereographic, stereographicRaw as geoStereographicRaw} from "./projection/stereographic";
-export {default as geoTransverseMercator, transverseMercatorRaw as geoTransverseMercatorRaw} from "./projection/transverseMercator";
-export {default as geoRotation} from "./rotation";
-export {default as geoStream} from "./stream";
-export {default as geoTransform} from "./transform";
diff --git a/swh/web/static/jssources/d3-geo/src/interpolate.js b/swh/web/static/jssources/d3-geo/src/interpolate.js
deleted file mode 100644
index 748ff3df..00000000
--- a/swh/web/static/jssources/d3-geo/src/interpolate.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from "./math";
-
-export default function(a, b) {
- var x0 = a[0] * radians,
- y0 = a[1] * radians,
- x1 = b[0] * radians,
- y1 = b[1] * radians,
- cy0 = cos(y0),
- sy0 = sin(y0),
- cy1 = cos(y1),
- sy1 = sin(y1),
- kx0 = cy0 * cos(x0),
- ky0 = cy0 * sin(x0),
- kx1 = cy1 * cos(x1),
- ky1 = cy1 * sin(x1),
- d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),
- k = sin(d);
-
- var interpolate = d ? function(t) {
- var B = sin(t *= d) / k,
- A = sin(d - t) / k,
- x = A * kx0 + B * kx1,
- y = A * ky0 + B * ky1,
- z = A * sy0 + B * sy1;
- return [
- atan2(y, x) * degrees,
- atan2(z, sqrt(x * x + y * y)) * degrees
- ];
- } : function() {
- return [x0 * degrees, y0 * degrees];
- };
-
- interpolate.distance = d;
-
- return interpolate;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/length.js b/swh/web/static/jssources/d3-geo/src/length.js
deleted file mode 100644
index 5db115b1..00000000
--- a/swh/web/static/jssources/d3-geo/src/length.js
+++ /dev/null
@@ -1,53 +0,0 @@
-import adder from "./adder";
-import {abs, atan2, cos, radians, sin, sqrt} from "./math";
-import noop from "./noop";
-import stream from "./stream";
-
-var lengthSum = adder(),
- lambda0,
- sinPhi0,
- cosPhi0;
-
-var lengthStream = {
- sphere: noop,
- point: noop,
- lineStart: lengthLineStart,
- lineEnd: noop,
- polygonStart: noop,
- polygonEnd: noop
-};
-
-function lengthLineStart() {
- lengthStream.point = lengthPointFirst;
- lengthStream.lineEnd = lengthLineEnd;
-}
-
-function lengthLineEnd() {
- lengthStream.point = lengthStream.lineEnd = noop;
-}
-
-function lengthPointFirst(lambda, phi) {
- lambda *= radians, phi *= radians;
- lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);
- lengthStream.point = lengthPoint;
-}
-
-function lengthPoint(lambda, phi) {
- lambda *= radians, phi *= radians;
- var sinPhi = sin(phi),
- cosPhi = cos(phi),
- delta = abs(lambda - lambda0),
- cosDelta = cos(delta),
- sinDelta = sin(delta),
- x = cosPhi * sinDelta,
- y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,
- z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;
- lengthSum.add(atan2(sqrt(x * x + y * y), z));
- lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;
-}
-
-export default function(object) {
- lengthSum.reset();
- stream(object, lengthStream);
- return +lengthSum;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/math.js b/swh/web/static/jssources/d3-geo/src/math.js
deleted file mode 100644
index 32f41fb4..00000000
--- a/swh/web/static/jssources/d3-geo/src/math.js
+++ /dev/null
@@ -1,35 +0,0 @@
-export var epsilon = 1e-6;
-export var epsilon2 = 1e-12;
-export var pi = Math.PI;
-export var halfPi = pi / 2;
-export var quarterPi = pi / 4;
-export var tau = pi * 2;
-
-export var degrees = 180 / pi;
-export var radians = pi / 180;
-
-export var abs = Math.abs;
-export var atan = Math.atan;
-export var atan2 = Math.atan2;
-export var cos = Math.cos;
-export var ceil = Math.ceil;
-export var exp = Math.exp;
-export var floor = Math.floor;
-export var log = Math.log;
-export var pow = Math.pow;
-export var sin = Math.sin;
-export var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };
-export var sqrt = Math.sqrt;
-export var tan = Math.tan;
-
-export function acos(x) {
- return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
-}
-
-export function asin(x) {
- return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);
-}
-
-export function haversin(x) {
- return (x = sin(x / 2)) * x;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/noop.js b/swh/web/static/jssources/d3-geo/src/noop.js
deleted file mode 100644
index ca6a7447..00000000
--- a/swh/web/static/jssources/d3-geo/src/noop.js
+++ /dev/null
@@ -1 +0,0 @@
-export default function noop() {}
diff --git a/swh/web/static/jssources/d3-geo/src/path/area.js b/swh/web/static/jssources/d3-geo/src/path/area.js
deleted file mode 100644
index 27d95b69..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/area.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import adder from "../adder";
-import {abs} from "../math";
-import noop from "../noop";
-
-var areaSum = adder(),
- areaRingSum = adder(),
- x00,
- y00,
- x0,
- y0;
-
-var areaStream = {
- point: noop,
- lineStart: noop,
- lineEnd: noop,
- polygonStart: function() {
- areaStream.lineStart = areaRingStart;
- areaStream.lineEnd = areaRingEnd;
- },
- polygonEnd: function() {
- areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;
- areaSum.add(abs(areaRingSum));
- areaRingSum.reset();
- },
- result: function() {
- var area = areaSum / 2;
- areaSum.reset();
- return area;
- }
-};
-
-function areaRingStart() {
- areaStream.point = areaPointFirst;
-}
-
-function areaPointFirst(x, y) {
- areaStream.point = areaPoint;
- x00 = x0 = x, y00 = y0 = y;
-}
-
-function areaPoint(x, y) {
- areaRingSum.add(y0 * x - x0 * y);
- x0 = x, y0 = y;
-}
-
-function areaRingEnd() {
- areaPoint(x00, y00);
-}
-
-export default areaStream;
diff --git a/swh/web/static/jssources/d3-geo/src/path/bounds.js b/swh/web/static/jssources/d3-geo/src/path/bounds.js
deleted file mode 100644
index 734926f9..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/bounds.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import noop from "../noop";
-
-var x0 = Infinity,
- y0 = x0,
- x1 = -x0,
- y1 = x1;
-
-var boundsStream = {
- point: boundsPoint,
- lineStart: noop,
- lineEnd: noop,
- polygonStart: noop,
- polygonEnd: noop,
- result: function() {
- var bounds = [[x0, y0], [x1, y1]];
- x1 = y1 = -(y0 = x0 = Infinity);
- return bounds;
- }
-};
-
-function boundsPoint(x, y) {
- if (x < x0) x0 = x;
- if (x > x1) x1 = x;
- if (y < y0) y0 = y;
- if (y > y1) y1 = y;
-}
-
-export default boundsStream;
diff --git a/swh/web/static/jssources/d3-geo/src/path/centroid.js b/swh/web/static/jssources/d3-geo/src/path/centroid.js
deleted file mode 100644
index 74a0f2e4..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/centroid.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import {sqrt} from "../math";
-
-// TODO Enforce positive area for exterior, negative area for interior?
-
-var X0 = 0,
- Y0 = 0,
- Z0 = 0,
- X1 = 0,
- Y1 = 0,
- Z1 = 0,
- X2 = 0,
- Y2 = 0,
- Z2 = 0,
- x00,
- y00,
- x0,
- y0;
-
-var centroidStream = {
- point: centroidPoint,
- lineStart: centroidLineStart,
- lineEnd: centroidLineEnd,
- polygonStart: function() {
- centroidStream.lineStart = centroidRingStart;
- centroidStream.lineEnd = centroidRingEnd;
- },
- polygonEnd: function() {
- centroidStream.point = centroidPoint;
- centroidStream.lineStart = centroidLineStart;
- centroidStream.lineEnd = centroidLineEnd;
- },
- result: function() {
- var centroid = Z2 ? [X2 / Z2, Y2 / Z2]
- : Z1 ? [X1 / Z1, Y1 / Z1]
- : Z0 ? [X0 / Z0, Y0 / Z0]
- : [NaN, NaN];
- X0 = Y0 = Z0 =
- X1 = Y1 = Z1 =
- X2 = Y2 = Z2 = 0;
- return centroid;
- }
-};
-
-function centroidPoint(x, y) {
- X0 += x;
- Y0 += y;
- ++Z0;
-}
-
-function centroidLineStart() {
- centroidStream.point = centroidPointFirstLine;
-}
-
-function centroidPointFirstLine(x, y) {
- centroidStream.point = centroidPointLine;
- centroidPoint(x0 = x, y0 = y);
-}
-
-function centroidPointLine(x, y) {
- var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);
- X1 += z * (x0 + x) / 2;
- Y1 += z * (y0 + y) / 2;
- Z1 += z;
- centroidPoint(x0 = x, y0 = y);
-}
-
-function centroidLineEnd() {
- centroidStream.point = centroidPoint;
-}
-
-function centroidRingStart() {
- centroidStream.point = centroidPointFirstRing;
-}
-
-function centroidRingEnd() {
- centroidPointRing(x00, y00);
-}
-
-function centroidPointFirstRing(x, y) {
- centroidStream.point = centroidPointRing;
- centroidPoint(x00 = x0 = x, y00 = y0 = y);
-}
-
-function centroidPointRing(x, y) {
- var dx = x - x0,
- dy = y - y0,
- z = sqrt(dx * dx + dy * dy);
-
- X1 += z * (x0 + x) / 2;
- Y1 += z * (y0 + y) / 2;
- Z1 += z;
-
- z = y0 * x - x0 * y;
- X2 += z * (x0 + x);
- Y2 += z * (y0 + y);
- Z2 += z * 3;
- centroidPoint(x0 = x, y0 = y);
-}
-
-export default centroidStream;
diff --git a/swh/web/static/jssources/d3-geo/src/path/context.js b/swh/web/static/jssources/d3-geo/src/path/context.js
deleted file mode 100644
index f8caa879..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/context.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import {tau} from "../math";
-import noop from "../noop";
-
-export default function PathContext(context) {
- this._context = context;
-}
-
-PathContext.prototype = {
- _radius: 4.5,
- pointRadius: function(_) {
- return this._radius = _, this;
- },
- polygonStart: function() {
- this._line = 0;
- },
- polygonEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line === 0) this._context.closePath();
- this._point = NaN;
- },
- point: function(x, y) {
- switch (this._point) {
- case 0: {
- this._context.moveTo(x, y);
- this._point = 1;
- break;
- }
- case 1: {
- this._context.lineTo(x, y);
- break;
- }
- default: {
- this._context.moveTo(x + this._radius, y);
- this._context.arc(x, y, this._radius, 0, tau);
- break;
- }
- }
- },
- result: noop
-};
diff --git a/swh/web/static/jssources/d3-geo/src/path/index.js b/swh/web/static/jssources/d3-geo/src/path/index.js
deleted file mode 100644
index 8140254a..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import identity from "../identity";
-import stream from "../stream";
-import pathArea from "./area";
-import pathBounds from "./bounds";
-import pathCentroid from "./centroid";
-import PathContext from "./context";
-import pathMeasure from "./measure";
-import PathString from "./string";
-
-export default function(projection, context) {
- var pointRadius = 4.5,
- projectionStream,
- contextStream;
-
- function path(object) {
- if (object) {
- if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
- stream(object, projectionStream(contextStream));
- }
- return contextStream.result();
- }
-
- path.area = function(object) {
- stream(object, projectionStream(pathArea));
- return pathArea.result();
- };
-
- path.measure = function(object) {
- stream(object, projectionStream(pathMeasure));
- return pathMeasure.result();
- };
-
- path.bounds = function(object) {
- stream(object, projectionStream(pathBounds));
- return pathBounds.result();
- };
-
- path.centroid = function(object) {
- stream(object, projectionStream(pathCentroid));
- return pathCentroid.result();
- };
-
- path.projection = function(_) {
- return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;
- };
-
- path.context = function(_) {
- if (!arguments.length) return context;
- contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);
- if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
- return path;
- };
-
- path.pointRadius = function(_) {
- if (!arguments.length) return pointRadius;
- pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
- return path;
- };
-
- return path.projection(projection).context(context);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/path/measure.js b/swh/web/static/jssources/d3-geo/src/path/measure.js
deleted file mode 100644
index 9054a24a..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/measure.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import adder from "../adder";
-import {sqrt} from "../math";
-import noop from "../noop";
-
-var lengthSum = adder(),
- lengthRing,
- x00,
- y00,
- x0,
- y0;
-
-var lengthStream = {
- point: noop,
- lineStart: function() {
- lengthStream.point = lengthPointFirst;
- },
- lineEnd: function() {
- if (lengthRing) lengthPoint(x00, y00);
- lengthStream.point = noop;
- },
- polygonStart: function() {
- lengthRing = true;
- },
- polygonEnd: function() {
- lengthRing = null;
- },
- result: function() {
- var length = +lengthSum;
- lengthSum.reset();
- return length;
- }
-};
-
-function lengthPointFirst(x, y) {
- lengthStream.point = lengthPoint;
- x00 = x0 = x, y00 = y0 = y;
-}
-
-function lengthPoint(x, y) {
- x0 -= x, y0 -= y;
- lengthSum.add(sqrt(x0 * x0 + y0 * y0));
- x0 = x, y0 = y;
-}
-
-export default lengthStream;
diff --git a/swh/web/static/jssources/d3-geo/src/path/string.js b/swh/web/static/jssources/d3-geo/src/path/string.js
deleted file mode 100644
index 02e57b0a..00000000
--- a/swh/web/static/jssources/d3-geo/src/path/string.js
+++ /dev/null
@@ -1,59 +0,0 @@
-export default function PathString() {
- this._string = [];
-}
-
-PathString.prototype = {
- _radius: 4.5,
- _circle: circle(4.5),
- pointRadius: function(_) {
- if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;
- return this;
- },
- polygonStart: function() {
- this._line = 0;
- },
- polygonEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line === 0) this._string.push("Z");
- this._point = NaN;
- },
- point: function(x, y) {
- switch (this._point) {
- case 0: {
- this._string.push("M", x, ",", y);
- this._point = 1;
- break;
- }
- case 1: {
- this._string.push("L", x, ",", y);
- break;
- }
- default: {
- if (this._circle == null) this._circle = circle(this._radius);
- this._string.push("M", x, ",", y, this._circle);
- break;
- }
- }
- },
- result: function() {
- if (this._string.length) {
- var result = this._string.join("");
- this._string = [];
- return result;
- } else {
- return null;
- }
- }
-};
-
-function circle(radius) {
- return "m0," + radius
- + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius
- + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius
- + "z";
-}
diff --git a/swh/web/static/jssources/d3-geo/src/pointEqual.js b/swh/web/static/jssources/d3-geo/src/pointEqual.js
deleted file mode 100644
index 00530d42..00000000
--- a/swh/web/static/jssources/d3-geo/src/pointEqual.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import {abs, epsilon} from "./math";
-
-export default function(a, b) {
- return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/polygonContains.js b/swh/web/static/jssources/d3-geo/src/polygonContains.js
deleted file mode 100644
index dad70ea2..00000000
--- a/swh/web/static/jssources/d3-geo/src/polygonContains.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import adder from "./adder";
-import {cartesian, cartesianCross, cartesianNormalizeInPlace} from "./cartesian";
-import {asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sin, tau} from "./math";
-
-var sum = adder();
-
-export default function(polygon, point) {
- var lambda = point[0],
- phi = point[1],
- sinPhi = sin(phi),
- normal = [sin(lambda), -cos(lambda), 0],
- angle = 0,
- winding = 0;
-
- sum.reset();
-
- if (sinPhi === 1) phi = halfPi + epsilon;
- else if (sinPhi === -1) phi = -halfPi - epsilon;
-
- for (var i = 0, n = polygon.length; i < n; ++i) {
- if (!(m = (ring = polygon[i]).length)) continue;
- var ring,
- m,
- point0 = ring[m - 1],
- lambda0 = point0[0],
- phi0 = point0[1] / 2 + quarterPi,
- sinPhi0 = sin(phi0),
- cosPhi0 = cos(phi0);
-
- for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {
- var point1 = ring[j],
- lambda1 = point1[0],
- phi1 = point1[1] / 2 + quarterPi,
- sinPhi1 = sin(phi1),
- cosPhi1 = cos(phi1),
- delta = lambda1 - lambda0,
- sign = delta >= 0 ? 1 : -1,
- absDelta = sign * delta,
- antimeridian = absDelta > pi,
- k = sinPhi0 * sinPhi1;
-
- sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));
- angle += antimeridian ? delta + sign * tau : delta;
-
- // Are the longitudes either side of the point’s meridian (lambda),
- // and are the latitudes smaller than the parallel (phi)?
- if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {
- var arc = cartesianCross(cartesian(point0), cartesian(point1));
- cartesianNormalizeInPlace(arc);
- var intersection = cartesianCross(normal, arc);
- cartesianNormalizeInPlace(intersection);
- var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);
- if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {
- winding += antimeridian ^ delta >= 0 ? 1 : -1;
- }
- }
- }
- }
-
- // First, determine whether the South pole is inside or outside:
- //
- // It is inside if:
- // * the polygon winds around it in a clockwise direction.
- // * the polygon does not (cumulatively) wind around it, but has a negative
- // (counter-clockwise) area.
- //
- // Second, count the (signed) number of times a segment crosses a lambda
- // from the point to the South pole. If it is zero, then the point is the
- // same side as the South pole.
-
- return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/albers.js b/swh/web/static/jssources/d3-geo/src/projection/albers.js
deleted file mode 100644
index 69ffcc12..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/albers.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import conicEqualArea from "./conicEqualArea";
-
-export default function() {
- return conicEqualArea()
- .parallels([29.5, 45.5])
- .scale(1070)
- .translate([480, 250])
- .rotate([96, 0])
- .center([-0.6, 38.7]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/albersUsa.js b/swh/web/static/jssources/d3-geo/src/projection/albersUsa.js
deleted file mode 100644
index cd61ff72..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/albersUsa.js
+++ /dev/null
@@ -1,111 +0,0 @@
-import {epsilon} from "../math";
-import albers from "./albers";
-import conicEqualArea from "./conicEqualArea";
-import {fitExtent, fitSize, fitWidth, fitHeight} from "./fit";
-
-// The projections must have mutually exclusive clip regions on the sphere,
-// as this will avoid emitting interleaving lines and polygons.
-function multiplex(streams) {
- var n = streams.length;
- return {
- point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },
- sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },
- lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },
- lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },
- polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },
- polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }
- };
-}
-
-// A composite projection for the United States, configured by default for
-// 960×500. The projection also works quite well at 960×600 if you change the
-// scale to 1285 and adjust the translate accordingly. The set of standard
-// parallels for each region comes from USGS, which is published here:
-// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers
-export default function() {
- var cache,
- cacheStream,
- lower48 = albers(), lower48Point,
- alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338
- hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007
- point, pointStream = {point: function(x, y) { point = [x, y]; }};
-
- function albersUsa(coordinates) {
- var x = coordinates[0], y = coordinates[1];
- return point = null,
- (lower48Point.point(x, y), point)
- || (alaskaPoint.point(x, y), point)
- || (hawaiiPoint.point(x, y), point);
- }
-
- albersUsa.invert = function(coordinates) {
- var k = lower48.scale(),
- t = lower48.translate(),
- x = (coordinates[0] - t[0]) / k,
- y = (coordinates[1] - t[1]) / k;
- return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska
- : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii
- : lower48).invert(coordinates);
- };
-
- albersUsa.stream = function(stream) {
- return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);
- };
-
- albersUsa.precision = function(_) {
- if (!arguments.length) return lower48.precision();
- lower48.precision(_), alaska.precision(_), hawaii.precision(_);
- return reset();
- };
-
- albersUsa.scale = function(_) {
- if (!arguments.length) return lower48.scale();
- lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);
- return albersUsa.translate(lower48.translate());
- };
-
- albersUsa.translate = function(_) {
- if (!arguments.length) return lower48.translate();
- var k = lower48.scale(), x = +_[0], y = +_[1];
-
- lower48Point = lower48
- .translate(_)
- .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])
- .stream(pointStream);
-
- alaskaPoint = alaska
- .translate([x - 0.307 * k, y + 0.201 * k])
- .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])
- .stream(pointStream);
-
- hawaiiPoint = hawaii
- .translate([x - 0.205 * k, y + 0.212 * k])
- .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])
- .stream(pointStream);
-
- return reset();
- };
-
- albersUsa.fitExtent = function(extent, object) {
- return fitExtent(albersUsa, extent, object);
- };
-
- albersUsa.fitSize = function(size, object) {
- return fitSize(albersUsa, size, object);
- };
-
- albersUsa.fitWidth = function(width, object) {
- return fitWidth(albersUsa, width, object);
- };
-
- albersUsa.fitHeight = function(height, object) {
- return fitHeight(albersUsa, height, object);
- };
-
- function reset() {
- cache = cacheStream = null;
- return albersUsa;
- }
-
- return albersUsa.scale(1070);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/azimuthal.js b/swh/web/static/jssources/d3-geo/src/projection/azimuthal.js
deleted file mode 100644
index d409ff8e..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/azimuthal.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import {asin, atan2, cos, sin, sqrt} from "../math";
-
-export function azimuthalRaw(scale) {
- return function(x, y) {
- var cx = cos(x),
- cy = cos(y),
- k = scale(cx * cy);
- return [
- k * cy * sin(x),
- k * sin(y)
- ];
- }
-}
-
-export function azimuthalInvert(angle) {
- return function(x, y) {
- var z = sqrt(x * x + y * y),
- c = angle(z),
- sc = sin(c),
- cc = cos(c);
- return [
- atan2(x * sc, z * cc),
- asin(z && y * sc / z)
- ];
- }
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/azimuthalEqualArea.js b/swh/web/static/jssources/d3-geo/src/projection/azimuthalEqualArea.js
deleted file mode 100644
index 666f50fd..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/azimuthalEqualArea.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import {asin, sqrt} from "../math";
-import {azimuthalRaw, azimuthalInvert} from "./azimuthal";
-import projection from "./index";
-
-export var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {
- return sqrt(2 / (1 + cxcy));
-});
-
-azimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {
- return 2 * asin(z / 2);
-});
-
-export default function() {
- return projection(azimuthalEqualAreaRaw)
- .scale(124.75)
- .clipAngle(180 - 1e-3);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/azimuthalEquidistant.js b/swh/web/static/jssources/d3-geo/src/projection/azimuthalEquidistant.js
deleted file mode 100644
index c95df427..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/azimuthalEquidistant.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import {acos, sin} from "../math";
-import {azimuthalRaw, azimuthalInvert} from "./azimuthal";
-import projection from "./index";
-
-export var azimuthalEquidistantRaw = azimuthalRaw(function(c) {
- return (c = acos(c)) && c / sin(c);
-});
-
-azimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {
- return z;
-});
-
-export default function() {
- return projection(azimuthalEquidistantRaw)
- .scale(79.4188)
- .clipAngle(180 - 1e-3);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/conic.js b/swh/web/static/jssources/d3-geo/src/projection/conic.js
deleted file mode 100644
index 31890138..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/conic.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import {degrees, pi, radians} from "../math";
-import {projectionMutator} from "./index";
-
-export function conicProjection(projectAt) {
- var phi0 = 0,
- phi1 = pi / 3,
- m = projectionMutator(projectAt),
- p = m(phi0, phi1);
-
- p.parallels = function(_) {
- return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];
- };
-
- return p;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/conicConformal.js b/swh/web/static/jssources/d3-geo/src/projection/conicConformal.js
deleted file mode 100644
index 968a368a..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/conicConformal.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from "../math";
-import {conicProjection} from "./conic";
-import {mercatorRaw} from "./mercator";
-
-function tany(y) {
- return tan((halfPi + y) / 2);
-}
-
-export function conicConformalRaw(y0, y1) {
- var cy0 = cos(y0),
- n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),
- f = cy0 * pow(tany(y0), n) / n;
-
- if (!n) return mercatorRaw;
-
- function project(x, y) {
- if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }
- else { if (y > halfPi - epsilon) y = halfPi - epsilon; }
- var r = f / pow(tany(y), n);
- return [r * sin(n * x), f - r * cos(n * x)];
- }
-
- project.invert = function(x, y) {
- var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);
- return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];
- };
-
- return project;
-}
-
-export default function() {
- return conicProjection(conicConformalRaw)
- .scale(109.5)
- .parallels([30, 30]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/conicEqualArea.js b/swh/web/static/jssources/d3-geo/src/projection/conicEqualArea.js
deleted file mode 100644
index c408bb17..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/conicEqualArea.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from "../math";
-import {conicProjection} from "./conic";
-import {cylindricalEqualAreaRaw} from "./cylindricalEqualArea";
-
-export function conicEqualAreaRaw(y0, y1) {
- var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;
-
- // Are the parallels symmetrical around the Equator?
- if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);
-
- var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;
-
- function project(x, y) {
- var r = sqrt(c - 2 * n * sin(y)) / n;
- return [r * sin(x *= n), r0 - r * cos(x)];
- }
-
- project.invert = function(x, y) {
- var r0y = r0 - y;
- return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];
- };
-
- return project;
-}
-
-export default function() {
- return conicProjection(conicEqualAreaRaw)
- .scale(155.424)
- .center([0, 33.6442]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/conicEquidistant.js b/swh/web/static/jssources/d3-geo/src/projection/conicEquidistant.js
deleted file mode 100644
index 7a5c31a3..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/conicEquidistant.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import {abs, atan2, cos, epsilon, sign, sin, sqrt} from "../math";
-import {conicProjection} from "./conic";
-import {equirectangularRaw} from "./equirectangular";
-
-export function conicEquidistantRaw(y0, y1) {
- var cy0 = cos(y0),
- n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),
- g = cy0 / n + y0;
-
- if (abs(n) < epsilon) return equirectangularRaw;
-
- function project(x, y) {
- var gy = g - y, nx = n * x;
- return [gy * sin(nx), g - gy * cos(nx)];
- }
-
- project.invert = function(x, y) {
- var gy = g - y;
- return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];
- };
-
- return project;
-}
-
-export default function() {
- return conicProjection(conicEquidistantRaw)
- .scale(131.154)
- .center([0, 13.9389]);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/cylindricalEqualArea.js b/swh/web/static/jssources/d3-geo/src/projection/cylindricalEqualArea.js
deleted file mode 100644
index 3074818f..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/cylindricalEqualArea.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import {asin, cos, sin} from "../math";
-
-export function cylindricalEqualAreaRaw(phi0) {
- var cosPhi0 = cos(phi0);
-
- function forward(lambda, phi) {
- return [lambda * cosPhi0, sin(phi) / cosPhi0];
- }
-
- forward.invert = function(x, y) {
- return [x / cosPhi0, asin(y * cosPhi0)];
- };
-
- return forward;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/equalEarth.js b/swh/web/static/jssources/d3-geo/src/projection/equalEarth.js
deleted file mode 100644
index dc5ce2cb..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/equalEarth.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import projection from "./index.js";
-import {abs, asin, cos, epsilon2, sin, sqrt} from "../math.js";
-
-var A1 = 1.340264,
- A2 = -0.081106,
- A3 = 0.000893,
- A4 = 0.003796,
- M = sqrt(3) / 2,
- iterations = 12;
-
-export function equalEarthRaw(lambda, phi) {
- var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;
- return [
- lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),
- l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))
- ];
-}
-
-equalEarthRaw.invert = function(x, y) {
- var l = y, l2 = l * l, l6 = l2 * l2 * l2;
- for (var i = 0, delta, fy, fpy; i < iterations; ++i) {
- fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;
- fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);
- l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;
- if (abs(delta) < epsilon2) break;
- }
- return [
- M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),
- asin(sin(l) / M)
- ];
-};
-
-export default function() {
- return projection(equalEarthRaw)
- .scale(177.158);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/equirectangular.js b/swh/web/static/jssources/d3-geo/src/projection/equirectangular.js
deleted file mode 100644
index 429b8e97..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/equirectangular.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import projection from "./index";
-
-export function equirectangularRaw(lambda, phi) {
- return [lambda, phi];
-}
-
-equirectangularRaw.invert = equirectangularRaw;
-
-export default function() {
- return projection(equirectangularRaw)
- .scale(152.63);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/fit.js b/swh/web/static/jssources/d3-geo/src/projection/fit.js
deleted file mode 100644
index 6931839c..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/fit.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import {default as geoStream} from "../stream";
-import boundsStream from "../path/bounds";
-
-function fit(projection, fitBounds, object) {
- var clip = projection.clipExtent && projection.clipExtent();
- projection.scale(150).translate([0, 0]);
- if (clip != null) projection.clipExtent(null);
- geoStream(object, projection.stream(boundsStream));
- fitBounds(boundsStream.result());
- if (clip != null) projection.clipExtent(clip);
- return projection;
-}
-
-export function fitExtent(projection, extent, object) {
- return fit(projection, function(b) {
- var w = extent[1][0] - extent[0][0],
- h = extent[1][1] - extent[0][1],
- k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),
- x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,
- y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;
- projection.scale(150 * k).translate([x, y]);
- }, object);
-}
-
-export function fitSize(projection, size, object) {
- return fitExtent(projection, [[0, 0], size], object);
-}
-
-export function fitWidth(projection, width, object) {
- return fit(projection, function(b) {
- var w = +width,
- k = w / (b[1][0] - b[0][0]),
- x = (w - k * (b[1][0] + b[0][0])) / 2,
- y = -k * b[0][1];
- projection.scale(150 * k).translate([x, y]);
- }, object);
-}
-
-export function fitHeight(projection, height, object) {
- return fit(projection, function(b) {
- var h = +height,
- k = h / (b[1][1] - b[0][1]),
- x = -k * b[0][0],
- y = (h - k * (b[1][1] + b[0][1])) / 2;
- projection.scale(150 * k).translate([x, y]);
- }, object);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/gnomonic.js b/swh/web/static/jssources/d3-geo/src/projection/gnomonic.js
deleted file mode 100644
index 026f18e3..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/gnomonic.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import {atan, cos, sin} from "../math";
-import {azimuthalInvert} from "./azimuthal";
-import projection from "./index";
-
-export function gnomonicRaw(x, y) {
- var cy = cos(y), k = cos(x) * cy;
- return [cy * sin(x) / k, sin(y) / k];
-}
-
-gnomonicRaw.invert = azimuthalInvert(atan);
-
-export default function() {
- return projection(gnomonicRaw)
- .scale(144.049)
- .clipAngle(60);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/identity.js b/swh/web/static/jssources/d3-geo/src/projection/identity.js
deleted file mode 100644
index b9bb8569..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/identity.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import clipRectangle from "../clip/rectangle";
-import identity from "../identity";
-import {transformer} from "../transform";
-import {fitExtent, fitSize, fitWidth, fitHeight} from "./fit";
-
-function scaleTranslate(kx, ky, tx, ty) {
- return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({
- point: function(x, y) {
- this.stream.point(x * kx + tx, y * ky + ty);
- }
- });
-}
-
-export default function() {
- var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect
- x0 = null, y0, x1, y1, // clip extent
- postclip = identity,
- cache,
- cacheStream,
- projection;
-
- function reset() {
- cache = cacheStream = null;
- return projection;
- }
-
- return projection = {
- stream: function(stream) {
- return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));
- },
- postclip: function(_) {
- return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
- },
- clipExtent: function(_) {
- return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];
- },
- scale: function(_) {
- return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;
- },
- translate: function(_) {
- return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];
- },
- reflectX: function(_) {
- return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;
- },
- reflectY: function(_) {
- return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;
- },
- fitExtent: function(extent, object) {
- return fitExtent(projection, extent, object);
- },
- fitSize: function(size, object) {
- return fitSize(projection, size, object);
- },
- fitWidth: function(width, object) {
- return fitWidth(projection, width, object);
- },
- fitHeight: function(height, object) {
- return fitHeight(projection, height, object);
- }
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/index.js b/swh/web/static/jssources/d3-geo/src/projection/index.js
deleted file mode 100644
index 8c5f977f..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/index.js
+++ /dev/null
@@ -1,164 +0,0 @@
-import clipAntimeridian from "../clip/antimeridian";
-import clipCircle from "../clip/circle";
-import clipRectangle from "../clip/rectangle";
-import compose from "../compose";
-import identity from "../identity";
-import {cos, degrees, radians, sin, sqrt} from "../math";
-import {rotateRadians} from "../rotation";
-import {transformer} from "../transform";
-import {fitExtent, fitSize, fitWidth, fitHeight} from "./fit";
-import resample from "./resample";
-
-var transformRadians = transformer({
- point: function(x, y) {
- this.stream.point(x * radians, y * radians);
- }
-});
-
-function transformRotate(rotate) {
- return transformer({
- point: function(x, y) {
- var r = rotate(x, y);
- return this.stream.point(r[0], r[1]);
- }
- });
-}
-
-function scaleTranslate(k, dx, dy) {
- function transform(x, y) {
- return [dx + k * x, dy - k * y];
- }
- transform.invert = function(x, y) {
- return [(x - dx) / k, (dy - y) / k];
- };
- return transform;
-}
-
-function scaleTranslateRotate(k, dx, dy, alpha) {
- var cosAlpha = cos(alpha),
- sinAlpha = sin(alpha),
- a = cosAlpha * k,
- b = sinAlpha * k,
- ai = cosAlpha / k,
- bi = sinAlpha / k,
- ci = (sinAlpha * dy - cosAlpha * dx) / k,
- fi = (sinAlpha * dx + cosAlpha * dy) / k;
- function transform(x, y) {
- return [a * x - b * y + dx, dy - b * x - a * y];
- }
- transform.invert = function(x, y) {
- return [ai * x - bi * y + ci, fi - bi * x - ai * y];
- };
- return transform;
-}
-
-export default function projection(project) {
- return projectionMutator(function() { return project; })();
-}
-
-export function projectionMutator(projectAt) {
- var project,
- k = 150, // scale
- x = 480, y = 250, // translate
- lambda = 0, phi = 0, // center
- deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate
- alpha = 0, // post-rotate
- theta = null, preclip = clipAntimeridian, // pre-clip angle
- x0 = null, y0, x1, y1, postclip = identity, // post-clip extent
- delta2 = 0.5, // precision
- projectResample,
- projectTransform,
- projectRotateTransform,
- cache,
- cacheStream;
-
- function projection(point) {
- return projectRotateTransform(point[0] * radians, point[1] * radians);
- }
-
- function invert(point) {
- point = projectRotateTransform.invert(point[0], point[1]);
- return point && [point[0] * degrees, point[1] * degrees];
- }
-
- projection.stream = function(stream) {
- return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));
- };
-
- projection.preclip = function(_) {
- return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;
- };
-
- projection.postclip = function(_) {
- return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
- };
-
- projection.clipAngle = function(_) {
- return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;
- };
-
- projection.clipExtent = function(_) {
- return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];
- };
-
- projection.scale = function(_) {
- return arguments.length ? (k = +_, recenter()) : k;
- };
-
- projection.translate = function(_) {
- return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];
- };
-
- projection.center = function(_) {
- return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];
- };
-
- projection.rotate = function(_) {
- return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];
- };
-
- projection.angle = function(_) {
- return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;
- };
-
- projection.precision = function(_) {
- return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);
- };
-
- projection.fitExtent = function(extent, object) {
- return fitExtent(projection, extent, object);
- };
-
- projection.fitSize = function(size, object) {
- return fitSize(projection, size, object);
- };
-
- projection.fitWidth = function(width, object) {
- return fitWidth(projection, width, object);
- };
-
- projection.fitHeight = function(height, object) {
- return fitHeight(projection, height, object);
- };
-
- function recenter() {
- var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),
- transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);
- rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);
- projectTransform = compose(project, transform);
- projectRotateTransform = compose(rotate, projectTransform);
- projectResample = resample(projectTransform, delta2);
- return reset();
- }
-
- function reset() {
- cache = cacheStream = null;
- return projection;
- }
-
- return function() {
- project = projectAt.apply(this, arguments);
- projection.invert = project.invert && invert;
- return recenter();
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/mercator.js b/swh/web/static/jssources/d3-geo/src/projection/mercator.js
deleted file mode 100644
index 7908dd68..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/mercator.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import {atan, exp, halfPi, log, pi, tan, tau} from "../math";
-import rotation from "../rotation";
-import projection from "./index";
-
-export function mercatorRaw(lambda, phi) {
- return [lambda, log(tan((halfPi + phi) / 2))];
-}
-
-mercatorRaw.invert = function(x, y) {
- return [x, 2 * atan(exp(y)) - halfPi];
-};
-
-export default function() {
- return mercatorProjection(mercatorRaw)
- .scale(961 / tau);
-}
-
-export function mercatorProjection(project) {
- var m = projection(project),
- center = m.center,
- scale = m.scale,
- translate = m.translate,
- clipExtent = m.clipExtent,
- x0 = null, y0, x1, y1; // clip extent
-
- m.scale = function(_) {
- return arguments.length ? (scale(_), reclip()) : scale();
- };
-
- m.translate = function(_) {
- return arguments.length ? (translate(_), reclip()) : translate();
- };
-
- m.center = function(_) {
- return arguments.length ? (center(_), reclip()) : center();
- };
-
- m.clipExtent = function(_) {
- return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];
- };
-
- function reclip() {
- var k = pi * scale(),
- t = m(rotation(m.rotate()).invert([0, 0]));
- return clipExtent(x0 == null
- ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw
- ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]
- : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);
- }
-
- return reclip();
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/naturalEarth1.js b/swh/web/static/jssources/d3-geo/src/projection/naturalEarth1.js
deleted file mode 100644
index 43413dcc..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/naturalEarth1.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import projection from "./index";
-import {abs, epsilon} from "../math";
-
-export function naturalEarth1Raw(lambda, phi) {
- var phi2 = phi * phi, phi4 = phi2 * phi2;
- return [
- lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),
- phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))
- ];
-}
-
-naturalEarth1Raw.invert = function(x, y) {
- var phi = y, i = 25, delta;
- do {
- var phi2 = phi * phi, phi4 = phi2 * phi2;
- phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /
- (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));
- } while (abs(delta) > epsilon && --i > 0);
- return [
- x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),
- phi
- ];
-};
-
-export default function() {
- return projection(naturalEarth1Raw)
- .scale(175.295);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/orthographic.js b/swh/web/static/jssources/d3-geo/src/projection/orthographic.js
deleted file mode 100644
index 53736a84..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/orthographic.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import {asin, cos, epsilon, sin} from "../math";
-import {azimuthalInvert} from "./azimuthal";
-import projection from "./index";
-
-export function orthographicRaw(x, y) {
- return [cos(y) * sin(x), sin(y)];
-}
-
-orthographicRaw.invert = azimuthalInvert(asin);
-
-export default function() {
- return projection(orthographicRaw)
- .scale(249.5)
- .clipAngle(90 + epsilon);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/resample.js b/swh/web/static/jssources/d3-geo/src/projection/resample.js
deleted file mode 100644
index a9019691..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/resample.js
+++ /dev/null
@@ -1,102 +0,0 @@
-import {cartesian} from "../cartesian";
-import {abs, asin, atan2, cos, epsilon, radians, sqrt} from "../math";
-import {transformer} from "../transform";
-
-var maxDepth = 16, // maximum depth of subdivision
- cosMinDistance = cos(30 * radians); // cos(minimum angular distance)
-
-export default function(project, delta2) {
- return +delta2 ? resample(project, delta2) : resampleNone(project);
-}
-
-function resampleNone(project) {
- return transformer({
- point: function(x, y) {
- x = project(x, y);
- this.stream.point(x[0], x[1]);
- }
- });
-}
-
-function resample(project, delta2) {
-
- function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
- var dx = x1 - x0,
- dy = y1 - y0,
- d2 = dx * dx + dy * dy;
- if (d2 > 4 * delta2 && depth--) {
- var a = a0 + a1,
- b = b0 + b1,
- c = c0 + c1,
- m = sqrt(a * a + b * b + c * c),
- phi2 = asin(c /= m),
- lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),
- p = project(lambda2, phi2),
- x2 = p[0],
- y2 = p[1],
- dx2 = x2 - x0,
- dy2 = y2 - y0,
- dz = dy * dx2 - dx * dy2;
- if (dz * dz / d2 > delta2 // perpendicular projected distance
- || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end
- || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance
- resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);
- stream.point(x2, y2);
- resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);
- }
- }
- }
- return function(stream) {
- var lambda00, x00, y00, a00, b00, c00, // first point
- lambda0, x0, y0, a0, b0, c0; // previous point
-
- var resampleStream = {
- point: point,
- lineStart: lineStart,
- lineEnd: lineEnd,
- polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },
- polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }
- };
-
- function point(x, y) {
- x = project(x, y);
- stream.point(x[0], x[1]);
- }
-
- function lineStart() {
- x0 = NaN;
- resampleStream.point = linePoint;
- stream.lineStart();
- }
-
- function linePoint(lambda, phi) {
- var c = cartesian([lambda, phi]), p = project(lambda, phi);
- resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
- stream.point(x0, y0);
- }
-
- function lineEnd() {
- resampleStream.point = point;
- stream.lineEnd();
- }
-
- function ringStart() {
- lineStart();
- resampleStream.point = ringPoint;
- resampleStream.lineEnd = ringEnd;
- }
-
- function ringPoint(lambda, phi) {
- linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
- resampleStream.point = linePoint;
- }
-
- function ringEnd() {
- resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);
- resampleStream.lineEnd = lineEnd;
- lineEnd();
- }
-
- return resampleStream;
- };
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/stereographic.js b/swh/web/static/jssources/d3-geo/src/projection/stereographic.js
deleted file mode 100644
index 1e68e30e..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/stereographic.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import {atan, cos, sin} from "../math";
-import {azimuthalInvert} from "./azimuthal";
-import projection from "./index";
-
-export function stereographicRaw(x, y) {
- var cy = cos(y), k = 1 + cos(x) * cy;
- return [cy * sin(x) / k, sin(y) / k];
-}
-
-stereographicRaw.invert = azimuthalInvert(function(z) {
- return 2 * atan(z);
-});
-
-export default function() {
- return projection(stereographicRaw)
- .scale(250)
- .clipAngle(142);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/projection/transverseMercator.js b/swh/web/static/jssources/d3-geo/src/projection/transverseMercator.js
deleted file mode 100644
index 822a3a44..00000000
--- a/swh/web/static/jssources/d3-geo/src/projection/transverseMercator.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import {atan, exp, halfPi, log, tan} from "../math";
-import {mercatorProjection} from "./mercator";
-
-export function transverseMercatorRaw(lambda, phi) {
- return [log(tan((halfPi + phi) / 2)), -lambda];
-}
-
-transverseMercatorRaw.invert = function(x, y) {
- return [-y, 2 * atan(exp(x)) - halfPi];
-};
-
-export default function() {
- var m = mercatorProjection(transverseMercatorRaw),
- center = m.center,
- rotate = m.rotate;
-
- m.center = function(_) {
- return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);
- };
-
- m.rotate = function(_) {
- return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);
- };
-
- return rotate([0, 0, 90])
- .scale(159.155);
-}
diff --git a/swh/web/static/jssources/d3-geo/src/rotation.js b/swh/web/static/jssources/d3-geo/src/rotation.js
deleted file mode 100644
index 4e3ead68..00000000
--- a/swh/web/static/jssources/d3-geo/src/rotation.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import compose from "./compose";
-import {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from "./math";
-
-function rotationIdentity(lambda, phi) {
- return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];
-}
-
-rotationIdentity.invert = rotationIdentity;
-
-export function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
- return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))
- : rotationLambda(deltaLambda))
- : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)
- : rotationIdentity);
-}
-
-function forwardRotationLambda(deltaLambda) {
- return function(lambda, phi) {
- return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];
- };
-}
-
-function rotationLambda(deltaLambda) {
- var rotation = forwardRotationLambda(deltaLambda);
- rotation.invert = forwardRotationLambda(-deltaLambda);
- return rotation;
-}
-
-function rotationPhiGamma(deltaPhi, deltaGamma) {
- var cosDeltaPhi = cos(deltaPhi),
- sinDeltaPhi = sin(deltaPhi),
- cosDeltaGamma = cos(deltaGamma),
- sinDeltaGamma = sin(deltaGamma);
-
- function rotation(lambda, phi) {
- var cosPhi = cos(phi),
- x = cos(lambda) * cosPhi,
- y = sin(lambda) * cosPhi,
- z = sin(phi),
- k = z * cosDeltaPhi + x * sinDeltaPhi;
- return [
- atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),
- asin(k * cosDeltaGamma + y * sinDeltaGamma)
- ];
- }
-
- rotation.invert = function(lambda, phi) {
- var cosPhi = cos(phi),
- x = cos(lambda) * cosPhi,
- y = sin(lambda) * cosPhi,
- z = sin(phi),
- k = z * cosDeltaGamma - y * sinDeltaGamma;
- return [
- atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),
- asin(k * cosDeltaPhi - x * sinDeltaPhi)
- ];
- };
-
- return rotation;
-}
-
-export default function(rotate) {
- rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);
-
- function forward(coordinates) {
- coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);
- return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;
- }
-
- forward.invert = function(coordinates) {
- coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);
- return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;
- };
-
- return forward;
-}
diff --git a/swh/web/static/jssources/d3-geo/src/stream.js b/swh/web/static/jssources/d3-geo/src/stream.js
deleted file mode 100644
index ee994ae4..00000000
--- a/swh/web/static/jssources/d3-geo/src/stream.js
+++ /dev/null
@@ -1,69 +0,0 @@
-function streamGeometry(geometry, stream) {
- if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
- streamGeometryType[geometry.type](geometry, stream);
- }
-}
-
-var streamObjectType = {
- Feature: function(object, stream) {
- streamGeometry(object.geometry, stream);
- },
- FeatureCollection: function(object, stream) {
- var features = object.features, i = -1, n = features.length;
- while (++i < n) streamGeometry(features[i].geometry, stream);
- }
-};
-
-var streamGeometryType = {
- Sphere: function(object, stream) {
- stream.sphere();
- },
- Point: function(object, stream) {
- object = object.coordinates;
- stream.point(object[0], object[1], object[2]);
- },
- MultiPoint: function(object, stream) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);
- },
- LineString: function(object, stream) {
- streamLine(object.coordinates, stream, 0);
- },
- MultiLineString: function(object, stream) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) streamLine(coordinates[i], stream, 0);
- },
- Polygon: function(object, stream) {
- streamPolygon(object.coordinates, stream);
- },
- MultiPolygon: function(object, stream) {
- var coordinates = object.coordinates, i = -1, n = coordinates.length;
- while (++i < n) streamPolygon(coordinates[i], stream);
- },
- GeometryCollection: function(object, stream) {
- var geometries = object.geometries, i = -1, n = geometries.length;
- while (++i < n) streamGeometry(geometries[i], stream);
- }
-};
-
-function streamLine(coordinates, stream, closed) {
- var i = -1, n = coordinates.length - closed, coordinate;
- stream.lineStart();
- while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
- stream.lineEnd();
-}
-
-function streamPolygon(coordinates, stream) {
- var i = -1, n = coordinates.length;
- stream.polygonStart();
- while (++i < n) streamLine(coordinates[i], stream, 1);
- stream.polygonEnd();
-}
-
-export default function(object, stream) {
- if (object && streamObjectType.hasOwnProperty(object.type)) {
- streamObjectType[object.type](object, stream);
- } else {
- streamGeometry(object, stream);
- }
-}
diff --git a/swh/web/static/jssources/d3-geo/src/transform.js b/swh/web/static/jssources/d3-geo/src/transform.js
deleted file mode 100644
index a954bc5a..00000000
--- a/swh/web/static/jssources/d3-geo/src/transform.js
+++ /dev/null
@@ -1,26 +0,0 @@
-export default function(methods) {
- return {
- stream: transformer(methods)
- };
-}
-
-export function transformer(methods) {
- return function(stream) {
- var s = new TransformStream;
- for (var key in methods) s[key] = methods[key];
- s.stream = stream;
- return s;
- };
-}
-
-function TransformStream() {}
-
-TransformStream.prototype = {
- constructor: TransformStream,
- point: function(x, y) { this.stream.point(x, y); },
- sphere: function() { this.stream.sphere(); },
- lineStart: function() { this.stream.lineStart(); },
- lineEnd: function() { this.stream.lineEnd(); },
- polygonStart: function() { this.stream.polygonStart(); },
- polygonEnd: function() { this.stream.polygonEnd(); }
-};
diff --git a/swh/web/static/jssources/d3-hierarchy/LICENSE.txt b/swh/web/static/jssources/d3-hierarchy/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-hierarchy/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-hierarchy/src/accessors.js b/swh/web/static/jssources/d3-hierarchy/src/accessors.js
deleted file mode 100644
index 369c4145..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/accessors.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export function optional(f) {
- return f == null ? null : required(f);
-}
-
-export function required(f) {
- if (typeof f !== "function") throw new Error;
- return f;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/array.js b/swh/web/static/jssources/d3-hierarchy/src/array.js
deleted file mode 100644
index c015cc9f..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/array.js
+++ /dev/null
@@ -1,16 +0,0 @@
-export var slice = Array.prototype.slice;
-
-export function shuffle(array) {
- var m = array.length,
- t,
- i;
-
- while (m) {
- i = Math.random() * m-- | 0;
- t = array[m];
- array[m] = array[i];
- array[i] = t;
- }
-
- return array;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/cluster.js b/swh/web/static/jssources/d3-hierarchy/src/cluster.js
deleted file mode 100644
index f5a280e2..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/cluster.js
+++ /dev/null
@@ -1,84 +0,0 @@
-function defaultSeparation(a, b) {
- return a.parent === b.parent ? 1 : 2;
-}
-
-function meanX(children) {
- return children.reduce(meanXReduce, 0) / children.length;
-}
-
-function meanXReduce(x, c) {
- return x + c.x;
-}
-
-function maxY(children) {
- return 1 + children.reduce(maxYReduce, 0);
-}
-
-function maxYReduce(y, c) {
- return Math.max(y, c.y);
-}
-
-function leafLeft(node) {
- var children;
- while (children = node.children) node = children[0];
- return node;
-}
-
-function leafRight(node) {
- var children;
- while (children = node.children) node = children[children.length - 1];
- return node;
-}
-
-export default function() {
- var separation = defaultSeparation,
- dx = 1,
- dy = 1,
- nodeSize = false;
-
- function cluster(root) {
- var previousNode,
- x = 0;
-
- // First walk, computing the initial x & y values.
- root.eachAfter(function(node) {
- var children = node.children;
- if (children) {
- node.x = meanX(children);
- node.y = maxY(children);
- } else {
- node.x = previousNode ? x += separation(node, previousNode) : 0;
- node.y = 0;
- previousNode = node;
- }
- });
-
- var left = leafLeft(root),
- right = leafRight(root),
- x0 = left.x - separation(left, right) / 2,
- x1 = right.x + separation(right, left) / 2;
-
- // Second walk, normalizing x & y to the desired size.
- return root.eachAfter(nodeSize ? function(node) {
- node.x = (node.x - root.x) * dx;
- node.y = (root.y - node.y) * dy;
- } : function(node) {
- node.x = (node.x - x0) / (x1 - x0) * dx;
- node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;
- });
- }
-
- cluster.separation = function(x) {
- return arguments.length ? (separation = x, cluster) : separation;
- };
-
- cluster.size = function(x) {
- return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);
- };
-
- cluster.nodeSize = function(x) {
- return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);
- };
-
- return cluster;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/constant.js b/swh/web/static/jssources/d3-hierarchy/src/constant.js
deleted file mode 100644
index 1d947c4f..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/constant.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export function constantZero() {
- return 0;
-}
-
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/ancestors.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/ancestors.js
deleted file mode 100644
index f70c7264..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/ancestors.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function() {
- var node = this, nodes = [node];
- while (node = node.parent) {
- nodes.push(node);
- }
- return nodes;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/count.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/count.js
deleted file mode 100644
index 0b90f1bd..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/count.js
+++ /dev/null
@@ -1,12 +0,0 @@
-function count(node) {
- var sum = 0,
- children = node.children,
- i = children && children.length;
- if (!i) sum = 1;
- else while (--i >= 0) sum += children[i].value;
- node.value = sum;
-}
-
-export default function() {
- return this.eachAfter(count);
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/descendants.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/descendants.js
deleted file mode 100644
index 1e3b5e6b..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/descendants.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function() {
- var nodes = [];
- this.each(function(node) {
- nodes.push(node);
- });
- return nodes;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/each.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/each.js
deleted file mode 100644
index 767e2da1..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/each.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function(callback) {
- var node = this, current, next = [node], children, i, n;
- do {
- current = next.reverse(), next = [];
- while (node = current.pop()) {
- callback(node), children = node.children;
- if (children) for (i = 0, n = children.length; i < n; ++i) {
- next.push(children[i]);
- }
- }
- } while (next.length);
- return this;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachAfter.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachAfter.js
deleted file mode 100644
index 4ad4f15c..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachAfter.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function(callback) {
- var node = this, nodes = [node], next = [], children, i, n;
- while (node = nodes.pop()) {
- next.push(node), children = node.children;
- if (children) for (i = 0, n = children.length; i < n; ++i) {
- nodes.push(children[i]);
- }
- }
- while (node = next.pop()) {
- callback(node);
- }
- return this;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachBefore.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachBefore.js
deleted file mode 100644
index 23c5ccd2..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/eachBefore.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export default function(callback) {
- var node = this, nodes = [node], children, i;
- while (node = nodes.pop()) {
- callback(node), children = node.children;
- if (children) for (i = children.length - 1; i >= 0; --i) {
- nodes.push(children[i]);
- }
- }
- return this;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/index.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/index.js
deleted file mode 100644
index f428ce6c..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/index.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import node_count from "./count";
-import node_each from "./each";
-import node_eachBefore from "./eachBefore";
-import node_eachAfter from "./eachAfter";
-import node_sum from "./sum";
-import node_sort from "./sort";
-import node_path from "./path";
-import node_ancestors from "./ancestors";
-import node_descendants from "./descendants";
-import node_leaves from "./leaves";
-import node_links from "./links";
-
-export default function hierarchy(data, children) {
- var root = new Node(data),
- valued = +data.value && (root.value = data.value),
- node,
- nodes = [root],
- child,
- childs,
- i,
- n;
-
- if (children == null) children = defaultChildren;
-
- while (node = nodes.pop()) {
- if (valued) node.value = +node.data.value;
- if ((childs = children(node.data)) && (n = childs.length)) {
- node.children = new Array(n);
- for (i = n - 1; i >= 0; --i) {
- nodes.push(child = node.children[i] = new Node(childs[i]));
- child.parent = node;
- child.depth = node.depth + 1;
- }
- }
- }
-
- return root.eachBefore(computeHeight);
-}
-
-function node_copy() {
- return hierarchy(this).eachBefore(copyData);
-}
-
-function defaultChildren(d) {
- return d.children;
-}
-
-function copyData(node) {
- node.data = node.data.data;
-}
-
-export function computeHeight(node) {
- var height = 0;
- do node.height = height;
- while ((node = node.parent) && (node.height < ++height));
-}
-
-export function Node(data) {
- this.data = data;
- this.depth =
- this.height = 0;
- this.parent = null;
-}
-
-Node.prototype = hierarchy.prototype = {
- constructor: Node,
- count: node_count,
- each: node_each,
- eachAfter: node_eachAfter,
- eachBefore: node_eachBefore,
- sum: node_sum,
- sort: node_sort,
- path: node_path,
- ancestors: node_ancestors,
- descendants: node_descendants,
- leaves: node_leaves,
- links: node_links,
- copy: node_copy
-};
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/leaves.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/leaves.js
deleted file mode 100644
index 401c5b53..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/leaves.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function() {
- var leaves = [];
- this.eachBefore(function(node) {
- if (!node.children) {
- leaves.push(node);
- }
- });
- return leaves;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/links.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/links.js
deleted file mode 100644
index 6fcb82fa..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/links.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function() {
- var root = this, links = [];
- root.each(function(node) {
- if (node !== root) { // Don’t include the root’s parent, if any.
- links.push({source: node.parent, target: node});
- }
- });
- return links;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/path.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/path.js
deleted file mode 100644
index 99589138..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/path.js
+++ /dev/null
@@ -1,30 +0,0 @@
-export default function(end) {
- var start = this,
- ancestor = leastCommonAncestor(start, end),
- nodes = [start];
- while (start !== ancestor) {
- start = start.parent;
- nodes.push(start);
- }
- var k = nodes.length;
- while (end !== ancestor) {
- nodes.splice(k, 0, end);
- end = end.parent;
- }
- return nodes;
-}
-
-function leastCommonAncestor(a, b) {
- if (a === b) return a;
- var aNodes = a.ancestors(),
- bNodes = b.ancestors(),
- c = null;
- a = aNodes.pop();
- b = bNodes.pop();
- while (a === b) {
- c = a;
- a = aNodes.pop();
- b = bNodes.pop();
- }
- return c;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sort.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sort.js
deleted file mode 100644
index 5d0426d5..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sort.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function(compare) {
- return this.eachBefore(function(node) {
- if (node.children) {
- node.children.sort(compare);
- }
- });
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sum.js b/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sum.js
deleted file mode 100644
index 350a965e..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/hierarchy/sum.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function(value) {
- return this.eachAfter(function(node) {
- var sum = +value(node.data) || 0,
- children = node.children,
- i = children && children.length;
- while (--i >= 0) sum += children[i].value;
- node.value = sum;
- });
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/index.js b/swh/web/static/jssources/d3-hierarchy/src/index.js
deleted file mode 100644
index 4075191e..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-export {default as cluster} from "./cluster";
-export {default as hierarchy} from "./hierarchy/index";
-export {default as pack} from "./pack/index";
-export {default as packSiblings} from "./pack/siblings";
-export {default as packEnclose} from "./pack/enclose";
-export {default as partition} from "./partition";
-export {default as stratify} from "./stratify";
-export {default as tree} from "./tree";
-export {default as treemap} from "./treemap/index";
-export {default as treemapBinary} from "./treemap/binary";
-export {default as treemapDice} from "./treemap/dice";
-export {default as treemapSlice} from "./treemap/slice";
-export {default as treemapSliceDice} from "./treemap/sliceDice";
-export {default as treemapSquarify} from "./treemap/squarify";
-export {default as treemapResquarify} from "./treemap/resquarify";
diff --git a/swh/web/static/jssources/d3-hierarchy/src/pack/enclose.js b/swh/web/static/jssources/d3-hierarchy/src/pack/enclose.js
deleted file mode 100644
index d942665f..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/pack/enclose.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import {shuffle, slice} from "../array";
-
-export default function(circles) {
- var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;
-
- while (i < n) {
- p = circles[i];
- if (e && enclosesWeak(e, p)) ++i;
- else e = encloseBasis(B = extendBasis(B, p)), i = 0;
- }
-
- return e;
-}
-
-function extendBasis(B, p) {
- var i, j;
-
- if (enclosesWeakAll(p, B)) return [p];
-
- // If we get here then B must have at least one element.
- for (i = 0; i < B.length; ++i) {
- if (enclosesNot(p, B[i])
- && enclosesWeakAll(encloseBasis2(B[i], p), B)) {
- return [B[i], p];
- }
- }
-
- // If we get here then B must have at least two elements.
- for (i = 0; i < B.length - 1; ++i) {
- for (j = i + 1; j < B.length; ++j) {
- if (enclosesNot(encloseBasis2(B[i], B[j]), p)
- && enclosesNot(encloseBasis2(B[i], p), B[j])
- && enclosesNot(encloseBasis2(B[j], p), B[i])
- && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {
- return [B[i], B[j], p];
- }
- }
- }
-
- // If we get here then something is very wrong.
- throw new Error;
-}
-
-function enclosesNot(a, b) {
- var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;
- return dr < 0 || dr * dr < dx * dx + dy * dy;
-}
-
-function enclosesWeak(a, b) {
- var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;
- return dr > 0 && dr * dr > dx * dx + dy * dy;
-}
-
-function enclosesWeakAll(a, B) {
- for (var i = 0; i < B.length; ++i) {
- if (!enclosesWeak(a, B[i])) {
- return false;
- }
- }
- return true;
-}
-
-function encloseBasis(B) {
- switch (B.length) {
- case 1: return encloseBasis1(B[0]);
- case 2: return encloseBasis2(B[0], B[1]);
- case 3: return encloseBasis3(B[0], B[1], B[2]);
- }
-}
-
-function encloseBasis1(a) {
- return {
- x: a.x,
- y: a.y,
- r: a.r
- };
-}
-
-function encloseBasis2(a, b) {
- var x1 = a.x, y1 = a.y, r1 = a.r,
- x2 = b.x, y2 = b.y, r2 = b.r,
- x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,
- l = Math.sqrt(x21 * x21 + y21 * y21);
- return {
- x: (x1 + x2 + x21 / l * r21) / 2,
- y: (y1 + y2 + y21 / l * r21) / 2,
- r: (l + r1 + r2) / 2
- };
-}
-
-function encloseBasis3(a, b, c) {
- var x1 = a.x, y1 = a.y, r1 = a.r,
- x2 = b.x, y2 = b.y, r2 = b.r,
- x3 = c.x, y3 = c.y, r3 = c.r,
- a2 = x1 - x2,
- a3 = x1 - x3,
- b2 = y1 - y2,
- b3 = y1 - y3,
- c2 = r2 - r1,
- c3 = r3 - r1,
- d1 = x1 * x1 + y1 * y1 - r1 * r1,
- d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,
- d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,
- ab = a3 * b2 - a2 * b3,
- xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,
- xb = (b3 * c2 - b2 * c3) / ab,
- ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,
- yb = (a2 * c3 - a3 * c2) / ab,
- A = xb * xb + yb * yb - 1,
- B = 2 * (r1 + xa * xb + ya * yb),
- C = xa * xa + ya * ya - r1 * r1,
- r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);
- return {
- x: x1 + xa + xb * r,
- y: y1 + ya + yb * r,
- r: r
- };
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/pack/index.js b/swh/web/static/jssources/d3-hierarchy/src/pack/index.js
deleted file mode 100644
index d4a896fa..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/pack/index.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import {packEnclose} from "./siblings";
-import {optional} from "../accessors";
-import constant, {constantZero} from "../constant";
-
-function defaultRadius(d) {
- return Math.sqrt(d.value);
-}
-
-export default function() {
- var radius = null,
- dx = 1,
- dy = 1,
- padding = constantZero;
-
- function pack(root) {
- root.x = dx / 2, root.y = dy / 2;
- if (radius) {
- root.eachBefore(radiusLeaf(radius))
- .eachAfter(packChildren(padding, 0.5))
- .eachBefore(translateChild(1));
- } else {
- root.eachBefore(radiusLeaf(defaultRadius))
- .eachAfter(packChildren(constantZero, 1))
- .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))
- .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));
- }
- return root;
- }
-
- pack.radius = function(x) {
- return arguments.length ? (radius = optional(x), pack) : radius;
- };
-
- pack.size = function(x) {
- return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];
- };
-
- pack.padding = function(x) {
- return arguments.length ? (padding = typeof x === "function" ? x : constant(+x), pack) : padding;
- };
-
- return pack;
-}
-
-function radiusLeaf(radius) {
- return function(node) {
- if (!node.children) {
- node.r = Math.max(0, +radius(node) || 0);
- }
- };
-}
-
-function packChildren(padding, k) {
- return function(node) {
- if (children = node.children) {
- var children,
- i,
- n = children.length,
- r = padding(node) * k || 0,
- e;
-
- if (r) for (i = 0; i < n; ++i) children[i].r += r;
- e = packEnclose(children);
- if (r) for (i = 0; i < n; ++i) children[i].r -= r;
- node.r = e + r;
- }
- };
-}
-
-function translateChild(k) {
- return function(node) {
- var parent = node.parent;
- node.r *= k;
- if (parent) {
- node.x = parent.x + k * node.x;
- node.y = parent.y + k * node.y;
- }
- };
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/pack/siblings.js b/swh/web/static/jssources/d3-hierarchy/src/pack/siblings.js
deleted file mode 100644
index 89df3e4d..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/pack/siblings.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import enclose from "./enclose";
-
-function place(b, a, c) {
- var dx = b.x - a.x, x, a2,
- dy = b.y - a.y, y, b2,
- d2 = dx * dx + dy * dy;
- if (d2) {
- a2 = a.r + c.r, a2 *= a2;
- b2 = b.r + c.r, b2 *= b2;
- if (a2 > b2) {
- x = (d2 + b2 - a2) / (2 * d2);
- y = Math.sqrt(Math.max(0, b2 / d2 - x * x));
- c.x = b.x - x * dx - y * dy;
- c.y = b.y - x * dy + y * dx;
- } else {
- x = (d2 + a2 - b2) / (2 * d2);
- y = Math.sqrt(Math.max(0, a2 / d2 - x * x));
- c.x = a.x + x * dx - y * dy;
- c.y = a.y + x * dy + y * dx;
- }
- } else {
- c.x = a.x + c.r;
- c.y = a.y;
- }
-}
-
-function intersects(a, b) {
- var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;
- return dr > 0 && dr * dr > dx * dx + dy * dy;
-}
-
-function score(node) {
- var a = node._,
- b = node.next._,
- ab = a.r + b.r,
- dx = (a.x * b.r + b.x * a.r) / ab,
- dy = (a.y * b.r + b.y * a.r) / ab;
- return dx * dx + dy * dy;
-}
-
-function Node(circle) {
- this._ = circle;
- this.next = null;
- this.previous = null;
-}
-
-export function packEnclose(circles) {
- if (!(n = circles.length)) return 0;
-
- var a, b, c, n, aa, ca, i, j, k, sj, sk;
-
- // Place the first circle.
- a = circles[0], a.x = 0, a.y = 0;
- if (!(n > 1)) return a.r;
-
- // Place the second circle.
- b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;
- if (!(n > 2)) return a.r + b.r;
-
- // Place the third circle.
- place(b, a, c = circles[2]);
-
- // Initialize the front-chain using the first three circles a, b and c.
- a = new Node(a), b = new Node(b), c = new Node(c);
- a.next = c.previous = b;
- b.next = a.previous = c;
- c.next = b.previous = a;
-
- // Attempt to place each remaining circle…
- pack: for (i = 3; i < n; ++i) {
- place(a._, b._, c = circles[i]), c = new Node(c);
-
- // Find the closest intersecting circle on the front-chain, if any.
- // “Closeness” is determined by linear distance along the front-chain.
- // “Ahead” or “behind” is likewise determined by linear distance.
- j = b.next, k = a.previous, sj = b._.r, sk = a._.r;
- do {
- if (sj <= sk) {
- if (intersects(j._, c._)) {
- b = j, a.next = b, b.previous = a, --i;
- continue pack;
- }
- sj += j._.r, j = j.next;
- } else {
- if (intersects(k._, c._)) {
- a = k, a.next = b, b.previous = a, --i;
- continue pack;
- }
- sk += k._.r, k = k.previous;
- }
- } while (j !== k.next);
-
- // Success! Insert the new circle c between a and b.
- c.previous = a, c.next = b, a.next = b.previous = b = c;
-
- // Compute the new closest circle pair to the centroid.
- aa = score(a);
- while ((c = c.next) !== b) {
- if ((ca = score(c)) < aa) {
- a = c, aa = ca;
- }
- }
- b = a.next;
- }
-
- // Compute the enclosing circle of the front chain.
- a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);
-
- // Translate the circles to put the enclosing circle around the origin.
- for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;
-
- return c.r;
-}
-
-export default function(circles) {
- packEnclose(circles);
- return circles;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/partition.js b/swh/web/static/jssources/d3-hierarchy/src/partition.js
deleted file mode 100644
index 862b7ca6..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/partition.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import roundNode from "./treemap/round";
-import treemapDice from "./treemap/dice";
-
-export default function() {
- var dx = 1,
- dy = 1,
- padding = 0,
- round = false;
-
- function partition(root) {
- var n = root.height + 1;
- root.x0 =
- root.y0 = padding;
- root.x1 = dx;
- root.y1 = dy / n;
- root.eachBefore(positionNode(dy, n));
- if (round) root.eachBefore(roundNode);
- return root;
- }
-
- function positionNode(dy, n) {
- return function(node) {
- if (node.children) {
- treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);
- }
- var x0 = node.x0,
- y0 = node.y0,
- x1 = node.x1 - padding,
- y1 = node.y1 - padding;
- if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
- if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
- node.x0 = x0;
- node.y0 = y0;
- node.x1 = x1;
- node.y1 = y1;
- };
- }
-
- partition.round = function(x) {
- return arguments.length ? (round = !!x, partition) : round;
- };
-
- partition.size = function(x) {
- return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];
- };
-
- partition.padding = function(x) {
- return arguments.length ? (padding = +x, partition) : padding;
- };
-
- return partition;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/stratify.js b/swh/web/static/jssources/d3-hierarchy/src/stratify.js
deleted file mode 100644
index 8cdc627f..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/stratify.js
+++ /dev/null
@@ -1,73 +0,0 @@
-import {required} from "./accessors";
-import {Node, computeHeight} from "./hierarchy/index";
-
-var keyPrefix = "$", // Protect against keys like “__proto__”.
- preroot = {depth: -1},
- ambiguous = {};
-
-function defaultId(d) {
- return d.id;
-}
-
-function defaultParentId(d) {
- return d.parentId;
-}
-
-export default function() {
- var id = defaultId,
- parentId = defaultParentId;
-
- function stratify(data) {
- var d,
- i,
- n = data.length,
- root,
- parent,
- node,
- nodes = new Array(n),
- nodeId,
- nodeKey,
- nodeByKey = {};
-
- for (i = 0; i < n; ++i) {
- d = data[i], node = nodes[i] = new Node(d);
- if ((nodeId = id(d, i, data)) != null && (nodeId += "")) {
- nodeKey = keyPrefix + (node.id = nodeId);
- nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;
- }
- }
-
- for (i = 0; i < n; ++i) {
- node = nodes[i], nodeId = parentId(data[i], i, data);
- if (nodeId == null || !(nodeId += "")) {
- if (root) throw new Error("multiple roots");
- root = node;
- } else {
- parent = nodeByKey[keyPrefix + nodeId];
- if (!parent) throw new Error("missing: " + nodeId);
- if (parent === ambiguous) throw new Error("ambiguous: " + nodeId);
- if (parent.children) parent.children.push(node);
- else parent.children = [node];
- node.parent = parent;
- }
- }
-
- if (!root) throw new Error("no root");
- root.parent = preroot;
- root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);
- root.parent = null;
- if (n > 0) throw new Error("cycle");
-
- return root;
- }
-
- stratify.id = function(x) {
- return arguments.length ? (id = required(x), stratify) : id;
- };
-
- stratify.parentId = function(x) {
- return arguments.length ? (parentId = required(x), stratify) : parentId;
- };
-
- return stratify;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/tree.js b/swh/web/static/jssources/d3-hierarchy/src/tree.js
deleted file mode 100644
index 69ad6df5..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/tree.js
+++ /dev/null
@@ -1,237 +0,0 @@
-import {Node} from "./hierarchy/index";
-
-function defaultSeparation(a, b) {
- return a.parent === b.parent ? 1 : 2;
-}
-
-// function radialSeparation(a, b) {
-// return (a.parent === b.parent ? 1 : 2) / a.depth;
-// }
-
-// This function is used to traverse the left contour of a subtree (or
-// subforest). It returns the successor of v on this contour. This successor is
-// either given by the leftmost child of v or by the thread of v. The function
-// returns null if and only if v is on the highest level of its subtree.
-function nextLeft(v) {
- var children = v.children;
- return children ? children[0] : v.t;
-}
-
-// This function works analogously to nextLeft.
-function nextRight(v) {
- var children = v.children;
- return children ? children[children.length - 1] : v.t;
-}
-
-// Shifts the current subtree rooted at w+. This is done by increasing
-// prelim(w+) and mod(w+) by shift.
-function moveSubtree(wm, wp, shift) {
- var change = shift / (wp.i - wm.i);
- wp.c -= change;
- wp.s += shift;
- wm.c += change;
- wp.z += shift;
- wp.m += shift;
-}
-
-// All other shifts, applied to the smaller subtrees between w- and w+, are
-// performed by this function. To prepare the shifts, we have to adjust
-// change(w+), shift(w+), and change(w-).
-function executeShifts(v) {
- var shift = 0,
- change = 0,
- children = v.children,
- i = children.length,
- w;
- while (--i >= 0) {
- w = children[i];
- w.z += shift;
- w.m += shift;
- shift += w.s + (change += w.c);
- }
-}
-
-// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,
-// returns the specified (default) ancestor.
-function nextAncestor(vim, v, ancestor) {
- return vim.a.parent === v.parent ? vim.a : ancestor;
-}
-
-function TreeNode(node, i) {
- this._ = node;
- this.parent = null;
- this.children = null;
- this.A = null; // default ancestor
- this.a = this; // ancestor
- this.z = 0; // prelim
- this.m = 0; // mod
- this.c = 0; // change
- this.s = 0; // shift
- this.t = null; // thread
- this.i = i; // number
-}
-
-TreeNode.prototype = Object.create(Node.prototype);
-
-function treeRoot(root) {
- var tree = new TreeNode(root, 0),
- node,
- nodes = [tree],
- child,
- children,
- i,
- n;
-
- while (node = nodes.pop()) {
- if (children = node._.children) {
- node.children = new Array(n = children.length);
- for (i = n - 1; i >= 0; --i) {
- nodes.push(child = node.children[i] = new TreeNode(children[i], i));
- child.parent = node;
- }
- }
- }
-
- (tree.parent = new TreeNode(null, 0)).children = [tree];
- return tree;
-}
-
-// Node-link tree diagram using the Reingold-Tilford "tidy" algorithm
-export default function() {
- var separation = defaultSeparation,
- dx = 1,
- dy = 1,
- nodeSize = null;
-
- function tree(root) {
- var t = treeRoot(root);
-
- // Compute the layout using Buchheim et al.’s algorithm.
- t.eachAfter(firstWalk), t.parent.m = -t.z;
- t.eachBefore(secondWalk);
-
- // If a fixed node size is specified, scale x and y.
- if (nodeSize) root.eachBefore(sizeNode);
-
- // If a fixed tree size is specified, scale x and y based on the extent.
- // Compute the left-most, right-most, and depth-most nodes for extents.
- else {
- var left = root,
- right = root,
- bottom = root;
- root.eachBefore(function(node) {
- if (node.x < left.x) left = node;
- if (node.x > right.x) right = node;
- if (node.depth > bottom.depth) bottom = node;
- });
- var s = left === right ? 1 : separation(left, right) / 2,
- tx = s - left.x,
- kx = dx / (right.x + s + tx),
- ky = dy / (bottom.depth || 1);
- root.eachBefore(function(node) {
- node.x = (node.x + tx) * kx;
- node.y = node.depth * ky;
- });
- }
-
- return root;
- }
-
- // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is
- // applied recursively to the children of v, as well as the function
- // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the
- // node v is placed to the midpoint of its outermost children.
- function firstWalk(v) {
- var children = v.children,
- siblings = v.parent.children,
- w = v.i ? siblings[v.i - 1] : null;
- if (children) {
- executeShifts(v);
- var midpoint = (children[0].z + children[children.length - 1].z) / 2;
- if (w) {
- v.z = w.z + separation(v._, w._);
- v.m = v.z - midpoint;
- } else {
- v.z = midpoint;
- }
- } else if (w) {
- v.z = w.z + separation(v._, w._);
- }
- v.parent.A = apportion(v, w, v.parent.A || siblings[0]);
- }
-
- // Computes all real x-coordinates by summing up the modifiers recursively.
- function secondWalk(v) {
- v._.x = v.z + v.parent.m;
- v.m += v.parent.m;
- }
-
- // The core of the algorithm. Here, a new subtree is combined with the
- // previous subtrees. Threads are used to traverse the inside and outside
- // contours of the left and right subtree up to the highest common level. The
- // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the
- // superscript o means outside and i means inside, the subscript - means left
- // subtree and + means right subtree. For summing up the modifiers along the
- // contour, we use respective variables si+, si-, so-, and so+. Whenever two
- // nodes of the inside contours conflict, we compute the left one of the
- // greatest uncommon ancestors using the function ANCESTOR and call MOVE
- // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.
- // Finally, we add a new thread (if necessary).
- function apportion(v, w, ancestor) {
- if (w) {
- var vip = v,
- vop = v,
- vim = w,
- vom = vip.parent.children[0],
- sip = vip.m,
- sop = vop.m,
- sim = vim.m,
- som = vom.m,
- shift;
- while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {
- vom = nextLeft(vom);
- vop = nextRight(vop);
- vop.a = v;
- shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);
- if (shift > 0) {
- moveSubtree(nextAncestor(vim, v, ancestor), v, shift);
- sip += shift;
- sop += shift;
- }
- sim += vim.m;
- sip += vip.m;
- som += vom.m;
- sop += vop.m;
- }
- if (vim && !nextRight(vop)) {
- vop.t = vim;
- vop.m += sim - sop;
- }
- if (vip && !nextLeft(vom)) {
- vom.t = vip;
- vom.m += sip - som;
- ancestor = v;
- }
- }
- return ancestor;
- }
-
- function sizeNode(node) {
- node.x *= dx;
- node.y = node.depth * dy;
- }
-
- tree.separation = function(x) {
- return arguments.length ? (separation = x, tree) : separation;
- };
-
- tree.size = function(x) {
- return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);
- };
-
- tree.nodeSize = function(x) {
- return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);
- };
-
- return tree;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/binary.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/binary.js
deleted file mode 100644
index a24aaf02..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/binary.js
+++ /dev/null
@@ -1,46 +0,0 @@
-export default function(parent, x0, y0, x1, y1) {
- var nodes = parent.children,
- i, n = nodes.length,
- sum, sums = new Array(n + 1);
-
- for (sums[0] = sum = i = 0; i < n; ++i) {
- sums[i + 1] = sum += nodes[i].value;
- }
-
- partition(0, n, parent.value, x0, y0, x1, y1);
-
- function partition(i, j, value, x0, y0, x1, y1) {
- if (i >= j - 1) {
- var node = nodes[i];
- node.x0 = x0, node.y0 = y0;
- node.x1 = x1, node.y1 = y1;
- return;
- }
-
- var valueOffset = sums[i],
- valueTarget = (value / 2) + valueOffset,
- k = i + 1,
- hi = j - 1;
-
- while (k < hi) {
- var mid = k + hi >>> 1;
- if (sums[mid] < valueTarget) k = mid + 1;
- else hi = mid;
- }
-
- if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;
-
- var valueLeft = sums[k] - valueOffset,
- valueRight = value - valueLeft;
-
- if ((x1 - x0) > (y1 - y0)) {
- var xk = (x0 * valueRight + x1 * valueLeft) / value;
- partition(i, k, valueLeft, x0, y0, xk, y1);
- partition(k, j, valueRight, xk, y0, x1, y1);
- } else {
- var yk = (y0 * valueRight + y1 * valueLeft) / value;
- partition(i, k, valueLeft, x0, y0, x1, yk);
- partition(k, j, valueRight, x0, yk, x1, y1);
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/dice.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/dice.js
deleted file mode 100644
index 605c1f66..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/dice.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export default function(parent, x0, y0, x1, y1) {
- var nodes = parent.children,
- node,
- i = -1,
- n = nodes.length,
- k = parent.value && (x1 - x0) / parent.value;
-
- while (++i < n) {
- node = nodes[i], node.y0 = y0, node.y1 = y1;
- node.x0 = x0, node.x1 = x0 += node.value * k;
- }
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/index.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/index.js
deleted file mode 100644
index 64ffe5c2..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/index.js
+++ /dev/null
@@ -1,94 +0,0 @@
-import roundNode from "./round";
-import squarify from "./squarify";
-import {required} from "../accessors";
-import constant, {constantZero} from "../constant";
-
-export default function() {
- var tile = squarify,
- round = false,
- dx = 1,
- dy = 1,
- paddingStack = [0],
- paddingInner = constantZero,
- paddingTop = constantZero,
- paddingRight = constantZero,
- paddingBottom = constantZero,
- paddingLeft = constantZero;
-
- function treemap(root) {
- root.x0 =
- root.y0 = 0;
- root.x1 = dx;
- root.y1 = dy;
- root.eachBefore(positionNode);
- paddingStack = [0];
- if (round) root.eachBefore(roundNode);
- return root;
- }
-
- function positionNode(node) {
- var p = paddingStack[node.depth],
- x0 = node.x0 + p,
- y0 = node.y0 + p,
- x1 = node.x1 - p,
- y1 = node.y1 - p;
- if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
- if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
- node.x0 = x0;
- node.y0 = y0;
- node.x1 = x1;
- node.y1 = y1;
- if (node.children) {
- p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
- x0 += paddingLeft(node) - p;
- y0 += paddingTop(node) - p;
- x1 -= paddingRight(node) - p;
- y1 -= paddingBottom(node) - p;
- if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
- if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
- tile(node, x0, y0, x1, y1);
- }
- }
-
- treemap.round = function(x) {
- return arguments.length ? (round = !!x, treemap) : round;
- };
-
- treemap.size = function(x) {
- return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];
- };
-
- treemap.tile = function(x) {
- return arguments.length ? (tile = required(x), treemap) : tile;
- };
-
- treemap.padding = function(x) {
- return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();
- };
-
- treemap.paddingInner = function(x) {
- return arguments.length ? (paddingInner = typeof x === "function" ? x : constant(+x), treemap) : paddingInner;
- };
-
- treemap.paddingOuter = function(x) {
- return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();
- };
-
- treemap.paddingTop = function(x) {
- return arguments.length ? (paddingTop = typeof x === "function" ? x : constant(+x), treemap) : paddingTop;
- };
-
- treemap.paddingRight = function(x) {
- return arguments.length ? (paddingRight = typeof x === "function" ? x : constant(+x), treemap) : paddingRight;
- };
-
- treemap.paddingBottom = function(x) {
- return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant(+x), treemap) : paddingBottom;
- };
-
- treemap.paddingLeft = function(x) {
- return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant(+x), treemap) : paddingLeft;
- };
-
- return treemap;
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/resquarify.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/resquarify.js
deleted file mode 100644
index 1116394c..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/resquarify.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import treemapDice from "./dice";
-import treemapSlice from "./slice";
-import {phi, squarifyRatio} from "./squarify";
-
-export default (function custom(ratio) {
-
- function resquarify(parent, x0, y0, x1, y1) {
- if ((rows = parent._squarify) && (rows.ratio === ratio)) {
- var rows,
- row,
- nodes,
- i,
- j = -1,
- n,
- m = rows.length,
- value = parent.value;
-
- while (++j < m) {
- row = rows[j], nodes = row.children;
- for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;
- if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);
- else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);
- value -= row.value;
- }
- } else {
- parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);
- rows.ratio = ratio;
- }
- }
-
- resquarify.ratio = function(x) {
- return custom((x = +x) > 1 ? x : 1);
- };
-
- return resquarify;
-})(phi);
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/round.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/round.js
deleted file mode 100644
index 7ac45ec2..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/round.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default function(node) {
- node.x0 = Math.round(node.x0);
- node.y0 = Math.round(node.y0);
- node.x1 = Math.round(node.x1);
- node.y1 = Math.round(node.y1);
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/slice.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/slice.js
deleted file mode 100644
index 1022bfad..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/slice.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export default function(parent, x0, y0, x1, y1) {
- var nodes = parent.children,
- node,
- i = -1,
- n = nodes.length,
- k = parent.value && (y1 - y0) / parent.value;
-
- while (++i < n) {
- node = nodes[i], node.x0 = x0, node.x1 = x1;
- node.y0 = y0, node.y1 = y0 += node.value * k;
- }
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/sliceDice.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/sliceDice.js
deleted file mode 100644
index 82a345d8..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/sliceDice.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import dice from "./dice";
-import slice from "./slice";
-
-export default function(parent, x0, y0, x1, y1) {
- (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);
-}
diff --git a/swh/web/static/jssources/d3-hierarchy/src/treemap/squarify.js b/swh/web/static/jssources/d3-hierarchy/src/treemap/squarify.js
deleted file mode 100644
index 43e20349..00000000
--- a/swh/web/static/jssources/d3-hierarchy/src/treemap/squarify.js
+++ /dev/null
@@ -1,66 +0,0 @@
-import treemapDice from "./dice";
-import treemapSlice from "./slice";
-
-export var phi = (1 + Math.sqrt(5)) / 2;
-
-export function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
- var rows = [],
- nodes = parent.children,
- row,
- nodeValue,
- i0 = 0,
- i1 = 0,
- n = nodes.length,
- dx, dy,
- value = parent.value,
- sumValue,
- minValue,
- maxValue,
- newRatio,
- minRatio,
- alpha,
- beta;
-
- while (i0 < n) {
- dx = x1 - x0, dy = y1 - y0;
-
- // Find the next non-empty node.
- do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);
- minValue = maxValue = sumValue;
- alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
- beta = sumValue * sumValue * alpha;
- minRatio = Math.max(maxValue / beta, beta / minValue);
-
- // Keep adding nodes while the aspect ratio maintains or improves.
- for (; i1 < n; ++i1) {
- sumValue += nodeValue = nodes[i1].value;
- if (nodeValue < minValue) minValue = nodeValue;
- if (nodeValue > maxValue) maxValue = nodeValue;
- beta = sumValue * sumValue * alpha;
- newRatio = Math.max(maxValue / beta, beta / minValue);
- if (newRatio > minRatio) { sumValue -= nodeValue; break; }
- minRatio = newRatio;
- }
-
- // Position and record the row orientation.
- rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});
- if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
- else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
- value -= sumValue, i0 = i1;
- }
-
- return rows;
-}
-
-export default (function custom(ratio) {
-
- function squarify(parent, x0, y0, x1, y1) {
- squarifyRatio(ratio, parent, x0, y0, x1, y1);
- }
-
- squarify.ratio = function(x) {
- return custom((x = +x) > 1 ? x : 1);
- };
-
- return squarify;
-})(phi);
diff --git a/swh/web/static/jssources/d3-interpolate/LICENSE.txt b/swh/web/static/jssources/d3-interpolate/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-interpolate/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-interpolate/src/array.js b/swh/web/static/jssources/d3-interpolate/src/array.js
deleted file mode 100644
index 2d4e4cc0..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/array.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import value from "./value";
-
-export default function(a, b) {
- var nb = b ? b.length : 0,
- na = a ? Math.min(nb, a.length) : 0,
- x = new Array(na),
- c = new Array(nb),
- i;
-
- for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);
- for (; i < nb; ++i) c[i] = b[i];
-
- return function(t) {
- for (i = 0; i < na; ++i) c[i] = x[i](t);
- return c;
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/basis.js b/swh/web/static/jssources/d3-interpolate/src/basis.js
deleted file mode 100644
index 0d853f05..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/basis.js
+++ /dev/null
@@ -1,19 +0,0 @@
-export function basis(t1, v0, v1, v2, v3) {
- var t2 = t1 * t1, t3 = t2 * t1;
- return ((1 - 3 * t1 + 3 * t2 - t3) * v0
- + (4 - 6 * t2 + 3 * t3) * v1
- + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
- + t3 * v3) / 6;
-}
-
-export default function(values) {
- var n = values.length - 1;
- return function(t) {
- var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
- v1 = values[i],
- v2 = values[i + 1],
- v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
- v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
- return basis((t - i / n) * n, v0, v1, v2, v3);
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/basisClosed.js b/swh/web/static/jssources/d3-interpolate/src/basisClosed.js
deleted file mode 100644
index 2772ab26..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/basisClosed.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import {basis} from "./basis";
-
-export default function(values) {
- var n = values.length;
- return function(t) {
- var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
- v0 = values[(i + n - 1) % n],
- v1 = values[i % n],
- v2 = values[(i + 1) % n],
- v3 = values[(i + 2) % n];
- return basis((t - i / n) * n, v0, v1, v2, v3);
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/color.js b/swh/web/static/jssources/d3-interpolate/src/color.js
deleted file mode 100644
index 28833d8c..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/color.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import constant from "./constant";
-
-function linear(a, d) {
- return function(t) {
- return a + t * d;
- };
-}
-
-function exponential(a, b, y) {
- return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
- return Math.pow(a + t * b, y);
- };
-}
-
-export function hue(a, b) {
- var d = b - a;
- return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
-}
-
-export function gamma(y) {
- return (y = +y) === 1 ? nogamma : function(a, b) {
- return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
- };
-}
-
-export default function nogamma(a, b) {
- var d = b - a;
- return d ? linear(a, d) : constant(isNaN(a) ? b : a);
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/constant.js b/swh/web/static/jssources/d3-interpolate/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/cubehelix.js b/swh/web/static/jssources/d3-interpolate/src/cubehelix.js
deleted file mode 100644
index 6ee20eef..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/cubehelix.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import {cubehelix as colorCubehelix} from "d3-color";
-import color, {hue} from "./color";
-
-function cubehelix(hue) {
- return (function cubehelixGamma(y) {
- y = +y;
-
- function cubehelix(start, end) {
- var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),
- s = color(start.s, end.s),
- l = color(start.l, end.l),
- opacity = color(start.opacity, end.opacity);
- return function(t) {
- start.h = h(t);
- start.s = s(t);
- start.l = l(Math.pow(t, y));
- start.opacity = opacity(t);
- return start + "";
- };
- }
-
- cubehelix.gamma = cubehelixGamma;
-
- return cubehelix;
- })(1);
-}
-
-export default cubehelix(hue);
-export var cubehelixLong = cubehelix(color);
diff --git a/swh/web/static/jssources/d3-interpolate/src/date.js b/swh/web/static/jssources/d3-interpolate/src/date.js
deleted file mode 100644
index 2401bb3c..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/date.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default function(a, b) {
- var d = new Date;
- return a = +a, b -= a, function(t) {
- return d.setTime(a + b * t), d;
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/discrete.js b/swh/web/static/jssources/d3-interpolate/src/discrete.js
deleted file mode 100644
index b3d1e3b6..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/discrete.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default function(range) {
- var n = range.length;
- return function(t) {
- return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/hcl.js b/swh/web/static/jssources/d3-interpolate/src/hcl.js
deleted file mode 100644
index 270cea80..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/hcl.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import {hcl as colorHcl} from "d3-color";
-import color, {hue} from "./color";
-
-function hcl(hue) {
- return function(start, end) {
- var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),
- c = color(start.c, end.c),
- l = color(start.l, end.l),
- opacity = color(start.opacity, end.opacity);
- return function(t) {
- start.h = h(t);
- start.c = c(t);
- start.l = l(t);
- start.opacity = opacity(t);
- return start + "";
- };
- }
-}
-
-export default hcl(hue);
-export var hclLong = hcl(color);
diff --git a/swh/web/static/jssources/d3-interpolate/src/hsl.js b/swh/web/static/jssources/d3-interpolate/src/hsl.js
deleted file mode 100644
index c5421a45..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/hsl.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import {hsl as colorHsl} from "d3-color";
-import color, {hue} from "./color";
-
-function hsl(hue) {
- return function(start, end) {
- var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),
- s = color(start.s, end.s),
- l = color(start.l, end.l),
- opacity = color(start.opacity, end.opacity);
- return function(t) {
- start.h = h(t);
- start.s = s(t);
- start.l = l(t);
- start.opacity = opacity(t);
- return start + "";
- };
- }
-}
-
-export default hsl(hue);
-export var hslLong = hsl(color);
diff --git a/swh/web/static/jssources/d3-interpolate/src/hue.js b/swh/web/static/jssources/d3-interpolate/src/hue.js
deleted file mode 100644
index be5e1897..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/hue.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import {hue} from "./color";
-
-export default function(a, b) {
- var i = hue(+a, +b);
- return function(t) {
- var x = i(t);
- return x - 360 * Math.floor(x / 360);
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/index.js b/swh/web/static/jssources/d3-interpolate/src/index.js
deleted file mode 100644
index 8f545f65..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export {default as interpolate} from "./value";
-export {default as interpolateArray} from "./array";
-export {default as interpolateBasis} from "./basis";
-export {default as interpolateBasisClosed} from "./basisClosed";
-export {default as interpolateDate} from "./date";
-export {default as interpolateDiscrete} from "./discrete";
-export {default as interpolateHue} from "./hue";
-export {default as interpolateNumber} from "./number";
-export {default as interpolateObject} from "./object";
-export {default as interpolateRound} from "./round";
-export {default as interpolateString} from "./string";
-export {interpolateTransformCss, interpolateTransformSvg} from "./transform/index";
-export {default as interpolateZoom} from "./zoom";
-export {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from "./rgb";
-export {default as interpolateHsl, hslLong as interpolateHslLong} from "./hsl";
-export {default as interpolateLab} from "./lab";
-export {default as interpolateHcl, hclLong as interpolateHclLong} from "./hcl";
-export {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from "./cubehelix";
-export {default as piecewise} from "./piecewise";
-export {default as quantize} from "./quantize";
diff --git a/swh/web/static/jssources/d3-interpolate/src/lab.js b/swh/web/static/jssources/d3-interpolate/src/lab.js
deleted file mode 100644
index ccb5aa22..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/lab.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import {lab as colorLab} from "d3-color";
-import color from "./color";
-
-export default function lab(start, end) {
- var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),
- a = color(start.a, end.a),
- b = color(start.b, end.b),
- opacity = color(start.opacity, end.opacity);
- return function(t) {
- start.l = l(t);
- start.a = a(t);
- start.b = b(t);
- start.opacity = opacity(t);
- return start + "";
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/number.js b/swh/web/static/jssources/d3-interpolate/src/number.js
deleted file mode 100644
index 642f92e1..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/number.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(a, b) {
- return a = +a, b -= a, function(t) {
- return a + b * t;
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/object.js b/swh/web/static/jssources/d3-interpolate/src/object.js
deleted file mode 100644
index 42cd4a22..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/object.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import value from "./value";
-
-export default function(a, b) {
- var i = {},
- c = {},
- k;
-
- if (a === null || typeof a !== "object") a = {};
- if (b === null || typeof b !== "object") b = {};
-
- for (k in b) {
- if (k in a) {
- i[k] = value(a[k], b[k]);
- } else {
- c[k] = b[k];
- }
- }
-
- return function(t) {
- for (k in i) c[k] = i[k](t);
- return c;
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/piecewise.js b/swh/web/static/jssources/d3-interpolate/src/piecewise.js
deleted file mode 100644
index 41f76ae5..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/piecewise.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function piecewise(interpolate, values) {
- var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
- while (i < n) I[i] = interpolate(v, v = values[++i]);
- return function(t) {
- var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
- return I[i](t - i);
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/quantize.js b/swh/web/static/jssources/d3-interpolate/src/quantize.js
deleted file mode 100644
index d7c23e69..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/quantize.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(interpolator, n) {
- var samples = new Array(n);
- for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
- return samples;
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/rgb.js b/swh/web/static/jssources/d3-interpolate/src/rgb.js
deleted file mode 100644
index 874ba12e..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/rgb.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import {rgb as colorRgb} from "d3-color";
-import basis from "./basis";
-import basisClosed from "./basisClosed";
-import nogamma, {gamma} from "./color";
-
-export default (function rgbGamma(y) {
- var color = gamma(y);
-
- function rgb(start, end) {
- var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),
- g = color(start.g, end.g),
- b = color(start.b, end.b),
- opacity = nogamma(start.opacity, end.opacity);
- return function(t) {
- start.r = r(t);
- start.g = g(t);
- start.b = b(t);
- start.opacity = opacity(t);
- return start + "";
- };
- }
-
- rgb.gamma = rgbGamma;
-
- return rgb;
-})(1);
-
-function rgbSpline(spline) {
- return function(colors) {
- var n = colors.length,
- r = new Array(n),
- g = new Array(n),
- b = new Array(n),
- i, color;
- for (i = 0; i < n; ++i) {
- color = colorRgb(colors[i]);
- r[i] = color.r || 0;
- g[i] = color.g || 0;
- b[i] = color.b || 0;
- }
- r = spline(r);
- g = spline(g);
- b = spline(b);
- color.opacity = 1;
- return function(t) {
- color.r = r(t);
- color.g = g(t);
- color.b = b(t);
- return color + "";
- };
- };
-}
-
-export var rgbBasis = rgbSpline(basis);
-export var rgbBasisClosed = rgbSpline(basisClosed);
diff --git a/swh/web/static/jssources/d3-interpolate/src/round.js b/swh/web/static/jssources/d3-interpolate/src/round.js
deleted file mode 100644
index 80797435..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/round.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(a, b) {
- return a = +a, b -= a, function(t) {
- return Math.round(a + b * t);
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/string.js b/swh/web/static/jssources/d3-interpolate/src/string.js
deleted file mode 100644
index 66de3a5b..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/string.js
+++ /dev/null
@@ -1,64 +0,0 @@
-import number from "./number";
-
-var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
- reB = new RegExp(reA.source, "g");
-
-function zero(b) {
- return function() {
- return b;
- };
-}
-
-function one(b) {
- return function(t) {
- return b(t) + "";
- };
-}
-
-export default function(a, b) {
- var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
- am, // current match in a
- bm, // current match in b
- bs, // string preceding current number in b, if any
- i = -1, // index in s
- s = [], // string constants and placeholders
- q = []; // number interpolators
-
- // Coerce inputs to strings.
- a = a + "", b = b + "";
-
- // Interpolate pairs of numbers in a & b.
- while ((am = reA.exec(a))
- && (bm = reB.exec(b))) {
- if ((bs = bm.index) > bi) { // a string precedes the next number in b
- bs = b.slice(bi, bs);
- if (s[i]) s[i] += bs; // coalesce with previous string
- else s[++i] = bs;
- }
- if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
- if (s[i]) s[i] += bm; // coalesce with previous string
- else s[++i] = bm;
- } else { // interpolate non-matching numbers
- s[++i] = null;
- q.push({i: i, x: number(am, bm)});
- }
- bi = reB.lastIndex;
- }
-
- // Add remains of b.
- if (bi < b.length) {
- bs = b.slice(bi);
- if (s[i]) s[i] += bs; // coalesce with previous string
- else s[++i] = bs;
- }
-
- // Special optimization for only a single match.
- // Otherwise, interpolate each of the numbers and rejoin the string.
- return s.length < 2 ? (q[0]
- ? one(q[0].x)
- : zero(b))
- : (b = q.length, function(t) {
- for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
- return s.join("");
- });
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/transform/decompose.js b/swh/web/static/jssources/d3-interpolate/src/transform/decompose.js
deleted file mode 100644
index 3535f231..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/transform/decompose.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var degrees = 180 / Math.PI;
-
-export var identity = {
- translateX: 0,
- translateY: 0,
- rotate: 0,
- skewX: 0,
- scaleX: 1,
- scaleY: 1
-};
-
-export default function(a, b, c, d, e, f) {
- var scaleX, scaleY, skewX;
- if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
- if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
- if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
- if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
- return {
- translateX: e,
- translateY: f,
- rotate: Math.atan2(b, a) * degrees,
- skewX: Math.atan(skewX) * degrees,
- scaleX: scaleX,
- scaleY: scaleY
- };
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/transform/index.js b/swh/web/static/jssources/d3-interpolate/src/transform/index.js
deleted file mode 100644
index d05ccc6e..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/transform/index.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import number from "../number";
-import {parseCss, parseSvg} from "./parse";
-
-function interpolateTransform(parse, pxComma, pxParen, degParen) {
-
- function pop(s) {
- return s.length ? s.pop() + " " : "";
- }
-
- function translate(xa, ya, xb, yb, s, q) {
- if (xa !== xb || ya !== yb) {
- var i = s.push("translate(", null, pxComma, null, pxParen);
- q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});
- } else if (xb || yb) {
- s.push("translate(" + xb + pxComma + yb + pxParen);
- }
- }
-
- function rotate(a, b, s, q) {
- if (a !== b) {
- if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
- q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number(a, b)});
- } else if (b) {
- s.push(pop(s) + "rotate(" + b + degParen);
- }
- }
-
- function skewX(a, b, s, q) {
- if (a !== b) {
- q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number(a, b)});
- } else if (b) {
- s.push(pop(s) + "skewX(" + b + degParen);
- }
- }
-
- function scale(xa, ya, xb, yb, s, q) {
- if (xa !== xb || ya !== yb) {
- var i = s.push(pop(s) + "scale(", null, ",", null, ")");
- q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});
- } else if (xb !== 1 || yb !== 1) {
- s.push(pop(s) + "scale(" + xb + "," + yb + ")");
- }
- }
-
- return function(a, b) {
- var s = [], // string constants and placeholders
- q = []; // number interpolators
- a = parse(a), b = parse(b);
- translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
- rotate(a.rotate, b.rotate, s, q);
- skewX(a.skewX, b.skewX, s, q);
- scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
- a = b = null; // gc
- return function(t) {
- var i = -1, n = q.length, o;
- while (++i < n) s[(o = q[i]).i] = o.x(t);
- return s.join("");
- };
- };
-}
-
-export var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)");
-export var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")");
diff --git a/swh/web/static/jssources/d3-interpolate/src/transform/parse.js b/swh/web/static/jssources/d3-interpolate/src/transform/parse.js
deleted file mode 100644
index 8799bec3..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/transform/parse.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import decompose, {identity} from "./decompose";
-
-var cssNode,
- cssRoot,
- cssView,
- svgNode;
-
-export function parseCss(value) {
- if (value === "none") return identity;
- if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView;
- cssNode.style.transform = value;
- value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform");
- cssRoot.removeChild(cssNode);
- value = value.slice(7, -1).split(",");
- return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);
-}
-
-export function parseSvg(value) {
- if (value == null) return identity;
- if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
- svgNode.setAttribute("transform", value);
- if (!(value = svgNode.transform.baseVal.consolidate())) return identity;
- value = value.matrix;
- return decompose(value.a, value.b, value.c, value.d, value.e, value.f);
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/value.js b/swh/web/static/jssources/d3-interpolate/src/value.js
deleted file mode 100644
index 9d5888c8..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/value.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import {color} from "d3-color";
-import rgb from "./rgb";
-import array from "./array";
-import date from "./date";
-import number from "./number";
-import object from "./object";
-import string from "./string";
-import constant from "./constant";
-
-export default function(a, b) {
- var t = typeof b, c;
- return b == null || t === "boolean" ? constant(b)
- : (t === "number" ? number
- : t === "string" ? ((c = color(b)) ? (b = c, rgb) : string)
- : b instanceof color ? rgb
- : b instanceof Date ? date
- : Array.isArray(b) ? array
- : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
- : number)(a, b);
-}
diff --git a/swh/web/static/jssources/d3-interpolate/src/zoom.js b/swh/web/static/jssources/d3-interpolate/src/zoom.js
deleted file mode 100644
index 3368b010..00000000
--- a/swh/web/static/jssources/d3-interpolate/src/zoom.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var rho = Math.SQRT2,
- rho2 = 2,
- rho4 = 4,
- epsilon2 = 1e-12;
-
-function cosh(x) {
- return ((x = Math.exp(x)) + 1 / x) / 2;
-}
-
-function sinh(x) {
- return ((x = Math.exp(x)) - 1 / x) / 2;
-}
-
-function tanh(x) {
- return ((x = Math.exp(2 * x)) - 1) / (x + 1);
-}
-
-// p0 = [ux0, uy0, w0]
-// p1 = [ux1, uy1, w1]
-export default function(p0, p1) {
- var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
- ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
- dx = ux1 - ux0,
- dy = uy1 - uy0,
- d2 = dx * dx + dy * dy,
- i,
- S;
-
- // Special case for u0 ≅ u1.
- if (d2 < epsilon2) {
- S = Math.log(w1 / w0) / rho;
- i = function(t) {
- return [
- ux0 + t * dx,
- uy0 + t * dy,
- w0 * Math.exp(rho * t * S)
- ];
- }
- }
-
- // General case.
- else {
- var d1 = Math.sqrt(d2),
- b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
- b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
- r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
- r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
- S = (r1 - r0) / rho;
- i = function(t) {
- var s = t * S,
- coshr0 = cosh(r0),
- u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
- return [
- ux0 + u * dx,
- uy0 + u * dy,
- w0 * coshr0 / cosh(rho * s + r0)
- ];
- }
- }
-
- i.duration = S * 1000;
-
- return i;
-}
diff --git a/swh/web/static/jssources/d3-path/LICENSE.txt b/swh/web/static/jssources/d3-path/LICENSE.txt
deleted file mode 100644
index 576b910b..00000000
--- a/swh/web/static/jssources/d3-path/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2015-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-path/src/index.js b/swh/web/static/jssources/d3-path/src/index.js
deleted file mode 100644
index 8d18d76e..00000000
--- a/swh/web/static/jssources/d3-path/src/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export {default as path} from "./path";
diff --git a/swh/web/static/jssources/d3-path/src/path.js b/swh/web/static/jssources/d3-path/src/path.js
deleted file mode 100644
index 36ad93d3..00000000
--- a/swh/web/static/jssources/d3-path/src/path.js
+++ /dev/null
@@ -1,130 +0,0 @@
-var pi = Math.PI,
- tau = 2 * pi,
- epsilon = 1e-6,
- tauEpsilon = tau - epsilon;
-
-function Path() {
- this._x0 = this._y0 = // start of current subpath
- this._x1 = this._y1 = null; // end of current subpath
- this._ = "";
-}
-
-function path() {
- return new Path;
-}
-
-Path.prototype = path.prototype = {
- constructor: Path,
- moveTo: function(x, y) {
- this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
- },
- closePath: function() {
- if (this._x1 !== null) {
- this._x1 = this._x0, this._y1 = this._y0;
- this._ += "Z";
- }
- },
- lineTo: function(x, y) {
- this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
- },
- quadraticCurveTo: function(x1, y1, x, y) {
- this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
- },
- bezierCurveTo: function(x1, y1, x2, y2, x, y) {
- this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
- },
- arcTo: function(x1, y1, x2, y2, r) {
- x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
- var x0 = this._x1,
- y0 = this._y1,
- x21 = x2 - x1,
- y21 = y2 - y1,
- x01 = x0 - x1,
- y01 = y0 - y1,
- l01_2 = x01 * x01 + y01 * y01;
-
- // Is the radius negative? Error.
- if (r < 0) throw new Error("negative radius: " + r);
-
- // Is this path empty? Move to (x1,y1).
- if (this._x1 === null) {
- this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
- }
-
- // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
- else if (!(l01_2 > epsilon));
-
- // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
- // Equivalently, is (x1,y1) coincident with (x2,y2)?
- // Or, is the radius zero? Line to (x1,y1).
- else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
- this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
- }
-
- // Otherwise, draw an arc!
- else {
- var x20 = x2 - x0,
- y20 = y2 - y0,
- l21_2 = x21 * x21 + y21 * y21,
- l20_2 = x20 * x20 + y20 * y20,
- l21 = Math.sqrt(l21_2),
- l01 = Math.sqrt(l01_2),
- l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
- t01 = l / l01,
- t21 = l / l21;
-
- // If the start tangent is not coincident with (x0,y0), line to.
- if (Math.abs(t01 - 1) > epsilon) {
- this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
- }
-
- this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
- }
- },
- arc: function(x, y, r, a0, a1, ccw) {
- x = +x, y = +y, r = +r;
- var dx = r * Math.cos(a0),
- dy = r * Math.sin(a0),
- x0 = x + dx,
- y0 = y + dy,
- cw = 1 ^ ccw,
- da = ccw ? a0 - a1 : a1 - a0;
-
- // Is the radius negative? Error.
- if (r < 0) throw new Error("negative radius: " + r);
-
- // Is this path empty? Move to (x0,y0).
- if (this._x1 === null) {
- this._ += "M" + x0 + "," + y0;
- }
-
- // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
- else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
- this._ += "L" + x0 + "," + y0;
- }
-
- // Is this arc empty? We’re done.
- if (!r) return;
-
- // Does the angle go the wrong way? Flip the direction.
- if (da < 0) da = da % tau + tau;
-
- // Is this a complete circle? Draw two arcs to complete the circle.
- if (da > tauEpsilon) {
- this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
- }
-
- // Is this arc non-empty? Draw an arc!
- else if (da > epsilon) {
- this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
- }
- },
- rect: function(x, y, w, h) {
- this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
- },
- toString: function() {
- return this._;
- }
-};
-
-export default path;
diff --git a/swh/web/static/jssources/d3-polygon/LICENSE.txt b/swh/web/static/jssources/d3-polygon/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-polygon/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-polygon/src/area.js b/swh/web/static/jssources/d3-polygon/src/area.js
deleted file mode 100644
index 109efb48..00000000
--- a/swh/web/static/jssources/d3-polygon/src/area.js
+++ /dev/null
@@ -1,15 +0,0 @@
-export default function(polygon) {
- var i = -1,
- n = polygon.length,
- a,
- b = polygon[n - 1],
- area = 0;
-
- while (++i < n) {
- a = b;
- b = polygon[i];
- area += a[1] * b[0] - a[0] * b[1];
- }
-
- return area / 2;
-}
diff --git a/swh/web/static/jssources/d3-polygon/src/centroid.js b/swh/web/static/jssources/d3-polygon/src/centroid.js
deleted file mode 100644
index 6c8ece1f..00000000
--- a/swh/web/static/jssources/d3-polygon/src/centroid.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export default function(polygon) {
- var i = -1,
- n = polygon.length,
- x = 0,
- y = 0,
- a,
- b = polygon[n - 1],
- c,
- k = 0;
-
- while (++i < n) {
- a = b;
- b = polygon[i];
- k += c = a[0] * b[1] - b[0] * a[1];
- x += (a[0] + b[0]) * c;
- y += (a[1] + b[1]) * c;
- }
-
- return k *= 3, [x / k, y / k];
-}
diff --git a/swh/web/static/jssources/d3-polygon/src/contains.js b/swh/web/static/jssources/d3-polygon/src/contains.js
deleted file mode 100644
index a0beabca..00000000
--- a/swh/web/static/jssources/d3-polygon/src/contains.js
+++ /dev/null
@@ -1,16 +0,0 @@
-export default function(polygon, point) {
- var n = polygon.length,
- p = polygon[n - 1],
- x = point[0], y = point[1],
- x0 = p[0], y0 = p[1],
- x1, y1,
- inside = false;
-
- for (var i = 0; i < n; ++i) {
- p = polygon[i], x1 = p[0], y1 = p[1];
- if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;
- x0 = x1, y0 = y1;
- }
-
- return inside;
-}
diff --git a/swh/web/static/jssources/d3-polygon/src/cross.js b/swh/web/static/jssources/d3-polygon/src/cross.js
deleted file mode 100644
index 11a6df07..00000000
--- a/swh/web/static/jssources/d3-polygon/src/cross.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of
-// the 3D cross product in a quadrant I Cartesian coordinate system (+x is
-// right, +y is up). Returns a positive value if ABC is counter-clockwise,
-// negative if clockwise, and zero if the points are collinear.
-export default function(a, b, c) {
- return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
-}
diff --git a/swh/web/static/jssources/d3-polygon/src/hull.js b/swh/web/static/jssources/d3-polygon/src/hull.js
deleted file mode 100644
index 7a8f9573..00000000
--- a/swh/web/static/jssources/d3-polygon/src/hull.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import cross from "./cross";
-
-function lexicographicOrder(a, b) {
- return a[0] - b[0] || a[1] - b[1];
-}
-
-// Computes the upper convex hull per the monotone chain algorithm.
-// Assumes points.length >= 3, is sorted by x, unique in y.
-// Returns an array of indices into points in left-to-right order.
-function computeUpperHullIndexes(points) {
- var n = points.length,
- indexes = [0, 1],
- size = 2;
-
- for (var i = 2; i < n; ++i) {
- while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;
- indexes[size++] = i;
- }
-
- return indexes.slice(0, size); // remove popped points
-}
-
-export default function(points) {
- if ((n = points.length) < 3) return null;
-
- var i,
- n,
- sortedPoints = new Array(n),
- flippedPoints = new Array(n);
-
- for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];
- sortedPoints.sort(lexicographicOrder);
- for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];
-
- var upperIndexes = computeUpperHullIndexes(sortedPoints),
- lowerIndexes = computeUpperHullIndexes(flippedPoints);
-
- // Construct the hull polygon, removing possible duplicate endpoints.
- var skipLeft = lowerIndexes[0] === upperIndexes[0],
- skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],
- hull = [];
-
- // Add upper hull in right-to-l order.
- // Then add lower hull in left-to-right order.
- for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);
- for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);
-
- return hull;
-}
diff --git a/swh/web/static/jssources/d3-polygon/src/index.js b/swh/web/static/jssources/d3-polygon/src/index.js
deleted file mode 100644
index f9aaf395..00000000
--- a/swh/web/static/jssources/d3-polygon/src/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export {default as polygonArea} from "./area";
-export {default as polygonCentroid} from "./centroid";
-export {default as polygonHull} from "./hull";
-export {default as polygonContains} from "./contains";
-export {default as polygonLength} from "./length";
diff --git a/swh/web/static/jssources/d3-polygon/src/length.js b/swh/web/static/jssources/d3-polygon/src/length.js
deleted file mode 100644
index 79a90b8b..00000000
--- a/swh/web/static/jssources/d3-polygon/src/length.js
+++ /dev/null
@@ -1,23 +0,0 @@
-export default function(polygon) {
- var i = -1,
- n = polygon.length,
- b = polygon[n - 1],
- xa,
- ya,
- xb = b[0],
- yb = b[1],
- perimeter = 0;
-
- while (++i < n) {
- xa = xb;
- ya = yb;
- b = polygon[i];
- xb = b[0];
- yb = b[1];
- xa -= xb;
- ya -= yb;
- perimeter += Math.sqrt(xa * xa + ya * ya);
- }
-
- return perimeter;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/LICENSE.txt b/swh/web/static/jssources/d3-quadtree/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-quadtree/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-quadtree/src/add.js b/swh/web/static/jssources/d3-quadtree/src/add.js
deleted file mode 100644
index ac7c4d1e..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/add.js
+++ /dev/null
@@ -1,84 +0,0 @@
-export default function(d) {
- var x = +this._x.call(null, d),
- y = +this._y.call(null, d);
- return add(this.cover(x, y), x, y, d);
-}
-
-function add(tree, x, y, d) {
- if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points
-
- var parent,
- node = tree._root,
- leaf = {data: d},
- x0 = tree._x0,
- y0 = tree._y0,
- x1 = tree._x1,
- y1 = tree._y1,
- xm,
- ym,
- xp,
- yp,
- right,
- bottom,
- i,
- j;
-
- // If the tree is empty, initialize the root as a leaf.
- if (!node) return tree._root = leaf, tree;
-
- // Find the existing leaf for the new point, or add it.
- while (node.length) {
- if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
- if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
- if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;
- }
-
- // Is the new point is exactly coincident with the existing point?
- xp = +tree._x.call(null, node.data);
- yp = +tree._y.call(null, node.data);
- if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;
-
- // Otherwise, split the leaf node until the old and new point are separated.
- do {
- parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);
- if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
- if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
- } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));
- return parent[j] = node, parent[i] = leaf, tree;
-}
-
-export function addAll(data) {
- var d, i, n = data.length,
- x,
- y,
- xz = new Array(n),
- yz = new Array(n),
- x0 = Infinity,
- y0 = Infinity,
- x1 = -Infinity,
- y1 = -Infinity;
-
- // Compute the points and their extent.
- for (i = 0; i < n; ++i) {
- if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;
- xz[i] = x;
- yz[i] = y;
- if (x < x0) x0 = x;
- if (x > x1) x1 = x;
- if (y < y0) y0 = y;
- if (y > y1) y1 = y;
- }
-
- // If there were no (valid) points, abort.
- if (x0 > x1 || y0 > y1) return this;
-
- // Expand the tree to cover the new points.
- this.cover(x0, y0).cover(x1, y1);
-
- // Add the new points.
- for (i = 0; i < n; ++i) {
- add(this, xz[i], yz[i], data[i]);
- }
-
- return this;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/cover.js b/swh/web/static/jssources/d3-quadtree/src/cover.js
deleted file mode 100644
index a981a3d2..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/cover.js
+++ /dev/null
@@ -1,43 +0,0 @@
-export default function(x, y) {
- if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points
-
- var x0 = this._x0,
- y0 = this._y0,
- x1 = this._x1,
- y1 = this._y1;
-
- // If the quadtree has no extent, initialize them.
- // Integer extent are necessary so that if we later double the extent,
- // the existing quadrant boundaries don’t change due to floating point error!
- if (isNaN(x0)) {
- x1 = (x0 = Math.floor(x)) + 1;
- y1 = (y0 = Math.floor(y)) + 1;
- }
-
- // Otherwise, double repeatedly to cover.
- else {
- var z = x1 - x0,
- node = this._root,
- parent,
- i;
-
- while (x0 > x || x >= x1 || y0 > y || y >= y1) {
- i = (y < y0) << 1 | (x < x0);
- parent = new Array(4), parent[i] = node, node = parent, z *= 2;
- switch (i) {
- case 0: x1 = x0 + z, y1 = y0 + z; break;
- case 1: x0 = x1 - z, y1 = y0 + z; break;
- case 2: x1 = x0 + z, y0 = y1 - z; break;
- case 3: x0 = x1 - z, y0 = y1 - z; break;
- }
- }
-
- if (this._root && this._root.length) this._root = node;
- }
-
- this._x0 = x0;
- this._y0 = y0;
- this._x1 = x1;
- this._y1 = y1;
- return this;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/data.js b/swh/web/static/jssources/d3-quadtree/src/data.js
deleted file mode 100644
index e934fa9d..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/data.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function() {
- var data = [];
- this.visit(function(node) {
- if (!node.length) do data.push(node.data); while (node = node.next)
- });
- return data;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/extent.js b/swh/web/static/jssources/d3-quadtree/src/extent.js
deleted file mode 100644
index 9e65a90a..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/extent.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(_) {
- return arguments.length
- ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])
- : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/find.js b/swh/web/static/jssources/d3-quadtree/src/find.js
deleted file mode 100644
index 87c857cd..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/find.js
+++ /dev/null
@@ -1,70 +0,0 @@
-import Quad from "./quad";
-
-export default function(x, y, radius) {
- var data,
- x0 = this._x0,
- y0 = this._y0,
- x1,
- y1,
- x2,
- y2,
- x3 = this._x1,
- y3 = this._y1,
- quads = [],
- node = this._root,
- q,
- i;
-
- if (node) quads.push(new Quad(node, x0, y0, x3, y3));
- if (radius == null) radius = Infinity;
- else {
- x0 = x - radius, y0 = y - radius;
- x3 = x + radius, y3 = y + radius;
- radius *= radius;
- }
-
- while (q = quads.pop()) {
-
- // Stop searching if this quadrant can’t contain a closer node.
- if (!(node = q.node)
- || (x1 = q.x0) > x3
- || (y1 = q.y0) > y3
- || (x2 = q.x1) < x0
- || (y2 = q.y1) < y0) continue;
-
- // Bisect the current quadrant.
- if (node.length) {
- var xm = (x1 + x2) / 2,
- ym = (y1 + y2) / 2;
-
- quads.push(
- new Quad(node[3], xm, ym, x2, y2),
- new Quad(node[2], x1, ym, xm, y2),
- new Quad(node[1], xm, y1, x2, ym),
- new Quad(node[0], x1, y1, xm, ym)
- );
-
- // Visit the closest quadrant first.
- if (i = (y >= ym) << 1 | (x >= xm)) {
- q = quads[quads.length - 1];
- quads[quads.length - 1] = quads[quads.length - 1 - i];
- quads[quads.length - 1 - i] = q;
- }
- }
-
- // Visit this point. (Visiting coincident points isn’t necessary!)
- else {
- var dx = x - +this._x.call(null, node.data),
- dy = y - +this._y.call(null, node.data),
- d2 = dx * dx + dy * dy;
- if (d2 < radius) {
- var d = Math.sqrt(radius = d2);
- x0 = x - d, y0 = y - d;
- x3 = x + d, y3 = y + d;
- data = node.data;
- }
- }
- }
-
- return data;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/index.js b/swh/web/static/jssources/d3-quadtree/src/index.js
deleted file mode 100644
index c59b47be..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export {default as quadtree} from "./quadtree";
diff --git a/swh/web/static/jssources/d3-quadtree/src/quad.js b/swh/web/static/jssources/d3-quadtree/src/quad.js
deleted file mode 100644
index 6f714dbb..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/quad.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function(node, x0, y0, x1, y1) {
- this.node = node;
- this.x0 = x0;
- this.y0 = y0;
- this.x1 = x1;
- this.y1 = y1;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/quadtree.js b/swh/web/static/jssources/d3-quadtree/src/quadtree.js
deleted file mode 100644
index faf2a6b9..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/quadtree.js
+++ /dev/null
@@ -1,73 +0,0 @@
-import tree_add, {addAll as tree_addAll} from "./add";
-import tree_cover from "./cover";
-import tree_data from "./data";
-import tree_extent from "./extent";
-import tree_find from "./find";
-import tree_remove, {removeAll as tree_removeAll} from "./remove";
-import tree_root from "./root";
-import tree_size from "./size";
-import tree_visit from "./visit";
-import tree_visitAfter from "./visitAfter";
-import tree_x, {defaultX} from "./x";
-import tree_y, {defaultY} from "./y";
-
-export default function quadtree(nodes, x, y) {
- var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);
- return nodes == null ? tree : tree.addAll(nodes);
-}
-
-function Quadtree(x, y, x0, y0, x1, y1) {
- this._x = x;
- this._y = y;
- this._x0 = x0;
- this._y0 = y0;
- this._x1 = x1;
- this._y1 = y1;
- this._root = undefined;
-}
-
-function leaf_copy(leaf) {
- var copy = {data: leaf.data}, next = copy;
- while (leaf = leaf.next) next = next.next = {data: leaf.data};
- return copy;
-}
-
-var treeProto = quadtree.prototype = Quadtree.prototype;
-
-treeProto.copy = function() {
- var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),
- node = this._root,
- nodes,
- child;
-
- if (!node) return copy;
-
- if (!node.length) return copy._root = leaf_copy(node), copy;
-
- nodes = [{source: node, target: copy._root = new Array(4)}];
- while (node = nodes.pop()) {
- for (var i = 0; i < 4; ++i) {
- if (child = node.source[i]) {
- if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});
- else node.target[i] = leaf_copy(child);
- }
- }
- }
-
- return copy;
-};
-
-treeProto.add = tree_add;
-treeProto.addAll = tree_addAll;
-treeProto.cover = tree_cover;
-treeProto.data = tree_data;
-treeProto.extent = tree_extent;
-treeProto.find = tree_find;
-treeProto.remove = tree_remove;
-treeProto.removeAll = tree_removeAll;
-treeProto.root = tree_root;
-treeProto.size = tree_size;
-treeProto.visit = tree_visit;
-treeProto.visitAfter = tree_visitAfter;
-treeProto.x = tree_x;
-treeProto.y = tree_y;
diff --git a/swh/web/static/jssources/d3-quadtree/src/remove.js b/swh/web/static/jssources/d3-quadtree/src/remove.js
deleted file mode 100644
index 0ba27abe..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/remove.js
+++ /dev/null
@@ -1,62 +0,0 @@
-export default function(d) {
- if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points
-
- var parent,
- node = this._root,
- retainer,
- previous,
- next,
- x0 = this._x0,
- y0 = this._y0,
- x1 = this._x1,
- y1 = this._y1,
- x,
- y,
- xm,
- ym,
- right,
- bottom,
- i,
- j;
-
- // If the tree is empty, initialize the root as a leaf.
- if (!node) return this;
-
- // Find the leaf node for the point.
- // While descending, also retain the deepest parent with a non-removed sibling.
- if (node.length) while (true) {
- if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
- if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
- if (!(parent = node, node = node[i = bottom << 1 | right])) return this;
- if (!node.length) break;
- if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;
- }
-
- // Find the point to remove.
- while (node.data !== d) if (!(previous = node, node = node.next)) return this;
- if (next = node.next) delete node.next;
-
- // If there are multiple coincident points, remove just the point.
- if (previous) return (next ? previous.next = next : delete previous.next), this;
-
- // If this is the root point, remove it.
- if (!parent) return this._root = next, this;
-
- // Remove this leaf.
- next ? parent[i] = next : delete parent[i];
-
- // If the parent now contains exactly one leaf, collapse superfluous parents.
- if ((node = parent[0] || parent[1] || parent[2] || parent[3])
- && node === (parent[3] || parent[2] || parent[1] || parent[0])
- && !node.length) {
- if (retainer) retainer[j] = node;
- else this._root = node;
- }
-
- return this;
-}
-
-export function removeAll(data) {
- for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);
- return this;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/root.js b/swh/web/static/jssources/d3-quadtree/src/root.js
deleted file mode 100644
index c32889f7..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/root.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function() {
- return this._root;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/size.js b/swh/web/static/jssources/d3-quadtree/src/size.js
deleted file mode 100644
index d2d5ab61..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/size.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function() {
- var size = 0;
- this.visit(function(node) {
- if (!node.length) do ++size; while (node = node.next)
- });
- return size;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/visit.js b/swh/web/static/jssources/d3-quadtree/src/visit.js
deleted file mode 100644
index 1bcb6150..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/visit.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import Quad from "./quad";
-
-export default function(callback) {
- var quads = [], q, node = this._root, child, x0, y0, x1, y1;
- if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));
- while (q = quads.pop()) {
- if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {
- var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
- if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));
- if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));
- if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));
- if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));
- }
- }
- return this;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/visitAfter.js b/swh/web/static/jssources/d3-quadtree/src/visitAfter.js
deleted file mode 100644
index 013840c7..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/visitAfter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import Quad from "./quad";
-
-export default function(callback) {
- var quads = [], next = [], q;
- if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));
- while (q = quads.pop()) {
- var node = q.node;
- if (node.length) {
- var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
- if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));
- if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));
- if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));
- if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));
- }
- next.push(q);
- }
- while (q = next.pop()) {
- callback(q.node, q.x0, q.y0, q.x1, q.y1);
- }
- return this;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/x.js b/swh/web/static/jssources/d3-quadtree/src/x.js
deleted file mode 100644
index ffea5075..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/x.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export function defaultX(d) {
- return d[0];
-}
-
-export default function(_) {
- return arguments.length ? (this._x = _, this) : this._x;
-}
diff --git a/swh/web/static/jssources/d3-quadtree/src/y.js b/swh/web/static/jssources/d3-quadtree/src/y.js
deleted file mode 100644
index d2d29cb7..00000000
--- a/swh/web/static/jssources/d3-quadtree/src/y.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export function defaultY(d) {
- return d[1];
-}
-
-export default function(_) {
- return arguments.length ? (this._y = _, this) : this._y;
-}
diff --git a/swh/web/static/jssources/d3-random/LICENSE.txt b/swh/web/static/jssources/d3-random/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-random/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-random/src/bates.js b/swh/web/static/jssources/d3-random/src/bates.js
deleted file mode 100644
index b42ac70f..00000000
--- a/swh/web/static/jssources/d3-random/src/bates.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import defaultSource from "./defaultSource";
-import irwinHall from "./irwinHall";
-
-export default (function sourceRandomBates(source) {
- function randomBates(n) {
- var randomIrwinHall = irwinHall.source(source)(n);
- return function() {
- return randomIrwinHall() / n;
- };
- }
-
- randomBates.source = sourceRandomBates;
-
- return randomBates;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-random/src/defaultSource.js b/swh/web/static/jssources/d3-random/src/defaultSource.js
deleted file mode 100644
index a34cc1eb..00000000
--- a/swh/web/static/jssources/d3-random/src/defaultSource.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function() {
- return Math.random();
-}
diff --git a/swh/web/static/jssources/d3-random/src/exponential.js b/swh/web/static/jssources/d3-random/src/exponential.js
deleted file mode 100644
index b7a22621..00000000
--- a/swh/web/static/jssources/d3-random/src/exponential.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import defaultSource from "./defaultSource";
-
-export default (function sourceRandomExponential(source) {
- function randomExponential(lambda) {
- return function() {
- return -Math.log(1 - source()) / lambda;
- };
- }
-
- randomExponential.source = sourceRandomExponential;
-
- return randomExponential;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-random/src/index.js b/swh/web/static/jssources/d3-random/src/index.js
deleted file mode 100644
index 6c2aae4f..00000000
--- a/swh/web/static/jssources/d3-random/src/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export {default as randomUniform} from "./uniform";
-export {default as randomNormal} from "./normal";
-export {default as randomLogNormal} from "./logNormal";
-export {default as randomBates} from "./bates";
-export {default as randomIrwinHall} from "./irwinHall";
-export {default as randomExponential} from "./exponential";
diff --git a/swh/web/static/jssources/d3-random/src/irwinHall.js b/swh/web/static/jssources/d3-random/src/irwinHall.js
deleted file mode 100644
index 2d7e2280..00000000
--- a/swh/web/static/jssources/d3-random/src/irwinHall.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import defaultSource from "./defaultSource";
-
-export default (function sourceRandomIrwinHall(source) {
- function randomIrwinHall(n) {
- return function() {
- for (var sum = 0, i = 0; i < n; ++i) sum += source();
- return sum;
- };
- }
-
- randomIrwinHall.source = sourceRandomIrwinHall;
-
- return randomIrwinHall;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-random/src/logNormal.js b/swh/web/static/jssources/d3-random/src/logNormal.js
deleted file mode 100644
index fc511582..00000000
--- a/swh/web/static/jssources/d3-random/src/logNormal.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import defaultSource from "./defaultSource";
-import normal from "./normal";
-
-export default (function sourceRandomLogNormal(source) {
- function randomLogNormal() {
- var randomNormal = normal.source(source).apply(this, arguments);
- return function() {
- return Math.exp(randomNormal());
- };
- }
-
- randomLogNormal.source = sourceRandomLogNormal;
-
- return randomLogNormal;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-random/src/normal.js b/swh/web/static/jssources/d3-random/src/normal.js
deleted file mode 100644
index ddd4377a..00000000
--- a/swh/web/static/jssources/d3-random/src/normal.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import defaultSource from "./defaultSource";
-
-export default (function sourceRandomNormal(source) {
- function randomNormal(mu, sigma) {
- var x, r;
- mu = mu == null ? 0 : +mu;
- sigma = sigma == null ? 1 : +sigma;
- return function() {
- var y;
-
- // If available, use the second previously-generated uniform random.
- if (x != null) y = x, x = null;
-
- // Otherwise, generate a new x and y.
- else do {
- x = source() * 2 - 1;
- y = source() * 2 - 1;
- r = x * x + y * y;
- } while (!r || r > 1);
-
- return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);
- };
- }
-
- randomNormal.source = sourceRandomNormal;
-
- return randomNormal;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-random/src/uniform.js b/swh/web/static/jssources/d3-random/src/uniform.js
deleted file mode 100644
index 8a5c1e31..00000000
--- a/swh/web/static/jssources/d3-random/src/uniform.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import defaultSource from "./defaultSource";
-
-export default (function sourceRandomUniform(source) {
- function randomUniform(min, max) {
- min = min == null ? 0 : +min;
- max = max == null ? 1 : +max;
- if (arguments.length === 1) max = min, min = 0;
- else max -= min;
- return function() {
- return source() * max + min;
- };
- }
-
- randomUniform.source = sourceRandomUniform;
-
- return randomUniform;
-})(defaultSource);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/LICENSE.txt b/swh/web/static/jssources/d3-scale-chromatic/LICENSE.txt
deleted file mode 100644
index b10990f4..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/LICENSE.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-Copyright 2010-2018 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Apache-Style Software License for ColorBrewer software and ColorBrewer Color
-Schemes
-
-Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State
-University.
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Accent.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Accent.js
deleted file mode 100644
index 07ab707a..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Accent.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Dark2.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Dark2.js
deleted file mode 100644
index 13fc291a..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Dark2.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Paired.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Paired.js
deleted file mode 100644
index 30094a00..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Paired.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel1.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel1.js
deleted file mode 100644
index 4b0e0935..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel2.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel2.js
deleted file mode 100644
index 520a5a3e..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Pastel2.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set1.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set1.js
deleted file mode 100644
index 8c34c1b7..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set2.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set2.js
deleted file mode 100644
index e6bad534..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set2.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set3.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set3.js
deleted file mode 100644
index 8eeeb044..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/Set3.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/category10.js b/swh/web/static/jssources/d3-scale-chromatic/src/categorical/category10.js
deleted file mode 100644
index 6221c071..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/categorical/category10.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import colors from "../colors";
-
-export default colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/colors.js b/swh/web/static/jssources/d3-scale-chromatic/src/colors.js
deleted file mode 100644
index aeedad53..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/colors.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(specifier) {
- var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;
- while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
- return colors;
-}
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/BrBG.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/BrBG.js
deleted file mode 100644
index 5e27ee6c..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/BrBG.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "d8b365f5f5f55ab4ac",
- "a6611adfc27d80cdc1018571",
- "a6611adfc27df5f5f580cdc1018571",
- "8c510ad8b365f6e8c3c7eae55ab4ac01665e",
- "8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e",
- "8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
- "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e",
- "5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30",
- "5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PRGn.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PRGn.js
deleted file mode 100644
index 3be94f37..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PRGn.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "af8dc3f7f7f77fbf7b",
- "7b3294c2a5cfa6dba0008837",
- "7b3294c2a5cff7f7f7a6dba0008837",
- "762a83af8dc3e7d4e8d9f0d37fbf7b1b7837",
- "762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837",
- "762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837",
- "762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
- "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b",
- "40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PiYG.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PiYG.js
deleted file mode 100644
index 1d57c4fe..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PiYG.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e9a3c9f7f7f7a1d76a",
- "d01c8bf1b6dab8e1864dac26",
- "d01c8bf1b6daf7f7f7b8e1864dac26",
- "c51b7de9a3c9fde0efe6f5d0a1d76a4d9221",
- "c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221",
- "c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221",
- "c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221",
- "8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
- "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PuOr.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PuOr.js
deleted file mode 100644
index 924f5cb0..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/PuOr.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "998ec3f7f7f7f1a340",
- "5e3c99b2abd2fdb863e66101",
- "5e3c99b2abd2f7f7f7fdb863e66101",
- "542788998ec3d8daebfee0b6f1a340b35806",
- "542788998ec3d8daebf7f7f7fee0b6f1a340b35806",
- "5427888073acb2abd2d8daebfee0b6fdb863e08214b35806",
- "5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806",
- "2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08",
- "2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdBu.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdBu.js
deleted file mode 100644
index f9ba1965..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdBu.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "ef8a62f7f7f767a9cf",
- "ca0020f4a58292c5de0571b0",
- "ca0020f4a582f7f7f792c5de0571b0",
- "b2182bef8a62fddbc7d1e5f067a9cf2166ac",
- "b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac",
- "b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac",
- "b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac",
- "67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061",
- "67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdGy.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdGy.js
deleted file mode 100644
index 9d1a4a10..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdGy.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "ef8a62ffffff999999",
- "ca0020f4a582bababa404040",
- "ca0020f4a582ffffffbababa404040",
- "b2182bef8a62fddbc7e0e0e09999994d4d4d",
- "b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d",
- "b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d",
- "b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d",
- "67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a",
- "67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlBu.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlBu.js
deleted file mode 100644
index ef93e9d2..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlBu.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fc8d59ffffbf91bfdb",
- "d7191cfdae61abd9e92c7bb6",
- "d7191cfdae61ffffbfabd9e92c7bb6",
- "d73027fc8d59fee090e0f3f891bfdb4575b4",
- "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4",
- "d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4",
- "d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4",
- "a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695",
- "a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlGn.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlGn.js
deleted file mode 100644
index 2e3964d6..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/RdYlGn.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fc8d59ffffbf91cf60",
- "d7191cfdae61a6d96a1a9641",
- "d7191cfdae61ffffbfa6d96a1a9641",
- "d73027fc8d59fee08bd9ef8b91cf601a9850",
- "d73027fc8d59fee08bffffbfd9ef8b91cf601a9850",
- "d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
- "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850",
- "a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837",
- "a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/Spectral.js b/swh/web/static/jssources/d3-scale-chromatic/src/diverging/Spectral.js
deleted file mode 100644
index 0133e0ab..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/diverging/Spectral.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fc8d59ffffbf99d594",
- "d7191cfdae61abdda42b83ba",
- "d7191cfdae61ffffbfabdda42b83ba",
- "d53e4ffc8d59fee08be6f59899d5943288bd",
- "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd",
- "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd",
- "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
- "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
- "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/index.js b/swh/web/static/jssources/d3-scale-chromatic/src/index.js
deleted file mode 100644
index 646dfd75..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-export {default as schemeCategory10} from "./categorical/category10";
-export {default as schemeAccent} from "./categorical/Accent";
-export {default as schemeDark2} from "./categorical/Dark2";
-export {default as schemePaired} from "./categorical/Paired";
-export {default as schemePastel1} from "./categorical/Pastel1";
-export {default as schemePastel2} from "./categorical/Pastel2";
-export {default as schemeSet1} from "./categorical/Set1";
-export {default as schemeSet2} from "./categorical/Set2";
-export {default as schemeSet3} from "./categorical/Set3";
-export {default as interpolateBrBG, scheme as schemeBrBG} from "./diverging/BrBG";
-export {default as interpolatePRGn, scheme as schemePRGn} from "./diverging/PRGn";
-export {default as interpolatePiYG, scheme as schemePiYG} from "./diverging/PiYG";
-export {default as interpolatePuOr, scheme as schemePuOr} from "./diverging/PuOr";
-export {default as interpolateRdBu, scheme as schemeRdBu} from "./diverging/RdBu";
-export {default as interpolateRdGy, scheme as schemeRdGy} from "./diverging/RdGy";
-export {default as interpolateRdYlBu, scheme as schemeRdYlBu} from "./diverging/RdYlBu";
-export {default as interpolateRdYlGn, scheme as schemeRdYlGn} from "./diverging/RdYlGn";
-export {default as interpolateSpectral, scheme as schemeSpectral} from "./diverging/Spectral";
-export {default as interpolateBuGn, scheme as schemeBuGn} from "./sequential-multi/BuGn";
-export {default as interpolateBuPu, scheme as schemeBuPu} from "./sequential-multi/BuPu";
-export {default as interpolateGnBu, scheme as schemeGnBu} from "./sequential-multi/GnBu";
-export {default as interpolateOrRd, scheme as schemeOrRd} from "./sequential-multi/OrRd";
-export {default as interpolatePuBuGn, scheme as schemePuBuGn} from "./sequential-multi/PuBuGn";
-export {default as interpolatePuBu, scheme as schemePuBu} from "./sequential-multi/PuBu";
-export {default as interpolatePuRd, scheme as schemePuRd} from "./sequential-multi/PuRd";
-export {default as interpolateRdPu, scheme as schemeRdPu} from "./sequential-multi/RdPu";
-export {default as interpolateYlGnBu, scheme as schemeYlGnBu} from "./sequential-multi/YlGnBu";
-export {default as interpolateYlGn, scheme as schemeYlGn} from "./sequential-multi/YlGn";
-export {default as interpolateYlOrBr, scheme as schemeYlOrBr} from "./sequential-multi/YlOrBr";
-export {default as interpolateYlOrRd, scheme as schemeYlOrRd} from "./sequential-multi/YlOrRd";
-export {default as interpolateBlues, scheme as schemeBlues} from "./sequential-single/Blues";
-export {default as interpolateGreens, scheme as schemeGreens} from "./sequential-single/Greens";
-export {default as interpolateGreys, scheme as schemeGreys} from "./sequential-single/Greys";
-export {default as interpolatePurples, scheme as schemePurples} from "./sequential-single/Purples";
-export {default as interpolateReds, scheme as schemeReds} from "./sequential-single/Reds";
-export {default as interpolateOranges, scheme as schemeOranges} from "./sequential-single/Oranges";
-export {default as interpolateCubehelixDefault} from "./sequential-multi/cubehelix";
-export {default as interpolateRainbow, warm as interpolateWarm, cool as interpolateCool} from "./sequential-multi/rainbow";
-export {default as interpolateSinebow} from "./sequential-multi/sinebow";
-export {default as interpolateViridis, magma as interpolateMagma, inferno as interpolateInferno, plasma as interpolatePlasma} from "./sequential-multi/viridis";
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/ramp.js b/swh/web/static/jssources/d3-scale-chromatic/src/ramp.js
deleted file mode 100644
index 766c2450..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/ramp.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import {interpolateRgbBasis} from "d3-interpolate";
-
-export default function(scheme) {
- return interpolateRgbBasis(scheme[scheme.length - 1]);
-}
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuGn.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuGn.js
deleted file mode 100644
index e7dade75..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuGn.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e5f5f999d8c92ca25f",
- "edf8fbb2e2e266c2a4238b45",
- "edf8fbb2e2e266c2a42ca25f006d2c",
- "edf8fbccece699d8c966c2a42ca25f006d2c",
- "edf8fbccece699d8c966c2a441ae76238b45005824",
- "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824",
- "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuPu.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuPu.js
deleted file mode 100644
index 8aa9232a..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/BuPu.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e0ecf49ebcda8856a7",
- "edf8fbb3cde38c96c688419d",
- "edf8fbb3cde38c96c68856a7810f7c",
- "edf8fbbfd3e69ebcda8c96c68856a7810f7c",
- "edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b",
- "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b",
- "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/GnBu.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/GnBu.js
deleted file mode 100644
index c8dae65a..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/GnBu.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e0f3dba8ddb543a2ca",
- "f0f9e8bae4bc7bccc42b8cbe",
- "f0f9e8bae4bc7bccc443a2ca0868ac",
- "f0f9e8ccebc5a8ddb57bccc443a2ca0868ac",
- "f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e",
- "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
- "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/OrRd.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/OrRd.js
deleted file mode 100644
index 3f96f7dd..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/OrRd.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fee8c8fdbb84e34a33",
- "fef0d9fdcc8afc8d59d7301f",
- "fef0d9fdcc8afc8d59e34a33b30000",
- "fef0d9fdd49efdbb84fc8d59e34a33b30000",
- "fef0d9fdd49efdbb84fc8d59ef6548d7301f990000",
- "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000",
- "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBu.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBu.js
deleted file mode 100644
index c279e489..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBu.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "ece7f2a6bddb2b8cbe",
- "f1eef6bdc9e174a9cf0570b0",
- "f1eef6bdc9e174a9cf2b8cbe045a8d",
- "f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d",
- "f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b",
- "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b",
- "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBuGn.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBuGn.js
deleted file mode 100644
index f6d8fe0f..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuBuGn.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "ece2f0a6bddb1c9099",
- "f6eff7bdc9e167a9cf02818a",
- "f6eff7bdc9e167a9cf1c9099016c59",
- "f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
- "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450",
- "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450",
- "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuRd.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuRd.js
deleted file mode 100644
index fe762d20..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/PuRd.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e7e1efc994c7dd1c77",
- "f1eef6d7b5d8df65b0ce1256",
- "f1eef6d7b5d8df65b0dd1c77980043",
- "f1eef6d4b9dac994c7df65b0dd1c77980043",
- "f1eef6d4b9dac994c7df65b0e7298ace125691003f",
- "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f",
- "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/RdPu.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/RdPu.js
deleted file mode 100644
index 748939c0..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/RdPu.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fde0ddfa9fb5c51b8a",
- "feebe2fbb4b9f768a1ae017e",
- "feebe2fbb4b9f768a1c51b8a7a0177",
- "feebe2fcc5c0fa9fb5f768a1c51b8a7a0177",
- "feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177",
- "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
- "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGn.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGn.js
deleted file mode 100644
index aaacd6c1..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGn.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "f7fcb9addd8e31a354",
- "ffffccc2e69978c679238443",
- "ffffccc2e69978c67931a354006837",
- "ffffccd9f0a3addd8e78c67931a354006837",
- "ffffccd9f0a3addd8e78c67941ab5d238443005a32",
- "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32",
- "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGnBu.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGnBu.js
deleted file mode 100644
index eb009ef7..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlGnBu.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "edf8b17fcdbb2c7fb8",
- "ffffcca1dab441b6c4225ea8",
- "ffffcca1dab441b6c42c7fb8253494",
- "ffffccc7e9b47fcdbb41b6c42c7fb8253494",
- "ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84",
- "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84",
- "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrBr.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrBr.js
deleted file mode 100644
index 2fc1aa18..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrBr.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fff7bcfec44fd95f0e",
- "ffffd4fed98efe9929cc4c02",
- "ffffd4fed98efe9929d95f0e993404",
- "ffffd4fee391fec44ffe9929d95f0e993404",
- "ffffd4fee391fec44ffe9929ec7014cc4c028c2d04",
- "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04",
- "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrRd.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrRd.js
deleted file mode 100644
index d34cca60..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/YlOrRd.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "ffeda0feb24cf03b20",
- "ffffb2fecc5cfd8d3ce31a1c",
- "ffffb2fecc5cfd8d3cf03b20bd0026",
- "ffffb2fed976feb24cfd8d3cf03b20bd0026",
- "ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026",
- "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026",
- "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/cubehelix.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/cubehelix.js
deleted file mode 100644
index 7e9be127..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/cubehelix.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import {cubehelix} from "d3-color";
-import {interpolateCubehelixLong} from "d3-interpolate";
-
-export default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/rainbow.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/rainbow.js
deleted file mode 100644
index b33cd35a..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/rainbow.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import {cubehelix} from "d3-color";
-import {interpolateCubehelixLong} from "d3-interpolate";
-
-export var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));
-
-export var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));
-
-var c = cubehelix();
-
-export default function(t) {
- if (t < 0 || t > 1) t -= Math.floor(t);
- var ts = Math.abs(t - 0.5);
- c.h = 360 * t - 100;
- c.s = 1.5 - 1.5 * ts;
- c.l = 0.8 - 0.9 * ts;
- return c + "";
-}
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/sinebow.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/sinebow.js
deleted file mode 100644
index 09eb2de9..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/sinebow.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import {rgb} from "d3-color";
-
-var c = rgb(),
- pi_1_3 = Math.PI / 3,
- pi_2_3 = Math.PI * 2 / 3;
-
-export default function(t) {
- var x;
- t = (0.5 - t) * Math.PI;
- c.r = 255 * (x = Math.sin(t)) * x;
- c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;
- c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;
- return c + "";
-}
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/viridis.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/viridis.js
deleted file mode 100644
index a7af96a5..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-multi/viridis.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import colors from "../colors";
-
-function ramp(range) {
- var n = range.length;
- return function(t) {
- return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
- };
-}
-
-export default ramp(colors("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
-
-export var magma = ramp(colors("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
-
-export var inferno = ramp(colors("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
-
-export var plasma = ramp(colors("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Blues.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Blues.js
deleted file mode 100644
index cb36bf71..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Blues.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "deebf79ecae13182bd",
- "eff3ffbdd7e76baed62171b5",
- "eff3ffbdd7e76baed63182bd08519c",
- "eff3ffc6dbef9ecae16baed63182bd08519c",
- "eff3ffc6dbef9ecae16baed64292c62171b5084594",
- "f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
- "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greens.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greens.js
deleted file mode 100644
index 074f5bff..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greens.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "e5f5e0a1d99b31a354",
- "edf8e9bae4b374c476238b45",
- "edf8e9bae4b374c47631a354006d2c",
- "edf8e9c7e9c0a1d99b74c47631a354006d2c",
- "edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32",
- "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32",
- "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greys.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greys.js
deleted file mode 100644
index ae5a0b4b..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Greys.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "f0f0f0bdbdbd636363",
- "f7f7f7cccccc969696525252",
- "f7f7f7cccccc969696636363252525",
- "f7f7f7d9d9d9bdbdbd969696636363252525",
- "f7f7f7d9d9d9bdbdbd969696737373525252252525",
- "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
- "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Oranges.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Oranges.js
deleted file mode 100644
index a4babe1d..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Oranges.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fee6cefdae6be6550d",
- "feeddefdbe85fd8d3cd94701",
- "feeddefdbe85fd8d3ce6550da63603",
- "feeddefdd0a2fdae6bfd8d3ce6550da63603",
- "feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04",
- "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
- "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Purples.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Purples.js
deleted file mode 100644
index d9810e1f..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Purples.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "efedf5bcbddc756bb1",
- "f2f0f7cbc9e29e9ac86a51a3",
- "f2f0f7cbc9e29e9ac8756bb154278f",
- "f2f0f7dadaebbcbddc9e9ac8756bb154278f",
- "f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486",
- "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486",
- "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Reds.js b/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Reds.js
deleted file mode 100644
index 447084ce..00000000
--- a/swh/web/static/jssources/d3-scale-chromatic/src/sequential-single/Reds.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import colors from "../colors";
-import ramp from "../ramp";
-
-export var scheme = new Array(3).concat(
- "fee0d2fc9272de2d26",
- "fee5d9fcae91fb6a4acb181d",
- "fee5d9fcae91fb6a4ade2d26a50f15",
- "fee5d9fcbba1fc9272fb6a4ade2d26a50f15",
- "fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d",
- "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
- "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
-).map(colors);
-
-export default ramp(scheme);
diff --git a/swh/web/static/jssources/d3-scale/LICENSE.txt b/swh/web/static/jssources/d3-scale/LICENSE.txt
deleted file mode 100644
index 4f0b022c..00000000
--- a/swh/web/static/jssources/d3-scale/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2015 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-scale/src/array.js b/swh/web/static/jssources/d3-scale/src/array.js
deleted file mode 100644
index 51141c97..00000000
--- a/swh/web/static/jssources/d3-scale/src/array.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var array = Array.prototype;
-
-export var map = array.map;
-export var slice = array.slice;
diff --git a/swh/web/static/jssources/d3-scale/src/band.js b/swh/web/static/jssources/d3-scale/src/band.js
deleted file mode 100644
index 89b74e4f..00000000
--- a/swh/web/static/jssources/d3-scale/src/band.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import {range as sequence} from "d3-array";
-import {initRange} from "./init";
-import ordinal from "./ordinal";
-
-export default function band() {
- var scale = ordinal().unknown(undefined),
- domain = scale.domain,
- ordinalRange = scale.range,
- range = [0, 1],
- step,
- bandwidth,
- round = false,
- paddingInner = 0,
- paddingOuter = 0,
- align = 0.5;
-
- delete scale.unknown;
-
- function rescale() {
- var n = domain().length,
- reverse = range[1] < range[0],
- start = range[reverse - 0],
- stop = range[1 - reverse];
- step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
- if (round) step = Math.floor(step);
- start += (stop - start - step * (n - paddingInner)) * align;
- bandwidth = step * (1 - paddingInner);
- if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);
- var values = sequence(n).map(function(i) { return start + step * i; });
- return ordinalRange(reverse ? values.reverse() : values);
- }
-
- scale.domain = function(_) {
- return arguments.length ? (domain(_), rescale()) : domain();
- };
-
- scale.range = function(_) {
- return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();
- };
-
- scale.rangeRound = function(_) {
- return range = [+_[0], +_[1]], round = true, rescale();
- };
-
- scale.bandwidth = function() {
- return bandwidth;
- };
-
- scale.step = function() {
- return step;
- };
-
- scale.round = function(_) {
- return arguments.length ? (round = !!_, rescale()) : round;
- };
-
- scale.padding = function(_) {
- return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;
- };
-
- scale.paddingInner = function(_) {
- return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;
- };
-
- scale.paddingOuter = function(_) {
- return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;
- };
-
- scale.align = function(_) {
- return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
- };
-
- scale.copy = function() {
- return band(domain(), range)
- .round(round)
- .paddingInner(paddingInner)
- .paddingOuter(paddingOuter)
- .align(align);
- };
-
- return initRange.apply(rescale(), arguments);
-}
-
-function pointish(scale) {
- var copy = scale.copy;
-
- scale.padding = scale.paddingOuter;
- delete scale.paddingInner;
- delete scale.paddingOuter;
-
- scale.copy = function() {
- return pointish(copy());
- };
-
- return scale;
-}
-
-export function point() {
- return pointish(band.apply(null, arguments).paddingInner(1));
-}
diff --git a/swh/web/static/jssources/d3-scale/src/constant.js b/swh/web/static/jssources/d3-scale/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-scale/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-scale/src/continuous.js b/swh/web/static/jssources/d3-scale/src/continuous.js
deleted file mode 100644
index 75b0984f..00000000
--- a/swh/web/static/jssources/d3-scale/src/continuous.js
+++ /dev/null
@@ -1,124 +0,0 @@
-import {bisect} from "d3-array";
-import {interpolate as interpolateValue, interpolateNumber, interpolateRound} from "d3-interpolate";
-import {map, slice} from "./array";
-import constant from "./constant";
-import number from "./number";
-
-var unit = [0, 1];
-
-export function identity(x) {
- return x;
-}
-
-function normalize(a, b) {
- return (b -= (a = +a))
- ? function(x) { return (x - a) / b; }
- : constant(isNaN(b) ? NaN : 0.5);
-}
-
-function clamper(domain) {
- var a = domain[0], b = domain[domain.length - 1], t;
- if (a > b) t = a, a = b, b = t;
- return function(x) { return Math.max(a, Math.min(b, x)); };
-}
-
-// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
-// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
-function bimap(domain, range, interpolate) {
- var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
- if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);
- else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
- return function(x) { return r0(d0(x)); };
-}
-
-function polymap(domain, range, interpolate) {
- var j = Math.min(domain.length, range.length) - 1,
- d = new Array(j),
- r = new Array(j),
- i = -1;
-
- // Reverse descending domains.
- if (domain[j] < domain[0]) {
- domain = domain.slice().reverse();
- range = range.slice().reverse();
- }
-
- while (++i < j) {
- d[i] = normalize(domain[i], domain[i + 1]);
- r[i] = interpolate(range[i], range[i + 1]);
- }
-
- return function(x) {
- var i = bisect(domain, x, 1, j) - 1;
- return r[i](d[i](x));
- };
-}
-
-export function copy(source, target) {
- return target
- .domain(source.domain())
- .range(source.range())
- .interpolate(source.interpolate())
- .clamp(source.clamp())
- .unknown(source.unknown());
-}
-
-export function transformer() {
- var domain = unit,
- range = unit,
- interpolate = interpolateValue,
- transform,
- untransform,
- unknown,
- clamp = identity,
- piecewise,
- output,
- input;
-
- function rescale() {
- piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;
- output = input = null;
- return scale;
- }
-
- function scale(x) {
- return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
- }
-
- scale.invert = function(y) {
- return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));
- };
-
- scale.domain = function(_) {
- return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();
- };
-
- scale.range = function(_) {
- return arguments.length ? (range = slice.call(_), rescale()) : range.slice();
- };
-
- scale.rangeRound = function(_) {
- return range = slice.call(_), interpolate = interpolateRound, rescale();
- };
-
- scale.clamp = function(_) {
- return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;
- };
-
- scale.interpolate = function(_) {
- return arguments.length ? (interpolate = _, rescale()) : interpolate;
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- return function(t, u) {
- transform = t, untransform = u;
- return rescale();
- };
-}
-
-export default function continuous(transform, untransform) {
- return transformer()(transform, untransform);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/diverging.js b/swh/web/static/jssources/d3-scale/src/diverging.js
deleted file mode 100644
index 7d9d1ee8..00000000
--- a/swh/web/static/jssources/d3-scale/src/diverging.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import {identity} from "./continuous";
-import {initInterpolator} from "./init";
-import {linearish} from "./linear";
-import {loggish} from "./log";
-import {copy} from "./sequential";
-import {symlogish} from "./symlog";
-import {powish} from "./pow";
-
-function transformer() {
- var x0 = 0,
- x1 = 0.5,
- x2 = 1,
- t0,
- t1,
- t2,
- k10,
- k21,
- interpolator = identity,
- transform,
- clamp = false,
- unknown;
-
- function scale(x) {
- return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));
- }
-
- scale.domain = function(_) {
- return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];
- };
-
- scale.clamp = function(_) {
- return arguments.length ? (clamp = !!_, scale) : clamp;
- };
-
- scale.interpolator = function(_) {
- return arguments.length ? (interpolator = _, scale) : interpolator;
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- return function(t) {
- transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);
- return scale;
- };
-}
-
-export default function diverging() {
- var scale = linearish(transformer()(identity));
-
- scale.copy = function() {
- return copy(scale, diverging());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function divergingLog() {
- var scale = loggish(transformer()).domain([0.1, 1, 10]);
-
- scale.copy = function() {
- return copy(scale, divergingLog()).base(scale.base());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function divergingSymlog() {
- var scale = symlogish(transformer());
-
- scale.copy = function() {
- return copy(scale, divergingSymlog()).constant(scale.constant());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function divergingPow() {
- var scale = powish(transformer());
-
- scale.copy = function() {
- return copy(scale, divergingPow()).exponent(scale.exponent());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function divergingSqrt() {
- return divergingPow.apply(null, arguments).exponent(0.5);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/identity.js b/swh/web/static/jssources/d3-scale/src/identity.js
deleted file mode 100644
index c0f70b3a..00000000
--- a/swh/web/static/jssources/d3-scale/src/identity.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import {map} from "./array";
-import {linearish} from "./linear";
-import number from "./number";
-
-export default function identity(domain) {
- var unknown;
-
- function scale(x) {
- return isNaN(x = +x) ? unknown : x;
- }
-
- scale.invert = scale;
-
- scale.domain = scale.range = function(_) {
- return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- scale.copy = function() {
- return identity(domain).unknown(unknown);
- };
-
- domain = arguments.length ? map.call(domain, number) : [0, 1];
-
- return linearish(scale);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/index.js b/swh/web/static/jssources/d3-scale/src/index.js
deleted file mode 100644
index 6933afbf..00000000
--- a/swh/web/static/jssources/d3-scale/src/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-export {
- default as scaleBand,
- point as scalePoint
-} from "./band";
-
-export {
- default as scaleIdentity
-} from "./identity";
-
-export {
- default as scaleLinear
-} from "./linear";
-
-export {
- default as scaleLog
-} from "./log";
-
-export {
- default as scaleSymlog
-} from "./symlog";
-
-export {
- default as scaleOrdinal,
- implicit as scaleImplicit
-} from "./ordinal";
-
-export {
- default as scalePow,
- sqrt as scaleSqrt
-} from "./pow";
-
-export {
- default as scaleQuantile
-} from "./quantile";
-
-export {
- default as scaleQuantize
-} from "./quantize";
-
-export {
- default as scaleThreshold
-} from "./threshold";
-
-export {
- default as scaleTime
-} from "./time";
-
-export {
- default as scaleUtc
-} from "./utcTime";
-
-export {
- default as scaleSequential,
- sequentialLog as scaleSequentialLog,
- sequentialPow as scaleSequentialPow,
- sequentialSqrt as scaleSequentialSqrt,
- sequentialSymlog as scaleSequentialSymlog
-} from "./sequential";
-
-export {
- default as scaleSequentialQuantile
-} from "./sequentialQuantile";
-
-export {
- default as scaleDiverging,
- divergingLog as scaleDivergingLog,
- divergingPow as scaleDivergingPow,
- divergingSqrt as scaleDivergingSqrt,
- divergingSymlog as scaleDivergingSymlog
-} from "./diverging";
-
-export {
- default as tickFormat
-} from "./tickFormat";
diff --git a/swh/web/static/jssources/d3-scale/src/init.js b/swh/web/static/jssources/d3-scale/src/init.js
deleted file mode 100644
index 4328e7a1..00000000
--- a/swh/web/static/jssources/d3-scale/src/init.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export function initRange(domain, range) {
- switch (arguments.length) {
- case 0: break;
- case 1: this.range(domain); break;
- default: this.range(range).domain(domain); break;
- }
- return this;
-}
-
-export function initInterpolator(domain, interpolator) {
- switch (arguments.length) {
- case 0: break;
- case 1: this.interpolator(domain); break;
- default: this.interpolator(interpolator).domain(domain); break;
- }
- return this;
-}
diff --git a/swh/web/static/jssources/d3-scale/src/linear.js b/swh/web/static/jssources/d3-scale/src/linear.js
deleted file mode 100644
index 593eca15..00000000
--- a/swh/web/static/jssources/d3-scale/src/linear.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import {ticks, tickIncrement} from "d3-array";
-import continuous, {copy, identity} from "./continuous";
-import {initRange} from "./init";
-import tickFormat from "./tickFormat";
-
-export function linearish(scale) {
- var domain = scale.domain;
-
- scale.ticks = function(count) {
- var d = domain();
- return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
- };
-
- scale.tickFormat = function(count, specifier) {
- var d = domain();
- return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
- };
-
- scale.nice = function(count) {
- if (count == null) count = 10;
-
- var d = domain(),
- i0 = 0,
- i1 = d.length - 1,
- start = d[i0],
- stop = d[i1],
- step;
-
- if (stop < start) {
- step = start, start = stop, stop = step;
- step = i0, i0 = i1, i1 = step;
- }
-
- step = tickIncrement(start, stop, count);
-
- if (step > 0) {
- start = Math.floor(start / step) * step;
- stop = Math.ceil(stop / step) * step;
- step = tickIncrement(start, stop, count);
- } else if (step < 0) {
- start = Math.ceil(start * step) / step;
- stop = Math.floor(stop * step) / step;
- step = tickIncrement(start, stop, count);
- }
-
- if (step > 0) {
- d[i0] = Math.floor(start / step) * step;
- d[i1] = Math.ceil(stop / step) * step;
- domain(d);
- } else if (step < 0) {
- d[i0] = Math.ceil(start * step) / step;
- d[i1] = Math.floor(stop * step) / step;
- domain(d);
- }
-
- return scale;
- };
-
- return scale;
-}
-
-export default function linear() {
- var scale = continuous(identity, identity);
-
- scale.copy = function() {
- return copy(scale, linear());
- };
-
- initRange.apply(scale, arguments);
-
- return linearish(scale);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/log.js b/swh/web/static/jssources/d3-scale/src/log.js
deleted file mode 100644
index 545f83af..00000000
--- a/swh/web/static/jssources/d3-scale/src/log.js
+++ /dev/null
@@ -1,145 +0,0 @@
-import {ticks} from "d3-array";
-import {format} from "d3-format";
-import nice from "./nice";
-import {copy, transformer} from "./continuous";
-import {initRange} from "./init";
-
-function transformLog(x) {
- return Math.log(x);
-}
-
-function transformExp(x) {
- return Math.exp(x);
-}
-
-function transformLogn(x) {
- return -Math.log(-x);
-}
-
-function transformExpn(x) {
- return -Math.exp(-x);
-}
-
-function pow10(x) {
- return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x;
-}
-
-function powp(base) {
- return base === 10 ? pow10
- : base === Math.E ? Math.exp
- : function(x) { return Math.pow(base, x); };
-}
-
-function logp(base) {
- return base === Math.E ? Math.log
- : base === 10 && Math.log10
- || base === 2 && Math.log2
- || (base = Math.log(base), function(x) { return Math.log(x) / base; });
-}
-
-function reflect(f) {
- return function(x) {
- return -f(-x);
- };
-}
-
-export function loggish(transform) {
- var scale = transform(transformLog, transformExp),
- domain = scale.domain,
- base = 10,
- logs,
- pows;
-
- function rescale() {
- logs = logp(base), pows = powp(base);
- if (domain()[0] < 0) {
- logs = reflect(logs), pows = reflect(pows);
- transform(transformLogn, transformExpn);
- } else {
- transform(transformLog, transformExp);
- }
- return scale;
- }
-
- scale.base = function(_) {
- return arguments.length ? (base = +_, rescale()) : base;
- };
-
- scale.domain = function(_) {
- return arguments.length ? (domain(_), rescale()) : domain();
- };
-
- scale.ticks = function(count) {
- var d = domain(),
- u = d[0],
- v = d[d.length - 1],
- r;
-
- if (r = v < u) i = u, u = v, v = i;
-
- var i = logs(u),
- j = logs(v),
- p,
- k,
- t,
- n = count == null ? 10 : +count,
- z = [];
-
- if (!(base % 1) && j - i < n) {
- i = Math.round(i) - 1, j = Math.round(j) + 1;
- if (u > 0) for (; i < j; ++i) {
- for (k = 1, p = pows(i); k < base; ++k) {
- t = p * k;
- if (t < u) continue;
- if (t > v) break;
- z.push(t);
- }
- } else for (; i < j; ++i) {
- for (k = base - 1, p = pows(i); k >= 1; --k) {
- t = p * k;
- if (t < u) continue;
- if (t > v) break;
- z.push(t);
- }
- }
- } else {
- z = ticks(i, j, Math.min(j - i, n)).map(pows);
- }
-
- return r ? z.reverse() : z;
- };
-
- scale.tickFormat = function(count, specifier) {
- if (specifier == null) specifier = base === 10 ? ".0e" : ",";
- if (typeof specifier !== "function") specifier = format(specifier);
- if (count === Infinity) return specifier;
- if (count == null) count = 10;
- var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?
- return function(d) {
- var i = d / pows(Math.round(logs(d)));
- if (i * base < base - 0.5) i *= base;
- return i <= k ? specifier(d) : "";
- };
- };
-
- scale.nice = function() {
- return domain(nice(domain(), {
- floor: function(x) { return pows(Math.floor(logs(x))); },
- ceil: function(x) { return pows(Math.ceil(logs(x))); }
- }));
- };
-
- return scale;
-}
-
-export default function log() {
- var scale = loggish(transformer()).domain([1, 10]);
-
- scale.copy = function() {
- return copy(scale, log()).base(scale.base());
- };
-
- initRange.apply(scale, arguments);
-
- return scale;
-}
diff --git a/swh/web/static/jssources/d3-scale/src/nice.js b/swh/web/static/jssources/d3-scale/src/nice.js
deleted file mode 100644
index b377c767..00000000
--- a/swh/web/static/jssources/d3-scale/src/nice.js
+++ /dev/null
@@ -1,18 +0,0 @@
-export default function(domain, interval) {
- domain = domain.slice();
-
- var i0 = 0,
- i1 = domain.length - 1,
- x0 = domain[i0],
- x1 = domain[i1],
- t;
-
- if (x1 < x0) {
- t = i0, i0 = i1, i1 = t;
- t = x0, x0 = x1, x1 = t;
- }
-
- domain[i0] = interval.floor(x0);
- domain[i1] = interval.ceil(x1);
- return domain;
-}
diff --git a/swh/web/static/jssources/d3-scale/src/number.js b/swh/web/static/jssources/d3-scale/src/number.js
deleted file mode 100644
index 8cf8caac..00000000
--- a/swh/web/static/jssources/d3-scale/src/number.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x) {
- return +x;
-}
diff --git a/swh/web/static/jssources/d3-scale/src/ordinal.js b/swh/web/static/jssources/d3-scale/src/ordinal.js
deleted file mode 100644
index 52e6ac03..00000000
--- a/swh/web/static/jssources/d3-scale/src/ordinal.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import {map} from "d3-collection";
-import {slice} from "./array";
-import {initRange} from "./init";
-
-export var implicit = {name: "implicit"};
-
-export default function ordinal() {
- var index = map(),
- domain = [],
- range = [],
- unknown = implicit;
-
- function scale(d) {
- var key = d + "", i = index.get(key);
- if (!i) {
- if (unknown !== implicit) return unknown;
- index.set(key, i = domain.push(d));
- }
- return range[(i - 1) % range.length];
- }
-
- scale.domain = function(_) {
- if (!arguments.length) return domain.slice();
- domain = [], index = map();
- var i = -1, n = _.length, d, key;
- while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d));
- return scale;
- };
-
- scale.range = function(_) {
- return arguments.length ? (range = slice.call(_), scale) : range.slice();
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- scale.copy = function() {
- return ordinal(domain, range).unknown(unknown);
- };
-
- initRange.apply(scale, arguments);
-
- return scale;
-}
diff --git a/swh/web/static/jssources/d3-scale/src/pow.js b/swh/web/static/jssources/d3-scale/src/pow.js
deleted file mode 100644
index e97199bb..00000000
--- a/swh/web/static/jssources/d3-scale/src/pow.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import {linearish} from "./linear";
-import {copy, identity, transformer} from "./continuous";
-import {initRange} from "./init";
-
-function transformPow(exponent) {
- return function(x) {
- return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
- };
-}
-
-function transformSqrt(x) {
- return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);
-}
-
-function transformSquare(x) {
- return x < 0 ? -x * x : x * x;
-}
-
-export function powish(transform) {
- var scale = transform(identity, identity),
- exponent = 1;
-
- function rescale() {
- return exponent === 1 ? transform(identity, identity)
- : exponent === 0.5 ? transform(transformSqrt, transformSquare)
- : transform(transformPow(exponent), transformPow(1 / exponent));
- }
-
- scale.exponent = function(_) {
- return arguments.length ? (exponent = +_, rescale()) : exponent;
- };
-
- return linearish(scale);
-}
-
-export default function pow() {
- var scale = powish(transformer());
-
- scale.copy = function() {
- return copy(scale, pow()).exponent(scale.exponent());
- };
-
- initRange.apply(scale, arguments);
-
- return scale;
-}
-
-export function sqrt() {
- return pow.apply(null, arguments).exponent(0.5);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/quantile.js b/swh/web/static/jssources/d3-scale/src/quantile.js
deleted file mode 100644
index 40efaed1..00000000
--- a/swh/web/static/jssources/d3-scale/src/quantile.js
+++ /dev/null
@@ -1,58 +0,0 @@
-import {ascending, bisect, quantile as threshold} from "d3-array";
-import {slice} from "./array";
-import {initRange} from "./init";
-
-export default function quantile() {
- var domain = [],
- range = [],
- thresholds = [],
- unknown;
-
- function rescale() {
- var i = 0, n = Math.max(1, range.length);
- thresholds = new Array(n - 1);
- while (++i < n) thresholds[i - 1] = threshold(domain, i / n);
- return scale;
- }
-
- function scale(x) {
- return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];
- }
-
- scale.invertExtent = function(y) {
- var i = range.indexOf(y);
- return i < 0 ? [NaN, NaN] : [
- i > 0 ? thresholds[i - 1] : domain[0],
- i < thresholds.length ? thresholds[i] : domain[domain.length - 1]
- ];
- };
-
- scale.domain = function(_) {
- if (!arguments.length) return domain.slice();
- domain = [];
- for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
- domain.sort(ascending);
- return rescale();
- };
-
- scale.range = function(_) {
- return arguments.length ? (range = slice.call(_), rescale()) : range.slice();
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- scale.quantiles = function() {
- return thresholds.slice();
- };
-
- scale.copy = function() {
- return quantile()
- .domain(domain)
- .range(range)
- .unknown(unknown);
- };
-
- return initRange.apply(scale, arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/quantize.js b/swh/web/static/jssources/d3-scale/src/quantize.js
deleted file mode 100644
index 3d09b69e..00000000
--- a/swh/web/static/jssources/d3-scale/src/quantize.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import {bisect} from "d3-array";
-import {slice} from "./array";
-import {linearish} from "./linear";
-import {initRange} from "./init";
-
-export default function quantize() {
- var x0 = 0,
- x1 = 1,
- n = 1,
- domain = [0.5],
- range = [0, 1],
- unknown;
-
- function scale(x) {
- return x <= x ? range[bisect(domain, x, 0, n)] : unknown;
- }
-
- function rescale() {
- var i = -1;
- domain = new Array(n);
- while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);
- return scale;
- }
-
- scale.domain = function(_) {
- return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];
- };
-
- scale.range = function(_) {
- return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();
- };
-
- scale.invertExtent = function(y) {
- var i = range.indexOf(y);
- return i < 0 ? [NaN, NaN]
- : i < 1 ? [x0, domain[0]]
- : i >= n ? [domain[n - 1], x1]
- : [domain[i - 1], domain[i]];
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : scale;
- };
-
- scale.thresholds = function() {
- return domain.slice();
- };
-
- scale.copy = function() {
- return quantize()
- .domain([x0, x1])
- .range(range)
- .unknown(unknown);
- };
-
- return initRange.apply(linearish(scale), arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/sequential.js b/swh/web/static/jssources/d3-scale/src/sequential.js
deleted file mode 100644
index 9f28d9e3..00000000
--- a/swh/web/static/jssources/d3-scale/src/sequential.js
+++ /dev/null
@@ -1,95 +0,0 @@
-import {identity} from "./continuous";
-import {initInterpolator} from "./init";
-import {linearish} from "./linear";
-import {loggish} from "./log";
-import {symlogish} from "./symlog";
-import {powish} from "./pow";
-
-function transformer() {
- var x0 = 0,
- x1 = 1,
- t0,
- t1,
- k10,
- transform,
- interpolator = identity,
- clamp = false,
- unknown;
-
- function scale(x) {
- return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));
- }
-
- scale.domain = function(_) {
- return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];
- };
-
- scale.clamp = function(_) {
- return arguments.length ? (clamp = !!_, scale) : clamp;
- };
-
- scale.interpolator = function(_) {
- return arguments.length ? (interpolator = _, scale) : interpolator;
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- return function(t) {
- transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);
- return scale;
- };
-}
-
-export function copy(source, target) {
- return target
- .domain(source.domain())
- .interpolator(source.interpolator())
- .clamp(source.clamp())
- .unknown(source.unknown());
-}
-
-export default function sequential() {
- var scale = linearish(transformer()(identity));
-
- scale.copy = function() {
- return copy(scale, sequential());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function sequentialLog() {
- var scale = loggish(transformer()).domain([1, 10]);
-
- scale.copy = function() {
- return copy(scale, sequentialLog()).base(scale.base());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function sequentialSymlog() {
- var scale = symlogish(transformer());
-
- scale.copy = function() {
- return copy(scale, sequentialSymlog()).constant(scale.constant());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function sequentialPow() {
- var scale = powish(transformer());
-
- scale.copy = function() {
- return copy(scale, sequentialPow()).exponent(scale.exponent());
- };
-
- return initInterpolator.apply(scale, arguments);
-}
-
-export function sequentialSqrt() {
- return sequentialPow.apply(null, arguments).exponent(0.5);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/sequentialQuantile.js b/swh/web/static/jssources/d3-scale/src/sequentialQuantile.js
deleted file mode 100644
index 3e733dc9..00000000
--- a/swh/web/static/jssources/d3-scale/src/sequentialQuantile.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import {ascending, bisect} from "d3-array";
-import {identity} from "./continuous";
-import {initInterpolator} from "./init";
-
-export default function sequentialQuantile() {
- var domain = [],
- interpolator = identity;
-
- function scale(x) {
- if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));
- }
-
- scale.domain = function(_) {
- if (!arguments.length) return domain.slice();
- domain = [];
- for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
- domain.sort(ascending);
- return scale;
- };
-
- scale.interpolator = function(_) {
- return arguments.length ? (interpolator = _, scale) : interpolator;
- };
-
- scale.copy = function() {
- return sequentialQuantile(interpolator).domain(domain);
- };
-
- return initInterpolator.apply(scale, arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/symlog.js b/swh/web/static/jssources/d3-scale/src/symlog.js
deleted file mode 100644
index 8da440fb..00000000
--- a/swh/web/static/jssources/d3-scale/src/symlog.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import {linearish} from "./linear";
-import {copy, transformer} from "./continuous";
-import {initRange} from "./init";
-
-function transformSymlog(c) {
- return function(x) {
- return Math.sign(x) * Math.log1p(Math.abs(x / c));
- };
-}
-
-function transformSymexp(c) {
- return function(x) {
- return Math.sign(x) * Math.expm1(Math.abs(x)) * c;
- };
-}
-
-export function symlogish(transform) {
- var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));
-
- scale.constant = function(_) {
- return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;
- };
-
- return linearish(scale);
-}
-
-export default function symlog() {
- var scale = symlogish(transformer());
-
- scale.copy = function() {
- return copy(scale, symlog()).constant(scale.constant());
- };
-
- return initRange.apply(scale, arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/threshold.js b/swh/web/static/jssources/d3-scale/src/threshold.js
deleted file mode 100644
index cb11bcba..00000000
--- a/swh/web/static/jssources/d3-scale/src/threshold.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import {bisect} from "d3-array";
-import {slice} from "./array";
-import {initRange} from "./init";
-
-export default function threshold() {
- var domain = [0.5],
- range = [0, 1],
- unknown,
- n = 1;
-
- function scale(x) {
- return x <= x ? range[bisect(domain, x, 0, n)] : unknown;
- }
-
- scale.domain = function(_) {
- return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();
- };
-
- scale.range = function(_) {
- return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();
- };
-
- scale.invertExtent = function(y) {
- var i = range.indexOf(y);
- return [domain[i - 1], domain[i]];
- };
-
- scale.unknown = function(_) {
- return arguments.length ? (unknown = _, scale) : unknown;
- };
-
- scale.copy = function() {
- return threshold()
- .domain(domain)
- .range(range)
- .unknown(unknown);
- };
-
- return initRange.apply(scale, arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/tickFormat.js b/swh/web/static/jssources/d3-scale/src/tickFormat.js
deleted file mode 100644
index 2f370eea..00000000
--- a/swh/web/static/jssources/d3-scale/src/tickFormat.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import {tickStep} from "d3-array";
-import {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from "d3-format";
-
-export default function(start, stop, count, specifier) {
- var step = tickStep(start, stop, count),
- precision;
- specifier = formatSpecifier(specifier == null ? ",f" : specifier);
- switch (specifier.type) {
- case "s": {
- var value = Math.max(Math.abs(start), Math.abs(stop));
- if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
- return formatPrefix(specifier, value);
- }
- case "":
- case "e":
- case "g":
- case "p":
- case "r": {
- if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
- break;
- }
- case "f":
- case "%": {
- if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
- break;
- }
- }
- return format(specifier);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/time.js b/swh/web/static/jssources/d3-scale/src/time.js
deleted file mode 100644
index 4632d11c..00000000
--- a/swh/web/static/jssources/d3-scale/src/time.js
+++ /dev/null
@@ -1,135 +0,0 @@
-import {bisector, tickStep} from "d3-array";
-import {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from "d3-time";
-import {timeFormat} from "d3-time-format";
-import {map} from "./array";
-import continuous, {copy, identity} from "./continuous";
-import {initRange} from "./init";
-import nice from "./nice";
-
-var durationSecond = 1000,
- durationMinute = durationSecond * 60,
- durationHour = durationMinute * 60,
- durationDay = durationHour * 24,
- durationWeek = durationDay * 7,
- durationMonth = durationDay * 30,
- durationYear = durationDay * 365;
-
-function date(t) {
- return new Date(t);
-}
-
-function number(t) {
- return t instanceof Date ? +t : +new Date(+t);
-}
-
-export function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
- var scale = continuous(identity, identity),
- invert = scale.invert,
- domain = scale.domain;
-
- var formatMillisecond = format(".%L"),
- formatSecond = format(":%S"),
- formatMinute = format("%I:%M"),
- formatHour = format("%I %p"),
- formatDay = format("%a %d"),
- formatWeek = format("%b %d"),
- formatMonth = format("%B"),
- formatYear = format("%Y");
-
- var tickIntervals = [
- [second, 1, durationSecond],
- [second, 5, 5 * durationSecond],
- [second, 15, 15 * durationSecond],
- [second, 30, 30 * durationSecond],
- [minute, 1, durationMinute],
- [minute, 5, 5 * durationMinute],
- [minute, 15, 15 * durationMinute],
- [minute, 30, 30 * durationMinute],
- [ hour, 1, durationHour ],
- [ hour, 3, 3 * durationHour ],
- [ hour, 6, 6 * durationHour ],
- [ hour, 12, 12 * durationHour ],
- [ day, 1, durationDay ],
- [ day, 2, 2 * durationDay ],
- [ week, 1, durationWeek ],
- [ month, 1, durationMonth ],
- [ month, 3, 3 * durationMonth ],
- [ year, 1, durationYear ]
- ];
-
- function tickFormat(date) {
- return (second(date) < date ? formatMillisecond
- : minute(date) < date ? formatSecond
- : hour(date) < date ? formatMinute
- : day(date) < date ? formatHour
- : month(date) < date ? (week(date) < date ? formatDay : formatWeek)
- : year(date) < date ? formatMonth
- : formatYear)(date);
- }
-
- function tickInterval(interval, start, stop, step) {
- if (interval == null) interval = 10;
-
- // If a desired tick count is specified, pick a reasonable tick interval
- // based on the extent of the domain and a rough estimate of tick size.
- // Otherwise, assume interval is already a time interval and use it.
- if (typeof interval === "number") {
- var target = Math.abs(stop - start) / interval,
- i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);
- if (i === tickIntervals.length) {
- step = tickStep(start / durationYear, stop / durationYear, interval);
- interval = year;
- } else if (i) {
- i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
- step = i[1];
- interval = i[0];
- } else {
- step = Math.max(tickStep(start, stop, interval), 1);
- interval = millisecond;
- }
- }
-
- return step == null ? interval : interval.every(step);
- }
-
- scale.invert = function(y) {
- return new Date(invert(y));
- };
-
- scale.domain = function(_) {
- return arguments.length ? domain(map.call(_, number)) : domain().map(date);
- };
-
- scale.ticks = function(interval, step) {
- var d = domain(),
- t0 = d[0],
- t1 = d[d.length - 1],
- r = t1 < t0,
- t;
- if (r) t = t0, t0 = t1, t1 = t;
- t = tickInterval(interval, t0, t1, step);
- t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
- return r ? t.reverse() : t;
- };
-
- scale.tickFormat = function(count, specifier) {
- return specifier == null ? tickFormat : format(specifier);
- };
-
- scale.nice = function(interval, step) {
- var d = domain();
- return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
- ? domain(nice(d, interval))
- : scale;
- };
-
- scale.copy = function() {
- return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
- };
-
- return scale;
-}
-
-export default function() {
- return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);
-}
diff --git a/swh/web/static/jssources/d3-scale/src/utcTime.js b/swh/web/static/jssources/d3-scale/src/utcTime.js
deleted file mode 100644
index dc019b39..00000000
--- a/swh/web/static/jssources/d3-scale/src/utcTime.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import {calendar} from "./time";
-import {utcFormat} from "d3-time-format";
-import {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from "d3-time";
-import {initRange} from "./init";
-
-export default function() {
- return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);
-}
diff --git a/swh/web/static/jssources/d3-selection/LICENSE.txt b/swh/web/static/jssources/d3-selection/LICENSE.txt
deleted file mode 100644
index 74945c0e..00000000
--- a/swh/web/static/jssources/d3-selection/LICENSE.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-Copyright (c) 2010-2018, Michael Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* The name Michael Bostock may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-selection/src/constant.js b/swh/web/static/jssources/d3-selection/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-selection/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-selection/src/create.js b/swh/web/static/jssources/d3-selection/src/create.js
deleted file mode 100644
index 344a2dca..00000000
--- a/swh/web/static/jssources/d3-selection/src/create.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import creator from "./creator";
-import select from "./select";
-
-export default function(name) {
- return select(creator(name).call(document.documentElement));
-}
diff --git a/swh/web/static/jssources/d3-selection/src/creator.js b/swh/web/static/jssources/d3-selection/src/creator.js
deleted file mode 100644
index 40d4eb4d..00000000
--- a/swh/web/static/jssources/d3-selection/src/creator.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import namespace from "./namespace";
-import {xhtml} from "./namespaces";
-
-function creatorInherit(name) {
- return function() {
- var document = this.ownerDocument,
- uri = this.namespaceURI;
- return uri === xhtml && document.documentElement.namespaceURI === xhtml
- ? document.createElement(name)
- : document.createElementNS(uri, name);
- };
-}
-
-function creatorFixed(fullname) {
- return function() {
- return this.ownerDocument.createElementNS(fullname.space, fullname.local);
- };
-}
-
-export default function(name) {
- var fullname = namespace(name);
- return (fullname.local
- ? creatorFixed
- : creatorInherit)(fullname);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/index.js b/swh/web/static/jssources/d3-selection/src/index.js
deleted file mode 100644
index 7ee08e5f..00000000
--- a/swh/web/static/jssources/d3-selection/src/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-export {default as create} from "./create";
-export {default as creator} from "./creator";
-export {default as local} from "./local";
-export {default as matcher} from "./matcher";
-export {default as mouse} from "./mouse";
-export {default as namespace} from "./namespace";
-export {default as namespaces} from "./namespaces";
-export {default as clientPoint} from "./point";
-export {default as select} from "./select";
-export {default as selectAll} from "./selectAll";
-export {default as selection} from "./selection/index";
-export {default as selector} from "./selector";
-export {default as selectorAll} from "./selectorAll";
-export {styleValue as style} from "./selection/style";
-export {default as touch} from "./touch";
-export {default as touches} from "./touches";
-export {default as window} from "./window";
-export {event, customEvent} from "./selection/on";
diff --git a/swh/web/static/jssources/d3-selection/src/local.js b/swh/web/static/jssources/d3-selection/src/local.js
deleted file mode 100644
index ab4c20f9..00000000
--- a/swh/web/static/jssources/d3-selection/src/local.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var nextId = 0;
-
-export default function local() {
- return new Local;
-}
-
-function Local() {
- this._ = "@" + (++nextId).toString(36);
-}
-
-Local.prototype = local.prototype = {
- constructor: Local,
- get: function(node) {
- var id = this._;
- while (!(id in node)) if (!(node = node.parentNode)) return;
- return node[id];
- },
- set: function(node, value) {
- return node[this._] = value;
- },
- remove: function(node) {
- return this._ in node && delete node[this._];
- },
- toString: function() {
- return this._;
- }
-};
diff --git a/swh/web/static/jssources/d3-selection/src/matcher.js b/swh/web/static/jssources/d3-selection/src/matcher.js
deleted file mode 100644
index e6d4f50a..00000000
--- a/swh/web/static/jssources/d3-selection/src/matcher.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(selector) {
- return function() {
- return this.matches(selector);
- };
-}
diff --git a/swh/web/static/jssources/d3-selection/src/mouse.js b/swh/web/static/jssources/d3-selection/src/mouse.js
deleted file mode 100644
index e3e48c07..00000000
--- a/swh/web/static/jssources/d3-selection/src/mouse.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import sourceEvent from "./sourceEvent";
-import point from "./point";
-
-export default function(node) {
- var event = sourceEvent();
- if (event.changedTouches) event = event.changedTouches[0];
- return point(node, event);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/namespace.js b/swh/web/static/jssources/d3-selection/src/namespace.js
deleted file mode 100644
index 31696e76..00000000
--- a/swh/web/static/jssources/d3-selection/src/namespace.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import namespaces from "./namespaces";
-
-export default function(name) {
- var prefix = name += "", i = prefix.indexOf(":");
- if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
- return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/namespaces.js b/swh/web/static/jssources/d3-selection/src/namespaces.js
deleted file mode 100644
index 01749bdc..00000000
--- a/swh/web/static/jssources/d3-selection/src/namespaces.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export var xhtml = "http://www.w3.org/1999/xhtml";
-
-export default {
- svg: "http://www.w3.org/2000/svg",
- xhtml: xhtml,
- xlink: "http://www.w3.org/1999/xlink",
- xml: "http://www.w3.org/XML/1998/namespace",
- xmlns: "http://www.w3.org/2000/xmlns/"
-};
diff --git a/swh/web/static/jssources/d3-selection/src/point.js b/swh/web/static/jssources/d3-selection/src/point.js
deleted file mode 100644
index f4d1cde3..00000000
--- a/swh/web/static/jssources/d3-selection/src/point.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function(node, event) {
- var svg = node.ownerSVGElement || node;
-
- if (svg.createSVGPoint) {
- var point = svg.createSVGPoint();
- point.x = event.clientX, point.y = event.clientY;
- point = point.matrixTransform(node.getScreenCTM().inverse());
- return [point.x, point.y];
- }
-
- var rect = node.getBoundingClientRect();
- return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
-}
diff --git a/swh/web/static/jssources/d3-selection/src/select.js b/swh/web/static/jssources/d3-selection/src/select.js
deleted file mode 100644
index cbfa618e..00000000
--- a/swh/web/static/jssources/d3-selection/src/select.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import {Selection, root} from "./selection/index";
-
-export default function(selector) {
- return typeof selector === "string"
- ? new Selection([[document.querySelector(selector)]], [document.documentElement])
- : new Selection([[selector]], root);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selectAll.js b/swh/web/static/jssources/d3-selection/src/selectAll.js
deleted file mode 100644
index cf4f4fac..00000000
--- a/swh/web/static/jssources/d3-selection/src/selectAll.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import {Selection, root} from "./selection/index";
-
-export default function(selector) {
- return typeof selector === "string"
- ? new Selection([document.querySelectorAll(selector)], [document.documentElement])
- : new Selection([selector == null ? [] : selector], root);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/append.js b/swh/web/static/jssources/d3-selection/src/selection/append.js
deleted file mode 100644
index b4b1dc77..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/append.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import creator from "../creator";
-
-export default function(name) {
- var create = typeof name === "function" ? name : creator(name);
- return this.select(function() {
- return this.appendChild(create.apply(this, arguments));
- });
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/attr.js b/swh/web/static/jssources/d3-selection/src/selection/attr.js
deleted file mode 100644
index f585bb82..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/attr.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import namespace from "../namespace";
-
-function attrRemove(name) {
- return function() {
- this.removeAttribute(name);
- };
-}
-
-function attrRemoveNS(fullname) {
- return function() {
- this.removeAttributeNS(fullname.space, fullname.local);
- };
-}
-
-function attrConstant(name, value) {
- return function() {
- this.setAttribute(name, value);
- };
-}
-
-function attrConstantNS(fullname, value) {
- return function() {
- this.setAttributeNS(fullname.space, fullname.local, value);
- };
-}
-
-function attrFunction(name, value) {
- return function() {
- var v = value.apply(this, arguments);
- if (v == null) this.removeAttribute(name);
- else this.setAttribute(name, v);
- };
-}
-
-function attrFunctionNS(fullname, value) {
- return function() {
- var v = value.apply(this, arguments);
- if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
- else this.setAttributeNS(fullname.space, fullname.local, v);
- };
-}
-
-export default function(name, value) {
- var fullname = namespace(name);
-
- if (arguments.length < 2) {
- var node = this.node();
- return fullname.local
- ? node.getAttributeNS(fullname.space, fullname.local)
- : node.getAttribute(fullname);
- }
-
- return this.each((value == null
- ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function"
- ? (fullname.local ? attrFunctionNS : attrFunction)
- : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/call.js b/swh/web/static/jssources/d3-selection/src/selection/call.js
deleted file mode 100644
index 2c41eeef..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/call.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default function() {
- var callback = arguments[0];
- arguments[0] = this;
- callback.apply(null, arguments);
- return this;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/classed.js b/swh/web/static/jssources/d3-selection/src/selection/classed.js
deleted file mode 100644
index b3563731..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/classed.js
+++ /dev/null
@@ -1,75 +0,0 @@
-function classArray(string) {
- return string.trim().split(/^|\s+/);
-}
-
-function classList(node) {
- return node.classList || new ClassList(node);
-}
-
-function ClassList(node) {
- this._node = node;
- this._names = classArray(node.getAttribute("class") || "");
-}
-
-ClassList.prototype = {
- add: function(name) {
- var i = this._names.indexOf(name);
- if (i < 0) {
- this._names.push(name);
- this._node.setAttribute("class", this._names.join(" "));
- }
- },
- remove: function(name) {
- var i = this._names.indexOf(name);
- if (i >= 0) {
- this._names.splice(i, 1);
- this._node.setAttribute("class", this._names.join(" "));
- }
- },
- contains: function(name) {
- return this._names.indexOf(name) >= 0;
- }
-};
-
-function classedAdd(node, names) {
- var list = classList(node), i = -1, n = names.length;
- while (++i < n) list.add(names[i]);
-}
-
-function classedRemove(node, names) {
- var list = classList(node), i = -1, n = names.length;
- while (++i < n) list.remove(names[i]);
-}
-
-function classedTrue(names) {
- return function() {
- classedAdd(this, names);
- };
-}
-
-function classedFalse(names) {
- return function() {
- classedRemove(this, names);
- };
-}
-
-function classedFunction(names, value) {
- return function() {
- (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
- };
-}
-
-export default function(name, value) {
- var names = classArray(name + "");
-
- if (arguments.length < 2) {
- var list = classList(this.node()), i = -1, n = names.length;
- while (++i < n) if (!list.contains(names[i])) return false;
- return true;
- }
-
- return this.each((typeof value === "function"
- ? classedFunction : value
- ? classedTrue
- : classedFalse)(names, value));
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/clone.js b/swh/web/static/jssources/d3-selection/src/selection/clone.js
deleted file mode 100644
index 326339fa..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/clone.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function selection_cloneShallow() {
- return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);
-}
-
-function selection_cloneDeep() {
- return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling);
-}
-
-export default function(deep) {
- return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/data.js b/swh/web/static/jssources/d3-selection/src/selection/data.js
deleted file mode 100644
index 20c5c54a..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/data.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import {Selection} from "./index";
-import {EnterNode} from "./enter";
-import constant from "../constant";
-
-var keyPrefix = "$"; // Protect against keys like “__proto__”.
-
-function bindIndex(parent, group, enter, update, exit, data) {
- var i = 0,
- node,
- groupLength = group.length,
- dataLength = data.length;
-
- // Put any non-null nodes that fit into update.
- // Put any null nodes into enter.
- // Put any remaining data into enter.
- for (; i < dataLength; ++i) {
- if (node = group[i]) {
- node.__data__ = data[i];
- update[i] = node;
- } else {
- enter[i] = new EnterNode(parent, data[i]);
- }
- }
-
- // Put any non-null nodes that don’t fit into exit.
- for (; i < groupLength; ++i) {
- if (node = group[i]) {
- exit[i] = node;
- }
- }
-}
-
-function bindKey(parent, group, enter, update, exit, data, key) {
- var i,
- node,
- nodeByKeyValue = {},
- groupLength = group.length,
- dataLength = data.length,
- keyValues = new Array(groupLength),
- keyValue;
-
- // Compute the key for each node.
- // If multiple nodes have the same key, the duplicates are added to exit.
- for (i = 0; i < groupLength; ++i) {
- if (node = group[i]) {
- keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);
- if (keyValue in nodeByKeyValue) {
- exit[i] = node;
- } else {
- nodeByKeyValue[keyValue] = node;
- }
- }
- }
-
- // Compute the key for each datum.
- // If there a node associated with this key, join and add it to update.
- // If there is not (or the key is a duplicate), add it to enter.
- for (i = 0; i < dataLength; ++i) {
- keyValue = keyPrefix + key.call(parent, data[i], i, data);
- if (node = nodeByKeyValue[keyValue]) {
- update[i] = node;
- node.__data__ = data[i];
- nodeByKeyValue[keyValue] = null;
- } else {
- enter[i] = new EnterNode(parent, data[i]);
- }
- }
-
- // Add any remaining nodes that were not bound to data to exit.
- for (i = 0; i < groupLength; ++i) {
- if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {
- exit[i] = node;
- }
- }
-}
-
-export default function(value, key) {
- if (!value) {
- data = new Array(this.size()), j = -1;
- this.each(function(d) { data[++j] = d; });
- return data;
- }
-
- var bind = key ? bindKey : bindIndex,
- parents = this._parents,
- groups = this._groups;
-
- if (typeof value !== "function") value = constant(value);
-
- for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
- var parent = parents[j],
- group = groups[j],
- groupLength = group.length,
- data = value.call(parent, parent && parent.__data__, j, parents),
- dataLength = data.length,
- enterGroup = enter[j] = new Array(dataLength),
- updateGroup = update[j] = new Array(dataLength),
- exitGroup = exit[j] = new Array(groupLength);
-
- bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
-
- // Now connect the enter nodes to their following update node, such that
- // appendChild can insert the materialized enter node before this node,
- // rather than at the end of the parent node.
- for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
- if (previous = enterGroup[i0]) {
- if (i0 >= i1) i1 = i0 + 1;
- while (!(next = updateGroup[i1]) && ++i1 < dataLength);
- previous._next = next || null;
- }
- }
- }
-
- update = new Selection(update, parents);
- update._enter = enter;
- update._exit = exit;
- return update;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/datum.js b/swh/web/static/jssources/d3-selection/src/selection/datum.js
deleted file mode 100644
index 5de4e580..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/datum.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(value) {
- return arguments.length
- ? this.property("__data__", value)
- : this.node().__data__;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/dispatch.js b/swh/web/static/jssources/d3-selection/src/selection/dispatch.js
deleted file mode 100644
index 9dd4cf3d..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/dispatch.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import defaultView from "../window";
-
-function dispatchEvent(node, type, params) {
- var window = defaultView(node),
- event = window.CustomEvent;
-
- if (typeof event === "function") {
- event = new event(type, params);
- } else {
- event = window.document.createEvent("Event");
- if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
- else event.initEvent(type, false, false);
- }
-
- node.dispatchEvent(event);
-}
-
-function dispatchConstant(type, params) {
- return function() {
- return dispatchEvent(this, type, params);
- };
-}
-
-function dispatchFunction(type, params) {
- return function() {
- return dispatchEvent(this, type, params.apply(this, arguments));
- };
-}
-
-export default function(type, params) {
- return this.each((typeof params === "function"
- ? dispatchFunction
- : dispatchConstant)(type, params));
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/each.js b/swh/web/static/jssources/d3-selection/src/selection/each.js
deleted file mode 100644
index 260af8f2..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/each.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export default function(callback) {
-
- for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
- for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
- if (node = group[i]) callback.call(node, node.__data__, i, group);
- }
- }
-
- return this;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/empty.js b/swh/web/static/jssources/d3-selection/src/selection/empty.js
deleted file mode 100644
index 4e2cf428..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/empty.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function() {
- return !this.node();
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/enter.js b/swh/web/static/jssources/d3-selection/src/selection/enter.js
deleted file mode 100644
index 40af36dd..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/enter.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import sparse from "./sparse";
-import {Selection} from "./index";
-
-export default function() {
- return new Selection(this._enter || this._groups.map(sparse), this._parents);
-}
-
-export function EnterNode(parent, datum) {
- this.ownerDocument = parent.ownerDocument;
- this.namespaceURI = parent.namespaceURI;
- this._next = null;
- this._parent = parent;
- this.__data__ = datum;
-}
-
-EnterNode.prototype = {
- constructor: EnterNode,
- appendChild: function(child) { return this._parent.insertBefore(child, this._next); },
- insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },
- querySelector: function(selector) { return this._parent.querySelector(selector); },
- querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }
-};
diff --git a/swh/web/static/jssources/d3-selection/src/selection/exit.js b/swh/web/static/jssources/d3-selection/src/selection/exit.js
deleted file mode 100644
index 305610f5..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/exit.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import sparse from "./sparse";
-import {Selection} from "./index";
-
-export default function() {
- return new Selection(this._exit || this._groups.map(sparse), this._parents);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/filter.js b/swh/web/static/jssources/d3-selection/src/selection/filter.js
deleted file mode 100644
index 937ee13f..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/filter.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import {Selection} from "./index";
-import matcher from "../matcher";
-
-export default function(match) {
- if (typeof match !== "function") match = matcher(match);
-
- for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
- if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
- subgroup.push(node);
- }
- }
- }
-
- return new Selection(subgroups, this._parents);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/html.js b/swh/web/static/jssources/d3-selection/src/selection/html.js
deleted file mode 100644
index df274428..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/html.js
+++ /dev/null
@@ -1,25 +0,0 @@
-function htmlRemove() {
- this.innerHTML = "";
-}
-
-function htmlConstant(value) {
- return function() {
- this.innerHTML = value;
- };
-}
-
-function htmlFunction(value) {
- return function() {
- var v = value.apply(this, arguments);
- this.innerHTML = v == null ? "" : v;
- };
-}
-
-export default function(value) {
- return arguments.length
- ? this.each(value == null
- ? htmlRemove : (typeof value === "function"
- ? htmlFunction
- : htmlConstant)(value))
- : this.node().innerHTML;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/index.js b/swh/web/static/jssources/d3-selection/src/selection/index.js
deleted file mode 100644
index 901c4956..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/index.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import selection_select from "./select";
-import selection_selectAll from "./selectAll";
-import selection_filter from "./filter";
-import selection_data from "./data";
-import selection_enter from "./enter";
-import selection_exit from "./exit";
-import selection_join from "./join";
-import selection_merge from "./merge";
-import selection_order from "./order";
-import selection_sort from "./sort";
-import selection_call from "./call";
-import selection_nodes from "./nodes";
-import selection_node from "./node";
-import selection_size from "./size";
-import selection_empty from "./empty";
-import selection_each from "./each";
-import selection_attr from "./attr";
-import selection_style from "./style";
-import selection_property from "./property";
-import selection_classed from "./classed";
-import selection_text from "./text";
-import selection_html from "./html";
-import selection_raise from "./raise";
-import selection_lower from "./lower";
-import selection_append from "./append";
-import selection_insert from "./insert";
-import selection_remove from "./remove";
-import selection_clone from "./clone";
-import selection_datum from "./datum";
-import selection_on from "./on";
-import selection_dispatch from "./dispatch";
-
-export var root = [null];
-
-export function Selection(groups, parents) {
- this._groups = groups;
- this._parents = parents;
-}
-
-function selection() {
- return new Selection([[document.documentElement]], root);
-}
-
-Selection.prototype = selection.prototype = {
- constructor: Selection,
- select: selection_select,
- selectAll: selection_selectAll,
- filter: selection_filter,
- data: selection_data,
- enter: selection_enter,
- exit: selection_exit,
- join: selection_join,
- merge: selection_merge,
- order: selection_order,
- sort: selection_sort,
- call: selection_call,
- nodes: selection_nodes,
- node: selection_node,
- size: selection_size,
- empty: selection_empty,
- each: selection_each,
- attr: selection_attr,
- style: selection_style,
- property: selection_property,
- classed: selection_classed,
- text: selection_text,
- html: selection_html,
- raise: selection_raise,
- lower: selection_lower,
- append: selection_append,
- insert: selection_insert,
- remove: selection_remove,
- clone: selection_clone,
- datum: selection_datum,
- on: selection_on,
- dispatch: selection_dispatch
-};
-
-export default selection;
diff --git a/swh/web/static/jssources/d3-selection/src/selection/insert.js b/swh/web/static/jssources/d3-selection/src/selection/insert.js
deleted file mode 100644
index 417688d6..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/insert.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import creator from "../creator";
-import selector from "../selector";
-
-function constantNull() {
- return null;
-}
-
-export default function(name, before) {
- var create = typeof name === "function" ? name : creator(name),
- select = before == null ? constantNull : typeof before === "function" ? before : selector(before);
- return this.select(function() {
- return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
- });
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/join.js b/swh/web/static/jssources/d3-selection/src/selection/join.js
deleted file mode 100644
index 625cd474..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/join.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function(onenter, onupdate, onexit) {
- var enter = this.enter(), update = this, exit = this.exit();
- enter = typeof onenter === "function" ? onenter(enter) : enter.append(onenter + "");
- if (onupdate != null) update = onupdate(update);
- if (onexit == null) exit.remove(); else onexit(exit);
- return enter && update ? enter.merge(update).order() : update;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/lower.js b/swh/web/static/jssources/d3-selection/src/selection/lower.js
deleted file mode 100644
index d7247132..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/lower.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function lower() {
- if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
-}
-
-export default function() {
- return this.each(lower);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/merge.js b/swh/web/static/jssources/d3-selection/src/selection/merge.js
deleted file mode 100644
index dddc6a21..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/merge.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import {Selection} from "./index";
-
-export default function(selection) {
-
- for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
- for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
- if (node = group0[i] || group1[i]) {
- merge[i] = node;
- }
- }
- }
-
- for (; j < m0; ++j) {
- merges[j] = groups0[j];
- }
-
- return new Selection(merges, this._parents);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/node.js b/swh/web/static/jssources/d3-selection/src/selection/node.js
deleted file mode 100644
index 0691cbc0..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/node.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export default function() {
-
- for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
- for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
- var node = group[i];
- if (node) return node;
- }
- }
-
- return null;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/nodes.js b/swh/web/static/jssources/d3-selection/src/selection/nodes.js
deleted file mode 100644
index 6a1aca14..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/nodes.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function() {
- var nodes = new Array(this.size()), i = -1;
- this.each(function() { nodes[++i] = this; });
- return nodes;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/on.js b/swh/web/static/jssources/d3-selection/src/selection/on.js
deleted file mode 100644
index c225a465..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/on.js
+++ /dev/null
@@ -1,107 +0,0 @@
-var filterEvents = {};
-
-export var event = null;
-
-if (typeof document !== "undefined") {
- var element = document.documentElement;
- if (!("onmouseenter" in element)) {
- filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"};
- }
-}
-
-function filterContextListener(listener, index, group) {
- listener = contextListener(listener, index, group);
- return function(event) {
- var related = event.relatedTarget;
- if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {
- listener.call(this, event);
- }
- };
-}
-
-function contextListener(listener, index, group) {
- return function(event1) {
- var event0 = event; // Events can be reentrant (e.g., focus).
- event = event1;
- try {
- listener.call(this, this.__data__, index, group);
- } finally {
- event = event0;
- }
- };
-}
-
-function parseTypenames(typenames) {
- return typenames.trim().split(/^|\s+/).map(function(t) {
- var name = "", i = t.indexOf(".");
- if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
- return {type: t, name: name};
- });
-}
-
-function onRemove(typename) {
- return function() {
- var on = this.__on;
- if (!on) return;
- for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
- if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
- this.removeEventListener(o.type, o.listener, o.capture);
- } else {
- on[++i] = o;
- }
- }
- if (++i) on.length = i;
- else delete this.__on;
- };
-}
-
-function onAdd(typename, value, capture) {
- var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;
- return function(d, i, group) {
- var on = this.__on, o, listener = wrap(value, i, group);
- if (on) for (var j = 0, m = on.length; j < m; ++j) {
- if ((o = on[j]).type === typename.type && o.name === typename.name) {
- this.removeEventListener(o.type, o.listener, o.capture);
- this.addEventListener(o.type, o.listener = listener, o.capture = capture);
- o.value = value;
- return;
- }
- }
- this.addEventListener(typename.type, listener, capture);
- o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};
- if (!on) this.__on = [o];
- else on.push(o);
- };
-}
-
-export default function(typename, value, capture) {
- var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
-
- if (arguments.length < 2) {
- var on = this.node().__on;
- if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
- for (i = 0, o = on[j]; i < n; ++i) {
- if ((t = typenames[i]).type === o.type && t.name === o.name) {
- return o.value;
- }
- }
- }
- return;
- }
-
- on = value ? onAdd : onRemove;
- if (capture == null) capture = false;
- for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));
- return this;
-}
-
-export function customEvent(event1, listener, that, args) {
- var event0 = event;
- event1.sourceEvent = event;
- event = event1;
- try {
- return listener.apply(that, args);
- } finally {
- event = event0;
- }
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/order.js b/swh/web/static/jssources/d3-selection/src/selection/order.js
deleted file mode 100644
index f8c52b4b..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/order.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function() {
-
- for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {
- for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
- if (node = group[i]) {
- if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
- next = node;
- }
- }
- }
-
- return this;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/property.js b/swh/web/static/jssources/d3-selection/src/selection/property.js
deleted file mode 100644
index 3b7efd39..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/property.js
+++ /dev/null
@@ -1,28 +0,0 @@
-function propertyRemove(name) {
- return function() {
- delete this[name];
- };
-}
-
-function propertyConstant(name, value) {
- return function() {
- this[name] = value;
- };
-}
-
-function propertyFunction(name, value) {
- return function() {
- var v = value.apply(this, arguments);
- if (v == null) delete this[name];
- else this[name] = v;
- };
-}
-
-export default function(name, value) {
- return arguments.length > 1
- ? this.each((value == null
- ? propertyRemove : typeof value === "function"
- ? propertyFunction
- : propertyConstant)(name, value))
- : this.node()[name];
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/raise.js b/swh/web/static/jssources/d3-selection/src/selection/raise.js
deleted file mode 100644
index 3e9e1c9b..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/raise.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function raise() {
- if (this.nextSibling) this.parentNode.appendChild(this);
-}
-
-export default function() {
- return this.each(raise);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/remove.js b/swh/web/static/jssources/d3-selection/src/selection/remove.js
deleted file mode 100644
index 12a81060..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/remove.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function remove() {
- var parent = this.parentNode;
- if (parent) parent.removeChild(this);
-}
-
-export default function() {
- return this.each(remove);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/select.js b/swh/web/static/jssources/d3-selection/src/selection/select.js
deleted file mode 100644
index 3a7531d7..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/select.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import {Selection} from "./index";
-import selector from "../selector";
-
-export default function(select) {
- if (typeof select !== "function") select = selector(select);
-
- for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
- if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
- if ("__data__" in node) subnode.__data__ = node.__data__;
- subgroup[i] = subnode;
- }
- }
- }
-
- return new Selection(subgroups, this._parents);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/selectAll.js b/swh/web/static/jssources/d3-selection/src/selection/selectAll.js
deleted file mode 100644
index 38fe2d74..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/selectAll.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import {Selection} from "./index";
-import selectorAll from "../selectorAll";
-
-export default function(select) {
- if (typeof select !== "function") select = selectorAll(select);
-
- for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
- if (node = group[i]) {
- subgroups.push(select.call(node, node.__data__, i, group));
- parents.push(node);
- }
- }
- }
-
- return new Selection(subgroups, parents);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/size.js b/swh/web/static/jssources/d3-selection/src/selection/size.js
deleted file mode 100644
index 3f01c57f..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/size.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function() {
- var size = 0;
- this.each(function() { ++size; });
- return size;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/sort.js b/swh/web/static/jssources/d3-selection/src/selection/sort.js
deleted file mode 100644
index d1f5431e..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/sort.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import {Selection} from "./index";
-
-export default function(compare) {
- if (!compare) compare = ascending;
-
- function compareNode(a, b) {
- return a && b ? compare(a.__data__, b.__data__) : !a - !b;
- }
-
- for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {
- if (node = group[i]) {
- sortgroup[i] = node;
- }
- }
- sortgroup.sort(compareNode);
- }
-
- return new Selection(sortgroups, this._parents).order();
-}
-
-function ascending(a, b) {
- return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/sparse.js b/swh/web/static/jssources/d3-selection/src/selection/sparse.js
deleted file mode 100644
index 7b261ad1..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/sparse.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(update) {
- return new Array(update.length);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/style.js b/swh/web/static/jssources/d3-selection/src/selection/style.js
deleted file mode 100644
index 6a4be39a..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/style.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import defaultView from "../window";
-
-function styleRemove(name) {
- return function() {
- this.style.removeProperty(name);
- };
-}
-
-function styleConstant(name, value, priority) {
- return function() {
- this.style.setProperty(name, value, priority);
- };
-}
-
-function styleFunction(name, value, priority) {
- return function() {
- var v = value.apply(this, arguments);
- if (v == null) this.style.removeProperty(name);
- else this.style.setProperty(name, v, priority);
- };
-}
-
-export default function(name, value, priority) {
- return arguments.length > 1
- ? this.each((value == null
- ? styleRemove : typeof value === "function"
- ? styleFunction
- : styleConstant)(name, value, priority == null ? "" : priority))
- : styleValue(this.node(), name);
-}
-
-export function styleValue(node, name) {
- return node.style.getPropertyValue(name)
- || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selection/text.js b/swh/web/static/jssources/d3-selection/src/selection/text.js
deleted file mode 100644
index a902980c..00000000
--- a/swh/web/static/jssources/d3-selection/src/selection/text.js
+++ /dev/null
@@ -1,25 +0,0 @@
-function textRemove() {
- this.textContent = "";
-}
-
-function textConstant(value) {
- return function() {
- this.textContent = value;
- };
-}
-
-function textFunction(value) {
- return function() {
- var v = value.apply(this, arguments);
- this.textContent = v == null ? "" : v;
- };
-}
-
-export default function(value) {
- return arguments.length
- ? this.each(value == null
- ? textRemove : (typeof value === "function"
- ? textFunction
- : textConstant)(value))
- : this.node().textContent;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selector.js b/swh/web/static/jssources/d3-selection/src/selector.js
deleted file mode 100644
index 058bd73a..00000000
--- a/swh/web/static/jssources/d3-selection/src/selector.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function none() {}
-
-export default function(selector) {
- return selector == null ? none : function() {
- return this.querySelector(selector);
- };
-}
diff --git a/swh/web/static/jssources/d3-selection/src/selectorAll.js b/swh/web/static/jssources/d3-selection/src/selectorAll.js
deleted file mode 100644
index ea42ffa3..00000000
--- a/swh/web/static/jssources/d3-selection/src/selectorAll.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function empty() {
- return [];
-}
-
-export default function(selector) {
- return selector == null ? empty : function() {
- return this.querySelectorAll(selector);
- };
-}
diff --git a/swh/web/static/jssources/d3-selection/src/sourceEvent.js b/swh/web/static/jssources/d3-selection/src/sourceEvent.js
deleted file mode 100644
index 3a6621b0..00000000
--- a/swh/web/static/jssources/d3-selection/src/sourceEvent.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import {event} from "./selection/on";
-
-export default function() {
- var current = event, source;
- while (source = current.sourceEvent) current = source;
- return current;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/touch.js b/swh/web/static/jssources/d3-selection/src/touch.js
deleted file mode 100644
index 3f063c0c..00000000
--- a/swh/web/static/jssources/d3-selection/src/touch.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import sourceEvent from "./sourceEvent";
-import point from "./point";
-
-export default function(node, touches, identifier) {
- if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;
-
- for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {
- if ((touch = touches[i]).identifier === identifier) {
- return point(node, touch);
- }
- }
-
- return null;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/touches.js b/swh/web/static/jssources/d3-selection/src/touches.js
deleted file mode 100644
index 53434b05..00000000
--- a/swh/web/static/jssources/d3-selection/src/touches.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import sourceEvent from "./sourceEvent";
-import point from "./point";
-
-export default function(node, touches) {
- if (touches == null) touches = sourceEvent().touches;
-
- for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {
- points[i] = point(node, touches[i]);
- }
-
- return points;
-}
diff --git a/swh/web/static/jssources/d3-selection/src/window.js b/swh/web/static/jssources/d3-selection/src/window.js
deleted file mode 100644
index ca1105bd..00000000
--- a/swh/web/static/jssources/d3-selection/src/window.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(node) {
- return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
- || (node.document && node) // node is a Window
- || node.defaultView; // node is a Document
-}
diff --git a/swh/web/static/jssources/d3-shape/LICENSE.txt b/swh/web/static/jssources/d3-shape/LICENSE.txt
deleted file mode 100644
index 4f0b022c..00000000
--- a/swh/web/static/jssources/d3-shape/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2015 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-shape/src/arc.js b/swh/web/static/jssources/d3-shape/src/arc.js
deleted file mode 100644
index 10ae3425..00000000
--- a/swh/web/static/jssources/d3-shape/src/arc.js
+++ /dev/null
@@ -1,261 +0,0 @@
-import {path} from "d3-path";
-import constant from "./constant";
-import {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from "./math";
-
-function arcInnerRadius(d) {
- return d.innerRadius;
-}
-
-function arcOuterRadius(d) {
- return d.outerRadius;
-}
-
-function arcStartAngle(d) {
- return d.startAngle;
-}
-
-function arcEndAngle(d) {
- return d.endAngle;
-}
-
-function arcPadAngle(d) {
- return d && d.padAngle; // Note: optional!
-}
-
-function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
- var x10 = x1 - x0, y10 = y1 - y0,
- x32 = x3 - x2, y32 = y3 - y2,
- t = y32 * x10 - x32 * y10;
- if (t * t < epsilon) return;
- t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
- return [x0 + t * x10, y0 + t * y10];
-}
-
-// Compute perpendicular offset line of length rc.
-// http://mathworld.wolfram.com/Circle-LineIntersection.html
-function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
- var x01 = x0 - x1,
- y01 = y0 - y1,
- lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),
- ox = lo * y01,
- oy = -lo * x01,
- x11 = x0 + ox,
- y11 = y0 + oy,
- x10 = x1 + ox,
- y10 = y1 + oy,
- x00 = (x11 + x10) / 2,
- y00 = (y11 + y10) / 2,
- dx = x10 - x11,
- dy = y10 - y11,
- d2 = dx * dx + dy * dy,
- r = r1 - rc,
- D = x11 * y10 - x10 * y11,
- d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),
- cx0 = (D * dy - dx * d) / d2,
- cy0 = (-D * dx - dy * d) / d2,
- cx1 = (D * dy + dx * d) / d2,
- cy1 = (-D * dx + dy * d) / d2,
- dx0 = cx0 - x00,
- dy0 = cy0 - y00,
- dx1 = cx1 - x00,
- dy1 = cy1 - y00;
-
- // Pick the closer of the two intersection points.
- // TODO Is there a faster way to determine which intersection to use?
- if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
-
- return {
- cx: cx0,
- cy: cy0,
- x01: -ox,
- y01: -oy,
- x11: cx0 * (r1 / r - 1),
- y11: cy0 * (r1 / r - 1)
- };
-}
-
-export default function() {
- var innerRadius = arcInnerRadius,
- outerRadius = arcOuterRadius,
- cornerRadius = constant(0),
- padRadius = null,
- startAngle = arcStartAngle,
- endAngle = arcEndAngle,
- padAngle = arcPadAngle,
- context = null;
-
- function arc() {
- var buffer,
- r,
- r0 = +innerRadius.apply(this, arguments),
- r1 = +outerRadius.apply(this, arguments),
- a0 = startAngle.apply(this, arguments) - halfPi,
- a1 = endAngle.apply(this, arguments) - halfPi,
- da = abs(a1 - a0),
- cw = a1 > a0;
-
- if (!context) context = buffer = path();
-
- // Ensure that the outer radius is always larger than the inner radius.
- if (r1 < r0) r = r1, r1 = r0, r0 = r;
-
- // Is it a point?
- if (!(r1 > epsilon)) context.moveTo(0, 0);
-
- // Or is it a circle or annulus?
- else if (da > tau - epsilon) {
- context.moveTo(r1 * cos(a0), r1 * sin(a0));
- context.arc(0, 0, r1, a0, a1, !cw);
- if (r0 > epsilon) {
- context.moveTo(r0 * cos(a1), r0 * sin(a1));
- context.arc(0, 0, r0, a1, a0, cw);
- }
- }
-
- // Or is it a circular or annular sector?
- else {
- var a01 = a0,
- a11 = a1,
- a00 = a0,
- a10 = a1,
- da0 = da,
- da1 = da,
- ap = padAngle.apply(this, arguments) / 2,
- rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),
- rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
- rc0 = rc,
- rc1 = rc,
- t0,
- t1;
-
- // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
- if (rp > epsilon) {
- var p0 = asin(rp / r0 * sin(ap)),
- p1 = asin(rp / r1 * sin(ap));
- if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
- else da0 = 0, a00 = a10 = (a0 + a1) / 2;
- if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
- else da1 = 0, a01 = a11 = (a0 + a1) / 2;
- }
-
- var x01 = r1 * cos(a01),
- y01 = r1 * sin(a01),
- x10 = r0 * cos(a10),
- y10 = r0 * sin(a10);
-
- // Apply rounded corners?
- if (rc > epsilon) {
- var x11 = r1 * cos(a11),
- y11 = r1 * sin(a11),
- x00 = r0 * cos(a00),
- y00 = r0 * sin(a00),
- oc;
-
- // Restrict the corner radius according to the sector angle.
- if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
- var ax = x01 - oc[0],
- ay = y01 - oc[1],
- bx = x11 - oc[0],
- by = y11 - oc[1],
- kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),
- lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
- rc0 = min(rc, (r0 - lc) / (kc - 1));
- rc1 = min(rc, (r1 - lc) / (kc + 1));
- }
- }
-
- // Is the sector collapsed to a line?
- if (!(da1 > epsilon)) context.moveTo(x01, y01);
-
- // Does the sector’s outer ring have rounded corners?
- else if (rc1 > epsilon) {
- t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
- t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
-
- context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
-
- // Have the corners merged?
- if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
-
- // Otherwise, draw the two corners and the ring.
- else {
- context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
- context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
- context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
- }
- }
-
- // Or is the outer ring just a circular arc?
- else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
-
- // Is there no inner ring, and it’s a circular sector?
- // Or perhaps it’s an annular sector collapsed due to padding?
- if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);
-
- // Does the sector’s inner ring (or point) have rounded corners?
- else if (rc0 > epsilon) {
- t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
- t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
-
- context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
-
- // Have the corners merged?
- if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
-
- // Otherwise, draw the two corners and the ring.
- else {
- context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
- context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
- context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
- }
- }
-
- // Or is the inner ring just a circular arc?
- else context.arc(0, 0, r0, a10, a00, cw);
- }
-
- context.closePath();
-
- if (buffer) return context = null, buffer + "" || null;
- }
-
- arc.centroid = function() {
- var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
- a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
- return [cos(a) * r, sin(a) * r];
- };
-
- arc.innerRadius = function(_) {
- return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc) : innerRadius;
- };
-
- arc.outerRadius = function(_) {
- return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc) : outerRadius;
- };
-
- arc.cornerRadius = function(_) {
- return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc) : cornerRadius;
- };
-
- arc.padRadius = function(_) {
- return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc) : padRadius;
- };
-
- arc.startAngle = function(_) {
- return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc) : startAngle;
- };
-
- arc.endAngle = function(_) {
- return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc) : endAngle;
- };
-
- arc.padAngle = function(_) {
- return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc) : padAngle;
- };
-
- arc.context = function(_) {
- return arguments.length ? ((context = _ == null ? null : _), arc) : context;
- };
-
- return arc;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/area.js b/swh/web/static/jssources/d3-shape/src/area.js
deleted file mode 100644
index 9eb795cf..00000000
--- a/swh/web/static/jssources/d3-shape/src/area.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import {path} from "d3-path";
-import constant from "./constant";
-import curveLinear from "./curve/linear";
-import line from "./line";
-import {x as pointX, y as pointY} from "./point";
-
-export default function() {
- var x0 = pointX,
- x1 = null,
- y0 = constant(0),
- y1 = pointY,
- defined = constant(true),
- context = null,
- curve = curveLinear,
- output = null;
-
- function area(data) {
- var i,
- j,
- k,
- n = data.length,
- d,
- defined0 = false,
- buffer,
- x0z = new Array(n),
- y0z = new Array(n);
-
- if (context == null) output = curve(buffer = path());
-
- for (i = 0; i <= n; ++i) {
- if (!(i < n && defined(d = data[i], i, data)) === defined0) {
- if (defined0 = !defined0) {
- j = i;
- output.areaStart();
- output.lineStart();
- } else {
- output.lineEnd();
- output.lineStart();
- for (k = i - 1; k >= j; --k) {
- output.point(x0z[k], y0z[k]);
- }
- output.lineEnd();
- output.areaEnd();
- }
- }
- if (defined0) {
- x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
- output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
- }
- }
-
- if (buffer) return output = null, buffer + "" || null;
- }
-
- function arealine() {
- return line().defined(defined).curve(curve).context(context);
- }
-
- area.x = function(_) {
- return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), x1 = null, area) : x0;
- };
-
- area.x0 = function(_) {
- return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), area) : x0;
- };
-
- area.x1 = function(_) {
- return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area) : x1;
- };
-
- area.y = function(_) {
- return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), y1 = null, area) : y0;
- };
-
- area.y0 = function(_) {
- return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), area) : y0;
- };
-
- area.y1 = function(_) {
- return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area) : y1;
- };
-
- area.lineX0 =
- area.lineY0 = function() {
- return arealine().x(x0).y(y0);
- };
-
- area.lineY1 = function() {
- return arealine().x(x0).y(y1);
- };
-
- area.lineX1 = function() {
- return arealine().x(x1).y(y0);
- };
-
- area.defined = function(_) {
- return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), area) : defined;
- };
-
- area.curve = function(_) {
- return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
- };
-
- area.context = function(_) {
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
- };
-
- return area;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/areaRadial.js b/swh/web/static/jssources/d3-shape/src/areaRadial.js
deleted file mode 100644
index d8235c4e..00000000
--- a/swh/web/static/jssources/d3-shape/src/areaRadial.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import curveRadial, {curveRadialLinear} from "./curve/radial";
-import area from "./area";
-import {lineRadial} from "./lineRadial"
-
-export default function() {
- var a = area().curve(curveRadialLinear),
- c = a.curve,
- x0 = a.lineX0,
- x1 = a.lineX1,
- y0 = a.lineY0,
- y1 = a.lineY1;
-
- a.angle = a.x, delete a.x;
- a.startAngle = a.x0, delete a.x0;
- a.endAngle = a.x1, delete a.x1;
- a.radius = a.y, delete a.y;
- a.innerRadius = a.y0, delete a.y0;
- a.outerRadius = a.y1, delete a.y1;
- a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;
- a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;
- a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;
- a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;
-
- a.curve = function(_) {
- return arguments.length ? c(curveRadial(_)) : c()._curve;
- };
-
- return a;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/array.js b/swh/web/static/jssources/d3-shape/src/array.js
deleted file mode 100644
index 8eeac161..00000000
--- a/swh/web/static/jssources/d3-shape/src/array.js
+++ /dev/null
@@ -1 +0,0 @@
-export var slice = Array.prototype.slice;
diff --git a/swh/web/static/jssources/d3-shape/src/constant.js b/swh/web/static/jssources/d3-shape/src/constant.js
deleted file mode 100644
index 6fa95b71..00000000
--- a/swh/web/static/jssources/d3-shape/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function constant() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/basis.js b/swh/web/static/jssources/d3-shape/src/curve/basis.js
deleted file mode 100644
index b186bed5..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/basis.js
+++ /dev/null
@@ -1,51 +0,0 @@
-export function point(that, x, y) {
- that._context.bezierCurveTo(
- (2 * that._x0 + that._x1) / 3,
- (2 * that._y0 + that._y1) / 3,
- (that._x0 + 2 * that._x1) / 3,
- (that._y0 + 2 * that._y1) / 3,
- (that._x0 + 4 * that._x1 + x) / 6,
- (that._y0 + 4 * that._y1 + y) / 6
- );
-}
-
-export function Basis(context) {
- this._context = context;
-}
-
-Basis.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 =
- this._y0 = this._y1 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 3: point(this, this._x1, this._y1); // proceed
- case 2: this._context.lineTo(this._x1, this._y1); break;
- }
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = x;
- this._y0 = this._y1, this._y1 = y;
- }
-};
-
-export default function(context) {
- return new Basis(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/basisClosed.js b/swh/web/static/jssources/d3-shape/src/curve/basisClosed.js
deleted file mode 100644
index 522e305f..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/basisClosed.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import noop from "../noop";
-import {point} from "./basis";
-
-function BasisClosed(context) {
- this._context = context;
-}
-
-BasisClosed.prototype = {
- areaStart: noop,
- areaEnd: noop,
- lineStart: function() {
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =
- this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 1: {
- this._context.moveTo(this._x2, this._y2);
- this._context.closePath();
- break;
- }
- case 2: {
- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
- this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
- this._context.closePath();
- break;
- }
- case 3: {
- this.point(this._x2, this._y2);
- this.point(this._x3, this._y3);
- this.point(this._x4, this._y4);
- break;
- }
- }
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._x2 = x, this._y2 = y; break;
- case 1: this._point = 2; this._x3 = x, this._y3 = y; break;
- case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = x;
- this._y0 = this._y1, this._y1 = y;
- }
-};
-
-export default function(context) {
- return new BasisClosed(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/basisOpen.js b/swh/web/static/jssources/d3-shape/src/curve/basisOpen.js
deleted file mode 100644
index dac5d4ea..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/basisOpen.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import {point} from "./basis";
-
-function BasisOpen(context) {
- this._context = context;
-}
-
-BasisOpen.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 =
- this._y0 = this._y1 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;
- case 3: this._point = 4; // proceed
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = x;
- this._y0 = this._y1, this._y1 = y;
- }
-};
-
-export default function(context) {
- return new BasisOpen(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/bundle.js b/swh/web/static/jssources/d3-shape/src/curve/bundle.js
deleted file mode 100644
index 10d53070..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/bundle.js
+++ /dev/null
@@ -1,56 +0,0 @@
-import {Basis} from "./basis";
-
-function Bundle(context, beta) {
- this._basis = new Basis(context);
- this._beta = beta;
-}
-
-Bundle.prototype = {
- lineStart: function() {
- this._x = [];
- this._y = [];
- this._basis.lineStart();
- },
- lineEnd: function() {
- var x = this._x,
- y = this._y,
- j = x.length - 1;
-
- if (j > 0) {
- var x0 = x[0],
- y0 = y[0],
- dx = x[j] - x0,
- dy = y[j] - y0,
- i = -1,
- t;
-
- while (++i <= j) {
- t = i / j;
- this._basis.point(
- this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
- this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
- );
- }
- }
-
- this._x = this._y = null;
- this._basis.lineEnd();
- },
- point: function(x, y) {
- this._x.push(+x);
- this._y.push(+y);
- }
-};
-
-export default (function custom(beta) {
-
- function bundle(context) {
- return beta === 1 ? new Basis(context) : new Bundle(context, beta);
- }
-
- bundle.beta = function(beta) {
- return custom(+beta);
- };
-
- return bundle;
-})(0.85);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/cardinal.js b/swh/web/static/jssources/d3-shape/src/curve/cardinal.js
deleted file mode 100644
index 3ab10701..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/cardinal.js
+++ /dev/null
@@ -1,61 +0,0 @@
-export function point(that, x, y) {
- that._context.bezierCurveTo(
- that._x1 + that._k * (that._x2 - that._x0),
- that._y1 + that._k * (that._y2 - that._y0),
- that._x2 + that._k * (that._x1 - x),
- that._y2 + that._k * (that._y1 - y),
- that._x2,
- that._y2
- );
-}
-
-export function Cardinal(context, tension) {
- this._context = context;
- this._k = (1 - tension) / 6;
-}
-
-Cardinal.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 = this._x2 =
- this._y0 = this._y1 = this._y2 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 2: this._context.lineTo(this._x2, this._y2); break;
- case 3: point(this, this._x1, this._y1); break;
- }
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
- case 2: this._point = 3; // proceed
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(tension) {
-
- function cardinal(context) {
- return new Cardinal(context, tension);
- }
-
- cardinal.tension = function(tension) {
- return custom(+tension);
- };
-
- return cardinal;
-})(0);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/cardinalClosed.js b/swh/web/static/jssources/d3-shape/src/curve/cardinalClosed.js
deleted file mode 100644
index 20516afe..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/cardinalClosed.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import noop from "../noop";
-import {point} from "./cardinal";
-
-export function CardinalClosed(context, tension) {
- this._context = context;
- this._k = (1 - tension) / 6;
-}
-
-CardinalClosed.prototype = {
- areaStart: noop,
- areaEnd: noop,
- lineStart: function() {
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
- this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 1: {
- this._context.moveTo(this._x3, this._y3);
- this._context.closePath();
- break;
- }
- case 2: {
- this._context.lineTo(this._x3, this._y3);
- this._context.closePath();
- break;
- }
- case 3: {
- this.point(this._x3, this._y3);
- this.point(this._x4, this._y4);
- this.point(this._x5, this._y5);
- break;
- }
- }
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
- case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
- case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(tension) {
-
- function cardinal(context) {
- return new CardinalClosed(context, tension);
- }
-
- cardinal.tension = function(tension) {
- return custom(+tension);
- };
-
- return cardinal;
-})(0);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/cardinalOpen.js b/swh/web/static/jssources/d3-shape/src/curve/cardinalOpen.js
deleted file mode 100644
index 69070d59..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/cardinalOpen.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import {point} from "./cardinal";
-
-export function CardinalOpen(context, tension) {
- this._context = context;
- this._k = (1 - tension) / 6;
-}
-
-CardinalOpen.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 = this._x2 =
- this._y0 = this._y1 = this._y2 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
- case 3: this._point = 4; // proceed
- default: point(this, x, y); break;
- }
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(tension) {
-
- function cardinal(context) {
- return new CardinalOpen(context, tension);
- }
-
- cardinal.tension = function(tension) {
- return custom(+tension);
- };
-
- return cardinal;
-})(0);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/catmullRom.js b/swh/web/static/jssources/d3-shape/src/curve/catmullRom.js
deleted file mode 100644
index fff05e6b..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/catmullRom.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import {epsilon} from "../math";
-import {Cardinal} from "./cardinal";
-
-export function point(that, x, y) {
- var x1 = that._x1,
- y1 = that._y1,
- x2 = that._x2,
- y2 = that._y2;
-
- if (that._l01_a > epsilon) {
- var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
- n = 3 * that._l01_a * (that._l01_a + that._l12_a);
- x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
- y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
- }
-
- if (that._l23_a > epsilon) {
- var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
- m = 3 * that._l23_a * (that._l23_a + that._l12_a);
- x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
- y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
- }
-
- that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
-}
-
-function CatmullRom(context, alpha) {
- this._context = context;
- this._alpha = alpha;
-}
-
-CatmullRom.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 = this._x2 =
- this._y0 = this._y1 = this._y2 = NaN;
- this._l01_a = this._l12_a = this._l23_a =
- this._l01_2a = this._l12_2a = this._l23_2a =
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 2: this._context.lineTo(this._x2, this._y2); break;
- case 3: this.point(this._x2, this._y2); break;
- }
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
-
- if (this._point) {
- var x23 = this._x2 - x,
- y23 = this._y2 - y;
- this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
- }
-
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; // proceed
- default: point(this, x, y); break;
- }
-
- this._l01_a = this._l12_a, this._l12_a = this._l23_a;
- this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(alpha) {
-
- function catmullRom(context) {
- return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);
- }
-
- catmullRom.alpha = function(alpha) {
- return custom(+alpha);
- };
-
- return catmullRom;
-})(0.5);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/catmullRomClosed.js b/swh/web/static/jssources/d3-shape/src/curve/catmullRomClosed.js
deleted file mode 100644
index eb795212..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/catmullRomClosed.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import {CardinalClosed} from "./cardinalClosed";
-import noop from "../noop";
-import {point} from "./catmullRom";
-
-function CatmullRomClosed(context, alpha) {
- this._context = context;
- this._alpha = alpha;
-}
-
-CatmullRomClosed.prototype = {
- areaStart: noop,
- areaEnd: noop,
- lineStart: function() {
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
- this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
- this._l01_a = this._l12_a = this._l23_a =
- this._l01_2a = this._l12_2a = this._l23_2a =
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 1: {
- this._context.moveTo(this._x3, this._y3);
- this._context.closePath();
- break;
- }
- case 2: {
- this._context.lineTo(this._x3, this._y3);
- this._context.closePath();
- break;
- }
- case 3: {
- this.point(this._x3, this._y3);
- this.point(this._x4, this._y4);
- this.point(this._x5, this._y5);
- break;
- }
- }
- },
- point: function(x, y) {
- x = +x, y = +y;
-
- if (this._point) {
- var x23 = this._x2 - x,
- y23 = this._y2 - y;
- this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
- }
-
- switch (this._point) {
- case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
- case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
- case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
- default: point(this, x, y); break;
- }
-
- this._l01_a = this._l12_a, this._l12_a = this._l23_a;
- this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(alpha) {
-
- function catmullRom(context) {
- return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);
- }
-
- catmullRom.alpha = function(alpha) {
- return custom(+alpha);
- };
-
- return catmullRom;
-})(0.5);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/catmullRomOpen.js b/swh/web/static/jssources/d3-shape/src/curve/catmullRomOpen.js
deleted file mode 100644
index 217ddb82..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/catmullRomOpen.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import {CardinalOpen} from "./cardinalOpen";
-import {point} from "./catmullRom";
-
-function CatmullRomOpen(context, alpha) {
- this._context = context;
- this._alpha = alpha;
-}
-
-CatmullRomOpen.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 = this._x2 =
- this._y0 = this._y1 = this._y2 = NaN;
- this._l01_a = this._l12_a = this._l23_a =
- this._l01_2a = this._l12_2a = this._l23_2a =
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
-
- if (this._point) {
- var x23 = this._x2 - x,
- y23 = this._y2 - y;
- this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
- }
-
- switch (this._point) {
- case 0: this._point = 1; break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
- case 3: this._point = 4; // proceed
- default: point(this, x, y); break;
- }
-
- this._l01_a = this._l12_a, this._l12_a = this._l23_a;
- this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
- this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
- }
-};
-
-export default (function custom(alpha) {
-
- function catmullRom(context) {
- return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);
- }
-
- catmullRom.alpha = function(alpha) {
- return custom(+alpha);
- };
-
- return catmullRom;
-})(0.5);
diff --git a/swh/web/static/jssources/d3-shape/src/curve/linear.js b/swh/web/static/jssources/d3-shape/src/curve/linear.js
deleted file mode 100644
index 62454931..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/linear.js
+++ /dev/null
@@ -1,31 +0,0 @@
-function Linear(context) {
- this._context = context;
-}
-
-Linear.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._point = 0;
- },
- lineEnd: function() {
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; // proceed
- default: this._context.lineTo(x, y); break;
- }
- }
-};
-
-export default function(context) {
- return new Linear(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/linearClosed.js b/swh/web/static/jssources/d3-shape/src/curve/linearClosed.js
deleted file mode 100644
index 3e63e63c..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/linearClosed.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import noop from "../noop";
-
-function LinearClosed(context) {
- this._context = context;
-}
-
-LinearClosed.prototype = {
- areaStart: noop,
- areaEnd: noop,
- lineStart: function() {
- this._point = 0;
- },
- lineEnd: function() {
- if (this._point) this._context.closePath();
- },
- point: function(x, y) {
- x = +x, y = +y;
- if (this._point) this._context.lineTo(x, y);
- else this._point = 1, this._context.moveTo(x, y);
- }
-};
-
-export default function(context) {
- return new LinearClosed(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/monotone.js b/swh/web/static/jssources/d3-shape/src/curve/monotone.js
deleted file mode 100644
index 2599031c..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/monotone.js
+++ /dev/null
@@ -1,104 +0,0 @@
-function sign(x) {
- return x < 0 ? -1 : 1;
-}
-
-// Calculate the slopes of the tangents (Hermite-type interpolation) based on
-// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
-// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
-// NOV(II), P. 443, 1990.
-function slope3(that, x2, y2) {
- var h0 = that._x1 - that._x0,
- h1 = x2 - that._x1,
- s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
- s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
- p = (s0 * h1 + s1 * h0) / (h0 + h1);
- return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
-}
-
-// Calculate a one-sided slope.
-function slope2(that, t) {
- var h = that._x1 - that._x0;
- return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
-}
-
-// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
-// "you can express cubic Hermite interpolation in terms of cubic Bézier curves
-// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
-function point(that, t0, t1) {
- var x0 = that._x0,
- y0 = that._y0,
- x1 = that._x1,
- y1 = that._y1,
- dx = (x1 - x0) / 3;
- that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
-}
-
-function MonotoneX(context) {
- this._context = context;
-}
-
-MonotoneX.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x0 = this._x1 =
- this._y0 = this._y1 =
- this._t0 = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- switch (this._point) {
- case 2: this._context.lineTo(this._x1, this._y1); break;
- case 3: point(this, this._t0, slope2(this, this._t0)); break;
- }
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- this._line = 1 - this._line;
- },
- point: function(x, y) {
- var t1 = NaN;
-
- x = +x, y = +y;
- if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; break;
- case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
- default: point(this, this._t0, t1 = slope3(this, x, y)); break;
- }
-
- this._x0 = this._x1, this._x1 = x;
- this._y0 = this._y1, this._y1 = y;
- this._t0 = t1;
- }
-}
-
-function MonotoneY(context) {
- this._context = new ReflectContext(context);
-}
-
-(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
- MonotoneX.prototype.point.call(this, y, x);
-};
-
-function ReflectContext(context) {
- this._context = context;
-}
-
-ReflectContext.prototype = {
- moveTo: function(x, y) { this._context.moveTo(y, x); },
- closePath: function() { this._context.closePath(); },
- lineTo: function(x, y) { this._context.lineTo(y, x); },
- bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
-};
-
-export function monotoneX(context) {
- return new MonotoneX(context);
-}
-
-export function monotoneY(context) {
- return new MonotoneY(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/natural.js b/swh/web/static/jssources/d3-shape/src/curve/natural.js
deleted file mode 100644
index d51eb513..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/natural.js
+++ /dev/null
@@ -1,65 +0,0 @@
-function Natural(context) {
- this._context = context;
-}
-
-Natural.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x = [];
- this._y = [];
- },
- lineEnd: function() {
- var x = this._x,
- y = this._y,
- n = x.length;
-
- if (n) {
- this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
- if (n === 2) {
- this._context.lineTo(x[1], y[1]);
- } else {
- var px = controlPoints(x),
- py = controlPoints(y);
- for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
- this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
- }
- }
- }
-
- if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
- this._line = 1 - this._line;
- this._x = this._y = null;
- },
- point: function(x, y) {
- this._x.push(+x);
- this._y.push(+y);
- }
-};
-
-// See https://www.particleincell.com/2012/bezier-splines/ for derivation.
-function controlPoints(x) {
- var i,
- n = x.length - 1,
- m,
- a = new Array(n),
- b = new Array(n),
- r = new Array(n);
- a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
- for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
- a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
- for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
- a[n - 1] = r[n - 1] / b[n - 1];
- for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
- b[n - 1] = (x[n] + a[n - 1]) / 2;
- for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
- return [a, b];
-}
-
-export default function(context) {
- return new Natural(context);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/radial.js b/swh/web/static/jssources/d3-shape/src/curve/radial.js
deleted file mode 100644
index fb359b5e..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/radial.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import curveLinear from "./linear";
-
-export var curveRadialLinear = curveRadial(curveLinear);
-
-function Radial(curve) {
- this._curve = curve;
-}
-
-Radial.prototype = {
- areaStart: function() {
- this._curve.areaStart();
- },
- areaEnd: function() {
- this._curve.areaEnd();
- },
- lineStart: function() {
- this._curve.lineStart();
- },
- lineEnd: function() {
- this._curve.lineEnd();
- },
- point: function(a, r) {
- this._curve.point(r * Math.sin(a), r * -Math.cos(a));
- }
-};
-
-export default function curveRadial(curve) {
-
- function radial(context) {
- return new Radial(curve(context));
- }
-
- radial._curve = curve;
-
- return radial;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/curve/step.js b/swh/web/static/jssources/d3-shape/src/curve/step.js
deleted file mode 100644
index e9fb78ff..00000000
--- a/swh/web/static/jssources/d3-shape/src/curve/step.js
+++ /dev/null
@@ -1,53 +0,0 @@
-function Step(context, t) {
- this._context = context;
- this._t = t;
-}
-
-Step.prototype = {
- areaStart: function() {
- this._line = 0;
- },
- areaEnd: function() {
- this._line = NaN;
- },
- lineStart: function() {
- this._x = this._y = NaN;
- this._point = 0;
- },
- lineEnd: function() {
- if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
- if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
- },
- point: function(x, y) {
- x = +x, y = +y;
- switch (this._point) {
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
- case 1: this._point = 2; // proceed
- default: {
- if (this._t <= 0) {
- this._context.lineTo(this._x, y);
- this._context.lineTo(x, y);
- } else {
- var x1 = this._x * (1 - this._t) + x * this._t;
- this._context.lineTo(x1, this._y);
- this._context.lineTo(x1, y);
- }
- break;
- }
- }
- this._x = x, this._y = y;
- }
-};
-
-export default function(context) {
- return new Step(context, 0.5);
-}
-
-export function stepBefore(context) {
- return new Step(context, 0);
-}
-
-export function stepAfter(context) {
- return new Step(context, 1);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/descending.js b/swh/web/static/jssources/d3-shape/src/descending.js
deleted file mode 100644
index a4e2d7fb..00000000
--- a/swh/web/static/jssources/d3-shape/src/descending.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(a, b) {
- return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/identity.js b/swh/web/static/jssources/d3-shape/src/identity.js
deleted file mode 100644
index ca161abe..00000000
--- a/swh/web/static/jssources/d3-shape/src/identity.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(d) {
- return d;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/index.js b/swh/web/static/jssources/d3-shape/src/index.js
deleted file mode 100644
index b5347cf1..00000000
--- a/swh/web/static/jssources/d3-shape/src/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-export {default as arc} from "./arc";
-export {default as area} from "./area";
-export {default as line} from "./line";
-export {default as pie} from "./pie";
-export {default as areaRadial, default as radialArea} from "./areaRadial"; // Note: radialArea is deprecated!
-export {default as lineRadial, default as radialLine} from "./lineRadial"; // Note: radialLine is deprecated!
-export {default as pointRadial} from "./pointRadial";
-export {linkHorizontal, linkVertical, linkRadial} from "./link/index";
-
-export {default as symbol, symbols} from "./symbol";
-export {default as symbolCircle} from "./symbol/circle";
-export {default as symbolCross} from "./symbol/cross";
-export {default as symbolDiamond} from "./symbol/diamond";
-export {default as symbolSquare} from "./symbol/square";
-export {default as symbolStar} from "./symbol/star";
-export {default as symbolTriangle} from "./symbol/triangle";
-export {default as symbolWye} from "./symbol/wye";
-
-export {default as curveBasisClosed} from "./curve/basisClosed";
-export {default as curveBasisOpen} from "./curve/basisOpen";
-export {default as curveBasis} from "./curve/basis";
-export {default as curveBundle} from "./curve/bundle";
-export {default as curveCardinalClosed} from "./curve/cardinalClosed";
-export {default as curveCardinalOpen} from "./curve/cardinalOpen";
-export {default as curveCardinal} from "./curve/cardinal";
-export {default as curveCatmullRomClosed} from "./curve/catmullRomClosed";
-export {default as curveCatmullRomOpen} from "./curve/catmullRomOpen";
-export {default as curveCatmullRom} from "./curve/catmullRom";
-export {default as curveLinearClosed} from "./curve/linearClosed";
-export {default as curveLinear} from "./curve/linear";
-export {monotoneX as curveMonotoneX, monotoneY as curveMonotoneY} from "./curve/monotone";
-export {default as curveNatural} from "./curve/natural";
-export {default as curveStep, stepAfter as curveStepAfter, stepBefore as curveStepBefore} from "./curve/step";
-
-export {default as stack} from "./stack";
-export {default as stackOffsetExpand} from "./offset/expand";
-export {default as stackOffsetDiverging} from "./offset/diverging";
-export {default as stackOffsetNone} from "./offset/none";
-export {default as stackOffsetSilhouette} from "./offset/silhouette";
-export {default as stackOffsetWiggle} from "./offset/wiggle";
-export {default as stackOrderAppearance} from "./order/appearance";
-export {default as stackOrderAscending} from "./order/ascending";
-export {default as stackOrderDescending} from "./order/descending";
-export {default as stackOrderInsideOut} from "./order/insideOut";
-export {default as stackOrderNone} from "./order/none";
-export {default as stackOrderReverse} from "./order/reverse";
diff --git a/swh/web/static/jssources/d3-shape/src/line.js b/swh/web/static/jssources/d3-shape/src/line.js
deleted file mode 100644
index 16816ce5..00000000
--- a/swh/web/static/jssources/d3-shape/src/line.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import {path} from "d3-path";
-import constant from "./constant";
-import curveLinear from "./curve/linear";
-import {x as pointX, y as pointY} from "./point";
-
-export default function() {
- var x = pointX,
- y = pointY,
- defined = constant(true),
- context = null,
- curve = curveLinear,
- output = null;
-
- function line(data) {
- var i,
- n = data.length,
- d,
- defined0 = false,
- buffer;
-
- if (context == null) output = curve(buffer = path());
-
- for (i = 0; i <= n; ++i) {
- if (!(i < n && defined(d = data[i], i, data)) === defined0) {
- if (defined0 = !defined0) output.lineStart();
- else output.lineEnd();
- }
- if (defined0) output.point(+x(d, i, data), +y(d, i, data));
- }
-
- if (buffer) return output = null, buffer + "" || null;
- }
-
- line.x = function(_) {
- return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), line) : x;
- };
-
- line.y = function(_) {
- return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), line) : y;
- };
-
- line.defined = function(_) {
- return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line) : defined;
- };
-
- line.curve = function(_) {
- return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
- };
-
- line.context = function(_) {
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
- };
-
- return line;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/lineRadial.js b/swh/web/static/jssources/d3-shape/src/lineRadial.js
deleted file mode 100644
index 92697b9d..00000000
--- a/swh/web/static/jssources/d3-shape/src/lineRadial.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import curveRadial, {curveRadialLinear} from "./curve/radial";
-import line from "./line";
-
-export function lineRadial(l) {
- var c = l.curve;
-
- l.angle = l.x, delete l.x;
- l.radius = l.y, delete l.y;
-
- l.curve = function(_) {
- return arguments.length ? c(curveRadial(_)) : c()._curve;
- };
-
- return l;
-}
-
-export default function() {
- return lineRadial(line().curve(curveRadialLinear));
-}
diff --git a/swh/web/static/jssources/d3-shape/src/link/index.js b/swh/web/static/jssources/d3-shape/src/link/index.js
deleted file mode 100644
index 71f2786c..00000000
--- a/swh/web/static/jssources/d3-shape/src/link/index.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import {path} from "d3-path";
-import {slice} from "../array";
-import constant from "../constant";
-import {x as pointX, y as pointY} from "../point";
-import pointRadial from "../pointRadial";
-
-function linkSource(d) {
- return d.source;
-}
-
-function linkTarget(d) {
- return d.target;
-}
-
-function link(curve) {
- var source = linkSource,
- target = linkTarget,
- x = pointX,
- y = pointY,
- context = null;
-
- function link() {
- var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
- if (!context) context = buffer = path();
- curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));
- if (buffer) return context = null, buffer + "" || null;
- }
-
- link.source = function(_) {
- return arguments.length ? (source = _, link) : source;
- };
-
- link.target = function(_) {
- return arguments.length ? (target = _, link) : target;
- };
-
- link.x = function(_) {
- return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), link) : x;
- };
-
- link.y = function(_) {
- return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), link) : y;
- };
-
- link.context = function(_) {
- return arguments.length ? ((context = _ == null ? null : _), link) : context;
- };
-
- return link;
-}
-
-function curveHorizontal(context, x0, y0, x1, y1) {
- context.moveTo(x0, y0);
- context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
-}
-
-function curveVertical(context, x0, y0, x1, y1) {
- context.moveTo(x0, y0);
- context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);
-}
-
-function curveRadial(context, x0, y0, x1, y1) {
- var p0 = pointRadial(x0, y0),
- p1 = pointRadial(x0, y0 = (y0 + y1) / 2),
- p2 = pointRadial(x1, y0),
- p3 = pointRadial(x1, y1);
- context.moveTo(p0[0], p0[1]);
- context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);
-}
-
-export function linkHorizontal() {
- return link(curveHorizontal);
-}
-
-export function linkVertical() {
- return link(curveVertical);
-}
-
-export function linkRadial() {
- var l = link(curveRadial);
- l.angle = l.x, delete l.x;
- l.radius = l.y, delete l.y;
- return l;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/math.js b/swh/web/static/jssources/d3-shape/src/math.js
deleted file mode 100644
index 131af621..00000000
--- a/swh/web/static/jssources/d3-shape/src/math.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export var abs = Math.abs;
-export var atan2 = Math.atan2;
-export var cos = Math.cos;
-export var max = Math.max;
-export var min = Math.min;
-export var sin = Math.sin;
-export var sqrt = Math.sqrt;
-
-export var epsilon = 1e-12;
-export var pi = Math.PI;
-export var halfPi = pi / 2;
-export var tau = 2 * pi;
-
-export function acos(x) {
- return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
-}
-
-export function asin(x) {
- return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/noop.js b/swh/web/static/jssources/d3-shape/src/noop.js
deleted file mode 100644
index 6ab80bc8..00000000
--- a/swh/web/static/jssources/d3-shape/src/noop.js
+++ /dev/null
@@ -1 +0,0 @@
-export default function() {}
diff --git a/swh/web/static/jssources/d3-shape/src/offset/diverging.js b/swh/web/static/jssources/d3-shape/src/offset/diverging.js
deleted file mode 100644
index fd208992..00000000
--- a/swh/web/static/jssources/d3-shape/src/offset/diverging.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function(series, order) {
- if (!((n = series.length) > 1)) return;
- for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
- for (yp = yn = 0, i = 0; i < n; ++i) {
- if ((dy = (d = series[order[i]][j])[1] - d[0]) >= 0) {
- d[0] = yp, d[1] = yp += dy;
- } else if (dy < 0) {
- d[1] = yn, d[0] = yn += dy;
- } else {
- d[0] = yp;
- }
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-shape/src/offset/expand.js b/swh/web/static/jssources/d3-shape/src/offset/expand.js
deleted file mode 100644
index 3aa0389e..00000000
--- a/swh/web/static/jssources/d3-shape/src/offset/expand.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import none from "./none";
-
-export default function(series, order) {
- if (!((n = series.length) > 0)) return;
- for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
- for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
- if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
- }
- none(series, order);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/offset/none.js b/swh/web/static/jssources/d3-shape/src/offset/none.js
deleted file mode 100644
index d8e11dcb..00000000
--- a/swh/web/static/jssources/d3-shape/src/offset/none.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function(series, order) {
- if (!((n = series.length) > 1)) return;
- for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
- s0 = s1, s1 = series[order[i]];
- for (j = 0; j < m; ++j) {
- s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-shape/src/offset/silhouette.js b/swh/web/static/jssources/d3-shape/src/offset/silhouette.js
deleted file mode 100644
index 31afd252..00000000
--- a/swh/web/static/jssources/d3-shape/src/offset/silhouette.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import none from "./none";
-
-export default function(series, order) {
- if (!((n = series.length) > 0)) return;
- for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
- for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
- s0[j][1] += s0[j][0] = -y / 2;
- }
- none(series, order);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/offset/wiggle.js b/swh/web/static/jssources/d3-shape/src/offset/wiggle.js
deleted file mode 100644
index 0f8c12be..00000000
--- a/swh/web/static/jssources/d3-shape/src/offset/wiggle.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import none from "./none";
-
-export default function(series, order) {
- if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
- for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
- for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
- var si = series[order[i]],
- sij0 = si[j][1] || 0,
- sij1 = si[j - 1][1] || 0,
- s3 = (sij0 - sij1) / 2;
- for (var k = 0; k < i; ++k) {
- var sk = series[order[k]],
- skj0 = sk[j][1] || 0,
- skj1 = sk[j - 1][1] || 0;
- s3 += skj0 - skj1;
- }
- s1 += sij0, s2 += s3 * sij0;
- }
- s0[j - 1][1] += s0[j - 1][0] = y;
- if (s1) y -= s2 / s1;
- }
- s0[j - 1][1] += s0[j - 1][0] = y;
- none(series, order);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/appearance.js b/swh/web/static/jssources/d3-shape/src/order/appearance.js
deleted file mode 100644
index 731d0769..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/appearance.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import none from "./none";
-
-export default function(series) {
- var peaks = series.map(peak);
- return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
-}
-
-function peak(series) {
- var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
- while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
- return j;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/ascending.js b/swh/web/static/jssources/d3-shape/src/order/ascending.js
deleted file mode 100644
index c97e118f..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/ascending.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import none from "./none";
-
-export default function(series) {
- var sums = series.map(sum);
- return none(series).sort(function(a, b) { return sums[a] - sums[b]; });
-}
-
-export function sum(series) {
- var s = 0, i = -1, n = series.length, v;
- while (++i < n) if (v = +series[i][1]) s += v;
- return s;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/descending.js b/swh/web/static/jssources/d3-shape/src/order/descending.js
deleted file mode 100644
index c65b9a4b..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/descending.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import ascending from "./ascending";
-
-export default function(series) {
- return ascending(series).reverse();
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/insideOut.js b/swh/web/static/jssources/d3-shape/src/order/insideOut.js
deleted file mode 100644
index 7b8d1b95..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/insideOut.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import appearance from "./appearance";
-import {sum} from "./ascending";
-
-export default function(series) {
- var n = series.length,
- i,
- j,
- sums = series.map(sum),
- order = appearance(series),
- top = 0,
- bottom = 0,
- tops = [],
- bottoms = [];
-
- for (i = 0; i < n; ++i) {
- j = order[i];
- if (top < bottom) {
- top += sums[j];
- tops.push(j);
- } else {
- bottom += sums[j];
- bottoms.push(j);
- }
- }
-
- return bottoms.reverse().concat(tops);
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/none.js b/swh/web/static/jssources/d3-shape/src/order/none.js
deleted file mode 100644
index b0d7d6f5..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/none.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(series) {
- var n = series.length, o = new Array(n);
- while (--n >= 0) o[n] = n;
- return o;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/order/reverse.js b/swh/web/static/jssources/d3-shape/src/order/reverse.js
deleted file mode 100644
index b93af7c6..00000000
--- a/swh/web/static/jssources/d3-shape/src/order/reverse.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import none from "./none";
-
-export default function(series) {
- return none(series).reverse();
-}
diff --git a/swh/web/static/jssources/d3-shape/src/pie.js b/swh/web/static/jssources/d3-shape/src/pie.js
deleted file mode 100644
index 49cbc78f..00000000
--- a/swh/web/static/jssources/d3-shape/src/pie.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import constant from "./constant";
-import descending from "./descending";
-import identity from "./identity";
-import {tau} from "./math";
-
-export default function() {
- var value = identity,
- sortValues = descending,
- sort = null,
- startAngle = constant(0),
- endAngle = constant(tau),
- padAngle = constant(0);
-
- function pie(data) {
- var i,
- n = data.length,
- j,
- k,
- sum = 0,
- index = new Array(n),
- arcs = new Array(n),
- a0 = +startAngle.apply(this, arguments),
- da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),
- a1,
- p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
- pa = p * (da < 0 ? -1 : 1),
- v;
-
- for (i = 0; i < n; ++i) {
- if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
- sum += v;
- }
- }
-
- // Optionally sort the arcs by previously-computed values or by data.
- if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
- else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });
-
- // Compute the arcs! They are stored in the original data's order.
- for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
- j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
- data: data[j],
- index: i,
- value: v,
- startAngle: a0,
- endAngle: a1,
- padAngle: p
- };
- }
-
- return arcs;
- }
-
- pie.value = function(_) {
- return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), pie) : value;
- };
-
- pie.sortValues = function(_) {
- return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
- };
-
- pie.sort = function(_) {
- return arguments.length ? (sort = _, sortValues = null, pie) : sort;
- };
-
- pie.startAngle = function(_) {
- return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), pie) : startAngle;
- };
-
- pie.endAngle = function(_) {
- return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), pie) : endAngle;
- };
-
- pie.padAngle = function(_) {
- return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), pie) : padAngle;
- };
-
- return pie;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/point.js b/swh/web/static/jssources/d3-shape/src/point.js
deleted file mode 100644
index c3452573..00000000
--- a/swh/web/static/jssources/d3-shape/src/point.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export function x(p) {
- return p[0];
-}
-
-export function y(p) {
- return p[1];
-}
diff --git a/swh/web/static/jssources/d3-shape/src/pointRadial.js b/swh/web/static/jssources/d3-shape/src/pointRadial.js
deleted file mode 100644
index 1cccb705..00000000
--- a/swh/web/static/jssources/d3-shape/src/pointRadial.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function(x, y) {
- return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
-}
diff --git a/swh/web/static/jssources/d3-shape/src/stack.js b/swh/web/static/jssources/d3-shape/src/stack.js
deleted file mode 100644
index e36e8854..00000000
--- a/swh/web/static/jssources/d3-shape/src/stack.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import {slice} from "./array";
-import constant from "./constant";
-import offsetNone from "./offset/none";
-import orderNone from "./order/none";
-
-function stackValue(d, key) {
- return d[key];
-}
-
-export default function() {
- var keys = constant([]),
- order = orderNone,
- offset = offsetNone,
- value = stackValue;
-
- function stack(data) {
- var kz = keys.apply(this, arguments),
- i,
- m = data.length,
- n = kz.length,
- sz = new Array(n),
- oz;
-
- for (i = 0; i < n; ++i) {
- for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
- si[j] = sij = [0, +value(data[j], ki, j, data)];
- sij.data = data[j];
- }
- si.key = ki;
- }
-
- for (i = 0, oz = order(sz); i < n; ++i) {
- sz[oz[i]].index = i;
- }
-
- offset(sz, oz);
- return sz;
- }
-
- stack.keys = function(_) {
- return arguments.length ? (keys = typeof _ === "function" ? _ : constant(slice.call(_)), stack) : keys;
- };
-
- stack.value = function(_) {
- return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), stack) : value;
- };
-
- stack.order = function(_) {
- return arguments.length ? (order = _ == null ? orderNone : typeof _ === "function" ? _ : constant(slice.call(_)), stack) : order;
- };
-
- stack.offset = function(_) {
- return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;
- };
-
- return stack;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/symbol.js b/swh/web/static/jssources/d3-shape/src/symbol.js
deleted file mode 100644
index bd147ceb..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import {path} from "d3-path";
-import circle from "./symbol/circle";
-import cross from "./symbol/cross";
-import diamond from "./symbol/diamond";
-import star from "./symbol/star";
-import square from "./symbol/square";
-import triangle from "./symbol/triangle";
-import wye from "./symbol/wye";
-import constant from "./constant";
-
-export var symbols = [
- circle,
- cross,
- diamond,
- square,
- star,
- triangle,
- wye
-];
-
-export default function() {
- var type = constant(circle),
- size = constant(64),
- context = null;
-
- function symbol() {
- var buffer;
- if (!context) context = buffer = path();
- type.apply(this, arguments).draw(context, +size.apply(this, arguments));
- if (buffer) return context = null, buffer + "" || null;
- }
-
- symbol.type = function(_) {
- return arguments.length ? (type = typeof _ === "function" ? _ : constant(_), symbol) : type;
- };
-
- symbol.size = function(_) {
- return arguments.length ? (size = typeof _ === "function" ? _ : constant(+_), symbol) : size;
- };
-
- symbol.context = function(_) {
- return arguments.length ? (context = _ == null ? null : _, symbol) : context;
- };
-
- return symbol;
-}
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/circle.js b/swh/web/static/jssources/d3-shape/src/symbol/circle.js
deleted file mode 100644
index ff8098d3..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/circle.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import {pi, tau} from "../math";
-
-export default {
- draw: function(context, size) {
- var r = Math.sqrt(size / pi);
- context.moveTo(r, 0);
- context.arc(0, 0, r, 0, tau);
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/cross.js b/swh/web/static/jssources/d3-shape/src/symbol/cross.js
deleted file mode 100644
index a282f805..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/cross.js
+++ /dev/null
@@ -1,18 +0,0 @@
-export default {
- draw: function(context, size) {
- var r = Math.sqrt(size / 5) / 2;
- context.moveTo(-3 * r, -r);
- context.lineTo(-r, -r);
- context.lineTo(-r, -3 * r);
- context.lineTo(r, -3 * r);
- context.lineTo(r, -r);
- context.lineTo(3 * r, -r);
- context.lineTo(3 * r, r);
- context.lineTo(r, r);
- context.lineTo(r, 3 * r);
- context.lineTo(-r, 3 * r);
- context.lineTo(-r, r);
- context.lineTo(-3 * r, r);
- context.closePath();
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/diamond.js b/swh/web/static/jssources/d3-shape/src/symbol/diamond.js
deleted file mode 100644
index 9f4ff1af..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/diamond.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var tan30 = Math.sqrt(1 / 3),
- tan30_2 = tan30 * 2;
-
-export default {
- draw: function(context, size) {
- var y = Math.sqrt(size / tan30_2),
- x = y * tan30;
- context.moveTo(0, -y);
- context.lineTo(x, 0);
- context.lineTo(0, y);
- context.lineTo(-x, 0);
- context.closePath();
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/square.js b/swh/web/static/jssources/d3-shape/src/symbol/square.js
deleted file mode 100644
index 10beccd5..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/square.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default {
- draw: function(context, size) {
- var w = Math.sqrt(size),
- x = -w / 2;
- context.rect(x, x, w, w);
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/star.js b/swh/web/static/jssources/d3-shape/src/symbol/star.js
deleted file mode 100644
index 7d3c19af..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/star.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import {pi, tau} from "../math";
-
-var ka = 0.89081309152928522810,
- kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),
- kx = Math.sin(tau / 10) * kr,
- ky = -Math.cos(tau / 10) * kr;
-
-export default {
- draw: function(context, size) {
- var r = Math.sqrt(size * ka),
- x = kx * r,
- y = ky * r;
- context.moveTo(0, -r);
- context.lineTo(x, y);
- for (var i = 1; i < 5; ++i) {
- var a = tau * i / 5,
- c = Math.cos(a),
- s = Math.sin(a);
- context.lineTo(s * r, -c * r);
- context.lineTo(c * x - s * y, s * x + c * y);
- }
- context.closePath();
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/triangle.js b/swh/web/static/jssources/d3-shape/src/symbol/triangle.js
deleted file mode 100644
index a323d200..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/triangle.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var sqrt3 = Math.sqrt(3);
-
-export default {
- draw: function(context, size) {
- var y = -Math.sqrt(size / (sqrt3 * 3));
- context.moveTo(0, y * 2);
- context.lineTo(-sqrt3 * y, -y);
- context.lineTo(sqrt3 * y, -y);
- context.closePath();
- }
-};
diff --git a/swh/web/static/jssources/d3-shape/src/symbol/wye.js b/swh/web/static/jssources/d3-shape/src/symbol/wye.js
deleted file mode 100644
index 697f2c3c..00000000
--- a/swh/web/static/jssources/d3-shape/src/symbol/wye.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var c = -0.5,
- s = Math.sqrt(3) / 2,
- k = 1 / Math.sqrt(12),
- a = (k / 2 + 1) * 3;
-
-export default {
- draw: function(context, size) {
- var r = Math.sqrt(size / a),
- x0 = r / 2,
- y0 = r * k,
- x1 = x0,
- y1 = r * k + r,
- x2 = -x1,
- y2 = y1;
- context.moveTo(x0, y0);
- context.lineTo(x1, y1);
- context.lineTo(x2, y2);
- context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
- context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
- context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
- context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
- context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
- context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
- context.closePath();
- }
-};
diff --git a/swh/web/static/jssources/d3-time-format/LICENSE.txt b/swh/web/static/jssources/d3-time-format/LICENSE.txt
deleted file mode 100644
index 1d9d875e..00000000
--- a/swh/web/static/jssources/d3-time-format/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2017 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-time-format/src/defaultLocale.js b/swh/web/static/jssources/d3-time-format/src/defaultLocale.js
deleted file mode 100644
index 0669ebc8..00000000
--- a/swh/web/static/jssources/d3-time-format/src/defaultLocale.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import formatLocale from "./locale";
-
-var locale;
-export var timeFormat;
-export var timeParse;
-export var utcFormat;
-export var utcParse;
-
-defaultLocale({
- dateTime: "%x, %X",
- date: "%-m/%-d/%Y",
- time: "%-I:%M:%S %p",
- periods: ["AM", "PM"],
- days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
- shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
- shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-});
-
-export default function defaultLocale(definition) {
- locale = formatLocale(definition);
- timeFormat = locale.format;
- timeParse = locale.parse;
- utcFormat = locale.utcFormat;
- utcParse = locale.utcParse;
- return locale;
-}
diff --git a/swh/web/static/jssources/d3-time-format/src/index.js b/swh/web/static/jssources/d3-time-format/src/index.js
deleted file mode 100644
index 2db63148..00000000
--- a/swh/web/static/jssources/d3-time-format/src/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from "./defaultLocale";
-export {default as timeFormatLocale} from "./locale";
-export {default as isoFormat} from "./isoFormat";
-export {default as isoParse} from "./isoParse";
diff --git a/swh/web/static/jssources/d3-time-format/src/isoFormat.js b/swh/web/static/jssources/d3-time-format/src/isoFormat.js
deleted file mode 100644
index 93ec5e4a..00000000
--- a/swh/web/static/jssources/d3-time-format/src/isoFormat.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import {utcFormat} from "./defaultLocale";
-
-export var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
-
-function formatIsoNative(date) {
- return date.toISOString();
-}
-
-var formatIso = Date.prototype.toISOString
- ? formatIsoNative
- : utcFormat(isoSpecifier);
-
-export default formatIso;
diff --git a/swh/web/static/jssources/d3-time-format/src/isoParse.js b/swh/web/static/jssources/d3-time-format/src/isoParse.js
deleted file mode 100644
index 9bf7fca6..00000000
--- a/swh/web/static/jssources/d3-time-format/src/isoParse.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import {isoSpecifier} from "./isoFormat";
-import {utcParse} from "./defaultLocale";
-
-function parseIsoNative(string) {
- var date = new Date(string);
- return isNaN(date) ? null : date;
-}
-
-var parseIso = +new Date("2000-01-01T00:00:00.000Z")
- ? parseIsoNative
- : utcParse(isoSpecifier);
-
-export default parseIso;
diff --git a/swh/web/static/jssources/d3-time-format/src/locale.js b/swh/web/static/jssources/d3-time-format/src/locale.js
deleted file mode 100644
index 28d5abd5..00000000
--- a/swh/web/static/jssources/d3-time-format/src/locale.js
+++ /dev/null
@@ -1,640 +0,0 @@
-import {
- timeDay,
- timeSunday,
- timeMonday,
- timeThursday,
- timeYear,
- utcDay,
- utcSunday,
- utcMonday,
- utcThursday,
- utcYear
-} from "d3-time";
-
-function localDate(d) {
- if (0 <= d.y && d.y < 100) {
- var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
- date.setFullYear(d.y);
- return date;
- }
- return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
-}
-
-function utcDate(d) {
- if (0 <= d.y && d.y < 100) {
- var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
- date.setUTCFullYear(d.y);
- return date;
- }
- return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
-}
-
-function newYear(y) {
- return {y: y, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0};
-}
-
-export default function formatLocale(locale) {
- var locale_dateTime = locale.dateTime,
- locale_date = locale.date,
- locale_time = locale.time,
- locale_periods = locale.periods,
- locale_weekdays = locale.days,
- locale_shortWeekdays = locale.shortDays,
- locale_months = locale.months,
- locale_shortMonths = locale.shortMonths;
-
- var periodRe = formatRe(locale_periods),
- periodLookup = formatLookup(locale_periods),
- weekdayRe = formatRe(locale_weekdays),
- weekdayLookup = formatLookup(locale_weekdays),
- shortWeekdayRe = formatRe(locale_shortWeekdays),
- shortWeekdayLookup = formatLookup(locale_shortWeekdays),
- monthRe = formatRe(locale_months),
- monthLookup = formatLookup(locale_months),
- shortMonthRe = formatRe(locale_shortMonths),
- shortMonthLookup = formatLookup(locale_shortMonths);
-
- var formats = {
- "a": formatShortWeekday,
- "A": formatWeekday,
- "b": formatShortMonth,
- "B": formatMonth,
- "c": null,
- "d": formatDayOfMonth,
- "e": formatDayOfMonth,
- "f": formatMicroseconds,
- "H": formatHour24,
- "I": formatHour12,
- "j": formatDayOfYear,
- "L": formatMilliseconds,
- "m": formatMonthNumber,
- "M": formatMinutes,
- "p": formatPeriod,
- "Q": formatUnixTimestamp,
- "s": formatUnixTimestampSeconds,
- "S": formatSeconds,
- "u": formatWeekdayNumberMonday,
- "U": formatWeekNumberSunday,
- "V": formatWeekNumberISO,
- "w": formatWeekdayNumberSunday,
- "W": formatWeekNumberMonday,
- "x": null,
- "X": null,
- "y": formatYear,
- "Y": formatFullYear,
- "Z": formatZone,
- "%": formatLiteralPercent
- };
-
- var utcFormats = {
- "a": formatUTCShortWeekday,
- "A": formatUTCWeekday,
- "b": formatUTCShortMonth,
- "B": formatUTCMonth,
- "c": null,
- "d": formatUTCDayOfMonth,
- "e": formatUTCDayOfMonth,
- "f": formatUTCMicroseconds,
- "H": formatUTCHour24,
- "I": formatUTCHour12,
- "j": formatUTCDayOfYear,
- "L": formatUTCMilliseconds,
- "m": formatUTCMonthNumber,
- "M": formatUTCMinutes,
- "p": formatUTCPeriod,
- "Q": formatUnixTimestamp,
- "s": formatUnixTimestampSeconds,
- "S": formatUTCSeconds,
- "u": formatUTCWeekdayNumberMonday,
- "U": formatUTCWeekNumberSunday,
- "V": formatUTCWeekNumberISO,
- "w": formatUTCWeekdayNumberSunday,
- "W": formatUTCWeekNumberMonday,
- "x": null,
- "X": null,
- "y": formatUTCYear,
- "Y": formatUTCFullYear,
- "Z": formatUTCZone,
- "%": formatLiteralPercent
- };
-
- var parses = {
- "a": parseShortWeekday,
- "A": parseWeekday,
- "b": parseShortMonth,
- "B": parseMonth,
- "c": parseLocaleDateTime,
- "d": parseDayOfMonth,
- "e": parseDayOfMonth,
- "f": parseMicroseconds,
- "H": parseHour24,
- "I": parseHour24,
- "j": parseDayOfYear,
- "L": parseMilliseconds,
- "m": parseMonthNumber,
- "M": parseMinutes,
- "p": parsePeriod,
- "Q": parseUnixTimestamp,
- "s": parseUnixTimestampSeconds,
- "S": parseSeconds,
- "u": parseWeekdayNumberMonday,
- "U": parseWeekNumberSunday,
- "V": parseWeekNumberISO,
- "w": parseWeekdayNumberSunday,
- "W": parseWeekNumberMonday,
- "x": parseLocaleDate,
- "X": parseLocaleTime,
- "y": parseYear,
- "Y": parseFullYear,
- "Z": parseZone,
- "%": parseLiteralPercent
- };
-
- // These recursive directive definitions must be deferred.
- formats.x = newFormat(locale_date, formats);
- formats.X = newFormat(locale_time, formats);
- formats.c = newFormat(locale_dateTime, formats);
- utcFormats.x = newFormat(locale_date, utcFormats);
- utcFormats.X = newFormat(locale_time, utcFormats);
- utcFormats.c = newFormat(locale_dateTime, utcFormats);
-
- function newFormat(specifier, formats) {
- return function(date) {
- var string = [],
- i = -1,
- j = 0,
- n = specifier.length,
- c,
- pad,
- format;
-
- if (!(date instanceof Date)) date = new Date(+date);
-
- while (++i < n) {
- if (specifier.charCodeAt(i) === 37) {
- string.push(specifier.slice(j, i));
- if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
- else pad = c === "e" ? " " : "0";
- if (format = formats[c]) c = format(date, pad);
- string.push(c);
- j = i + 1;
- }
- }
-
- string.push(specifier.slice(j, i));
- return string.join("");
- };
- }
-
- function newParse(specifier, newDate) {
- return function(string) {
- var d = newYear(1900),
- i = parseSpecifier(d, specifier, string += "", 0),
- week, day;
- if (i != string.length) return null;
-
- // If a UNIX timestamp is specified, return it.
- if ("Q" in d) return new Date(d.Q);
-
- // The am-pm flag is 0 for AM, and 1 for PM.
- if ("p" in d) d.H = d.H % 12 + d.p * 12;
-
- // Convert day-of-week and week-of-year to day-of-year.
- if ("V" in d) {
- if (d.V < 1 || d.V > 53) return null;
- if (!("w" in d)) d.w = 1;
- if ("Z" in d) {
- week = utcDate(newYear(d.y)), day = week.getUTCDay();
- week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
- week = utcDay.offset(week, (d.V - 1) * 7);
- d.y = week.getUTCFullYear();
- d.m = week.getUTCMonth();
- d.d = week.getUTCDate() + (d.w + 6) % 7;
- } else {
- week = newDate(newYear(d.y)), day = week.getDay();
- week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);
- week = timeDay.offset(week, (d.V - 1) * 7);
- d.y = week.getFullYear();
- d.m = week.getMonth();
- d.d = week.getDate() + (d.w + 6) % 7;
- }
- } else if ("W" in d || "U" in d) {
- if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
- day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay();
- d.m = 0;
- d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
- }
-
- // If a time zone is specified, all fields are interpreted as UTC and then
- // offset according to the specified time zone.
- if ("Z" in d) {
- d.H += d.Z / 100 | 0;
- d.M += d.Z % 100;
- return utcDate(d);
- }
-
- // Otherwise, all fields are in local time.
- return newDate(d);
- };
- }
-
- function parseSpecifier(d, specifier, string, j) {
- var i = 0,
- n = specifier.length,
- m = string.length,
- c,
- parse;
-
- while (i < n) {
- if (j >= m) return -1;
- c = specifier.charCodeAt(i++);
- if (c === 37) {
- c = specifier.charAt(i++);
- parse = parses[c in pads ? specifier.charAt(i++) : c];
- if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
- } else if (c != string.charCodeAt(j++)) {
- return -1;
- }
- }
-
- return j;
- }
-
- function parsePeriod(d, string, i) {
- var n = periodRe.exec(string.slice(i));
- return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;
- }
-
- function parseShortWeekday(d, string, i) {
- var n = shortWeekdayRe.exec(string.slice(i));
- return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
- }
-
- function parseWeekday(d, string, i) {
- var n = weekdayRe.exec(string.slice(i));
- return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
- }
-
- function parseShortMonth(d, string, i) {
- var n = shortMonthRe.exec(string.slice(i));
- return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
- }
-
- function parseMonth(d, string, i) {
- var n = monthRe.exec(string.slice(i));
- return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
- }
-
- function parseLocaleDateTime(d, string, i) {
- return parseSpecifier(d, locale_dateTime, string, i);
- }
-
- function parseLocaleDate(d, string, i) {
- return parseSpecifier(d, locale_date, string, i);
- }
-
- function parseLocaleTime(d, string, i) {
- return parseSpecifier(d, locale_time, string, i);
- }
-
- function formatShortWeekday(d) {
- return locale_shortWeekdays[d.getDay()];
- }
-
- function formatWeekday(d) {
- return locale_weekdays[d.getDay()];
- }
-
- function formatShortMonth(d) {
- return locale_shortMonths[d.getMonth()];
- }
-
- function formatMonth(d) {
- return locale_months[d.getMonth()];
- }
-
- function formatPeriod(d) {
- return locale_periods[+(d.getHours() >= 12)];
- }
-
- function formatUTCShortWeekday(d) {
- return locale_shortWeekdays[d.getUTCDay()];
- }
-
- function formatUTCWeekday(d) {
- return locale_weekdays[d.getUTCDay()];
- }
-
- function formatUTCShortMonth(d) {
- return locale_shortMonths[d.getUTCMonth()];
- }
-
- function formatUTCMonth(d) {
- return locale_months[d.getUTCMonth()];
- }
-
- function formatUTCPeriod(d) {
- return locale_periods[+(d.getUTCHours() >= 12)];
- }
-
- return {
- format: function(specifier) {
- var f = newFormat(specifier += "", formats);
- f.toString = function() { return specifier; };
- return f;
- },
- parse: function(specifier) {
- var p = newParse(specifier += "", localDate);
- p.toString = function() { return specifier; };
- return p;
- },
- utcFormat: function(specifier) {
- var f = newFormat(specifier += "", utcFormats);
- f.toString = function() { return specifier; };
- return f;
- },
- utcParse: function(specifier) {
- var p = newParse(specifier, utcDate);
- p.toString = function() { return specifier; };
- return p;
- }
- };
-}
-
-var pads = {"-": "", "_": " ", "0": "0"},
- numberRe = /^\s*\d+/, // note: ignores next directive
- percentRe = /^%/,
- requoteRe = /[\\^$*+?|[\]().{}]/g;
-
-function pad(value, fill, width) {
- var sign = value < 0 ? "-" : "",
- string = (sign ? -value : value) + "",
- length = string.length;
- return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
-}
-
-function requote(s) {
- return s.replace(requoteRe, "\\$&");
-}
-
-function formatRe(names) {
- return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
-}
-
-function formatLookup(names) {
- var map = {}, i = -1, n = names.length;
- while (++i < n) map[names[i].toLowerCase()] = i;
- return map;
-}
-
-function parseWeekdayNumberSunday(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 1));
- return n ? (d.w = +n[0], i + n[0].length) : -1;
-}
-
-function parseWeekdayNumberMonday(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 1));
- return n ? (d.u = +n[0], i + n[0].length) : -1;
-}
-
-function parseWeekNumberSunday(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.U = +n[0], i + n[0].length) : -1;
-}
-
-function parseWeekNumberISO(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.V = +n[0], i + n[0].length) : -1;
-}
-
-function parseWeekNumberMonday(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.W = +n[0], i + n[0].length) : -1;
-}
-
-function parseFullYear(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 4));
- return n ? (d.y = +n[0], i + n[0].length) : -1;
-}
-
-function parseYear(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
-}
-
-function parseZone(d, string, i) {
- var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
- return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
-}
-
-function parseMonthNumber(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
-}
-
-function parseDayOfMonth(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.d = +n[0], i + n[0].length) : -1;
-}
-
-function parseDayOfYear(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 3));
- return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
-}
-
-function parseHour24(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.H = +n[0], i + n[0].length) : -1;
-}
-
-function parseMinutes(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.M = +n[0], i + n[0].length) : -1;
-}
-
-function parseSeconds(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 2));
- return n ? (d.S = +n[0], i + n[0].length) : -1;
-}
-
-function parseMilliseconds(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 3));
- return n ? (d.L = +n[0], i + n[0].length) : -1;
-}
-
-function parseMicroseconds(d, string, i) {
- var n = numberRe.exec(string.slice(i, i + 6));
- return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
-}
-
-function parseLiteralPercent(d, string, i) {
- var n = percentRe.exec(string.slice(i, i + 1));
- return n ? i + n[0].length : -1;
-}
-
-function parseUnixTimestamp(d, string, i) {
- var n = numberRe.exec(string.slice(i));
- return n ? (d.Q = +n[0], i + n[0].length) : -1;
-}
-
-function parseUnixTimestampSeconds(d, string, i) {
- var n = numberRe.exec(string.slice(i));
- return n ? (d.Q = (+n[0]) * 1000, i + n[0].length) : -1;
-}
-
-function formatDayOfMonth(d, p) {
- return pad(d.getDate(), p, 2);
-}
-
-function formatHour24(d, p) {
- return pad(d.getHours(), p, 2);
-}
-
-function formatHour12(d, p) {
- return pad(d.getHours() % 12 || 12, p, 2);
-}
-
-function formatDayOfYear(d, p) {
- return pad(1 + timeDay.count(timeYear(d), d), p, 3);
-}
-
-function formatMilliseconds(d, p) {
- return pad(d.getMilliseconds(), p, 3);
-}
-
-function formatMicroseconds(d, p) {
- return formatMilliseconds(d, p) + "000";
-}
-
-function formatMonthNumber(d, p) {
- return pad(d.getMonth() + 1, p, 2);
-}
-
-function formatMinutes(d, p) {
- return pad(d.getMinutes(), p, 2);
-}
-
-function formatSeconds(d, p) {
- return pad(d.getSeconds(), p, 2);
-}
-
-function formatWeekdayNumberMonday(d) {
- var day = d.getDay();
- return day === 0 ? 7 : day;
-}
-
-function formatWeekNumberSunday(d, p) {
- return pad(timeSunday.count(timeYear(d), d), p, 2);
-}
-
-function formatWeekNumberISO(d, p) {
- var day = d.getDay();
- d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);
- return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
-}
-
-function formatWeekdayNumberSunday(d) {
- return d.getDay();
-}
-
-function formatWeekNumberMonday(d, p) {
- return pad(timeMonday.count(timeYear(d), d), p, 2);
-}
-
-function formatYear(d, p) {
- return pad(d.getFullYear() % 100, p, 2);
-}
-
-function formatFullYear(d, p) {
- return pad(d.getFullYear() % 10000, p, 4);
-}
-
-function formatZone(d) {
- var z = d.getTimezoneOffset();
- return (z > 0 ? "-" : (z *= -1, "+"))
- + pad(z / 60 | 0, "0", 2)
- + pad(z % 60, "0", 2);
-}
-
-function formatUTCDayOfMonth(d, p) {
- return pad(d.getUTCDate(), p, 2);
-}
-
-function formatUTCHour24(d, p) {
- return pad(d.getUTCHours(), p, 2);
-}
-
-function formatUTCHour12(d, p) {
- return pad(d.getUTCHours() % 12 || 12, p, 2);
-}
-
-function formatUTCDayOfYear(d, p) {
- return pad(1 + utcDay.count(utcYear(d), d), p, 3);
-}
-
-function formatUTCMilliseconds(d, p) {
- return pad(d.getUTCMilliseconds(), p, 3);
-}
-
-function formatUTCMicroseconds(d, p) {
- return formatUTCMilliseconds(d, p) + "000";
-}
-
-function formatUTCMonthNumber(d, p) {
- return pad(d.getUTCMonth() + 1, p, 2);
-}
-
-function formatUTCMinutes(d, p) {
- return pad(d.getUTCMinutes(), p, 2);
-}
-
-function formatUTCSeconds(d, p) {
- return pad(d.getUTCSeconds(), p, 2);
-}
-
-function formatUTCWeekdayNumberMonday(d) {
- var dow = d.getUTCDay();
- return dow === 0 ? 7 : dow;
-}
-
-function formatUTCWeekNumberSunday(d, p) {
- return pad(utcSunday.count(utcYear(d), d), p, 2);
-}
-
-function formatUTCWeekNumberISO(d, p) {
- var day = d.getUTCDay();
- d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);
- return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
-}
-
-function formatUTCWeekdayNumberSunday(d) {
- return d.getUTCDay();
-}
-
-function formatUTCWeekNumberMonday(d, p) {
- return pad(utcMonday.count(utcYear(d), d), p, 2);
-}
-
-function formatUTCYear(d, p) {
- return pad(d.getUTCFullYear() % 100, p, 2);
-}
-
-function formatUTCFullYear(d, p) {
- return pad(d.getUTCFullYear() % 10000, p, 4);
-}
-
-function formatUTCZone() {
- return "+0000";
-}
-
-function formatLiteralPercent() {
- return "%";
-}
-
-function formatUnixTimestamp(d) {
- return +d;
-}
-
-function formatUnixTimestampSeconds(d) {
- return Math.floor(+d / 1000);
-}
diff --git a/swh/web/static/jssources/d3-time/LICENSE.txt b/swh/web/static/jssources/d3-time/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-time/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-time/src/day.js b/swh/web/static/jssources/d3-time/src/day.js
deleted file mode 100644
index e71b2621..00000000
--- a/swh/web/static/jssources/d3-time/src/day.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationDay, durationMinute} from "./duration";
-
-var day = interval(function(date) {
- date.setHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setDate(date.getDate() + step);
-}, function(start, end) {
- return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;
-}, function(date) {
- return date.getDate() - 1;
-});
-
-export default day;
-export var days = day.range;
diff --git a/swh/web/static/jssources/d3-time/src/duration.js b/swh/web/static/jssources/d3-time/src/duration.js
deleted file mode 100644
index fee16e79..00000000
--- a/swh/web/static/jssources/d3-time/src/duration.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export var durationSecond = 1e3;
-export var durationMinute = 6e4;
-export var durationHour = 36e5;
-export var durationDay = 864e5;
-export var durationWeek = 6048e5;
diff --git a/swh/web/static/jssources/d3-time/src/hour.js b/swh/web/static/jssources/d3-time/src/hour.js
deleted file mode 100644
index 377623d6..00000000
--- a/swh/web/static/jssources/d3-time/src/hour.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationHour, durationMinute, durationSecond} from "./duration";
-
-var hour = interval(function(date) {
- date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);
-}, function(date, step) {
- date.setTime(+date + step * durationHour);
-}, function(start, end) {
- return (end - start) / durationHour;
-}, function(date) {
- return date.getHours();
-});
-
-export default hour;
-export var hours = hour.range;
diff --git a/swh/web/static/jssources/d3-time/src/index.js b/swh/web/static/jssources/d3-time/src/index.js
deleted file mode 100644
index 03de1fe5..00000000
--- a/swh/web/static/jssources/d3-time/src/index.js
+++ /dev/null
@@ -1,105 +0,0 @@
-export {
- default as timeInterval
-} from "./interval";
-
-export {
- default as timeMillisecond,
- milliseconds as timeMilliseconds,
- default as utcMillisecond,
- milliseconds as utcMilliseconds
-} from "./millisecond";
-
-export {
- default as timeSecond,
- seconds as timeSeconds,
- default as utcSecond,
- seconds as utcSeconds
-} from "./second";
-
-export {
- default as timeMinute,
- minutes as timeMinutes
-} from "./minute";
-
-export {
- default as timeHour,
- hours as timeHours
-} from "./hour";
-
-export {
- default as timeDay,
- days as timeDays
-} from "./day";
-
-export {
- sunday as timeWeek,
- sundays as timeWeeks,
- sunday as timeSunday,
- sundays as timeSundays,
- monday as timeMonday,
- mondays as timeMondays,
- tuesday as timeTuesday,
- tuesdays as timeTuesdays,
- wednesday as timeWednesday,
- wednesdays as timeWednesdays,
- thursday as timeThursday,
- thursdays as timeThursdays,
- friday as timeFriday,
- fridays as timeFridays,
- saturday as timeSaturday,
- saturdays as timeSaturdays
-} from "./week";
-
-export {
- default as timeMonth,
- months as timeMonths
-} from "./month";
-
-export {
- default as timeYear,
- years as timeYears
-} from "./year";
-
-export {
- default as utcMinute,
- utcMinutes as utcMinutes
-} from "./utcMinute";
-
-export {
- default as utcHour,
- utcHours as utcHours
-} from "./utcHour";
-
-export {
- default as utcDay,
- utcDays as utcDays
-} from "./utcDay";
-
-export {
- utcSunday as utcWeek,
- utcSundays as utcWeeks,
- utcSunday as utcSunday,
- utcSundays as utcSundays,
- utcMonday as utcMonday,
- utcMondays as utcMondays,
- utcTuesday as utcTuesday,
- utcTuesdays as utcTuesdays,
- utcWednesday as utcWednesday,
- utcWednesdays as utcWednesdays,
- utcThursday as utcThursday,
- utcThursdays as utcThursdays,
- utcFriday as utcFriday,
- utcFridays as utcFridays,
- utcSaturday as utcSaturday,
- utcSaturdays as utcSaturdays
-} from "./utcWeek";
-
-export {
- default as utcMonth,
- utcMonths as utcMonths
-} from "./utcMonth";
-
-export {
- default as utcYear,
- utcYears as utcYears
-} from "./utcYear";
diff --git a/swh/web/static/jssources/d3-time/src/interval.js b/swh/web/static/jssources/d3-time/src/interval.js
deleted file mode 100644
index d28ab067..00000000
--- a/swh/web/static/jssources/d3-time/src/interval.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var t0 = new Date,
- t1 = new Date;
-
-export default function newInterval(floori, offseti, count, field) {
-
- function interval(date) {
- return floori(date = new Date(+date)), date;
- }
-
- interval.floor = interval;
-
- interval.ceil = function(date) {
- return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
- };
-
- interval.round = function(date) {
- var d0 = interval(date),
- d1 = interval.ceil(date);
- return date - d0 < d1 - date ? d0 : d1;
- };
-
- interval.offset = function(date, step) {
- return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
- };
-
- interval.range = function(start, stop, step) {
- var range = [], previous;
- start = interval.ceil(start);
- step = step == null ? 1 : Math.floor(step);
- if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
- do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
- while (previous < start && start < stop);
- return range;
- };
-
- interval.filter = function(test) {
- return newInterval(function(date) {
- if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
- }, function(date, step) {
- if (date >= date) {
- if (step < 0) while (++step <= 0) {
- while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
- } else while (--step >= 0) {
- while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
- }
- }
- });
- };
-
- if (count) {
- interval.count = function(start, end) {
- t0.setTime(+start), t1.setTime(+end);
- floori(t0), floori(t1);
- return Math.floor(count(t0, t1));
- };
-
- interval.every = function(step) {
- step = Math.floor(step);
- return !isFinite(step) || !(step > 0) ? null
- : !(step > 1) ? interval
- : interval.filter(field
- ? function(d) { return field(d) % step === 0; }
- : function(d) { return interval.count(0, d) % step === 0; });
- };
- }
-
- return interval;
-}
diff --git a/swh/web/static/jssources/d3-time/src/millisecond.js b/swh/web/static/jssources/d3-time/src/millisecond.js
deleted file mode 100644
index 1561492d..00000000
--- a/swh/web/static/jssources/d3-time/src/millisecond.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import interval from "./interval";
-
-var millisecond = interval(function() {
- // noop
-}, function(date, step) {
- date.setTime(+date + step);
-}, function(start, end) {
- return end - start;
-});
-
-// An optimized implementation for this simple case.
-millisecond.every = function(k) {
- k = Math.floor(k);
- if (!isFinite(k) || !(k > 0)) return null;
- if (!(k > 1)) return millisecond;
- return interval(function(date) {
- date.setTime(Math.floor(date / k) * k);
- }, function(date, step) {
- date.setTime(+date + step * k);
- }, function(start, end) {
- return (end - start) / k;
- });
-};
-
-export default millisecond;
-export var milliseconds = millisecond.range;
diff --git a/swh/web/static/jssources/d3-time/src/minute.js b/swh/web/static/jssources/d3-time/src/minute.js
deleted file mode 100644
index 1e4bb671..00000000
--- a/swh/web/static/jssources/d3-time/src/minute.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationMinute, durationSecond} from "./duration";
-
-var minute = interval(function(date) {
- date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);
-}, function(date, step) {
- date.setTime(+date + step * durationMinute);
-}, function(start, end) {
- return (end - start) / durationMinute;
-}, function(date) {
- return date.getMinutes();
-});
-
-export default minute;
-export var minutes = minute.range;
diff --git a/swh/web/static/jssources/d3-time/src/month.js b/swh/web/static/jssources/d3-time/src/month.js
deleted file mode 100644
index a9e99dd3..00000000
--- a/swh/web/static/jssources/d3-time/src/month.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-
-var month = interval(function(date) {
- date.setDate(1);
- date.setHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setMonth(date.getMonth() + step);
-}, function(start, end) {
- return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
-}, function(date) {
- return date.getMonth();
-});
-
-export default month;
-export var months = month.range;
diff --git a/swh/web/static/jssources/d3-time/src/second.js b/swh/web/static/jssources/d3-time/src/second.js
deleted file mode 100644
index b4e462ee..00000000
--- a/swh/web/static/jssources/d3-time/src/second.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationSecond} from "./duration";
-
-var second = interval(function(date) {
- date.setTime(date - date.getMilliseconds());
-}, function(date, step) {
- date.setTime(+date + step * durationSecond);
-}, function(start, end) {
- return (end - start) / durationSecond;
-}, function(date) {
- return date.getUTCSeconds();
-});
-
-export default second;
-export var seconds = second.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcDay.js b/swh/web/static/jssources/d3-time/src/utcDay.js
deleted file mode 100644
index 61b24552..00000000
--- a/swh/web/static/jssources/d3-time/src/utcDay.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationDay} from "./duration";
-
-var utcDay = interval(function(date) {
- date.setUTCHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setUTCDate(date.getUTCDate() + step);
-}, function(start, end) {
- return (end - start) / durationDay;
-}, function(date) {
- return date.getUTCDate() - 1;
-});
-
-export default utcDay;
-export var utcDays = utcDay.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcHour.js b/swh/web/static/jssources/d3-time/src/utcHour.js
deleted file mode 100644
index df0f38cd..00000000
--- a/swh/web/static/jssources/d3-time/src/utcHour.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationHour} from "./duration";
-
-var utcHour = interval(function(date) {
- date.setUTCMinutes(0, 0, 0);
-}, function(date, step) {
- date.setTime(+date + step * durationHour);
-}, function(start, end) {
- return (end - start) / durationHour;
-}, function(date) {
- return date.getUTCHours();
-});
-
-export default utcHour;
-export var utcHours = utcHour.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcMinute.js b/swh/web/static/jssources/d3-time/src/utcMinute.js
deleted file mode 100644
index 79416135..00000000
--- a/swh/web/static/jssources/d3-time/src/utcMinute.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-import {durationMinute} from "./duration";
-
-var utcMinute = interval(function(date) {
- date.setUTCSeconds(0, 0);
-}, function(date, step) {
- date.setTime(+date + step * durationMinute);
-}, function(start, end) {
- return (end - start) / durationMinute;
-}, function(date) {
- return date.getUTCMinutes();
-});
-
-export default utcMinute;
-export var utcMinutes = utcMinute.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcMonth.js b/swh/web/static/jssources/d3-time/src/utcMonth.js
deleted file mode 100644
index 57021672..00000000
--- a/swh/web/static/jssources/d3-time/src/utcMonth.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import interval from "./interval";
-
-var utcMonth = interval(function(date) {
- date.setUTCDate(1);
- date.setUTCHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setUTCMonth(date.getUTCMonth() + step);
-}, function(start, end) {
- return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
-}, function(date) {
- return date.getUTCMonth();
-});
-
-export default utcMonth;
-export var utcMonths = utcMonth.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcWeek.js b/swh/web/static/jssources/d3-time/src/utcWeek.js
deleted file mode 100644
index 0f7b7818..00000000
--- a/swh/web/static/jssources/d3-time/src/utcWeek.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import interval from "./interval";
-import {durationWeek} from "./duration";
-
-function utcWeekday(i) {
- return interval(function(date) {
- date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
- date.setUTCHours(0, 0, 0, 0);
- }, function(date, step) {
- date.setUTCDate(date.getUTCDate() + step * 7);
- }, function(start, end) {
- return (end - start) / durationWeek;
- });
-}
-
-export var utcSunday = utcWeekday(0);
-export var utcMonday = utcWeekday(1);
-export var utcTuesday = utcWeekday(2);
-export var utcWednesday = utcWeekday(3);
-export var utcThursday = utcWeekday(4);
-export var utcFriday = utcWeekday(5);
-export var utcSaturday = utcWeekday(6);
-
-export var utcSundays = utcSunday.range;
-export var utcMondays = utcMonday.range;
-export var utcTuesdays = utcTuesday.range;
-export var utcWednesdays = utcWednesday.range;
-export var utcThursdays = utcThursday.range;
-export var utcFridays = utcFriday.range;
-export var utcSaturdays = utcSaturday.range;
diff --git a/swh/web/static/jssources/d3-time/src/utcYear.js b/swh/web/static/jssources/d3-time/src/utcYear.js
deleted file mode 100644
index a556f7e6..00000000
--- a/swh/web/static/jssources/d3-time/src/utcYear.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import interval from "./interval";
-
-var utcYear = interval(function(date) {
- date.setUTCMonth(0, 1);
- date.setUTCHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setUTCFullYear(date.getUTCFullYear() + step);
-}, function(start, end) {
- return end.getUTCFullYear() - start.getUTCFullYear();
-}, function(date) {
- return date.getUTCFullYear();
-});
-
-// An optimized implementation for this simple case.
-utcYear.every = function(k) {
- return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {
- date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
- date.setUTCMonth(0, 1);
- date.setUTCHours(0, 0, 0, 0);
- }, function(date, step) {
- date.setUTCFullYear(date.getUTCFullYear() + step * k);
- });
-};
-
-export default utcYear;
-export var utcYears = utcYear.range;
diff --git a/swh/web/static/jssources/d3-time/src/week.js b/swh/web/static/jssources/d3-time/src/week.js
deleted file mode 100644
index c41dce6f..00000000
--- a/swh/web/static/jssources/d3-time/src/week.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import interval from "./interval";
-import {durationMinute, durationWeek} from "./duration";
-
-function weekday(i) {
- return interval(function(date) {
- date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
- date.setHours(0, 0, 0, 0);
- }, function(date, step) {
- date.setDate(date.getDate() + step * 7);
- }, function(start, end) {
- return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;
- });
-}
-
-export var sunday = weekday(0);
-export var monday = weekday(1);
-export var tuesday = weekday(2);
-export var wednesday = weekday(3);
-export var thursday = weekday(4);
-export var friday = weekday(5);
-export var saturday = weekday(6);
-
-export var sundays = sunday.range;
-export var mondays = monday.range;
-export var tuesdays = tuesday.range;
-export var wednesdays = wednesday.range;
-export var thursdays = thursday.range;
-export var fridays = friday.range;
-export var saturdays = saturday.range;
diff --git a/swh/web/static/jssources/d3-time/src/year.js b/swh/web/static/jssources/d3-time/src/year.js
deleted file mode 100644
index 2ac6535c..00000000
--- a/swh/web/static/jssources/d3-time/src/year.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import interval from "./interval";
-
-var year = interval(function(date) {
- date.setMonth(0, 1);
- date.setHours(0, 0, 0, 0);
-}, function(date, step) {
- date.setFullYear(date.getFullYear() + step);
-}, function(start, end) {
- return end.getFullYear() - start.getFullYear();
-}, function(date) {
- return date.getFullYear();
-});
-
-// An optimized implementation for this simple case.
-year.every = function(k) {
- return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {
- date.setFullYear(Math.floor(date.getFullYear() / k) * k);
- date.setMonth(0, 1);
- date.setHours(0, 0, 0, 0);
- }, function(date, step) {
- date.setFullYear(date.getFullYear() + step * k);
- });
-};
-
-export default year;
-export var years = year.range;
diff --git a/swh/web/static/jssources/d3-timer/LICENSE.txt b/swh/web/static/jssources/d3-timer/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-timer/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-timer/src/index.js b/swh/web/static/jssources/d3-timer/src/index.js
deleted file mode 100644
index 408e98d5..00000000
--- a/swh/web/static/jssources/d3-timer/src/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export {
- now,
- timer,
- timerFlush
-} from "./timer";
-
-export {
- default as timeout
-} from "./timeout";
-
-export {
- default as interval
-} from "./interval";
diff --git a/swh/web/static/jssources/d3-timer/src/interval.js b/swh/web/static/jssources/d3-timer/src/interval.js
deleted file mode 100644
index 5ecb22be..00000000
--- a/swh/web/static/jssources/d3-timer/src/interval.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import {Timer, now} from "./timer";
-
-export default function(callback, delay, time) {
- var t = new Timer, total = delay;
- if (delay == null) return t.restart(callback, delay, time), t;
- delay = +delay, time = time == null ? now() : +time;
- t.restart(function tick(elapsed) {
- elapsed += total;
- t.restart(tick, total += delay, time);
- callback(elapsed);
- }, delay, time);
- return t;
-}
diff --git a/swh/web/static/jssources/d3-timer/src/timeout.js b/swh/web/static/jssources/d3-timer/src/timeout.js
deleted file mode 100644
index 63570340..00000000
--- a/swh/web/static/jssources/d3-timer/src/timeout.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import {Timer} from "./timer";
-
-export default function(callback, delay, time) {
- var t = new Timer;
- delay = delay == null ? 0 : +delay;
- t.restart(function(elapsed) {
- t.stop();
- callback(elapsed + delay);
- }, delay, time);
- return t;
-}
diff --git a/swh/web/static/jssources/d3-timer/src/timer.js b/swh/web/static/jssources/d3-timer/src/timer.js
deleted file mode 100644
index 7db35646..00000000
--- a/swh/web/static/jssources/d3-timer/src/timer.js
+++ /dev/null
@@ -1,110 +0,0 @@
-var frame = 0, // is an animation frame pending?
- timeout = 0, // is a timeout pending?
- interval = 0, // are any timers active?
- pokeDelay = 1000, // how frequently we check for clock skew
- taskHead,
- taskTail,
- clockLast = 0,
- clockNow = 0,
- clockSkew = 0,
- clock = typeof performance === "object" && performance.now ? performance : Date,
- setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
-
-export function now() {
- return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
-}
-
-function clearNow() {
- clockNow = 0;
-}
-
-export function Timer() {
- this._call =
- this._time =
- this._next = null;
-}
-
-Timer.prototype = timer.prototype = {
- constructor: Timer,
- restart: function(callback, delay, time) {
- if (typeof callback !== "function") throw new TypeError("callback is not a function");
- time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
- if (!this._next && taskTail !== this) {
- if (taskTail) taskTail._next = this;
- else taskHead = this;
- taskTail = this;
- }
- this._call = callback;
- this._time = time;
- sleep();
- },
- stop: function() {
- if (this._call) {
- this._call = null;
- this._time = Infinity;
- sleep();
- }
- }
-};
-
-export function timer(callback, delay, time) {
- var t = new Timer;
- t.restart(callback, delay, time);
- return t;
-}
-
-export function timerFlush() {
- now(); // Get the current time, if not already set.
- ++frame; // Pretend we’ve set an alarm, if we haven’t already.
- var t = taskHead, e;
- while (t) {
- if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
- t = t._next;
- }
- --frame;
-}
-
-function wake() {
- clockNow = (clockLast = clock.now()) + clockSkew;
- frame = timeout = 0;
- try {
- timerFlush();
- } finally {
- frame = 0;
- nap();
- clockNow = 0;
- }
-}
-
-function poke() {
- var now = clock.now(), delay = now - clockLast;
- if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
-}
-
-function nap() {
- var t0, t1 = taskHead, t2, time = Infinity;
- while (t1) {
- if (t1._call) {
- if (time > t1._time) time = t1._time;
- t0 = t1, t1 = t1._next;
- } else {
- t2 = t1._next, t1._next = null;
- t1 = t0 ? t0._next = t2 : taskHead = t2;
- }
- }
- taskTail = t0;
- sleep(time);
-}
-
-function sleep(time) {
- if (frame) return; // Soonest alarm already set, or will be.
- if (timeout) timeout = clearTimeout(timeout);
- var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
- if (delay > 24) {
- if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
- if (interval) interval = clearInterval(interval);
- } else {
- if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
- frame = 1, setFrame(wake);
- }
-}
diff --git a/swh/web/static/jssources/d3-transition/LICENSE.txt b/swh/web/static/jssources/d3-transition/LICENSE.txt
deleted file mode 100644
index 6f3bc8f5..00000000
--- a/swh/web/static/jssources/d3-transition/LICENSE.txt
+++ /dev/null
@@ -1,58 +0,0 @@
-Copyright (c) 2010-2015, Michael Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* The name Michael Bostock may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-TERMS OF USE - EASING EQUATIONS
-
-Open source under the BSD License.
-
-Copyright 2001 Robert Penner
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-- Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-- Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-- Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-transition/src/active.js b/swh/web/static/jssources/d3-transition/src/active.js
deleted file mode 100644
index 95be3ce6..00000000
--- a/swh/web/static/jssources/d3-transition/src/active.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import {Transition} from "./transition/index";
-import {SCHEDULED} from "./transition/schedule";
-
-var root = [null];
-
-export default function(node, name) {
- var schedules = node.__transition,
- schedule,
- i;
-
- if (schedules) {
- name = name == null ? null : name + "";
- for (i in schedules) {
- if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {
- return new Transition([[node]], root, name, +i);
- }
- }
- }
-
- return null;
-}
diff --git a/swh/web/static/jssources/d3-transition/src/index.js b/swh/web/static/jssources/d3-transition/src/index.js
deleted file mode 100644
index 66c40034..00000000
--- a/swh/web/static/jssources/d3-transition/src/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import "./selection/index";
-export {default as transition} from "./transition/index";
-export {default as active} from "./active";
-export {default as interrupt} from "./interrupt";
diff --git a/swh/web/static/jssources/d3-transition/src/interrupt.js b/swh/web/static/jssources/d3-transition/src/interrupt.js
deleted file mode 100644
index 55835347..00000000
--- a/swh/web/static/jssources/d3-transition/src/interrupt.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import {STARTING, ENDING, ENDED} from "./transition/schedule";
-
-export default function(node, name) {
- var schedules = node.__transition,
- schedule,
- active,
- empty = true,
- i;
-
- if (!schedules) return;
-
- name = name == null ? null : name + "";
-
- for (i in schedules) {
- if ((schedule = schedules[i]).name !== name) { empty = false; continue; }
- active = schedule.state > STARTING && schedule.state < ENDING;
- schedule.state = ENDED;
- schedule.timer.stop();
- schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
- delete schedules[i];
- }
-
- if (empty) delete node.__transition;
-}
diff --git a/swh/web/static/jssources/d3-transition/src/selection/index.js b/swh/web/static/jssources/d3-transition/src/selection/index.js
deleted file mode 100644
index f94bc992..00000000
--- a/swh/web/static/jssources/d3-transition/src/selection/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import {selection} from "d3-selection";
-import selection_interrupt from "./interrupt";
-import selection_transition from "./transition";
-
-selection.prototype.interrupt = selection_interrupt;
-selection.prototype.transition = selection_transition;
diff --git a/swh/web/static/jssources/d3-transition/src/selection/interrupt.js b/swh/web/static/jssources/d3-transition/src/selection/interrupt.js
deleted file mode 100644
index 38d09f2a..00000000
--- a/swh/web/static/jssources/d3-transition/src/selection/interrupt.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import interrupt from "../interrupt";
-
-export default function(name) {
- return this.each(function() {
- interrupt(this, name);
- });
-}
diff --git a/swh/web/static/jssources/d3-transition/src/selection/transition.js b/swh/web/static/jssources/d3-transition/src/selection/transition.js
deleted file mode 100644
index e12f6499..00000000
--- a/swh/web/static/jssources/d3-transition/src/selection/transition.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import {Transition, newId} from "../transition/index";
-import schedule from "../transition/schedule";
-import {easeCubicInOut} from "d3-ease";
-import {now} from "d3-timer";
-
-var defaultTiming = {
- time: null, // Set on use.
- delay: 0,
- duration: 250,
- ease: easeCubicInOut
-};
-
-function inherit(node, id) {
- var timing;
- while (!(timing = node.__transition) || !(timing = timing[id])) {
- if (!(node = node.parentNode)) {
- return defaultTiming.time = now(), defaultTiming;
- }
- }
- return timing;
-}
-
-export default function(name) {
- var id,
- timing;
-
- if (name instanceof Transition) {
- id = name._id, name = name._name;
- } else {
- id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
- }
-
- for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
- if (node = group[i]) {
- schedule(node, name, id, i, group, timing || inherit(node, id));
- }
- }
- }
-
- return new Transition(groups, this._parents, name, id);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/attr.js b/swh/web/static/jssources/d3-transition/src/transition/attr.js
deleted file mode 100644
index 98f42d9b..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/attr.js
+++ /dev/null
@@ -1,78 +0,0 @@
-import {interpolateTransformSvg as interpolateTransform} from "d3-interpolate";
-import {namespace} from "d3-selection";
-import {tweenValue} from "./tween";
-import interpolate from "./interpolate";
-
-function attrRemove(name) {
- return function() {
- this.removeAttribute(name);
- };
-}
-
-function attrRemoveNS(fullname) {
- return function() {
- this.removeAttributeNS(fullname.space, fullname.local);
- };
-}
-
-function attrConstant(name, interpolate, value1) {
- var string00,
- string1 = value1 + "",
- interpolate0;
- return function() {
- var string0 = this.getAttribute(name);
- return string0 === string1 ? null
- : string0 === string00 ? interpolate0
- : interpolate0 = interpolate(string00 = string0, value1);
- };
-}
-
-function attrConstantNS(fullname, interpolate, value1) {
- var string00,
- string1 = value1 + "",
- interpolate0;
- return function() {
- var string0 = this.getAttributeNS(fullname.space, fullname.local);
- return string0 === string1 ? null
- : string0 === string00 ? interpolate0
- : interpolate0 = interpolate(string00 = string0, value1);
- };
-}
-
-function attrFunction(name, interpolate, value) {
- var string00,
- string10,
- interpolate0;
- return function() {
- var string0, value1 = value(this), string1;
- if (value1 == null) return void this.removeAttribute(name);
- string0 = this.getAttribute(name);
- string1 = value1 + "";
- return string0 === string1 ? null
- : string0 === string00 && string1 === string10 ? interpolate0
- : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
- };
-}
-
-function attrFunctionNS(fullname, interpolate, value) {
- var string00,
- string10,
- interpolate0;
- return function() {
- var string0, value1 = value(this), string1;
- if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
- string0 = this.getAttributeNS(fullname.space, fullname.local);
- string1 = value1 + "";
- return string0 === string1 ? null
- : string0 === string00 && string1 === string10 ? interpolate0
- : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
- };
-}
-
-export default function(name, value) {
- var fullname = namespace(name), i = fullname === "transform" ? interpolateTransform : interpolate;
- return this.attrTween(name, typeof value === "function"
- ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, "attr." + name, value))
- : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)
- : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/attrTween.js b/swh/web/static/jssources/d3-transition/src/transition/attrTween.js
deleted file mode 100644
index 35cfbed7..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/attrTween.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import {namespace} from "d3-selection";
-
-function attrInterpolate(name, i) {
- return function(t) {
- this.setAttribute(name, i(t));
- };
-}
-
-function attrInterpolateNS(fullname, i) {
- return function(t) {
- this.setAttributeNS(fullname.space, fullname.local, i(t));
- };
-}
-
-function attrTweenNS(fullname, value) {
- var t0, i0;
- function tween() {
- var i = value.apply(this, arguments);
- if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);
- return t0;
- }
- tween._value = value;
- return tween;
-}
-
-function attrTween(name, value) {
- var t0, i0;
- function tween() {
- var i = value.apply(this, arguments);
- if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
- return t0;
- }
- tween._value = value;
- return tween;
-}
-
-export default function(name, value) {
- var key = "attr." + name;
- if (arguments.length < 2) return (key = this.tween(key)) && key._value;
- if (value == null) return this.tween(key, null);
- if (typeof value !== "function") throw new Error;
- var fullname = namespace(name);
- return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/delay.js b/swh/web/static/jssources/d3-transition/src/transition/delay.js
deleted file mode 100644
index 4a0f663e..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/delay.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import {get, init} from "./schedule";
-
-function delayFunction(id, value) {
- return function() {
- init(this, id).delay = +value.apply(this, arguments);
- };
-}
-
-function delayConstant(id, value) {
- return value = +value, function() {
- init(this, id).delay = value;
- };
-}
-
-export default function(value) {
- var id = this._id;
-
- return arguments.length
- ? this.each((typeof value === "function"
- ? delayFunction
- : delayConstant)(id, value))
- : get(this.node(), id).delay;
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/duration.js b/swh/web/static/jssources/d3-transition/src/transition/duration.js
deleted file mode 100644
index f87a1675..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/duration.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import {get, set} from "./schedule";
-
-function durationFunction(id, value) {
- return function() {
- set(this, id).duration = +value.apply(this, arguments);
- };
-}
-
-function durationConstant(id, value) {
- return value = +value, function() {
- set(this, id).duration = value;
- };
-}
-
-export default function(value) {
- var id = this._id;
-
- return arguments.length
- ? this.each((typeof value === "function"
- ? durationFunction
- : durationConstant)(id, value))
- : get(this.node(), id).duration;
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/ease.js b/swh/web/static/jssources/d3-transition/src/transition/ease.js
deleted file mode 100644
index 6a88b080..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/ease.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import {get, set} from "./schedule";
-
-function easeConstant(id, value) {
- if (typeof value !== "function") throw new Error;
- return function() {
- set(this, id).ease = value;
- };
-}
-
-export default function(value) {
- var id = this._id;
-
- return arguments.length
- ? this.each(easeConstant(id, value))
- : get(this.node(), id).ease;
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/end.js b/swh/web/static/jssources/d3-transition/src/transition/end.js
deleted file mode 100644
index d3c0bafd..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/end.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import {set} from "./schedule";
-
-export default function() {
- var on0, on1, that = this, id = that._id, size = that.size();
- return new Promise(function(resolve, reject) {
- var cancel = {value: reject},
- end = {value: function() { if (--size === 0) resolve(); }};
-
- that.each(function() {
- var schedule = set(this, id),
- on = schedule.on;
-
- // If this node shared a dispatch with the previous node,
- // just assign the updated shared dispatch and we’re done!
- // Otherwise, copy-on-write.
- if (on !== on0) {
- on1 = (on0 = on).copy();
- on1._.cancel.push(cancel);
- on1._.interrupt.push(cancel);
- on1._.end.push(end);
- }
-
- schedule.on = on1;
- });
- });
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/filter.js b/swh/web/static/jssources/d3-transition/src/transition/filter.js
deleted file mode 100644
index 44fe6c5d..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/filter.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import {matcher} from "d3-selection";
-import {Transition} from "./index";
-
-export default function(match) {
- if (typeof match !== "function") match = matcher(match);
-
- for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
- if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
- subgroup.push(node);
- }
- }
- }
-
- return new Transition(subgroups, this._parents, this._name, this._id);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/index.js b/swh/web/static/jssources/d3-transition/src/transition/index.js
deleted file mode 100644
index ffb49eac..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-import {selection} from "d3-selection";
-import transition_attr from "./attr";
-import transition_attrTween from "./attrTween";
-import transition_delay from "./delay";
-import transition_duration from "./duration";
-import transition_ease from "./ease";
-import transition_filter from "./filter";
-import transition_merge from "./merge";
-import transition_on from "./on";
-import transition_remove from "./remove";
-import transition_select from "./select";
-import transition_selectAll from "./selectAll";
-import transition_selection from "./selection";
-import transition_style from "./style";
-import transition_styleTween from "./styleTween";
-import transition_text from "./text";
-import transition_transition from "./transition";
-import transition_tween from "./tween";
-import transition_end from "./end";
-
-var id = 0;
-
-export function Transition(groups, parents, name, id) {
- this._groups = groups;
- this._parents = parents;
- this._name = name;
- this._id = id;
-}
-
-export default function transition(name) {
- return selection().transition(name);
-}
-
-export function newId() {
- return ++id;
-}
-
-var selection_prototype = selection.prototype;
-
-Transition.prototype = transition.prototype = {
- constructor: Transition,
- select: transition_select,
- selectAll: transition_selectAll,
- filter: transition_filter,
- merge: transition_merge,
- selection: transition_selection,
- transition: transition_transition,
- call: selection_prototype.call,
- nodes: selection_prototype.nodes,
- node: selection_prototype.node,
- size: selection_prototype.size,
- empty: selection_prototype.empty,
- each: selection_prototype.each,
- on: transition_on,
- attr: transition_attr,
- attrTween: transition_attrTween,
- style: transition_style,
- styleTween: transition_styleTween,
- text: transition_text,
- remove: transition_remove,
- tween: transition_tween,
- delay: transition_delay,
- duration: transition_duration,
- ease: transition_ease,
- end: transition_end
-};
diff --git a/swh/web/static/jssources/d3-transition/src/transition/interpolate.js b/swh/web/static/jssources/d3-transition/src/transition/interpolate.js
deleted file mode 100644
index d389d62c..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/interpolate.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import {color} from "d3-color";
-import {interpolateNumber, interpolateRgb, interpolateString} from "d3-interpolate";
-
-export default function(a, b) {
- var c;
- return (typeof b === "number" ? interpolateNumber
- : b instanceof color ? interpolateRgb
- : (c = color(b)) ? (b = c, interpolateRgb)
- : interpolateString)(a, b);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/merge.js b/swh/web/static/jssources/d3-transition/src/transition/merge.js
deleted file mode 100644
index 9c68df0c..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/merge.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import {Transition} from "./index";
-
-export default function(transition) {
- if (transition._id !== this._id) throw new Error;
-
- for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
- for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
- if (node = group0[i] || group1[i]) {
- merge[i] = node;
- }
- }
- }
-
- for (; j < m0; ++j) {
- merges[j] = groups0[j];
- }
-
- return new Transition(merges, this._parents, this._name, this._id);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/on.js b/swh/web/static/jssources/d3-transition/src/transition/on.js
deleted file mode 100644
index ebd0c1e0..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/on.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import {get, set, init} from "./schedule";
-
-function start(name) {
- return (name + "").trim().split(/^|\s+/).every(function(t) {
- var i = t.indexOf(".");
- if (i >= 0) t = t.slice(0, i);
- return !t || t === "start";
- });
-}
-
-function onFunction(id, name, listener) {
- var on0, on1, sit = start(name) ? init : set;
- return function() {
- var schedule = sit(this, id),
- on = schedule.on;
-
- // If this node shared a dispatch with the previous node,
- // just assign the updated shared dispatch and we’re done!
- // Otherwise, copy-on-write.
- if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
-
- schedule.on = on1;
- };
-}
-
-export default function(name, listener) {
- var id = this._id;
-
- return arguments.length < 2
- ? get(this.node(), id).on.on(name)
- : this.each(onFunction(id, name, listener));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/remove.js b/swh/web/static/jssources/d3-transition/src/transition/remove.js
deleted file mode 100644
index c4bff9b3..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/remove.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function removeFunction(id) {
- return function() {
- var parent = this.parentNode;
- for (var i in this.__transition) if (+i !== id) return;
- if (parent) parent.removeChild(this);
- };
-}
-
-export default function() {
- return this.on("end.remove", removeFunction(this._id));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/schedule.js b/swh/web/static/jssources/d3-transition/src/transition/schedule.js
deleted file mode 100644
index f4e88d70..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/schedule.js
+++ /dev/null
@@ -1,153 +0,0 @@
-import {dispatch} from "d3-dispatch";
-import {timer, timeout} from "d3-timer";
-
-var emptyOn = dispatch("start", "end", "cancel", "interrupt");
-var emptyTween = [];
-
-export var CREATED = 0;
-export var SCHEDULED = 1;
-export var STARTING = 2;
-export var STARTED = 3;
-export var RUNNING = 4;
-export var ENDING = 5;
-export var ENDED = 6;
-
-export default function(node, name, id, index, group, timing) {
- var schedules = node.__transition;
- if (!schedules) node.__transition = {};
- else if (id in schedules) return;
- create(node, id, {
- name: name,
- index: index, // For context during callback.
- group: group, // For context during callback.
- on: emptyOn,
- tween: emptyTween,
- time: timing.time,
- delay: timing.delay,
- duration: timing.duration,
- ease: timing.ease,
- timer: null,
- state: CREATED
- });
-}
-
-export function init(node, id) {
- var schedule = get(node, id);
- if (schedule.state > CREATED) throw new Error("too late; already scheduled");
- return schedule;
-}
-
-export function set(node, id) {
- var schedule = get(node, id);
- if (schedule.state > STARTED) throw new Error("too late; already running");
- return schedule;
-}
-
-export function get(node, id) {
- var schedule = node.__transition;
- if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
- return schedule;
-}
-
-function create(node, id, self) {
- var schedules = node.__transition,
- tween;
-
- // Initialize the self timer when the transition is created.
- // Note the actual delay is not known until the first callback!
- schedules[id] = self;
- self.timer = timer(schedule, 0, self.time);
-
- function schedule(elapsed) {
- self.state = SCHEDULED;
- self.timer.restart(start, self.delay, self.time);
-
- // If the elapsed delay is less than our first sleep, start immediately.
- if (self.delay <= elapsed) start(elapsed - self.delay);
- }
-
- function start(elapsed) {
- var i, j, n, o;
-
- // If the state is not SCHEDULED, then we previously errored on start.
- if (self.state !== SCHEDULED) return stop();
-
- for (i in schedules) {
- o = schedules[i];
- if (o.name !== self.name) continue;
-
- // While this element already has a starting transition during this frame,
- // defer starting an interrupting transition until that transition has a
- // chance to tick (and possibly end); see d3/d3-transition#54!
- if (o.state === STARTED) return timeout(start);
-
- // Interrupt the active transition, if any.
- if (o.state === RUNNING) {
- o.state = ENDED;
- o.timer.stop();
- o.on.call("interrupt", node, node.__data__, o.index, o.group);
- delete schedules[i];
- }
-
- // Cancel any pre-empted transitions.
- else if (+i < id) {
- o.state = ENDED;
- o.timer.stop();
- o.on.call("cancel", node, node.__data__, o.index, o.group);
- delete schedules[i];
- }
- }
-
- // Defer the first tick to end of the current frame; see d3/d3#1576.
- // Note the transition may be canceled after start and before the first tick!
- // Note this must be scheduled before the start event; see d3/d3-transition#16!
- // Assuming this is successful, subsequent callbacks go straight to tick.
- timeout(function() {
- if (self.state === STARTED) {
- self.state = RUNNING;
- self.timer.restart(tick, self.delay, self.time);
- tick(elapsed);
- }
- });
-
- // Dispatch the start event.
- // Note this must be done before the tween are initialized.
- self.state = STARTING;
- self.on.call("start", node, node.__data__, self.index, self.group);
- if (self.state !== STARTING) return; // interrupted
- self.state = STARTED;
-
- // Initialize the tween, deleting null tween.
- tween = new Array(n = self.tween.length);
- for (i = 0, j = -1; i < n; ++i) {
- if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {
- tween[++j] = o;
- }
- }
- tween.length = j + 1;
- }
-
- function tick(elapsed) {
- var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),
- i = -1,
- n = tween.length;
-
- while (++i < n) {
- tween[i].call(node, t);
- }
-
- // Dispatch the end event.
- if (self.state === ENDING) {
- self.on.call("end", node, node.__data__, self.index, self.group);
- stop();
- }
- }
-
- function stop() {
- self.state = ENDED;
- self.timer.stop();
- delete schedules[id];
- for (var i in schedules) return; // eslint-disable-line no-unused-vars
- delete node.__transition;
- }
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/select.js b/swh/web/static/jssources/d3-transition/src/transition/select.js
deleted file mode 100644
index e9fbe1d5..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/select.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import {selector} from "d3-selection";
-import {Transition} from "./index";
-import schedule, {get} from "./schedule";
-
-export default function(select) {
- var name = this._name,
- id = this._id;
-
- if (typeof select !== "function") select = selector(select);
-
- for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
- if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
- if ("__data__" in node) subnode.__data__ = node.__data__;
- subgroup[i] = subnode;
- schedule(subgroup[i], name, id, i, subgroup, get(node, id));
- }
- }
- }
-
- return new Transition(subgroups, this._parents, name, id);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/selectAll.js b/swh/web/static/jssources/d3-transition/src/transition/selectAll.js
deleted file mode 100644
index b1df2a27..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/selectAll.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import {selectorAll} from "d3-selection";
-import {Transition} from "./index";
-import schedule, {get} from "./schedule";
-
-export default function(select) {
- var name = this._name,
- id = this._id;
-
- if (typeof select !== "function") select = selectorAll(select);
-
- for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
- if (node = group[i]) {
- for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {
- if (child = children[k]) {
- schedule(child, name, id, k, children, inherit);
- }
- }
- subgroups.push(children);
- parents.push(node);
- }
- }
- }
-
- return new Transition(subgroups, parents, name, id);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/selection.js b/swh/web/static/jssources/d3-transition/src/transition/selection.js
deleted file mode 100644
index d0c5944f..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/selection.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import {selection} from "d3-selection";
-
-var Selection = selection.prototype.constructor;
-
-export default function() {
- return new Selection(this._groups, this._parents);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/style.js b/swh/web/static/jssources/d3-transition/src/transition/style.js
deleted file mode 100644
index 7402ce7f..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/style.js
+++ /dev/null
@@ -1,80 +0,0 @@
-import {interpolateTransformCss as interpolateTransform} from "d3-interpolate";
-import {style} from "d3-selection";
-import {set} from "./schedule";
-import {tweenValue} from "./tween";
-import interpolate from "./interpolate";
-
-function styleNull(name, interpolate) {
- var string00,
- string10,
- interpolate0;
- return function() {
- var string0 = style(this, name),
- string1 = (this.style.removeProperty(name), style(this, name));
- return string0 === string1 ? null
- : string0 === string00 && string1 === string10 ? interpolate0
- : interpolate0 = interpolate(string00 = string0, string10 = string1);
- };
-}
-
-function styleRemove(name) {
- return function() {
- this.style.removeProperty(name);
- };
-}
-
-function styleConstant(name, interpolate, value1) {
- var string00,
- string1 = value1 + "",
- interpolate0;
- return function() {
- var string0 = style(this, name);
- return string0 === string1 ? null
- : string0 === string00 ? interpolate0
- : interpolate0 = interpolate(string00 = string0, value1);
- };
-}
-
-function styleFunction(name, interpolate, value) {
- var string00,
- string10,
- interpolate0;
- return function() {
- var string0 = style(this, name),
- value1 = value(this),
- string1 = value1 + "";
- if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));
- return string0 === string1 ? null
- : string0 === string00 && string1 === string10 ? interpolate0
- : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
- };
-}
-
-function styleMaybeRemove(id, name) {
- var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
- return function() {
- var schedule = set(this, id),
- on = schedule.on,
- listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;
-
- // If this node shared a dispatch with the previous node,
- // just assign the updated shared dispatch and we’re done!
- // Otherwise, copy-on-write.
- if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
-
- schedule.on = on1;
- };
-}
-
-export default function(name, value, priority) {
- var i = (name += "") === "transform" ? interpolateTransform : interpolate;
- return value == null ? this
- .styleTween(name, styleNull(name, i))
- .on("end.style." + name, styleRemove(name))
- : typeof value === "function" ? this
- .styleTween(name, styleFunction(name, i, tweenValue(this, "style." + name, value)))
- .each(styleMaybeRemove(this._id, name))
- : this
- .styleTween(name, styleConstant(name, i, value), priority)
- .on("end.style." + name, null);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/styleTween.js b/swh/web/static/jssources/d3-transition/src/transition/styleTween.js
deleted file mode 100644
index 070087d3..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/styleTween.js
+++ /dev/null
@@ -1,24 +0,0 @@
-function styleInterpolate(name, i, priority) {
- return function(t) {
- this.style.setProperty(name, i(t), priority);
- };
-}
-
-function styleTween(name, value, priority) {
- var t, i0;
- function tween() {
- var i = value.apply(this, arguments);
- if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);
- return t;
- }
- tween._value = value;
- return tween;
-}
-
-export default function(name, value, priority) {
- var key = "style." + (name += "");
- if (arguments.length < 2) return (key = this.tween(key)) && key._value;
- if (value == null) return this.tween(key, null);
- if (typeof value !== "function") throw new Error;
- return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/text.js b/swh/web/static/jssources/d3-transition/src/transition/text.js
deleted file mode 100644
index 47772525..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/text.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import {tweenValue} from "./tween";
-
-function textConstant(value) {
- return function() {
- this.textContent = value;
- };
-}
-
-function textFunction(value) {
- return function() {
- var value1 = value(this);
- this.textContent = value1 == null ? "" : value1;
- };
-}
-
-export default function(value) {
- return this.tween("text", typeof value === "function"
- ? textFunction(tweenValue(this, "text", value))
- : textConstant(value == null ? "" : value + ""));
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/transition.js b/swh/web/static/jssources/d3-transition/src/transition/transition.js
deleted file mode 100644
index 7f5db69d..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/transition.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import {Transition, newId} from "./index";
-import schedule, {get} from "./schedule";
-
-export default function() {
- var name = this._name,
- id0 = this._id,
- id1 = newId();
-
- for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
- for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
- if (node = group[i]) {
- var inherit = get(node, id0);
- schedule(node, name, id1, i, group, {
- time: inherit.time + inherit.delay + inherit.duration,
- delay: 0,
- duration: inherit.duration,
- ease: inherit.ease
- });
- }
- }
- }
-
- return new Transition(groups, this._parents, name, id1);
-}
diff --git a/swh/web/static/jssources/d3-transition/src/transition/tween.js b/swh/web/static/jssources/d3-transition/src/transition/tween.js
deleted file mode 100644
index 4704b361..00000000
--- a/swh/web/static/jssources/d3-transition/src/transition/tween.js
+++ /dev/null
@@ -1,81 +0,0 @@
-import {get, set} from "./schedule";
-
-function tweenRemove(id, name) {
- var tween0, tween1;
- return function() {
- var schedule = set(this, id),
- tween = schedule.tween;
-
- // If this node shared tween with the previous node,
- // just assign the updated shared tween and we’re done!
- // Otherwise, copy-on-write.
- if (tween !== tween0) {
- tween1 = tween0 = tween;
- for (var i = 0, n = tween1.length; i < n; ++i) {
- if (tween1[i].name === name) {
- tween1 = tween1.slice();
- tween1.splice(i, 1);
- break;
- }
- }
- }
-
- schedule.tween = tween1;
- };
-}
-
-function tweenFunction(id, name, value) {
- var tween0, tween1;
- if (typeof value !== "function") throw new Error;
- return function() {
- var schedule = set(this, id),
- tween = schedule.tween;
-
- // If this node shared tween with the previous node,
- // just assign the updated shared tween and we’re done!
- // Otherwise, copy-on-write.
- if (tween !== tween0) {
- tween1 = (tween0 = tween).slice();
- for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {
- if (tween1[i].name === name) {
- tween1[i] = t;
- break;
- }
- }
- if (i === n) tween1.push(t);
- }
-
- schedule.tween = tween1;
- };
-}
-
-export default function(name, value) {
- var id = this._id;
-
- name += "";
-
- if (arguments.length < 2) {
- var tween = get(this.node(), id).tween;
- for (var i = 0, n = tween.length, t; i < n; ++i) {
- if ((t = tween[i]).name === name) {
- return t.value;
- }
- }
- return null;
- }
-
- return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
-}
-
-export function tweenValue(transition, name, value) {
- var id = transition._id;
-
- transition.each(function() {
- var schedule = set(this, id);
- (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
- });
-
- return function(node) {
- return get(node, id).value[name];
- };
-}
diff --git a/swh/web/static/jssources/d3-voronoi/LICENSE.txt b/swh/web/static/jssources/d3-voronoi/LICENSE.txt
deleted file mode 100644
index 9e0af43e..00000000
--- a/swh/web/static/jssources/d3-voronoi/LICENSE.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Copyright (C) 2010-2013 Raymond Hill
-https://github.com/gorhill/Javascript-Voronoi
-
-Licensed under The MIT License
-http://en.wikipedia.org/wiki/MIT_License
-
-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.
diff --git a/swh/web/static/jssources/d3-voronoi/src/Beach.js b/swh/web/static/jssources/d3-voronoi/src/Beach.js
deleted file mode 100644
index 65e68941..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/Beach.js
+++ /dev/null
@@ -1,193 +0,0 @@
-import {RedBlackNode} from "./RedBlackTree";
-import {createCell} from "./Cell";
-import {attachCircle, detachCircle} from "./Circle";
-import {createEdge, setEdgeEnd} from "./Edge";
-import {beaches, epsilon} from "./Diagram";
-
-var beachPool = [];
-
-function Beach() {
- RedBlackNode(this);
- this.edge =
- this.site =
- this.circle = null;
-}
-
-function createBeach(site) {
- var beach = beachPool.pop() || new Beach;
- beach.site = site;
- return beach;
-}
-
-function detachBeach(beach) {
- detachCircle(beach);
- beaches.remove(beach);
- beachPool.push(beach);
- RedBlackNode(beach);
-}
-
-export function removeBeach(beach) {
- var circle = beach.circle,
- x = circle.x,
- y = circle.cy,
- vertex = [x, y],
- previous = beach.P,
- next = beach.N,
- disappearing = [beach];
-
- detachBeach(beach);
-
- var lArc = previous;
- while (lArc.circle
- && Math.abs(x - lArc.circle.x) < epsilon
- && Math.abs(y - lArc.circle.cy) < epsilon) {
- previous = lArc.P;
- disappearing.unshift(lArc);
- detachBeach(lArc);
- lArc = previous;
- }
-
- disappearing.unshift(lArc);
- detachCircle(lArc);
-
- var rArc = next;
- while (rArc.circle
- && Math.abs(x - rArc.circle.x) < epsilon
- && Math.abs(y - rArc.circle.cy) < epsilon) {
- next = rArc.N;
- disappearing.push(rArc);
- detachBeach(rArc);
- rArc = next;
- }
-
- disappearing.push(rArc);
- detachCircle(rArc);
-
- var nArcs = disappearing.length,
- iArc;
- for (iArc = 1; iArc < nArcs; ++iArc) {
- rArc = disappearing[iArc];
- lArc = disappearing[iArc - 1];
- setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);
- }
-
- lArc = disappearing[0];
- rArc = disappearing[nArcs - 1];
- rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);
-
- attachCircle(lArc);
- attachCircle(rArc);
-}
-
-export function addBeach(site) {
- var x = site[0],
- directrix = site[1],
- lArc,
- rArc,
- dxl,
- dxr,
- node = beaches._;
-
- while (node) {
- dxl = leftBreakPoint(node, directrix) - x;
- if (dxl > epsilon) node = node.L; else {
- dxr = x - rightBreakPoint(node, directrix);
- if (dxr > epsilon) {
- if (!node.R) {
- lArc = node;
- break;
- }
- node = node.R;
- } else {
- if (dxl > -epsilon) {
- lArc = node.P;
- rArc = node;
- } else if (dxr > -epsilon) {
- lArc = node;
- rArc = node.N;
- } else {
- lArc = rArc = node;
- }
- break;
- }
- }
- }
-
- createCell(site);
- var newArc = createBeach(site);
- beaches.insert(lArc, newArc);
-
- if (!lArc && !rArc) return;
-
- if (lArc === rArc) {
- detachCircle(lArc);
- rArc = createBeach(lArc.site);
- beaches.insert(newArc, rArc);
- newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);
- attachCircle(lArc);
- attachCircle(rArc);
- return;
- }
-
- if (!rArc) { // && lArc
- newArc.edge = createEdge(lArc.site, newArc.site);
- return;
- }
-
- // else lArc !== rArc
- detachCircle(lArc);
- detachCircle(rArc);
-
- var lSite = lArc.site,
- ax = lSite[0],
- ay = lSite[1],
- bx = site[0] - ax,
- by = site[1] - ay,
- rSite = rArc.site,
- cx = rSite[0] - ax,
- cy = rSite[1] - ay,
- d = 2 * (bx * cy - by * cx),
- hb = bx * bx + by * by,
- hc = cx * cx + cy * cy,
- vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];
-
- setEdgeEnd(rArc.edge, lSite, rSite, vertex);
- newArc.edge = createEdge(lSite, site, null, vertex);
- rArc.edge = createEdge(site, rSite, null, vertex);
- attachCircle(lArc);
- attachCircle(rArc);
-}
-
-function leftBreakPoint(arc, directrix) {
- var site = arc.site,
- rfocx = site[0],
- rfocy = site[1],
- pby2 = rfocy - directrix;
-
- if (!pby2) return rfocx;
-
- var lArc = arc.P;
- if (!lArc) return -Infinity;
-
- site = lArc.site;
- var lfocx = site[0],
- lfocy = site[1],
- plby2 = lfocy - directrix;
-
- if (!plby2) return lfocx;
-
- var hl = lfocx - rfocx,
- aby2 = 1 / pby2 - 1 / plby2,
- b = hl / plby2;
-
- if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
-
- return (rfocx + lfocx) / 2;
-}
-
-function rightBreakPoint(arc, directrix) {
- var rArc = arc.N;
- if (rArc) return leftBreakPoint(rArc, directrix);
- var site = arc.site;
- return site[1] === directrix ? site[0] : Infinity;
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/Cell.js b/swh/web/static/jssources/d3-voronoi/src/Cell.js
deleted file mode 100644
index 44c0714b..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/Cell.js
+++ /dev/null
@@ -1,126 +0,0 @@
-import {createBorderEdge} from "./Edge";
-import {cells, edges, epsilon} from "./Diagram";
-
-export function createCell(site) {
- return cells[site.index] = {
- site: site,
- halfedges: []
- };
-}
-
-function cellHalfedgeAngle(cell, edge) {
- var site = cell.site,
- va = edge.left,
- vb = edge.right;
- if (site === vb) vb = va, va = site;
- if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);
- if (site === va) va = edge[1], vb = edge[0];
- else va = edge[0], vb = edge[1];
- return Math.atan2(va[0] - vb[0], vb[1] - va[1]);
-}
-
-export function cellHalfedgeStart(cell, edge) {
- return edge[+(edge.left !== cell.site)];
-}
-
-export function cellHalfedgeEnd(cell, edge) {
- return edge[+(edge.left === cell.site)];
-}
-
-export function sortCellHalfedges() {
- for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {
- if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {
- var index = new Array(m),
- array = new Array(m);
- for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);
- index.sort(function(i, j) { return array[j] - array[i]; });
- for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];
- for (j = 0; j < m; ++j) halfedges[j] = array[j];
- }
- }
-}
-
-export function clipCells(x0, y0, x1, y1) {
- var nCells = cells.length,
- iCell,
- cell,
- site,
- iHalfedge,
- halfedges,
- nHalfedges,
- start,
- startX,
- startY,
- end,
- endX,
- endY,
- cover = true;
-
- for (iCell = 0; iCell < nCells; ++iCell) {
- if (cell = cells[iCell]) {
- site = cell.site;
- halfedges = cell.halfedges;
- iHalfedge = halfedges.length;
-
- // Remove any dangling clipped edges.
- while (iHalfedge--) {
- if (!edges[halfedges[iHalfedge]]) {
- halfedges.splice(iHalfedge, 1);
- }
- }
-
- // Insert any border edges as necessary.
- iHalfedge = 0, nHalfedges = halfedges.length;
- while (iHalfedge < nHalfedges) {
- end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];
- start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];
- if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {
- halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,
- Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]
- : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]
- : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]
- : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]
- : null)) - 1);
- ++nHalfedges;
- }
- }
-
- if (nHalfedges) cover = false;
- }
- }
-
- // If there weren’t any edges, have the closest site cover the extent.
- // It doesn’t matter which corner of the extent we measure!
- if (cover) {
- var dx, dy, d2, dc = Infinity;
-
- for (iCell = 0, cover = null; iCell < nCells; ++iCell) {
- if (cell = cells[iCell]) {
- site = cell.site;
- dx = site[0] - x0;
- dy = site[1] - y0;
- d2 = dx * dx + dy * dy;
- if (d2 < dc) dc = d2, cover = cell;
- }
- }
-
- if (cover) {
- var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];
- cover.halfedges.push(
- edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,
- edges.push(createBorderEdge(site, v01, v11)) - 1,
- edges.push(createBorderEdge(site, v11, v10)) - 1,
- edges.push(createBorderEdge(site, v10, v00)) - 1
- );
- }
- }
-
- // Lastly delete any cells with no edges; these were entirely clipped.
- for (iCell = 0; iCell < nCells; ++iCell) {
- if (cell = cells[iCell]) {
- if (!cell.halfedges.length) {
- delete cells[iCell];
- }
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/Circle.js b/swh/web/static/jssources/d3-voronoi/src/Circle.js
deleted file mode 100644
index 6e04bc72..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/Circle.js
+++ /dev/null
@@ -1,78 +0,0 @@
-import {RedBlackNode} from "./RedBlackTree";
-import {circles, epsilon2} from "./Diagram";
-
-var circlePool = [];
-
-export var firstCircle;
-
-function Circle() {
- RedBlackNode(this);
- this.x =
- this.y =
- this.arc =
- this.site =
- this.cy = null;
-}
-
-export function attachCircle(arc) {
- var lArc = arc.P,
- rArc = arc.N;
-
- if (!lArc || !rArc) return;
-
- var lSite = lArc.site,
- cSite = arc.site,
- rSite = rArc.site;
-
- if (lSite === rSite) return;
-
- var bx = cSite[0],
- by = cSite[1],
- ax = lSite[0] - bx,
- ay = lSite[1] - by,
- cx = rSite[0] - bx,
- cy = rSite[1] - by;
-
- var d = 2 * (ax * cy - ay * cx);
- if (d >= -epsilon2) return;
-
- var ha = ax * ax + ay * ay,
- hc = cx * cx + cy * cy,
- x = (cy * ha - ay * hc) / d,
- y = (ax * hc - cx * ha) / d;
-
- var circle = circlePool.pop() || new Circle;
- circle.arc = arc;
- circle.site = cSite;
- circle.x = x + bx;
- circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom
-
- arc.circle = circle;
-
- var before = null,
- node = circles._;
-
- while (node) {
- if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {
- if (node.L) node = node.L;
- else { before = node.P; break; }
- } else {
- if (node.R) node = node.R;
- else { before = node; break; }
- }
- }
-
- circles.insert(before, circle);
- if (!before) firstCircle = circle;
-}
-
-export function detachCircle(arc) {
- var circle = arc.circle;
- if (circle) {
- if (!circle.P) firstCircle = circle.N;
- circles.remove(circle);
- circlePool.push(circle);
- RedBlackNode(circle);
- arc.circle = null;
- }
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/Diagram.js b/swh/web/static/jssources/d3-voronoi/src/Diagram.js
deleted file mode 100644
index 33234307..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/Diagram.js
+++ /dev/null
@@ -1,142 +0,0 @@
-import {addBeach, removeBeach} from "./Beach";
-import {sortCellHalfedges, cellHalfedgeStart, clipCells} from "./Cell";
-import {firstCircle} from "./Circle";
-import {clipEdges} from "./Edge";
-import RedBlackTree from "./RedBlackTree";
-
-export var epsilon = 1e-6;
-export var epsilon2 = 1e-12;
-export var beaches;
-export var cells;
-export var circles;
-export var edges;
-
-function triangleArea(a, b, c) {
- return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);
-}
-
-function lexicographic(a, b) {
- return b[1] - a[1]
- || b[0] - a[0];
-}
-
-export default function Diagram(sites, extent) {
- var site = sites.sort(lexicographic).pop(),
- x,
- y,
- circle;
-
- edges = [];
- cells = new Array(sites.length);
- beaches = new RedBlackTree;
- circles = new RedBlackTree;
-
- while (true) {
- circle = firstCircle;
- if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {
- if (site[0] !== x || site[1] !== y) {
- addBeach(site);
- x = site[0], y = site[1];
- }
- site = sites.pop();
- } else if (circle) {
- removeBeach(circle.arc);
- } else {
- break;
- }
- }
-
- sortCellHalfedges();
-
- if (extent) {
- var x0 = +extent[0][0],
- y0 = +extent[0][1],
- x1 = +extent[1][0],
- y1 = +extent[1][1];
- clipEdges(x0, y0, x1, y1);
- clipCells(x0, y0, x1, y1);
- }
-
- this.edges = edges;
- this.cells = cells;
-
- beaches =
- circles =
- edges =
- cells = null;
-}
-
-Diagram.prototype = {
- constructor: Diagram,
-
- polygons: function() {
- var edges = this.edges;
-
- return this.cells.map(function(cell) {
- var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });
- polygon.data = cell.site.data;
- return polygon;
- });
- },
-
- triangles: function() {
- var triangles = [],
- edges = this.edges;
-
- this.cells.forEach(function(cell, i) {
- if (!(m = (halfedges = cell.halfedges).length)) return;
- var site = cell.site,
- halfedges,
- j = -1,
- m,
- s0,
- e1 = edges[halfedges[m - 1]],
- s1 = e1.left === site ? e1.right : e1.left;
-
- while (++j < m) {
- s0 = s1;
- e1 = edges[halfedges[j]];
- s1 = e1.left === site ? e1.right : e1.left;
- if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {
- triangles.push([site.data, s0.data, s1.data]);
- }
- }
- });
-
- return triangles;
- },
-
- links: function() {
- return this.edges.filter(function(edge) {
- return edge.right;
- }).map(function(edge) {
- return {
- source: edge.left.data,
- target: edge.right.data
- };
- });
- },
-
- find: function(x, y, radius) {
- var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;
-
- // Use the previously-found cell, or start with an arbitrary one.
- while (!(cell = that.cells[i1])) if (++i1 >= n) return null;
- var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;
-
- // Traverse the half-edges to find a closer cell, if any.
- do {
- cell = that.cells[i0 = i1], i1 = null;
- cell.halfedges.forEach(function(e) {
- var edge = that.edges[e], v = edge.left;
- if ((v === cell.site || !v) && !(v = edge.right)) return;
- var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;
- if (v2 < d2) d2 = v2, i1 = v.index;
- });
- } while (i1 !== null);
-
- that._found = i0;
-
- return radius == null || d2 <= radius * radius ? cell.site : null;
- }
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/Edge.js b/swh/web/static/jssources/d3-voronoi/src/Edge.js
deleted file mode 100644
index 310bcf96..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/Edge.js
+++ /dev/null
@@ -1,168 +0,0 @@
-import {cells, edges, epsilon} from "./Diagram";
-
-export function createEdge(left, right, v0, v1) {
- var edge = [null, null],
- index = edges.push(edge) - 1;
- edge.left = left;
- edge.right = right;
- if (v0) setEdgeEnd(edge, left, right, v0);
- if (v1) setEdgeEnd(edge, right, left, v1);
- cells[left.index].halfedges.push(index);
- cells[right.index].halfedges.push(index);
- return edge;
-}
-
-export function createBorderEdge(left, v0, v1) {
- var edge = [v0, v1];
- edge.left = left;
- return edge;
-}
-
-export function setEdgeEnd(edge, left, right, vertex) {
- if (!edge[0] && !edge[1]) {
- edge[0] = vertex;
- edge.left = left;
- edge.right = right;
- } else if (edge.left === right) {
- edge[1] = vertex;
- } else {
- edge[0] = vertex;
- }
-}
-
-// Liang–Barsky line clipping.
-function clipEdge(edge, x0, y0, x1, y1) {
- var a = edge[0],
- b = edge[1],
- ax = a[0],
- ay = a[1],
- bx = b[0],
- by = b[1],
- t0 = 0,
- t1 = 1,
- dx = bx - ax,
- dy = by - ay,
- r;
-
- r = x0 - ax;
- if (!dx && r > 0) return;
- r /= dx;
- if (dx < 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- } else if (dx > 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- }
-
- r = x1 - ax;
- if (!dx && r < 0) return;
- r /= dx;
- if (dx < 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- } else if (dx > 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- }
-
- r = y0 - ay;
- if (!dy && r > 0) return;
- r /= dy;
- if (dy < 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- } else if (dy > 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- }
-
- r = y1 - ay;
- if (!dy && r < 0) return;
- r /= dy;
- if (dy < 0) {
- if (r > t1) return;
- if (r > t0) t0 = r;
- } else if (dy > 0) {
- if (r < t0) return;
- if (r < t1) t1 = r;
- }
-
- if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?
-
- if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];
- if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];
- return true;
-}
-
-function connectEdge(edge, x0, y0, x1, y1) {
- var v1 = edge[1];
- if (v1) return true;
-
- var v0 = edge[0],
- left = edge.left,
- right = edge.right,
- lx = left[0],
- ly = left[1],
- rx = right[0],
- ry = right[1],
- fx = (lx + rx) / 2,
- fy = (ly + ry) / 2,
- fm,
- fb;
-
- if (ry === ly) {
- if (fx < x0 || fx >= x1) return;
- if (lx > rx) {
- if (!v0) v0 = [fx, y0];
- else if (v0[1] >= y1) return;
- v1 = [fx, y1];
- } else {
- if (!v0) v0 = [fx, y1];
- else if (v0[1] < y0) return;
- v1 = [fx, y0];
- }
- } else {
- fm = (lx - rx) / (ry - ly);
- fb = fy - fm * fx;
- if (fm < -1 || fm > 1) {
- if (lx > rx) {
- if (!v0) v0 = [(y0 - fb) / fm, y0];
- else if (v0[1] >= y1) return;
- v1 = [(y1 - fb) / fm, y1];
- } else {
- if (!v0) v0 = [(y1 - fb) / fm, y1];
- else if (v0[1] < y0) return;
- v1 = [(y0 - fb) / fm, y0];
- }
- } else {
- if (ly < ry) {
- if (!v0) v0 = [x0, fm * x0 + fb];
- else if (v0[0] >= x1) return;
- v1 = [x1, fm * x1 + fb];
- } else {
- if (!v0) v0 = [x1, fm * x1 + fb];
- else if (v0[0] < x0) return;
- v1 = [x0, fm * x0 + fb];
- }
- }
- }
-
- edge[0] = v0;
- edge[1] = v1;
- return true;
-}
-
-export function clipEdges(x0, y0, x1, y1) {
- var i = edges.length,
- edge;
-
- while (i--) {
- if (!connectEdge(edge = edges[i], x0, y0, x1, y1)
- || !clipEdge(edge, x0, y0, x1, y1)
- || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon
- || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {
- delete edges[i];
- }
- }
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/RedBlackTree.js b/swh/web/static/jssources/d3-voronoi/src/RedBlackTree.js
deleted file mode 100644
index 646699eb..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/RedBlackTree.js
+++ /dev/null
@@ -1,237 +0,0 @@
-function RedBlackTree() {
- this._ = null; // root node
-}
-
-export function RedBlackNode(node) {
- node.U = // parent node
- node.C = // color - true for red, false for black
- node.L = // left node
- node.R = // right node
- node.P = // previous node
- node.N = null; // next node
-}
-
-RedBlackTree.prototype = {
- constructor: RedBlackTree,
-
- insert: function(after, node) {
- var parent, grandpa, uncle;
-
- if (after) {
- node.P = after;
- node.N = after.N;
- if (after.N) after.N.P = node;
- after.N = node;
- if (after.R) {
- after = after.R;
- while (after.L) after = after.L;
- after.L = node;
- } else {
- after.R = node;
- }
- parent = after;
- } else if (this._) {
- after = RedBlackFirst(this._);
- node.P = null;
- node.N = after;
- after.P = after.L = node;
- parent = after;
- } else {
- node.P = node.N = null;
- this._ = node;
- parent = null;
- }
- node.L = node.R = null;
- node.U = parent;
- node.C = true;
-
- after = node;
- while (parent && parent.C) {
- grandpa = parent.U;
- if (parent === grandpa.L) {
- uncle = grandpa.R;
- if (uncle && uncle.C) {
- parent.C = uncle.C = false;
- grandpa.C = true;
- after = grandpa;
- } else {
- if (after === parent.R) {
- RedBlackRotateLeft(this, parent);
- after = parent;
- parent = after.U;
- }
- parent.C = false;
- grandpa.C = true;
- RedBlackRotateRight(this, grandpa);
- }
- } else {
- uncle = grandpa.L;
- if (uncle && uncle.C) {
- parent.C = uncle.C = false;
- grandpa.C = true;
- after = grandpa;
- } else {
- if (after === parent.L) {
- RedBlackRotateRight(this, parent);
- after = parent;
- parent = after.U;
- }
- parent.C = false;
- grandpa.C = true;
- RedBlackRotateLeft(this, grandpa);
- }
- }
- parent = after.U;
- }
- this._.C = false;
- },
-
- remove: function(node) {
- if (node.N) node.N.P = node.P;
- if (node.P) node.P.N = node.N;
- node.N = node.P = null;
-
- var parent = node.U,
- sibling,
- left = node.L,
- right = node.R,
- next,
- red;
-
- if (!left) next = right;
- else if (!right) next = left;
- else next = RedBlackFirst(right);
-
- if (parent) {
- if (parent.L === node) parent.L = next;
- else parent.R = next;
- } else {
- this._ = next;
- }
-
- if (left && right) {
- red = next.C;
- next.C = node.C;
- next.L = left;
- left.U = next;
- if (next !== right) {
- parent = next.U;
- next.U = node.U;
- node = next.R;
- parent.L = node;
- next.R = right;
- right.U = next;
- } else {
- next.U = parent;
- parent = next;
- node = next.R;
- }
- } else {
- red = node.C;
- node = next;
- }
-
- if (node) node.U = parent;
- if (red) return;
- if (node && node.C) { node.C = false; return; }
-
- do {
- if (node === this._) break;
- if (node === parent.L) {
- sibling = parent.R;
- if (sibling.C) {
- sibling.C = false;
- parent.C = true;
- RedBlackRotateLeft(this, parent);
- sibling = parent.R;
- }
- if ((sibling.L && sibling.L.C)
- || (sibling.R && sibling.R.C)) {
- if (!sibling.R || !sibling.R.C) {
- sibling.L.C = false;
- sibling.C = true;
- RedBlackRotateRight(this, sibling);
- sibling = parent.R;
- }
- sibling.C = parent.C;
- parent.C = sibling.R.C = false;
- RedBlackRotateLeft(this, parent);
- node = this._;
- break;
- }
- } else {
- sibling = parent.L;
- if (sibling.C) {
- sibling.C = false;
- parent.C = true;
- RedBlackRotateRight(this, parent);
- sibling = parent.L;
- }
- if ((sibling.L && sibling.L.C)
- || (sibling.R && sibling.R.C)) {
- if (!sibling.L || !sibling.L.C) {
- sibling.R.C = false;
- sibling.C = true;
- RedBlackRotateLeft(this, sibling);
- sibling = parent.L;
- }
- sibling.C = parent.C;
- parent.C = sibling.L.C = false;
- RedBlackRotateRight(this, parent);
- node = this._;
- break;
- }
- }
- sibling.C = true;
- node = parent;
- parent = parent.U;
- } while (!node.C);
-
- if (node) node.C = false;
- }
-};
-
-function RedBlackRotateLeft(tree, node) {
- var p = node,
- q = node.R,
- parent = p.U;
-
- if (parent) {
- if (parent.L === p) parent.L = q;
- else parent.R = q;
- } else {
- tree._ = q;
- }
-
- q.U = parent;
- p.U = q;
- p.R = q.L;
- if (p.R) p.R.U = p;
- q.L = p;
-}
-
-function RedBlackRotateRight(tree, node) {
- var p = node,
- q = node.L,
- parent = p.U;
-
- if (parent) {
- if (parent.L === p) parent.L = q;
- else parent.R = q;
- } else {
- tree._ = q;
- }
-
- q.U = parent;
- p.U = q;
- p.L = q.R;
- if (p.L) p.L.U = p;
- q.R = p;
-}
-
-function RedBlackFirst(node) {
- while (node.L) node = node.L;
- return node;
-}
-
-export default RedBlackTree;
diff --git a/swh/web/static/jssources/d3-voronoi/src/constant.js b/swh/web/static/jssources/d3-voronoi/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/index.js b/swh/web/static/jssources/d3-voronoi/src/index.js
deleted file mode 100644
index b421a643..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export {default as voronoi} from "./voronoi";
diff --git a/swh/web/static/jssources/d3-voronoi/src/point.js b/swh/web/static/jssources/d3-voronoi/src/point.js
deleted file mode 100644
index f3b93024..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/point.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export function x(d) {
- return d[0];
-}
-
-export function y(d) {
- return d[1];
-}
diff --git a/swh/web/static/jssources/d3-voronoi/src/voronoi.js b/swh/web/static/jssources/d3-voronoi/src/voronoi.js
deleted file mode 100644
index b91bfe10..00000000
--- a/swh/web/static/jssources/d3-voronoi/src/voronoi.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import constant from "./constant";
-import {x as pointX, y as pointY} from "./point";
-import Diagram, {epsilon} from "./Diagram";
-
-export default function() {
- var x = pointX,
- y = pointY,
- extent = null;
-
- function voronoi(data) {
- return new Diagram(data.map(function(d, i) {
- var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];
- s.index = i;
- s.data = d;
- return s;
- }), extent);
- }
-
- voronoi.polygons = function(data) {
- return voronoi(data).polygons();
- };
-
- voronoi.links = function(data) {
- return voronoi(data).links();
- };
-
- voronoi.triangles = function(data) {
- return voronoi(data).triangles();
- };
-
- voronoi.x = function(_) {
- return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), voronoi) : x;
- };
-
- voronoi.y = function(_) {
- return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), voronoi) : y;
- };
-
- voronoi.extent = function(_) {
- return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];
- };
-
- voronoi.size = function(_) {
- return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];
- };
-
- return voronoi;
-}
diff --git a/swh/web/static/jssources/d3-zoom/LICENSE.txt b/swh/web/static/jssources/d3-zoom/LICENSE.txt
deleted file mode 100644
index 721bd22e..00000000
--- a/swh/web/static/jssources/d3-zoom/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2016 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3-zoom/src/constant.js b/swh/web/static/jssources/d3-zoom/src/constant.js
deleted file mode 100644
index b7d42e71..00000000
--- a/swh/web/static/jssources/d3-zoom/src/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function(x) {
- return function() {
- return x;
- };
-}
diff --git a/swh/web/static/jssources/d3-zoom/src/event.js b/swh/web/static/jssources/d3-zoom/src/event.js
deleted file mode 100644
index 9e6cac0c..00000000
--- a/swh/web/static/jssources/d3-zoom/src/event.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function ZoomEvent(target, type, transform) {
- this.target = target;
- this.type = type;
- this.transform = transform;
-}
diff --git a/swh/web/static/jssources/d3-zoom/src/index.js b/swh/web/static/jssources/d3-zoom/src/index.js
deleted file mode 100644
index 5adb2e20..00000000
--- a/swh/web/static/jssources/d3-zoom/src/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export {default as zoom} from "./zoom";
-export {default as zoomTransform, identity as zoomIdentity} from "./transform";
diff --git a/swh/web/static/jssources/d3-zoom/src/noevent.js b/swh/web/static/jssources/d3-zoom/src/noevent.js
deleted file mode 100644
index ed25745b..00000000
--- a/swh/web/static/jssources/d3-zoom/src/noevent.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import {event} from "d3-selection";
-
-export function nopropagation() {
- event.stopImmediatePropagation();
-}
-
-export default function() {
- event.preventDefault();
- event.stopImmediatePropagation();
-}
diff --git a/swh/web/static/jssources/d3-zoom/src/transform.js b/swh/web/static/jssources/d3-zoom/src/transform.js
deleted file mode 100644
index 1d9d823a..00000000
--- a/swh/web/static/jssources/d3-zoom/src/transform.js
+++ /dev/null
@@ -1,50 +0,0 @@
-export function Transform(k, x, y) {
- this.k = k;
- this.x = x;
- this.y = y;
-}
-
-Transform.prototype = {
- constructor: Transform,
- scale: function(k) {
- return k === 1 ? this : new Transform(this.k * k, this.x, this.y);
- },
- translate: function(x, y) {
- return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);
- },
- apply: function(point) {
- return [point[0] * this.k + this.x, point[1] * this.k + this.y];
- },
- applyX: function(x) {
- return x * this.k + this.x;
- },
- applyY: function(y) {
- return y * this.k + this.y;
- },
- invert: function(location) {
- return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
- },
- invertX: function(x) {
- return (x - this.x) / this.k;
- },
- invertY: function(y) {
- return (y - this.y) / this.k;
- },
- rescaleX: function(x) {
- return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));
- },
- rescaleY: function(y) {
- return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));
- },
- toString: function() {
- return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
- }
-};
-
-export var identity = new Transform(1, 0, 0);
-
-transform.prototype = Transform.prototype;
-
-export default function transform(node) {
- return node.__zoom || identity;
-}
diff --git a/swh/web/static/jssources/d3-zoom/src/zoom.js b/swh/web/static/jssources/d3-zoom/src/zoom.js
deleted file mode 100644
index 95c5e846..00000000
--- a/swh/web/static/jssources/d3-zoom/src/zoom.js
+++ /dev/null
@@ -1,425 +0,0 @@
-import {dispatch} from "d3-dispatch";
-import {dragDisable, dragEnable} from "d3-drag";
-import {interpolateZoom} from "d3-interpolate";
-import {event, customEvent, select, mouse, touch} from "d3-selection";
-import {interrupt} from "d3-transition";
-import constant from "./constant";
-import ZoomEvent from "./event";
-import {Transform, identity} from "./transform";
-import noevent, {nopropagation} from "./noevent";
-
-// Ignore right-click, since that should open the context menu.
-function defaultFilter() {
- return !event.button;
-}
-
-function defaultExtent() {
- var e = this, w, h;
- if (e instanceof SVGElement) {
- e = e.ownerSVGElement || e;
- w = e.width.baseVal.value;
- h = e.height.baseVal.value;
- } else {
- w = e.clientWidth;
- h = e.clientHeight;
- }
- return [[0, 0], [w, h]];
-}
-
-function defaultTransform() {
- return this.__zoom || identity;
-}
-
-function defaultWheelDelta() {
- return -event.deltaY * (event.deltaMode ? 120 : 1) / 500;
-}
-
-function defaultTouchable() {
- return "ontouchstart" in this;
-}
-
-function defaultConstrain(transform, extent, translateExtent) {
- var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],
- dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],
- dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],
- dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];
- return transform.translate(
- dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),
- dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)
- );
-}
-
-export default function() {
- var filter = defaultFilter,
- extent = defaultExtent,
- constrain = defaultConstrain,
- wheelDelta = defaultWheelDelta,
- touchable = defaultTouchable,
- scaleExtent = [0, Infinity],
- translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],
- duration = 250,
- interpolate = interpolateZoom,
- gestures = [],
- listeners = dispatch("start", "zoom", "end"),
- touchstarting,
- touchending,
- touchDelay = 500,
- wheelDelay = 150,
- clickDistance2 = 0;
-
- function zoom(selection) {
- selection
- .property("__zoom", defaultTransform)
- .on("wheel.zoom", wheeled)
- .on("mousedown.zoom", mousedowned)
- .on("dblclick.zoom", dblclicked)
- .filter(touchable)
- .on("touchstart.zoom", touchstarted)
- .on("touchmove.zoom", touchmoved)
- .on("touchend.zoom touchcancel.zoom", touchended)
- .style("touch-action", "none")
- .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
- }
-
- zoom.transform = function(collection, transform) {
- var selection = collection.selection ? collection.selection() : collection;
- selection.property("__zoom", defaultTransform);
- if (collection !== selection) {
- schedule(collection, transform);
- } else {
- selection.interrupt().each(function() {
- gesture(this, arguments)
- .start()
- .zoom(null, typeof transform === "function" ? transform.apply(this, arguments) : transform)
- .end();
- });
- }
- };
-
- zoom.scaleBy = function(selection, k) {
- zoom.scaleTo(selection, function() {
- var k0 = this.__zoom.k,
- k1 = typeof k === "function" ? k.apply(this, arguments) : k;
- return k0 * k1;
- });
- };
-
- zoom.scaleTo = function(selection, k) {
- zoom.transform(selection, function() {
- var e = extent.apply(this, arguments),
- t0 = this.__zoom,
- p0 = centroid(e),
- p1 = t0.invert(p0),
- k1 = typeof k === "function" ? k.apply(this, arguments) : k;
- return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);
- });
- };
-
- zoom.translateBy = function(selection, x, y) {
- zoom.transform(selection, function() {
- return constrain(this.__zoom.translate(
- typeof x === "function" ? x.apply(this, arguments) : x,
- typeof y === "function" ? y.apply(this, arguments) : y
- ), extent.apply(this, arguments), translateExtent);
- });
- };
-
- zoom.translateTo = function(selection, x, y) {
- zoom.transform(selection, function() {
- var e = extent.apply(this, arguments),
- t = this.__zoom,
- p = centroid(e);
- return constrain(identity.translate(p[0], p[1]).scale(t.k).translate(
- typeof x === "function" ? -x.apply(this, arguments) : -x,
- typeof y === "function" ? -y.apply(this, arguments) : -y
- ), e, translateExtent);
- });
- };
-
- function scale(transform, k) {
- k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));
- return k === transform.k ? transform : new Transform(k, transform.x, transform.y);
- }
-
- function translate(transform, p0, p1) {
- var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;
- return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);
- }
-
- function centroid(extent) {
- return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];
- }
-
- function schedule(transition, transform, center) {
- transition
- .on("start.zoom", function() { gesture(this, arguments).start(); })
- .on("interrupt.zoom end.zoom", function() { gesture(this, arguments).end(); })
- .tween("zoom", function() {
- var that = this,
- args = arguments,
- g = gesture(that, args),
- e = extent.apply(that, args),
- p = center || centroid(e),
- w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),
- a = that.__zoom,
- b = typeof transform === "function" ? transform.apply(that, args) : transform,
- i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));
- return function(t) {
- if (t === 1) t = b; // Avoid rounding error on end.
- else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }
- g.zoom(null, t);
- };
- });
- }
-
- function gesture(that, args) {
- for (var i = 0, n = gestures.length, g; i < n; ++i) {
- if ((g = gestures[i]).that === that) {
- return g;
- }
- }
- return new Gesture(that, args);
- }
-
- function Gesture(that, args) {
- this.that = that;
- this.args = args;
- this.index = -1;
- this.active = 0;
- this.extent = extent.apply(that, args);
- }
-
- Gesture.prototype = {
- start: function() {
- if (++this.active === 1) {
- this.index = gestures.push(this) - 1;
- this.emit("start");
- }
- return this;
- },
- zoom: function(key, transform) {
- if (this.mouse && key !== "mouse") this.mouse[1] = transform.invert(this.mouse[0]);
- if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]);
- if (this.touch1 && key !== "touch") this.touch1[1] = transform.invert(this.touch1[0]);
- this.that.__zoom = transform;
- this.emit("zoom");
- return this;
- },
- end: function() {
- if (--this.active === 0) {
- gestures.splice(this.index, 1);
- this.index = -1;
- this.emit("end");
- }
- return this;
- },
- emit: function(type) {
- customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);
- }
- };
-
- function wheeled() {
- if (!filter.apply(this, arguments)) return;
- var g = gesture(this, arguments),
- t = this.__zoom,
- k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),
- p = mouse(this);
-
- // If the mouse is in the same location as before, reuse it.
- // If there were recent wheel events, reset the wheel idle timeout.
- if (g.wheel) {
- if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {
- g.mouse[1] = t.invert(g.mouse[0] = p);
- }
- clearTimeout(g.wheel);
- }
-
- // If this wheel event won’t trigger a transform change, ignore it.
- else if (t.k === k) return;
-
- // Otherwise, capture the mouse point and location at the start.
- else {
- g.mouse = [p, t.invert(p)];
- interrupt(this);
- g.start();
- }
-
- noevent();
- g.wheel = setTimeout(wheelidled, wheelDelay);
- g.zoom("mouse", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));
-
- function wheelidled() {
- g.wheel = null;
- g.end();
- }
- }
-
- function mousedowned() {
- if (touchending || !filter.apply(this, arguments)) return;
- var g = gesture(this, arguments),
- v = select(event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true),
- p = mouse(this),
- x0 = event.clientX,
- y0 = event.clientY;
-
- dragDisable(event.view);
- nopropagation();
- g.mouse = [p, this.__zoom.invert(p)];
- interrupt(this);
- g.start();
-
- function mousemoved() {
- noevent();
- if (!g.moved) {
- var dx = event.clientX - x0, dy = event.clientY - y0;
- g.moved = dx * dx + dy * dy > clickDistance2;
- }
- g.zoom("mouse", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));
- }
-
- function mouseupped() {
- v.on("mousemove.zoom mouseup.zoom", null);
- dragEnable(event.view, g.moved);
- noevent();
- g.end();
- }
- }
-
- function dblclicked() {
- if (!filter.apply(this, arguments)) return;
- var t0 = this.__zoom,
- p0 = mouse(this),
- p1 = t0.invert(p0),
- k1 = t0.k * (event.shiftKey ? 0.5 : 2),
- t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);
-
- noevent();
- if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);
- else select(this).call(zoom.transform, t1);
- }
-
- function touchstarted() {
- if (!filter.apply(this, arguments)) return;
- var g = gesture(this, arguments),
- touches = event.changedTouches,
- started,
- n = touches.length, i, t, p;
-
- nopropagation();
- for (i = 0; i < n; ++i) {
- t = touches[i], p = touch(this, touches, t.identifier);
- p = [p, this.__zoom.invert(p), t.identifier];
- if (!g.touch0) g.touch0 = p, started = true;
- else if (!g.touch1) g.touch1 = p;
- }
-
- // If this is a dbltap, reroute to the (optional) dblclick.zoom handler.
- if (touchstarting) {
- touchstarting = clearTimeout(touchstarting);
- if (!g.touch1) {
- g.end();
- p = select(this).on("dblclick.zoom");
- if (p) p.apply(this, arguments);
- return;
- }
- }
-
- if (started) {
- touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);
- interrupt(this);
- g.start();
- }
- }
-
- function touchmoved() {
- var g = gesture(this, arguments),
- touches = event.changedTouches,
- n = touches.length, i, t, p, l;
-
- noevent();
- if (touchstarting) touchstarting = clearTimeout(touchstarting);
- for (i = 0; i < n; ++i) {
- t = touches[i], p = touch(this, touches, t.identifier);
- if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;
- else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;
- }
- t = g.that.__zoom;
- if (g.touch1) {
- var p0 = g.touch0[0], l0 = g.touch0[1],
- p1 = g.touch1[0], l1 = g.touch1[1],
- dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,
- dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;
- t = scale(t, Math.sqrt(dp / dl));
- p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];
- l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];
- }
- else if (g.touch0) p = g.touch0[0], l = g.touch0[1];
- else return;
- g.zoom("touch", constrain(translate(t, p, l), g.extent, translateExtent));
- }
-
- function touchended() {
- var g = gesture(this, arguments),
- touches = event.changedTouches,
- n = touches.length, i, t;
-
- nopropagation();
- if (touchending) clearTimeout(touchending);
- touchending = setTimeout(function() { touchending = null; }, touchDelay);
- for (i = 0; i < n; ++i) {
- t = touches[i];
- if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;
- else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;
- }
- if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;
- if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);
- else g.end();
- }
-
- zoom.wheelDelta = function(_) {
- return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : constant(+_), zoom) : wheelDelta;
- };
-
- zoom.filter = function(_) {
- return arguments.length ? (filter = typeof _ === "function" ? _ : constant(!!_), zoom) : filter;
- };
-
- zoom.touchable = function(_) {
- return arguments.length ? (touchable = typeof _ === "function" ? _ : constant(!!_), zoom) : touchable;
- };
-
- zoom.extent = function(_) {
- return arguments.length ? (extent = typeof _ === "function" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;
- };
-
- zoom.scaleExtent = function(_) {
- return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];
- };
-
- zoom.translateExtent = function(_) {
- return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];
- };
-
- zoom.constrain = function(_) {
- return arguments.length ? (constrain = _, zoom) : constrain;
- };
-
- zoom.duration = function(_) {
- return arguments.length ? (duration = +_, zoom) : duration;
- };
-
- zoom.interpolate = function(_) {
- return arguments.length ? (interpolate = _, zoom) : interpolate;
- };
-
- zoom.on = function() {
- var value = listeners.on.apply(listeners, arguments);
- return value === listeners ? zoom : value;
- };
-
- zoom.clickDistance = function(_) {
- return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);
- };
-
- return zoom;
-}
diff --git a/swh/web/static/jssources/d3/LICENSE.txt b/swh/web/static/jssources/d3/LICENSE.txt
deleted file mode 100644
index 1d9d875e..00000000
--- a/swh/web/static/jssources/d3/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright 2010-2017 Mike Bostock
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/swh/web/static/jssources/d3/index.js b/swh/web/static/jssources/d3/index.js
deleted file mode 100644
index a2cbf6f9..00000000
--- a/swh/web/static/jssources/d3/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-export {version} from "./dist/package";
-export * from "d3-array";
-export * from "d3-axis";
-export * from "d3-brush";
-export * from "d3-chord";
-export * from "d3-collection";
-export * from "d3-color";
-export * from "d3-contour";
-export * from "d3-dispatch";
-export * from "d3-drag";
-export * from "d3-dsv";
-export * from "d3-ease";
-export * from "d3-fetch";
-export * from "d3-force";
-export * from "d3-format";
-export * from "d3-geo";
-export * from "d3-hierarchy";
-export * from "d3-interpolate";
-export * from "d3-path";
-export * from "d3-polygon";
-export * from "d3-quadtree";
-export * from "d3-random";
-export * from "d3-scale";
-export * from "d3-scale-chromatic";
-export * from "d3-selection";
-export * from "d3-shape";
-export * from "d3-time";
-export * from "d3-time-format";
-export * from "d3-timer";
-export * from "d3-transition";
-export * from "d3-voronoi";
-export * from "d3-zoom";
diff --git a/swh/web/static/jssources/datatables.net-bs4/js/dataTables.bootstrap4.js b/swh/web/static/jssources/datatables.net-bs4/js/dataTables.bootstrap4.js
deleted file mode 100644
index f2d2ad58..00000000
--- a/swh/web/static/jssources/datatables.net-bs4/js/dataTables.bootstrap4.js
+++ /dev/null
@@ -1,184 +0,0 @@
-/*! DataTables Bootstrap 4 integration
- * ©2011-2017 SpryMedia Ltd - datatables.net/license
- */
-
-/**
- * DataTables integration for Bootstrap 4. This requires Bootstrap 4 and
- * DataTables 1.10 or newer.
- *
- * This file sets the defaults and adds options to DataTables to style its
- * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
- * for further information.
- */
-(function( factory ){
- if ( typeof define === 'function' && define.amd ) {
- // AMD
- define( ['jquery', 'datatables.net'], function ( $ ) {
- return factory( $, window, document );
- } );
- }
- else if ( typeof exports === 'object' ) {
- // CommonJS
- module.exports = function (root, $) {
- if ( ! root ) {
- root = window;
- }
-
- if ( ! $ || ! $.fn.dataTable ) {
- // Require DataTables, which attaches to jQuery, including
- // jQuery if needed and have a $ property so we can access the
- // jQuery object that is used
- $ = require('datatables.net')(root, $).$;
- }
-
- return factory( $, root, root.document );
- };
- }
- else {
- // Browser
- factory( jQuery, window, document );
- }
-}(function( $, window, document, undefined ) {
-'use strict';
-var DataTable = $.fn.dataTable;
-
-
-/* Set the defaults for DataTables initialisation */
-$.extend( true, DataTable.defaults, {
- dom:
- "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
- "<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
- renderer: 'bootstrap'
-} );
-
-
-/* Default class modification */
-$.extend( DataTable.ext.classes, {
- sWrapper: "dataTables_wrapper dt-bootstrap4",
- sFilterInput: "form-control form-control-sm",
- sLengthSelect: "custom-select custom-select-sm form-control form-control-sm",
- sProcessing: "dataTables_processing card",
- sPageButton: "paginate_button page-item"
-} );
-
-
-/* Bootstrap paging button renderer */
-DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
- var api = new DataTable.Api( settings );
- var classes = settings.oClasses;
- var lang = settings.oLanguage.oPaginate;
- var aria = settings.oLanguage.oAria.paginate || {};
- var btnDisplay, btnClass, counter=0;
-
- var attach = function( container, buttons ) {
- var i, ien, node, button;
- var clickHandler = function ( e ) {
- e.preventDefault();
- if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {
- api.page( e.data.action ).draw( 'page' );
- }
- };
-
- for ( i=0, ien=buttons.length ; i 0 ?
- '' : ' disabled');
- break;
-
- case 'previous':
- btnDisplay = lang.sPrevious;
- btnClass = button + (page > 0 ?
- '' : ' disabled');
- break;
-
- case 'next':
- btnDisplay = lang.sNext;
- btnClass = button + (page < pages-1 ?
- '' : ' disabled');
- break;
-
- case 'last':
- btnDisplay = lang.sLast;
- btnClass = button + (page < pages-1 ?
- '' : ' disabled');
- break;
-
- default:
- btnDisplay = button + 1;
- btnClass = page === button ?
- 'active' : '';
- break;
- }
-
- if ( btnDisplay ) {
- node = $('', {
- 'class': classes.sPageButton+' '+btnClass,
- 'id': idx === 0 && typeof button === 'string' ?
- settings.sTableId +'_'+ button :
- null
- } )
- .append( $('', {
- 'href': '#',
- 'aria-controls': settings.sTableId,
- 'aria-label': aria[ button ],
- 'data-dt-idx': counter,
- 'tabindex': settings.iTabIndex,
- 'class': 'page-link'
- } )
- .html( btnDisplay )
- )
- .appendTo( container );
-
- settings.oApi._fnBindAction(
- node, {action: button}, clickHandler
- );
-
- counter++;
- }
- }
- }
- };
-
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame.
- var activeEl;
-
- try {
- // Because this approach is destroying and recreating the paging
- // elements, focus is lost on the select button which is bad for
- // accessibility. So we want to restore focus once the draw has
- // completed
- activeEl = $(host).find(document.activeElement).data('dt-idx');
- }
- catch (e) {}
-
- attach(
- $(host).empty().html('').children('ul'),
- buttons
- );
-
- if ( activeEl !== undefined ) {
- $(host).find( '[data-dt-idx='+activeEl+']' ).focus();
- }
-};
-
-
-return DataTable;
-}));
diff --git a/swh/web/static/jssources/datatables.net/License.txt b/swh/web/static/jssources/datatables.net/License.txt
deleted file mode 100644
index 379a7e7c..00000000
--- a/swh/web/static/jssources/datatables.net/License.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright SpryMedia Limited and other contributors
-http://datatables.net
-
-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.
\ No newline at end of file
diff --git a/swh/web/static/jssources/datatables.net/js/jquery.dataTables.js b/swh/web/static/jssources/datatables.net/js/jquery.dataTables.js
deleted file mode 100644
index 3db866f5..00000000
--- a/swh/web/static/jssources/datatables.net/js/jquery.dataTables.js
+++ /dev/null
@@ -1,15296 +0,0 @@
-/*! DataTables 1.10.19
- * ©2008-2018 SpryMedia Ltd - datatables.net/license
- */
-
-/**
- * @summary DataTables
- * @description Paginate, search and order HTML tables
- * @version 1.10.19
- * @file jquery.dataTables.js
- * @author SpryMedia Ltd
- * @contact www.datatables.net
- * @copyright Copyright 2008-2018 SpryMedia Ltd.
- *
- * This source file is free software, available under the following license:
- * MIT license - http://datatables.net/license
- *
- * This source file is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
- *
- * For details please refer to: http://www.datatables.net
- */
-
-/*jslint evil: true, undef: true, browser: true */
-/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/
-
-(function( factory ) {
- "use strict";
-
- if ( typeof define === 'function' && define.amd ) {
- // AMD
- define( ['jquery'], function ( $ ) {
- return factory( $, window, document );
- } );
- }
- else if ( typeof exports === 'object' ) {
- // CommonJS
- module.exports = function (root, $) {
- if ( ! root ) {
- // CommonJS environments without a window global must pass a
- // root. This will give an error otherwise
- root = window;
- }
-
- if ( ! $ ) {
- $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
- require('jquery') :
- require('jquery')( root );
- }
-
- return factory( $, root, root.document );
- };
- }
- else {
- // Browser
- factory( jQuery, window, document );
- }
-}
-(function( $, window, document, undefined ) {
- "use strict";
-
- /**
- * DataTables is a plug-in for the jQuery Javascript library. It is a highly
- * flexible tool, based upon the foundations of progressive enhancement,
- * which will add advanced interaction controls to any HTML table. For a
- * full list of features please refer to
- * [DataTables.net](href="http://datatables.net).
- *
- * Note that the `DataTable` object is not a global variable but is aliased
- * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
- * be accessed.
- *
- * @class
- * @param {object} [init={}] Configuration object for DataTables. Options
- * are defined by {@link DataTable.defaults}
- * @requires jQuery 1.7+
- *
- * @example
- * // Basic initialisation
- * $(document).ready( function {
- * $('#example').dataTable();
- * } );
- *
- * @example
- * // Initialisation with configuration options - in this case, disable
- * // pagination and sorting.
- * $(document).ready( function {
- * $('#example').dataTable( {
- * "paginate": false,
- * "sort": false
- * } );
- * } );
- */
- var DataTable = function ( options )
- {
- /**
- * Perform a jQuery selector action on the table's TR elements (from the tbody) and
- * return the resulting jQuery object.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
- * criterion ("applied") or all TR elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {object} jQuery object, filtered by the given selector.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Highlight every second row
- * oTable.$('tr:odd').css('backgroundColor', 'blue');
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to rows with 'Webkit' in them, add a background colour and then
- * // remove the filter, thus highlighting the 'Webkit' rows only.
- * oTable.fnFilter('Webkit');
- * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
- * oTable.fnFilter('');
- * } );
- */
- this.$ = function ( sSelector, oOpts )
- {
- return this.api(true).$( sSelector, oOpts );
- };
-
-
- /**
- * Almost identical to $ in operation, but in this case returns the data for the matched
- * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
- * rather than any descendants, so the data can be obtained for the row/cell. If matching
- * rows are found, the data returned is the original data array/object that was used to
- * create the row (or a generated array if from a DOM source).
- *
- * This method is often useful in-combination with $ where both functions are given the
- * same parameters and the array indexes will match identically.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select elements that meet the current filter
- * criterion ("applied") or all elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the data in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {array} Data for the matched elements. If any elements, as a result of the
- * selector, were not TR, TD or TH elements in the DataTable, they will have a null
- * entry in the array.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the data from the first row in the table
- * var data = oTable._('tr:first');
- *
- * // Do something useful with the data
- * alert( "First cell is: "+data[0] );
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to 'Webkit' and get all data for
- * oTable.fnFilter('Webkit');
- * var data = oTable._('tr', {"search": "applied"});
- *
- * // Do something with the data
- * alert( data.length+" rows matched the search" );
- * } );
- */
- this._ = function ( sSelector, oOpts )
- {
- return this.api(true).rows( sSelector, oOpts ).data();
- };
-
-
- /**
- * Create a DataTables Api instance, with the currently selected tables for
- * the Api's context.
- * @param {boolean} [traditional=false] Set the API instance's context to be
- * only the table referred to by the `DataTable.ext.iApiIndex` option, as was
- * used in the API presented by DataTables 1.9- (i.e. the traditional mode),
- * or if all tables captured in the jQuery object should be used.
- * @return {DataTables.Api}
- */
- this.api = function ( traditional )
- {
- return traditional ?
- new _Api(
- _fnSettingsFromNode( this[ _ext.iApiIndex ] )
- ) :
- new _Api( this );
- };
-
-
- /**
- * Add a single new row or multiple rows of data to the table. Please note
- * that this is suitable for client-side processing only - if you are using
- * server-side processing (i.e. "bServerSide": true), then to add data, you
- * must add it to the data source, i.e. the server-side, through an Ajax call.
- * @param {array|object} data The data to be added to the table. This can be:
- *
- * 1D array of data - add a single row with the data provided
- * 2D array of arrays - add multiple rows in a single call
- * object - data object when using mData
- * array of objects - multiple data objects when using mData
- *
- * @param {bool} [redraw=true] redraw the table or not
- * @returns {array} An array of integers, representing the list of indexes in
- * aoData ({@link DataTable.models.oSettings}) that have been added to
- * the table.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * // Global var for counter
- * var giCount = 2;
- *
- * $(document).ready(function() {
- * $('#example').dataTable();
- * } );
- *
- * function fnClickAddRow() {
- * $('#example').dataTable().fnAddData( [
- * giCount+".1",
- * giCount+".2",
- * giCount+".3",
- * giCount+".4" ]
- * );
- *
- * giCount++;
- * }
- */
- this.fnAddData = function( data, redraw )
- {
- var api = this.api( true );
-
- /* Check if we want to add multiple rows or not */
- var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
- api.rows.add( data ) :
- api.row.add( data );
-
- if ( redraw === undefined || redraw ) {
- api.draw();
- }
-
- return rows.flatten().toArray();
- };
-
-
- /**
- * This function will make DataTables recalculate the column sizes, based on the data
- * contained in the table and the sizes applied to the columns (in the DOM, CSS or
- * through the sWidth parameter). This can be useful when the width of the table's
- * parent element changes (for example a window resize).
- * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false
- * } );
- *
- * $(window).on('resize', function () {
- * oTable.fnAdjustColumnSizing();
- * } );
- * } );
- */
- this.fnAdjustColumnSizing = function ( bRedraw )
- {
- var api = this.api( true ).columns.adjust();
- var settings = api.settings()[0];
- var scroll = settings.oScroll;
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw( false );
- }
- else if ( scroll.sX !== "" || scroll.sY !== "" ) {
- /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
- _fnScrollDraw( settings );
- }
- };
-
-
- /**
- * Quickly and simply clear a table
- * @param {bool} [bRedraw=true] redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
- * oTable.fnClearTable();
- * } );
- */
- this.fnClearTable = function( bRedraw )
- {
- var api = this.api( true ).clear();
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw();
- }
- };
-
-
- /**
- * The exact opposite of 'opening' a row, this function will close any rows which
- * are currently 'open'.
- * @param {node} nTr the table row to 'close'
- * @returns {int} 0 on success, or 1 if failed (can't find the row)
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnClose = function( nTr )
- {
- this.api( true ).row( nTr ).child.hide();
- };
-
-
- /**
- * Remove a row for the table
- * @param {mixed} target The index of the row from aoData to be deleted, or
- * the TR element you want to delete
- * @param {function|null} [callBack] Callback function
- * @param {bool} [redraw=true] Redraw the table or not
- * @returns {array} The row that was deleted
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately remove the first row
- * oTable.fnDeleteRow( 0 );
- * } );
- */
- this.fnDeleteRow = function( target, callback, redraw )
- {
- var api = this.api( true );
- var rows = api.rows( target );
- var settings = rows.settings()[0];
- var data = settings.aoData[ rows[0][0] ];
-
- rows.remove();
-
- if ( callback ) {
- callback.call( this, settings, data );
- }
-
- if ( redraw === undefined || redraw ) {
- api.draw();
- }
-
- return data;
- };
-
-
- /**
- * Restore the table to it's original state in the DOM by removing all of DataTables
- * enhancements, alterations to the DOM structure of the table and event listeners.
- * @param {boolean} [remove=false] Completely remove the table from the DOM
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * // This example is fairly pointless in reality, but shows how fnDestroy can be used
- * var oTable = $('#example').dataTable();
- * oTable.fnDestroy();
- * } );
- */
- this.fnDestroy = function ( remove )
- {
- this.api( true ).destroy( remove );
- };
-
-
- /**
- * Redraw the table
- * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
- * oTable.fnDraw();
- * } );
- */
- this.fnDraw = function( complete )
- {
- // Note that this isn't an exact match to the old call to _fnDraw - it takes
- // into account the new data, but can hold position.
- this.api( true ).draw( complete );
- };
-
-
- /**
- * Filter the input based on data
- * @param {string} sInput String to filter the table on
- * @param {int|null} [iColumn] Column to limit filtering to
- * @param {bool} [bRegex=false] Treat as regular expression or not
- * @param {bool} [bSmart=true] Perform smart filtering or not
- * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
- * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sometime later - filter...
- * oTable.fnFilter( 'test string' );
- * } );
- */
- this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
- {
- var api = this.api( true );
-
- if ( iColumn === null || iColumn === undefined ) {
- api.search( sInput, bRegex, bSmart, bCaseInsensitive );
- }
- else {
- api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
- }
-
- api.draw();
- };
-
-
- /**
- * Get the data for the whole table, an individual row or an individual cell based on the
- * provided parameters.
- * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
- * a TR node then the data source for the whole row will be returned. If given as a
- * TD/TH cell node then iCol will be automatically calculated and the data for the
- * cell returned. If given as an integer, then this is treated as the aoData internal
- * data index for the row (see fnGetPosition) and the data for that row used.
- * @param {int} [col] Optional column index that you want the data of.
- * @returns {array|object|string} If mRow is undefined, then the data for all rows is
- * returned. If mRow is defined, just data for that row, and is iCol is
- * defined, only data for the designated cell is returned.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * // Row data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('tr').click( function () {
- * var data = oTable.fnGetData( this );
- * // ... do something with the array / object of data for the row
- * } );
- * } );
- *
- * @example
- * // Individual cell data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('td').click( function () {
- * var sData = oTable.fnGetData( this );
- * alert( 'The cell clicked on had the value of '+sData );
- * } );
- * } );
- */
- this.fnGetData = function( src, col )
- {
- var api = this.api( true );
-
- if ( src !== undefined ) {
- var type = src.nodeName ? src.nodeName.toLowerCase() : '';
-
- return col !== undefined || type == 'td' || type == 'th' ?
- api.cell( src, col ).data() :
- api.row( src ).data() || null;
- }
-
- return api.data().toArray();
- };
-
-
- /**
- * Get an array of the TR nodes that are used in the table's body. Note that you will
- * typically want to use the '$' API method in preference to this as it is more
- * flexible.
- * @param {int} [iRow] Optional row index for the TR element you want
- * @returns {array|node} If iRow is undefined, returns an array of all TR elements
- * in the table's body, or iRow is defined, just the TR element requested.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the nodes from the table
- * var nNodes = oTable.fnGetNodes( );
- * } );
- */
- this.fnGetNodes = function( iRow )
- {
- var api = this.api( true );
-
- return iRow !== undefined ?
- api.row( iRow ).node() :
- api.rows().nodes().flatten().toArray();
- };
-
-
- /**
- * Get the array indexes of a particular cell from it's DOM element
- * and column index including hidden columns
- * @param {node} node this can either be a TR, TD or TH in the table's body
- * @returns {int} If nNode is given as a TR, then a single index is returned, or
- * if given as a cell, an array of [row index, column index (visible),
- * column index (all)] is given.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * $('#example tbody td').click( function () {
- * // Get the position of the current data from the node
- * var aPos = oTable.fnGetPosition( this );
- *
- * // Get the data array for this row
- * var aData = oTable.fnGetData( aPos[0] );
- *
- * // Update the data array and return the value
- * aData[ aPos[1] ] = 'clicked';
- * this.innerHTML = 'clicked';
- * } );
- *
- * // Init DataTables
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnGetPosition = function( node )
- {
- var api = this.api( true );
- var nodeName = node.nodeName.toUpperCase();
-
- if ( nodeName == 'TR' ) {
- return api.row( node ).index();
- }
- else if ( nodeName == 'TD' || nodeName == 'TH' ) {
- var cell = api.cell( node ).index();
-
- return [
- cell.row,
- cell.columnVisible,
- cell.column
- ];
- }
- return null;
- };
-
-
- /**
- * Check to see if a row is 'open' or not.
- * @param {node} nTr the table row to check
- * @returns {boolean} true if the row is currently open, false otherwise
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnIsOpen = function( nTr )
- {
- return this.api( true ).row( nTr ).child.isShown();
- };
-
-
- /**
- * This function will place a new row directly after a row which is currently
- * on display on the page, with the HTML contents that is passed into the
- * function. This can be used, for example, to ask for confirmation that a
- * particular record should be deleted.
- * @param {node} nTr The table row to 'open'
- * @param {string|node|jQuery} mHtml The HTML to put into the row
- * @param {string} sClass Class to give the new TD cell
- * @returns {node} The row opened. Note that if the table row passed in as the
- * first parameter, is not found in the table, this method will silently
- * return.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnOpen = function( nTr, mHtml, sClass )
- {
- return this.api( true )
- .row( nTr )
- .child( mHtml, sClass )
- .show()
- .child()[0];
- };
-
-
- /**
- * Change the pagination - provides the internal logic for pagination in a simple API
- * function. With this function you can have a DataTables table go to the next,
- * previous, first or last pages.
- * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
- * or page number to jump to (integer), note that page 0 is the first page.
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnPageChange( 'next' );
- * } );
- */
- this.fnPageChange = function ( mAction, bRedraw )
- {
- var api = this.api( true ).page( mAction );
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw(false);
- }
- };
-
-
- /**
- * Show a particular column
- * @param {int} iCol The column whose display should be changed
- * @param {bool} bShow Show (true) or hide (false) the column
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Hide the second column after initialisation
- * oTable.fnSetColumnVis( 1, false );
- * } );
- */
- this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
- {
- var api = this.api( true ).column( iCol ).visible( bShow );
-
- if ( bRedraw === undefined || bRedraw ) {
- api.columns.adjust().draw();
- }
- };
-
-
- /**
- * Get the settings for a particular table for external manipulation
- * @returns {object} DataTables settings object. See
- * {@link DataTable.models.oSettings}
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * var oSettings = oTable.fnSettings();
- *
- * // Show an example parameter from the settings
- * alert( oSettings._iDisplayStart );
- * } );
- */
- this.fnSettings = function()
- {
- return _fnSettingsFromNode( this[_ext.iApiIndex] );
- };
-
-
- /**
- * Sort the table by a particular column
- * @param {int} iCol the data index to sort on. Note that this will not match the
- * 'display index' if you have hidden data entries
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort immediately with columns 0 and 1
- * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
- * } );
- */
- this.fnSort = function( aaSort )
- {
- this.api( true ).order( aaSort ).draw();
- };
-
-
- /**
- * Attach a sort listener to an element for a given column
- * @param {node} nNode the element to attach the sort listener to
- * @param {int} iColumn the column that a click on this node will sort on
- * @param {function} [fnCallback] callback function when sort is run
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort on column 1, when 'sorter' is clicked on
- * oTable.fnSortListener( document.getElementById('sorter'), 1 );
- * } );
- */
- this.fnSortListener = function( nNode, iColumn, fnCallback )
- {
- this.api( true ).order.listener( nNode, iColumn, fnCallback );
- };
-
-
- /**
- * Update a table cell or row - this method will accept either a single value to
- * update the cell with, an array of values with one element for each column or
- * an object in the same format as the original data source. The function is
- * self-referencing in order to make the multi column updates easier.
- * @param {object|array|string} mData Data to update the cell/row with
- * @param {node|int} mRow TR element you want to update or the aoData index
- * @param {int} [iColumn] The column to update, give as null or undefined to
- * update a whole row.
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @param {bool} [bAction=true] Perform pre-draw actions or not
- * @returns {int} 0 on success, 1 on error
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
- * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
- * } );
- */
- this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
- {
- var api = this.api( true );
-
- if ( iColumn === undefined || iColumn === null ) {
- api.row( mRow ).data( mData );
- }
- else {
- api.cell( mRow, iColumn ).data( mData );
- }
-
- if ( bAction === undefined || bAction ) {
- api.columns.adjust();
- }
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw();
- }
- return 0;
- };
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being used, in order
- * to ensure compatibility.
- * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
- * formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to the required
- * version, or false if this version of DataTales is not suitable
- * @method
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * alert( oTable.fnVersionCheck( '1.9.0' ) );
- * } );
- */
- this.fnVersionCheck = _ext.fnVersionCheck;
-
-
- var _that = this;
- var emptyInit = options === undefined;
- var len = this.length;
-
- if ( emptyInit ) {
- options = {};
- }
-
- this.oApi = this.internal = _ext.internal;
-
- // Extend with old style plug-in API methods
- for ( var fn in DataTable.ext.internal ) {
- if ( fn ) {
- this[fn] = _fnExternApiFunc(fn);
- }
- }
-
- this.each(function() {
- // For each initialisation we want to give it a clean initialisation
- // object that can be bashed around
- var o = {};
- var oInit = len > 1 ? // optimisation for single table case
- _fnExtend( o, options, true ) :
- options;
-
- /*global oInit,_that,emptyInit*/
- var i=0, iLen, j, jLen, k, kLen;
- var sId = this.getAttribute( 'id' );
- var bInitHandedOff = false;
- var defaults = DataTable.defaults;
- var $this = $(this);
-
-
- /* Sanity check */
- if ( this.nodeName.toLowerCase() != 'table' )
- {
- _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
- return;
- }
-
- /* Backwards compatibility for the defaults */
- _fnCompatOpts( defaults );
- _fnCompatCols( defaults.column );
-
- /* Convert the camel-case defaults to Hungarian */
- _fnCamelToHungarian( defaults, defaults, true );
- _fnCamelToHungarian( defaults.column, defaults.column, true );
-
- /* Setting up the initialisation object */
- _fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );
-
-
-
- /* Check to see if we are re-initialising a table */
- var allSettings = DataTable.settings;
- for ( i=0, iLen=allSettings.length ; i').appendTo($this);
- }
- oSettings.nTHead = thead[0];
-
- var tbody = $this.children('tbody');
- if ( tbody.length === 0 ) {
- tbody = $(' ').appendTo($this);
- }
- oSettings.nTBody = tbody[0];
-
- var tfoot = $this.children('tfoot');
- if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") ) {
- // If we are a scrolling table, and no footer has been given, then we need to create
- // a tfoot element for the caption element to be appended to
- tfoot = $(' ').appendTo($this);
- }
-
- if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
- $this.addClass( oClasses.sNoFooter );
- }
- else if ( tfoot.length > 0 ) {
- oSettings.nTFoot = tfoot[0];
- _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
- }
-
- /* Check if there is data passing into the constructor */
- if ( oInit.aaData ) {
- for ( i=0 ; i/g;
-
- // This is not strict ISO8601 - Date.parse() is quite lax, although
- // implementations differ between browsers.
- var _re_date = /^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/;
-
- // Escape regular expression special characters
- var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
-
- // http://en.wikipedia.org/wiki/Foreign_exchange_market
- // - \u20BD - Russian ruble.
- // - \u20a9 - South Korean Won
- // - \u20BA - Turkish Lira
- // - \u20B9 - Indian Rupee
- // - R - Brazil (R$) and South Africa
- // - fr - Swiss Franc
- // - kr - Swedish krona, Norwegian krone and Danish krone
- // - \u2009 is thin space and \u202F is narrow no-break space, both used in many
- // - Ƀ - Bitcoin
- // - Ξ - Ethereum
- // standards as thousands separators.
- var _re_formatted_numeric = /[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi;
-
-
- var _empty = function ( d ) {
- return !d || d === true || d === '-' ? true : false;
- };
-
-
- var _intVal = function ( s ) {
- var integer = parseInt( s, 10 );
- return !isNaN(integer) && isFinite(s) ? integer : null;
- };
-
- // Convert from a formatted number with characters other than `.` as the
- // decimal place, to a Javascript number
- var _numToDecimal = function ( num, decimalPoint ) {
- // Cache created regular expressions for speed as this function is called often
- if ( ! _re_dic[ decimalPoint ] ) {
- _re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
- }
- return typeof num === 'string' && decimalPoint !== '.' ?
- num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
- num;
- };
-
-
- var _isNumber = function ( d, decimalPoint, formatted ) {
- var strType = typeof d === 'string';
-
- // If empty return immediately so there must be a number if it is a
- // formatted string (this stops the string "k", or "kr", etc being detected
- // as a formatted number for currency
- if ( _empty( d ) ) {
- return true;
- }
-
- if ( decimalPoint && strType ) {
- d = _numToDecimal( d, decimalPoint );
- }
-
- if ( formatted && strType ) {
- d = d.replace( _re_formatted_numeric, '' );
- }
-
- return !isNaN( parseFloat(d) ) && isFinite( d );
- };
-
-
- // A string without HTML in it can be considered to be HTML still
- var _isHtml = function ( d ) {
- return _empty( d ) || typeof d === 'string';
- };
-
-
- var _htmlNumeric = function ( d, decimalPoint, formatted ) {
- if ( _empty( d ) ) {
- return true;
- }
-
- var html = _isHtml( d );
- return ! html ?
- null :
- _isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
- true :
- null;
- };
-
-
- var _pluck = function ( a, prop, prop2 ) {
- var out = [];
- var i=0, ien=a.length;
-
- // Could have the test in the loop for slightly smaller code, but speed
- // is essential here
- if ( prop2 !== undefined ) {
- for ( ; i')
- .css( {
- position: 'fixed',
- top: 0,
- left: $(window).scrollLeft()*-1, // allow for scrolling
- height: 1,
- width: 1,
- overflow: 'hidden'
- } )
- .append(
- $('
')
- .css( {
- position: 'absolute',
- top: 1,
- left: 1,
- width: 100,
- overflow: 'scroll'
- } )
- .append(
- $('
')
- .css( {
- width: '100%',
- height: 10
- } )
- )
- )
- .appendTo( 'body' );
-
- var outer = n.children();
- var inner = outer.children();
-
- // Numbers below, in order, are:
- // inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth
- //
- // IE6 XP: 100 100 100 83
- // IE7 Vista: 100 100 100 83
- // IE 8+ Windows: 83 83 100 83
- // Evergreen Windows: 83 83 100 83
- // Evergreen Mac with scrollbars: 85 85 100 85
- // Evergreen Mac without scrollbars: 100 100 100 100
-
- // Get scrollbar width
- browser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;
-
- // IE6/7 will oversize a width 100% element inside a scrolling element, to
- // include the width of the scrollbar, while other browsers ensure the inner
- // element is contained without forcing scrolling
- browser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;
-
- // In rtl text layout, some browsers (most, but not all) will place the
- // scrollbar on the left, rather than the right.
- browser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;
-
- // IE8- don't provide height and width for getBoundingClientRect
- browser.bBounding = n[0].getBoundingClientRect().width ? true : false;
-
- n.remove();
- }
-
- $.extend( settings.oBrowser, DataTable.__browser );
- settings.oScroll.iBarWidth = DataTable.__browser.barWidth;
- }
-
-
- /**
- * Array.prototype reduce[Right] method, used for browsers which don't support
- * JS 1.6. Done this way to reduce code size, since we iterate either way
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnReduce ( that, fn, init, start, end, inc )
- {
- var
- i = start,
- value,
- isSet = false;
-
- if ( init !== undefined ) {
- value = init;
- isSet = true;
- }
-
- while ( i !== end ) {
- if ( ! that.hasOwnProperty(i) ) {
- continue;
- }
-
- value = isSet ?
- fn( value, that[i], i, that ) :
- that[i];
-
- isSet = true;
- i += inc;
- }
-
- return value;
- }
-
- /**
- * Add a column to the list used for the table with default values
- * @param {object} oSettings dataTables settings object
- * @param {node} nTh The th element for this column
- * @memberof DataTable#oApi
- */
- function _fnAddColumn( oSettings, nTh )
- {
- // Add column to aoColumns array
- var oDefaults = DataTable.defaults.column;
- var iCol = oSettings.aoColumns.length;
- var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
- "nTh": nTh ? nTh : document.createElement('th'),
- "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
- "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
- "mData": oDefaults.mData ? oDefaults.mData : iCol,
- idx: iCol
- } );
- oSettings.aoColumns.push( oCol );
-
- // Add search object for column specific search. Note that the `searchCols[ iCol ]`
- // passed into extend can be undefined. This allows the user to give a default
- // with only some of the parameters defined, and also not give a default
- var searchCols = oSettings.aoPreSearchCols;
- searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
-
- // Use the default column options function to initialise classes etc
- _fnColumnOptions( oSettings, iCol, $(nTh).data() );
- }
-
-
- /**
- * Apply options for a column
- * @param {object} oSettings dataTables settings object
- * @param {int} iCol column index to consider
- * @param {object} oOptions object with sType, bVisible and bSearchable etc
- * @memberof DataTable#oApi
- */
- function _fnColumnOptions( oSettings, iCol, oOptions )
- {
- var oCol = oSettings.aoColumns[ iCol ];
- var oClasses = oSettings.oClasses;
- var th = $(oCol.nTh);
-
- // Try to get width information from the DOM. We can't get it from CSS
- // as we'd need to parse the CSS stylesheet. `width` option can override
- if ( ! oCol.sWidthOrig ) {
- // Width attribute
- oCol.sWidthOrig = th.attr('width') || null;
-
- // Style attribute
- var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/);
- if ( t ) {
- oCol.sWidthOrig = t[1];
- }
- }
-
- /* User specified column options */
- if ( oOptions !== undefined && oOptions !== null )
- {
- // Backwards compatibility
- _fnCompatCols( oOptions );
-
- // Map camel case parameters to their Hungarian counterparts
- _fnCamelToHungarian( DataTable.defaults.column, oOptions );
-
- /* Backwards compatibility for mDataProp */
- if ( oOptions.mDataProp !== undefined && !oOptions.mData )
- {
- oOptions.mData = oOptions.mDataProp;
- }
-
- if ( oOptions.sType )
- {
- oCol._sManualType = oOptions.sType;
- }
-
- // `class` is a reserved word in Javascript, so we need to provide
- // the ability to use a valid name for the camel case input
- if ( oOptions.className && ! oOptions.sClass )
- {
- oOptions.sClass = oOptions.className;
- }
- if ( oOptions.sClass ) {
- th.addClass( oOptions.sClass );
- }
-
- $.extend( oCol, oOptions );
- _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
-
- /* iDataSort to be applied (backwards compatibility), but aDataSort will take
- * priority if defined
- */
- if ( oOptions.iDataSort !== undefined )
- {
- oCol.aDataSort = [ oOptions.iDataSort ];
- }
- _fnMap( oCol, oOptions, "aDataSort" );
- }
-
- /* Cache the data get and set functions for speed */
- var mDataSrc = oCol.mData;
- var mData = _fnGetObjectDataFn( mDataSrc );
- var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
-
- var attrTest = function( src ) {
- return typeof src === 'string' && src.indexOf('@') !== -1;
- };
- oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
- attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
- );
- oCol._setter = null;
-
- oCol.fnGetData = function (rowData, type, meta) {
- var innerData = mData( rowData, type, undefined, meta );
-
- return mRender && type ?
- mRender( innerData, type, rowData, meta ) :
- innerData;
- };
- oCol.fnSetData = function ( rowData, val, meta ) {
- return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );
- };
-
- // Indicate if DataTables should read DOM data as an object or array
- // Used in _fnGetRowElements
- if ( typeof mDataSrc !== 'number' ) {
- oSettings._rowReadObject = true;
- }
-
- /* Feature sorting overrides column specific when off */
- if ( !oSettings.oFeatures.bSort )
- {
- oCol.bSortable = false;
- th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
- }
-
- /* Check that the class assignment is correct for sorting */
- var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
- var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
- if ( !oCol.bSortable || (!bAsc && !bDesc) )
- {
- oCol.sSortingClass = oClasses.sSortableNone;
- oCol.sSortingClassJUI = "";
- }
- else if ( bAsc && !bDesc )
- {
- oCol.sSortingClass = oClasses.sSortableAsc;
- oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
- }
- else if ( !bAsc && bDesc )
- {
- oCol.sSortingClass = oClasses.sSortableDesc;
- oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
- }
- else
- {
- oCol.sSortingClass = oClasses.sSortable;
- oCol.sSortingClassJUI = oClasses.sSortJUI;
- }
- }
-
-
- /**
- * Adjust the table column widths for new data. Note: you would probably want to
- * do a redraw after calling this function!
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAdjustColumnSizing ( settings )
- {
- /* Not interested in doing column width calculation if auto-width is disabled */
- if ( settings.oFeatures.bAutoWidth !== false )
- {
- var columns = settings.aoColumns;
-
- _fnCalculateColumnWidths( settings );
- for ( var i=0 , iLen=columns.length ; i=0 ; i-- )
- {
- def = aoColDefs[i];
-
- /* Each definition can target multiple columns, as it is an array */
- var aTargets = def.targets !== undefined ?
- def.targets :
- def.aTargets;
-
- if ( ! $.isArray( aTargets ) )
- {
- aTargets = [ aTargets ];
- }
-
- for ( j=0, jLen=aTargets.length ; j= 0 )
- {
- /* Add columns that we don't yet know about */
- while( columns.length <= aTargets[j] )
- {
- _fnAddColumn( oSettings );
- }
-
- /* Integer, basic index */
- fn( aTargets[j], def );
- }
- else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
- {
- /* Negative integer, right to left column counting */
- fn( columns.length+aTargets[j], def );
- }
- else if ( typeof aTargets[j] === 'string' )
- {
- /* Class name matching on TH element */
- for ( k=0, kLen=columns.length ; k=0 if successful (index of new aoData entry), -1 if failed
- * @memberof DataTable#oApi
- */
- function _fnAddData ( oSettings, aDataIn, nTr, anTds )
- {
- /* Create the object for storing information about this new row */
- var iRow = oSettings.aoData.length;
- var oData = $.extend( true, {}, DataTable.models.oRow, {
- src: nTr ? 'dom' : 'data',
- idx: iRow
- } );
-
- oData._aData = aDataIn;
- oSettings.aoData.push( oData );
-
- /* Create the cells */
- var nTd, sThisType;
- var columns = oSettings.aoColumns;
-
- // Invalidate the column types as the new data needs to be revalidated
- for ( var i=0, iLen=columns.length ; i iTarget )
- {
- a[i]--;
- }
- }
-
- if ( iTargetIndex != -1 && splice === undefined )
- {
- a.splice( iTargetIndex, 1 );
- }
- }
-
-
- /**
- * Mark cached data as invalid such that a re-read of the data will occur when
- * the cached data is next requested. Also update from the data source object.
- *
- * @param {object} settings DataTables settings object
- * @param {int} rowIdx Row index to invalidate
- * @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom'
- * or 'data'
- * @param {int} [colIdx] Column index to invalidate. If undefined the whole
- * row will be invalidated
- * @memberof DataTable#oApi
- *
- * @todo For the modularisation of v1.11 this will need to become a callback, so
- * the sort and filter methods can subscribe to it. That will required
- * initialisation options for sorting, which is why it is not already baked in
- */
- function _fnInvalidate( settings, rowIdx, src, colIdx )
- {
- var row = settings.aoData[ rowIdx ];
- var i, ien;
- var cellWrite = function ( cell, col ) {
- // This is very frustrating, but in IE if you just write directly
- // to innerHTML, and elements that are overwritten are GC'ed,
- // even if there is a reference to them elsewhere
- while ( cell.childNodes.length ) {
- cell.removeChild( cell.firstChild );
- }
-
- cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );
- };
-
- // Are we reading last data from DOM or the data object?
- if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
- // Read the data from the DOM
- row._aData = _fnGetRowElements(
- settings, row, colIdx, colIdx === undefined ? undefined : row._aData
- )
- .data;
- }
- else {
- // Reading from data object, update the DOM
- var cells = row.anCells;
-
- if ( cells ) {
- if ( colIdx !== undefined ) {
- cellWrite( cells[colIdx], colIdx );
- }
- else {
- for ( i=0, ien=cells.length ; i').appendTo( thead );
- }
-
- for ( i=0, ien=columns.length ; itr').attr('role', 'row');
-
- /* Deal with the footer - add classes if required */
- $(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
- $(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
-
- // Cache the footer cells. Note that we only take the cells from the first
- // row in the footer. If there is more than one row the user wants to
- // interact with, they need to use the table().foot() method. Note also this
- // allows cells to be used for multiple columns using colspan
- if ( tfoot !== null ) {
- var cells = oSettings.aoFooter[0];
-
- for ( i=0, ien=cells.length ; i=0 ; j-- )
- {
- if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
- {
- aoLocal[i].splice( j, 1 );
- }
- }
-
- /* Prep the applied array - it needs an element for each row */
- aApplied.push( [] );
- }
-
- for ( i=0, iLen=aoLocal.length ; i= oSettings.fnRecordsDisplay() ?
- 0 :
- iInitDisplayStart;
-
- oSettings.iInitDisplayStart = -1;
- }
-
- var iDisplayStart = oSettings._iDisplayStart;
- var iDisplayEnd = oSettings.fnDisplayEnd();
-
- /* Server-side processing draw intercept */
- if ( oSettings.bDeferLoading )
- {
- oSettings.bDeferLoading = false;
- oSettings.iDraw++;
- _fnProcessingDisplay( oSettings, false );
- }
- else if ( !bServerSide )
- {
- oSettings.iDraw++;
- }
- else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
- {
- return;
- }
-
- if ( aiDisplay.length !== 0 )
- {
- var iStart = bServerSide ? 0 : iDisplayStart;
- var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
-
- for ( var j=iStart ; j ', { 'class': iStripes ? asStripeClasses[0] : '' } )
- .append( $(' ', {
- 'valign': 'top',
- 'colSpan': _fnVisbleColumns( oSettings ),
- 'class': oSettings.oClasses.sRowEmpty
- } ).html( sZero ) )[0];
- }
-
- /* Header and footer callbacks */
- _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
- _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
-
- _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
- _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
-
- var body = $(oSettings.nTBody);
-
- body.children().detach();
- body.append( $(anRows) );
-
- /* Call all required callback functions for the end of a draw */
- _fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
-
- /* Draw is complete, sorting and filtering must be as well */
- oSettings.bSorted = false;
- oSettings.bFiltered = false;
- oSettings.bDrawing = false;
- }
-
-
- /**
- * Redraw the table - taking account of the various features which are enabled
- * @param {object} oSettings dataTables settings object
- * @param {boolean} [holdPosition] Keep the current paging position. By default
- * the paging is reset to the first page
- * @memberof DataTable#oApi
- */
- function _fnReDraw( settings, holdPosition )
- {
- var
- features = settings.oFeatures,
- sort = features.bSort,
- filter = features.bFilter;
-
- if ( sort ) {
- _fnSort( settings );
- }
-
- if ( filter ) {
- _fnFilterComplete( settings, settings.oPreviousSearch );
- }
- else {
- // No filtering, so we want to just use the display master
- settings.aiDisplay = settings.aiDisplayMaster.slice();
- }
-
- if ( holdPosition !== true ) {
- settings._iDisplayStart = 0;
- }
-
- // Let any modules know about the draw hold position state (used by
- // scrolling internally)
- settings._drawHold = holdPosition;
-
- _fnDraw( settings );
-
- settings._drawHold = false;
- }
-
-
- /**
- * Add the options to the page HTML for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAddOptionsHtml ( oSettings )
- {
- var classes = oSettings.oClasses;
- var table = $(oSettings.nTable);
- var holding = $('
').insertBefore( table ); // Holding element for speed
- var features = oSettings.oFeatures;
-
- // All DataTables are wrapped in a div
- var insert = $('
', {
- id: oSettings.sTableId+'_wrapper',
- 'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
- } );
-
- oSettings.nHolding = holding[0];
- oSettings.nTableWrapper = insert[0];
- oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
-
- /* Loop over the user set positioning and place the elements as needed */
- var aDom = oSettings.sDom.split('');
- var featureNode, cOption, nNewNode, cNext, sAttr, j;
- for ( var i=0 ; i')[0];
-
- /* Check to see if we should append an id and/or a class name to the container */
- cNext = aDom[i+1];
- if ( cNext == "'" || cNext == '"' )
- {
- sAttr = "";
- j = 2;
- while ( aDom[i+j] != cNext )
- {
- sAttr += aDom[i+j];
- j++;
- }
-
- /* Replace jQuery UI constants @todo depreciated */
- if ( sAttr == "H" )
- {
- sAttr = classes.sJUIHeader;
- }
- else if ( sAttr == "F" )
- {
- sAttr = classes.sJUIFooter;
- }
-
- /* The attribute can be in the format of "#id.class", "#id" or "class" This logic
- * breaks the string into parts and applies them as needed
- */
- if ( sAttr.indexOf('.') != -1 )
- {
- var aSplit = sAttr.split('.');
- nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
- nNewNode.className = aSplit[1];
- }
- else if ( sAttr.charAt(0) == "#" )
- {
- nNewNode.id = sAttr.substr(1, sAttr.length-1);
- }
- else
- {
- nNewNode.className = sAttr;
- }
-
- i += j; /* Move along the position array */
- }
-
- insert.append( nNewNode );
- insert = $(nNewNode);
- }
- else if ( cOption == '>' )
- {
- /* End container div */
- insert = insert.parent();
- }
- // @todo Move options into their own plugins?
- else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
- {
- /* Length */
- featureNode = _fnFeatureHtmlLength( oSettings );
- }
- else if ( cOption == 'f' && features.bFilter )
- {
- /* Filter */
- featureNode = _fnFeatureHtmlFilter( oSettings );
- }
- else if ( cOption == 'r' && features.bProcessing )
- {
- /* pRocessing */
- featureNode = _fnFeatureHtmlProcessing( oSettings );
- }
- else if ( cOption == 't' )
- {
- /* Table */
- featureNode = _fnFeatureHtmlTable( oSettings );
- }
- else if ( cOption == 'i' && features.bInfo )
- {
- /* Info */
- featureNode = _fnFeatureHtmlInfo( oSettings );
- }
- else if ( cOption == 'p' && features.bPaginate )
- {
- /* Pagination */
- featureNode = _fnFeatureHtmlPaginate( oSettings );
- }
- else if ( DataTable.ext.feature.length !== 0 )
- {
- /* Plug-in features */
- var aoFeatures = DataTable.ext.feature;
- for ( var k=0, kLen=aoFeatures.length ; k ';
-
- var str = language.sSearch;
- str = str.match(/_INPUT_/) ?
- str.replace('_INPUT_', input) :
- str+input;
-
- var filter = $('
', {
- 'id': ! features.f ? tableId+'_filter' : null,
- 'class': classes.sFilter
- } )
- .append( $(' ' ).append( str ) );
-
- var searchFn = function() {
- /* Update all other filter input elements for the new display */
- var n = features.f;
- var val = !this.value ? "" : this.value; // mental IE8 fix :-(
-
- /* Now do the filter */
- if ( val != previousSearch.sSearch ) {
- _fnFilterComplete( settings, {
- "sSearch": val,
- "bRegex": previousSearch.bRegex,
- "bSmart": previousSearch.bSmart ,
- "bCaseInsensitive": previousSearch.bCaseInsensitive
- } );
-
- // Need to redraw, without resorting
- settings._iDisplayStart = 0;
- _fnDraw( settings );
- }
- };
-
- var searchDelay = settings.searchDelay !== null ?
- settings.searchDelay :
- _fnDataSource( settings ) === 'ssp' ?
- 400 :
- 0;
-
- var jqFilter = $('input', filter)
- .val( previousSearch.sSearch )
- .attr( 'placeholder', language.sSearchPlaceholder )
- .on(
- 'keyup.DT search.DT input.DT paste.DT cut.DT',
- searchDelay ?
- _fnThrottle( searchFn, searchDelay ) :
- searchFn
- )
- .on( 'keypress.DT', function(e) {
- /* Prevent form submission */
- if ( e.keyCode == 13 ) {
- return false;
- }
- } )
- .attr('aria-controls', tableId);
-
- // Update the input elements whenever the table is filtered
- $(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {
- if ( settings === s ) {
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame...
- try {
- if ( jqFilter[0] !== document.activeElement ) {
- jqFilter.val( previousSearch.sSearch );
- }
- }
- catch ( e ) {}
- }
- } );
-
- return filter[0];
- }
-
-
- /**
- * Filter the table using both the global filter and column based filtering
- * @param {object} oSettings dataTables settings object
- * @param {object} oSearch search information
- * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
- * @memberof DataTable#oApi
- */
- function _fnFilterComplete ( oSettings, oInput, iForce )
- {
- var oPrevSearch = oSettings.oPreviousSearch;
- var aoPrevSearch = oSettings.aoPreSearchCols;
- var fnSaveFilter = function ( oFilter ) {
- /* Save the filtering values */
- oPrevSearch.sSearch = oFilter.sSearch;
- oPrevSearch.bRegex = oFilter.bRegex;
- oPrevSearch.bSmart = oFilter.bSmart;
- oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
- };
- var fnRegex = function ( o ) {
- // Backwards compatibility with the bEscapeRegex option
- return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
- };
-
- // Resolve any column types that are unknown due to addition or invalidation
- // @todo As per sort - can this be moved into an event handler?
- _fnColumnTypes( oSettings );
-
- /* In server-side processing all filtering is done by the server, so no point hanging around here */
- if ( _fnDataSource( oSettings ) != 'ssp' )
- {
- /* Global filter */
- _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
- fnSaveFilter( oInput );
-
- /* Now do the individual column filter */
- for ( var i=0 ; i input.length ||
- input.indexOf(prevSearch) !== 0 ||
- settings.bSorted // On resort, the display master needs to be
- // re-filtered since indexes will have changed
- ) {
- settings.aiDisplay = displayMaster.slice();
- }
-
- // Search the display array
- display = settings.aiDisplay;
-
- for ( i=0 ; i')[0];
- var __filter_div_textContent = __filter_div.textContent !== undefined;
-
- // Update the filtering data for each row if needed (by invalidation or first run)
- function _fnFilterData ( settings )
- {
- var columns = settings.aoColumns;
- var column;
- var i, j, ien, jen, filterData, cellData, row;
- var fomatters = DataTable.ext.type.search;
- var wasInvalidated = false;
-
- for ( i=0, ien=settings.aoData.length ; i', {
- 'class': settings.oClasses.sInfo,
- 'id': ! nodes ? tid+'_info' : null
- } );
-
- if ( ! nodes ) {
- // Update display on each draw
- settings.aoDrawCallback.push( {
- "fn": _fnUpdateInfo,
- "sName": "information"
- } );
-
- n
- .attr( 'role', 'status' )
- .attr( 'aria-live', 'polite' );
-
- // Table is described by our info div
- $(settings.nTable).attr( 'aria-describedby', tid+'_info' );
- }
-
- return n[0];
- }
-
-
- /**
- * Update the information elements in the display
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnUpdateInfo ( settings )
- {
- /* Show information about the table */
- var nodes = settings.aanFeatures.i;
- if ( nodes.length === 0 ) {
- return;
- }
-
- var
- lang = settings.oLanguage,
- start = settings._iDisplayStart+1,
- end = settings.fnDisplayEnd(),
- max = settings.fnRecordsTotal(),
- total = settings.fnRecordsDisplay(),
- out = total ?
- lang.sInfo :
- lang.sInfoEmpty;
-
- if ( total !== max ) {
- /* Record set after filtering */
- out += ' ' + lang.sInfoFiltered;
- }
-
- // Convert the macros
- out += lang.sInfoPostFix;
- out = _fnInfoMacros( settings, out );
-
- var callback = lang.fnInfoCallback;
- if ( callback !== null ) {
- out = callback.call( settings.oInstance,
- settings, start, end, max, total, out
- );
- }
-
- $(nodes).html( out );
- }
-
-
- function _fnInfoMacros ( settings, str )
- {
- // When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
- // internally
- var
- formatter = settings.fnFormatNumber,
- start = settings._iDisplayStart+1,
- len = settings._iDisplayLength,
- vis = settings.fnRecordsDisplay(),
- all = len === -1;
-
- return str.
- replace(/_START_/g, formatter.call( settings, start ) ).
- replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
- replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).
- replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
- replace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
- replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
- }
-
-
-
- /**
- * Draw the table for the first time, adding all required features
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnInitialise ( settings )
- {
- var i, iLen, iAjaxStart=settings.iInitDisplayStart;
- var columns = settings.aoColumns, column;
- var features = settings.oFeatures;
- var deferLoading = settings.bDeferLoading; // value modified by the draw
-
- /* Ensure that the table data is fully initialised */
- if ( ! settings.bInitialised ) {
- setTimeout( function(){ _fnInitialise( settings ); }, 200 );
- return;
- }
-
- /* Show the display HTML options */
- _fnAddOptionsHtml( settings );
-
- /* Build and draw the header / footer for the table */
- _fnBuildHead( settings );
- _fnDrawHead( settings, settings.aoHeader );
- _fnDrawHead( settings, settings.aoFooter );
-
- /* Okay to show that something is going on now */
- _fnProcessingDisplay( settings, true );
-
- /* Calculate sizes for columns */
- if ( features.bAutoWidth ) {
- _fnCalculateColumnWidths( settings );
- }
-
- for ( i=0, iLen=columns.length ; i', {
- 'name': tableId+'_length',
- 'aria-controls': tableId,
- 'class': classes.sLengthSelect
- } );
-
- for ( var i=0, ien=lengths.length ; i ').addClass( classes.sLength );
- if ( ! settings.aanFeatures.l ) {
- div[0].id = tableId+'_length';
- }
-
- div.children().append(
- settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )
- );
-
- // Can't use `select` variable as user might provide their own and the
- // reference is broken by the use of outerHTML
- $('select', div)
- .val( settings._iDisplayLength )
- .on( 'change.DT', function(e) {
- _fnLengthChange( settings, $(this).val() );
- _fnDraw( settings );
- } );
-
- // Update node value whenever anything changes the table's length
- $(settings.nTable).on( 'length.dt.DT', function (e, s, len) {
- if ( settings === s ) {
- $('select', div).val( len );
- }
- } );
-
- return div[0];
- }
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Note that most of the paging logic is done in
- * DataTable.ext.pager
- */
-
- /**
- * Generate the node required for default pagination
- * @param {object} oSettings dataTables settings object
- * @returns {node} Pagination feature node
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlPaginate ( settings )
- {
- var
- type = settings.sPaginationType,
- plugin = DataTable.ext.pager[ type ],
- modern = typeof plugin === 'function',
- redraw = function( settings ) {
- _fnDraw( settings );
- },
- node = $('
').addClass( settings.oClasses.sPaging + type )[0],
- features = settings.aanFeatures;
-
- if ( ! modern ) {
- plugin.fnInit( settings, node, redraw );
- }
-
- /* Add a draw callback for the pagination on first instance, to update the paging display */
- if ( ! features.p )
- {
- node.id = settings.sTableId+'_paginate';
-
- settings.aoDrawCallback.push( {
- "fn": function( settings ) {
- if ( modern ) {
- var
- start = settings._iDisplayStart,
- len = settings._iDisplayLength,
- visRecords = settings.fnRecordsDisplay(),
- all = len === -1,
- page = all ? 0 : Math.ceil( start / len ),
- pages = all ? 1 : Math.ceil( visRecords / len ),
- buttons = plugin(page, pages),
- i, ien;
-
- for ( i=0, ien=features.p.length ; i records )
- {
- start = 0;
- }
- }
- else if ( action == "first" )
- {
- start = 0;
- }
- else if ( action == "previous" )
- {
- start = len >= 0 ?
- start - len :
- 0;
-
- if ( start < 0 )
- {
- start = 0;
- }
- }
- else if ( action == "next" )
- {
- if ( start + len < records )
- {
- start += len;
- }
- }
- else if ( action == "last" )
- {
- start = Math.floor( (records-1) / len) * len;
- }
- else
- {
- _fnLog( settings, 0, "Unknown paging action: "+action, 5 );
- }
-
- var changed = settings._iDisplayStart !== start;
- settings._iDisplayStart = start;
-
- if ( changed ) {
- _fnCallbackFire( settings, null, 'page', [settings] );
-
- if ( redraw ) {
- _fnDraw( settings );
- }
- }
-
- return changed;
- }
-
-
-
- /**
- * Generate the node required for the processing node
- * @param {object} settings dataTables settings object
- * @returns {node} Processing element
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlProcessing ( settings )
- {
- return $('
', {
- 'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
- 'class': settings.oClasses.sProcessing
- } )
- .html( settings.oLanguage.sProcessing )
- .insertBefore( settings.nTable )[0];
- }
-
-
- /**
- * Display or hide the processing indicator
- * @param {object} settings dataTables settings object
- * @param {bool} show Show the processing indicator (true) or not (false)
- * @memberof DataTable#oApi
- */
- function _fnProcessingDisplay ( settings, show )
- {
- if ( settings.oFeatures.bProcessing ) {
- $(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
- }
-
- _fnCallbackFire( settings, null, 'processing', [settings, show] );
- }
-
- /**
- * Add any control elements for the table - specifically scrolling
- * @param {object} settings dataTables settings object
- * @returns {node} Node to add to the DOM
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlTable ( settings )
- {
- var table = $(settings.nTable);
-
- // Add the ARIA grid role to the table
- table.attr( 'role', 'grid' );
-
- // Scrolling from here on in
- var scroll = settings.oScroll;
-
- if ( scroll.sX === '' && scroll.sY === '' ) {
- return settings.nTable;
- }
-
- var scrollX = scroll.sX;
- var scrollY = scroll.sY;
- var classes = settings.oClasses;
- var caption = table.children('caption');
- var captionSide = caption.length ? caption[0]._captionSide : null;
- var headerClone = $( table[0].cloneNode(false) );
- var footerClone = $( table[0].cloneNode(false) );
- var footer = table.children('tfoot');
- var _div = '
';
- var size = function ( s ) {
- return !s ? null : _fnStringToCss( s );
- };
-
- if ( ! footer.length ) {
- footer = null;
- }
-
- /*
- * The HTML structure that we want to generate in this function is:
- * div - scroller
- * div - scroll head
- * div - scroll head inner
- * table - scroll head table
- * thead - thead
- * div - scroll body
- * table - table (master table)
- * thead - thead clone for sizing
- * tbody - tbody
- * div - scroll foot
- * div - scroll foot inner
- * table - scroll foot table
- * tfoot - tfoot
- */
- var scroller = $( _div, { 'class': classes.sScrollWrapper } )
- .append(
- $(_div, { 'class': classes.sScrollHead } )
- .css( {
- overflow: 'hidden',
- position: 'relative',
- border: 0,
- width: scrollX ? size(scrollX) : '100%'
- } )
- .append(
- $(_div, { 'class': classes.sScrollHeadInner } )
- .css( {
- 'box-sizing': 'content-box',
- width: scroll.sXInner || '100%'
- } )
- .append(
- headerClone
- .removeAttr('id')
- .css( 'margin-left', 0 )
- .append( captionSide === 'top' ? caption : null )
- .append(
- table.children('thead')
- )
- )
- )
- )
- .append(
- $(_div, { 'class': classes.sScrollBody } )
- .css( {
- position: 'relative',
- overflow: 'auto',
- width: size( scrollX )
- } )
- .append( table )
- );
-
- if ( footer ) {
- scroller.append(
- $(_div, { 'class': classes.sScrollFoot } )
- .css( {
- overflow: 'hidden',
- border: 0,
- width: scrollX ? size(scrollX) : '100%'
- } )
- .append(
- $(_div, { 'class': classes.sScrollFootInner } )
- .append(
- footerClone
- .removeAttr('id')
- .css( 'margin-left', 0 )
- .append( captionSide === 'bottom' ? caption : null )
- .append(
- table.children('tfoot')
- )
- )
- )
- );
- }
-
- var children = scroller.children();
- var scrollHead = children[0];
- var scrollBody = children[1];
- var scrollFoot = footer ? children[2] : null;
-
- // When the body is scrolled, then we also want to scroll the headers
- if ( scrollX ) {
- $(scrollBody).on( 'scroll.DT', function (e) {
- var scrollLeft = this.scrollLeft;
-
- scrollHead.scrollLeft = scrollLeft;
-
- if ( footer ) {
- scrollFoot.scrollLeft = scrollLeft;
- }
- } );
- }
-
- $(scrollBody).css(
- scrollY && scroll.bCollapse ? 'max-height' : 'height',
- scrollY
- );
-
- settings.nScrollHead = scrollHead;
- settings.nScrollBody = scrollBody;
- settings.nScrollFoot = scrollFoot;
-
- // On redraw - align columns
- settings.aoDrawCallback.push( {
- "fn": _fnScrollDraw,
- "sName": "scrolling"
- } );
-
- return scroller[0];
- }
-
-
-
- /**
- * Update the header, footer and body tables for resizing - i.e. column
- * alignment.
- *
- * Welcome to the most horrible function DataTables. The process that this
- * function follows is basically:
- * 1. Re-create the table inside the scrolling div
- * 2. Take live measurements from the DOM
- * 3. Apply the measurements to align the columns
- * 4. Clean up
- *
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnScrollDraw ( settings )
- {
- // Given that this is such a monster function, a lot of variables are use
- // to try and keep the minimised size as small as possible
- var
- scroll = settings.oScroll,
- scrollX = scroll.sX,
- scrollXInner = scroll.sXInner,
- scrollY = scroll.sY,
- barWidth = scroll.iBarWidth,
- divHeader = $(settings.nScrollHead),
- divHeaderStyle = divHeader[0].style,
- divHeaderInner = divHeader.children('div'),
- divHeaderInnerStyle = divHeaderInner[0].style,
- divHeaderTable = divHeaderInner.children('table'),
- divBodyEl = settings.nScrollBody,
- divBody = $(divBodyEl),
- divBodyStyle = divBodyEl.style,
- divFooter = $(settings.nScrollFoot),
- divFooterInner = divFooter.children('div'),
- divFooterTable = divFooterInner.children('table'),
- header = $(settings.nTHead),
- table = $(settings.nTable),
- tableEl = table[0],
- tableStyle = tableEl.style,
- footer = settings.nTFoot ? $(settings.nTFoot) : null,
- browser = settings.oBrowser,
- ie67 = browser.bScrollOversize,
- dtHeaderCells = _pluck( settings.aoColumns, 'nTh' ),
- headerTrgEls, footerTrgEls,
- headerSrcEls, footerSrcEls,
- headerCopy, footerCopy,
- headerWidths=[], footerWidths=[],
- headerContent=[], footerContent=[],
- idx, correction, sanityWidth,
- zeroOut = function(nSizer) {
- var style = nSizer.style;
- style.paddingTop = "0";
- style.paddingBottom = "0";
- style.borderTopWidth = "0";
- style.borderBottomWidth = "0";
- style.height = 0;
- };
-
- // If the scrollbar visibility has changed from the last draw, we need to
- // adjust the column sizes as the table width will have changed to account
- // for the scrollbar
- var scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;
-
- if ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {
- settings.scrollBarVis = scrollBarVis;
- _fnAdjustColumnSizing( settings );
- return; // adjust column sizing will call this function again
- }
- else {
- settings.scrollBarVis = scrollBarVis;
- }
-
- /*
- * 1. Re-create the table inside the scrolling div
- */
-
- // Remove the old minimised thead and tfoot elements in the inner table
- table.children('thead, tfoot').remove();
-
- if ( footer ) {
- footerCopy = footer.clone().prependTo( table );
- footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
- footerSrcEls = footerCopy.find('tr');
- }
-
- // Clone the current header and footer elements and then place it into the inner table
- headerCopy = header.clone().prependTo( table );
- headerTrgEls = header.find('tr'); // original header is in its own table
- headerSrcEls = headerCopy.find('tr');
- headerCopy.find('th, td').removeAttr('tabindex');
-
-
- /*
- * 2. Take live measurements from the DOM - do not alter the DOM itself!
- */
-
- // Remove old sizing and apply the calculated column widths
- // Get the unique column headers in the newly created (cloned) header. We want to apply the
- // calculated sizes to this header
- if ( ! scrollX )
- {
- divBodyStyle.width = '100%';
- divHeader[0].style.width = '100%';
- }
-
- $.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
- idx = _fnVisibleToColumnIndex( settings, i );
- el.style.width = settings.aoColumns[idx].sWidth;
- } );
-
- if ( footer ) {
- _fnApplyToChildren( function(n) {
- n.style.width = "";
- }, footerSrcEls );
- }
-
- // Size the table as a whole
- sanityWidth = table.outerWidth();
- if ( scrollX === "" ) {
- // No x scrolling
- tableStyle.width = "100%";
-
- // IE7 will make the width of the table when 100% include the scrollbar
- // - which is shouldn't. When there is a scrollbar we need to take this
- // into account.
- if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
- divBody.css('overflow-y') == "scroll")
- ) {
- tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
- }
-
- // Recalculate the sanity width
- sanityWidth = table.outerWidth();
- }
- else if ( scrollXInner !== "" ) {
- // legacy x scroll inner has been given - use it
- tableStyle.width = _fnStringToCss(scrollXInner);
-
- // Recalculate the sanity width
- sanityWidth = table.outerWidth();
- }
-
- // Hidden header should have zero height, so remove padding and borders. Then
- // set the width based on the real headers
-
- // Apply all styles in one pass
- _fnApplyToChildren( zeroOut, headerSrcEls );
-
- // Read all widths in next pass
- _fnApplyToChildren( function(nSizer) {
- headerContent.push( nSizer.innerHTML );
- headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
- }, headerSrcEls );
-
- // Apply all widths in final pass
- _fnApplyToChildren( function(nToSize, i) {
- // Only apply widths to the DataTables detected header cells - this
- // prevents complex headers from having contradictory sizes applied
- if ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {
- nToSize.style.width = headerWidths[i];
- }
- }, headerTrgEls );
-
- $(headerSrcEls).height(0);
-
- /* Same again with the footer if we have one */
- if ( footer )
- {
- _fnApplyToChildren( zeroOut, footerSrcEls );
-
- _fnApplyToChildren( function(nSizer) {
- footerContent.push( nSizer.innerHTML );
- footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
- }, footerSrcEls );
-
- _fnApplyToChildren( function(nToSize, i) {
- nToSize.style.width = footerWidths[i];
- }, footerTrgEls );
-
- $(footerSrcEls).height(0);
- }
-
-
- /*
- * 3. Apply the measurements
- */
-
- // "Hide" the header and footer that we used for the sizing. We need to keep
- // the content of the cell so that the width applied to the header and body
- // both match, but we want to hide it completely. We want to also fix their
- // width to what they currently are
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = ''+headerContent[i]+'
';
- nSizer.childNodes[0].style.height = "0";
- nSizer.childNodes[0].style.overflow = "hidden";
- nSizer.style.width = headerWidths[i];
- }, headerSrcEls );
-
- if ( footer )
- {
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = ''+footerContent[i]+'
';
- nSizer.childNodes[0].style.height = "0";
- nSizer.childNodes[0].style.overflow = "hidden";
- nSizer.style.width = footerWidths[i];
- }, footerSrcEls );
- }
-
- // Sanity check that the table is of a sensible width. If not then we are going to get
- // misalignment - try to prevent this by not allowing the table to shrink below its min width
- if ( table.outerWidth() < sanityWidth )
- {
- // The min width depends upon if we have a vertical scrollbar visible or not */
- correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
- divBody.css('overflow-y') == "scroll")) ?
- sanityWidth+barWidth :
- sanityWidth;
-
- // IE6/7 are a law unto themselves...
- if ( ie67 && (divBodyEl.scrollHeight >
- divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
- ) {
- tableStyle.width = _fnStringToCss( correction-barWidth );
- }
-
- // And give the user a warning that we've stopped the table getting too small
- if ( scrollX === "" || scrollXInner !== "" ) {
- _fnLog( settings, 1, 'Possible column misalignment', 6 );
- }
- }
- else
- {
- correction = '100%';
- }
-
- // Apply to the container elements
- divBodyStyle.width = _fnStringToCss( correction );
- divHeaderStyle.width = _fnStringToCss( correction );
-
- if ( footer ) {
- settings.nScrollFoot.style.width = _fnStringToCss( correction );
- }
-
-
- /*
- * 4. Clean up
- */
- if ( ! scrollY ) {
- /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
- * the scrollbar height from the visible display, rather than adding it on. We need to
- * set the height in order to sort this. Don't want to do it in any other browsers.
- */
- if ( ie67 ) {
- divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
- }
- }
-
- /* Finally set the width's of the header and footer tables */
- var iOuterWidth = table.outerWidth();
- divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
- divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
-
- // Figure out if there are scrollbar present - if so then we need a the header and footer to
- // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
- var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
- var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
- divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
-
- if ( footer ) {
- divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
- divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
- divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
- }
-
- // Correct DOM ordering for colgroup - comes before the thead
- table.children('colgroup').insertBefore( table.children('thead') );
-
- /* Adjust the position of the header in case we loose the y-scrollbar */
- divBody.scroll();
-
- // If sorting or filtering has occurred, jump the scrolling back to the top
- // only if we aren't holding the position
- if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {
- divBodyEl.scrollTop = 0;
- }
- }
-
-
-
- /**
- * Apply a given function to the display child nodes of an element array (typically
- * TD children of TR rows
- * @param {function} fn Method to apply to the objects
- * @param array {nodes} an1 List of elements to look through for display children
- * @param array {nodes} an2 Another list (identical structure to the first) - optional
- * @memberof DataTable#oApi
- */
- function _fnApplyToChildren( fn, an1, an2 )
- {
- var index=0, i=0, iLen=an1.length;
- var nNode1, nNode2;
-
- while ( i < iLen ) {
- nNode1 = an1[i].firstChild;
- nNode2 = an2 ? an2[i].firstChild : null;
-
- while ( nNode1 ) {
- if ( nNode1.nodeType === 1 ) {
- if ( an2 ) {
- fn( nNode1, nNode2, index );
- }
- else {
- fn( nNode1, index );
- }
-
- index++;
- }
-
- nNode1 = nNode1.nextSibling;
- nNode2 = an2 ? nNode2.nextSibling : null;
- }
-
- i++;
- }
- }
-
-
-
- var __re_html_remove = /<.*?>/g;
-
-
- /**
- * Calculate the width of columns for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnCalculateColumnWidths ( oSettings )
- {
- var
- table = oSettings.nTable,
- columns = oSettings.aoColumns,
- scroll = oSettings.oScroll,
- scrollY = scroll.sY,
- scrollX = scroll.sX,
- scrollXInner = scroll.sXInner,
- columnCount = columns.length,
- visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
- headerCells = $('th', oSettings.nTHead),
- tableWidthAttr = table.getAttribute('width'), // from DOM element
- tableContainer = table.parentNode,
- userInputs = false,
- i, column, columnIdx, width, outerWidth,
- browser = oSettings.oBrowser,
- ie67 = browser.bScrollOversize;
-
- var styleWidth = table.style.width;
- if ( styleWidth && styleWidth.indexOf('%') !== -1 ) {
- tableWidthAttr = styleWidth;
- }
-
- /* Convert any user input sizes into pixel sizes */
- for ( i=0 ; i').appendTo( tmpTable.find('tbody') );
-
- // Clone the table header and footer - we can't use the header / footer
- // from the cloned table, since if scrolling is active, the table's
- // real header and footer are contained in different table tags
- tmpTable.find('thead, tfoot').remove();
- tmpTable
- .append( $(oSettings.nTHead).clone() )
- .append( $(oSettings.nTFoot).clone() );
-
- // Remove any assigned widths from the footer (from scrolling)
- tmpTable.find('tfoot th, tfoot td').css('width', '');
-
- // Apply custom sizing to the cloned header
- headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
-
- for ( i=0 ; i ').css( {
- width: column.sWidthOrig,
- margin: 0,
- padding: 0,
- border: 0,
- height: 1
- } ) );
- }
- }
-
- // Find the widest cell for each column and put it into the table
- if ( oSettings.aoData.length ) {
- for ( i=0 ; i').css( scrollX || scrollY ?
- {
- position: 'absolute',
- top: 0,
- left: 0,
- height: 1,
- right: 0,
- overflow: 'hidden'
- } :
- {}
- )
- .append( tmpTable )
- .appendTo( tableContainer );
-
- // When scrolling (X or Y) we want to set the width of the table as
- // appropriate. However, when not scrolling leave the table width as it
- // is. This results in slightly different, but I think correct behaviour
- if ( scrollX && scrollXInner ) {
- tmpTable.width( scrollXInner );
- }
- else if ( scrollX ) {
- tmpTable.css( 'width', 'auto' );
- tmpTable.removeAttr('width');
-
- // If there is no width attribute or style, then allow the table to
- // collapse
- if ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {
- tmpTable.width( tableContainer.clientWidth );
- }
- }
- else if ( scrollY ) {
- tmpTable.width( tableContainer.clientWidth );
- }
- else if ( tableWidthAttr ) {
- tmpTable.width( tableWidthAttr );
- }
-
- // Get the width of each column in the constructed table - we need to
- // know the inner width (so it can be assigned to the other table's
- // cells) and the outer width so we can calculate the full width of the
- // table. This is safe since DataTables requires a unique cell for each
- // column, but if ever a header can span multiple columns, this will
- // need to be modified.
- var total = 0;
- for ( i=0 ; i')
- .css( 'width', _fnStringToCss( width ) )
- .appendTo( parent || document.body );
-
- var val = n[0].offsetWidth;
- n.remove();
-
- return val;
- }
-
-
- /**
- * Get the widest node
- * @param {object} settings dataTables settings object
- * @param {int} colIdx column of interest
- * @returns {node} widest table node
- * @memberof DataTable#oApi
- */
- function _fnGetWidestNode( settings, colIdx )
- {
- var idx = _fnGetMaxLenString( settings, colIdx );
- if ( idx < 0 ) {
- return null;
- }
-
- var data = settings.aoData[ idx ];
- return ! data.nTr ? // Might not have been created when deferred rendering
- $(' ').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
- data.anCells[ colIdx ];
- }
-
-
- /**
- * Get the maximum strlen for each data column
- * @param {object} settings dataTables settings object
- * @param {int} colIdx column of interest
- * @returns {string} max string length for each column
- * @memberof DataTable#oApi
- */
- function _fnGetMaxLenString( settings, colIdx )
- {
- var s, max=-1, maxIdx = -1;
-
- for ( var i=0, ien=settings.aoData.length ; i max ) {
- max = s.length;
- maxIdx = i;
- }
- }
-
- return maxIdx;
- }
-
-
- /**
- * Append a CSS unit (only if required) to a string
- * @param {string} value to css-ify
- * @returns {string} value with css unit
- * @memberof DataTable#oApi
- */
- function _fnStringToCss( s )
- {
- if ( s === null ) {
- return '0px';
- }
-
- if ( typeof s == 'number' ) {
- return s < 0 ?
- '0px' :
- s+'px';
- }
-
- // Check it has a unit character already
- return s.match(/\d$/) ?
- s+'px' :
- s;
- }
-
-
-
- function _fnSortFlatten ( settings )
- {
- var
- i, iLen, k, kLen,
- aSort = [],
- aiOrig = [],
- aoColumns = settings.aoColumns,
- aDataSort, iCol, sType, srcCol,
- fixed = settings.aaSortingFixed,
- fixedObj = $.isPlainObject( fixed ),
- nestedSort = [],
- add = function ( a ) {
- if ( a.length && ! $.isArray( a[0] ) ) {
- // 1D array
- nestedSort.push( a );
- }
- else {
- // 2D array
- $.merge( nestedSort, a );
- }
- };
-
- // Build the sort array, with pre-fix and post-fix options if they have been
- // specified
- if ( $.isArray( fixed ) ) {
- add( fixed );
- }
-
- if ( fixedObj && fixed.pre ) {
- add( fixed.pre );
- }
-
- add( settings.aaSorting );
-
- if (fixedObj && fixed.post ) {
- add( fixed.post );
- }
-
- for ( i=0 ; iy ? 1 : 0;
- if ( test !== 0 ) {
- return sort.dir === 'asc' ? test : -test;
- }
- }
-
- x = aiOrig[a];
- y = aiOrig[b];
- return xy ? 1 : 0;
- } );
- }
- else {
- // Depreciated - remove in 1.11 (providing a plug-in option)
- // Not all sort types have formatting methods, so we have to call their sorting
- // methods.
- displayMaster.sort( function ( a, b ) {
- var
- x, y, k, l, test, sort, fn,
- len=aSort.length,
- dataA = aoData[a]._aSortData,
- dataB = aoData[b]._aSortData;
-
- for ( k=0 ; ky ? 1 : 0;
- } );
- }
- }
-
- /* Tell the draw function that we have sorted the data */
- oSettings.bSorted = true;
- }
-
-
- function _fnSortAria ( settings )
- {
- var label;
- var nextSort;
- var columns = settings.aoColumns;
- var aSort = _fnSortFlatten( settings );
- var oAria = settings.oLanguage.oAria;
-
- // ARIA attributes - need to loop all columns, to update all (removing old
- // attributes as needed)
- for ( var i=0, iLen=columns.length ; i/g, "" );
- var th = col.nTh;
-
- // IE7 is throwing an error when setting these properties with jQuery's
- // attr() and removeAttr() methods...
- th.removeAttribute('aria-sort');
-
- /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
- if ( col.bSortable ) {
- if ( aSort.length > 0 && aSort[0].col == i ) {
- th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
- nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
- }
- else {
- nextSort = asSorting[0];
- }
-
- label = sTitle + ( nextSort === "asc" ?
- oAria.sSortAscending :
- oAria.sSortDescending
- );
- }
- else {
- label = sTitle;
- }
-
- th.setAttribute('aria-label', label);
- }
- }
-
-
- /**
- * Function to run on user sort request
- * @param {object} settings dataTables settings object
- * @param {node} attachTo node to attach the handler to
- * @param {int} colIdx column sorting index
- * @param {boolean} [append=false] Append the requested sort to the existing
- * sort if true (i.e. multi-column sort)
- * @param {function} [callback] callback function
- * @memberof DataTable#oApi
- */
- function _fnSortListener ( settings, colIdx, append, callback )
- {
- var col = settings.aoColumns[ colIdx ];
- var sorting = settings.aaSorting;
- var asSorting = col.asSorting;
- var nextSortIdx;
- var next = function ( a, overflow ) {
- var idx = a._idx;
- if ( idx === undefined ) {
- idx = $.inArray( a[1], asSorting );
- }
-
- return idx+1 < asSorting.length ?
- idx+1 :
- overflow ?
- null :
- 0;
- };
-
- // Convert to 2D array if needed
- if ( typeof sorting[0] === 'number' ) {
- sorting = settings.aaSorting = [ sorting ];
- }
-
- // If appending the sort then we are multi-column sorting
- if ( append && settings.oFeatures.bSortMulti ) {
- // Are we already doing some kind of sort on this column?
- var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
-
- if ( sortIdx !== -1 ) {
- // Yes, modify the sort
- nextSortIdx = next( sorting[sortIdx], true );
-
- if ( nextSortIdx === null && sorting.length === 1 ) {
- nextSortIdx = 0; // can't remove sorting completely
- }
-
- if ( nextSortIdx === null ) {
- sorting.splice( sortIdx, 1 );
- }
- else {
- sorting[sortIdx][1] = asSorting[ nextSortIdx ];
- sorting[sortIdx]._idx = nextSortIdx;
- }
- }
- else {
- // No sort on this column yet
- sorting.push( [ colIdx, asSorting[0], 0 ] );
- sorting[sorting.length-1]._idx = 0;
- }
- }
- else if ( sorting.length && sorting[0][0] == colIdx ) {
- // Single column - already sorting on this column, modify the sort
- nextSortIdx = next( sorting[0] );
-
- sorting.length = 1;
- sorting[0][1] = asSorting[ nextSortIdx ];
- sorting[0]._idx = nextSortIdx;
- }
- else {
- // Single column - sort only on this column
- sorting.length = 0;
- sorting.push( [ colIdx, asSorting[0] ] );
- sorting[0]._idx = 0;
- }
-
- // Run the sort by calling a full redraw
- _fnReDraw( settings );
-
- // callback used for async user interaction
- if ( typeof callback == 'function' ) {
- callback( settings );
- }
- }
-
-
- /**
- * Attach a sort handler (click) to a node
- * @param {object} settings dataTables settings object
- * @param {node} attachTo node to attach the handler to
- * @param {int} colIdx column sorting index
- * @param {function} [callback] callback function
- * @memberof DataTable#oApi
- */
- function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
- {
- var col = settings.aoColumns[ colIdx ];
-
- _fnBindAction( attachTo, {}, function (e) {
- /* If the column is not sortable - don't to anything */
- if ( col.bSortable === false ) {
- return;
- }
-
- // If processing is enabled use a timeout to allow the processing
- // display to be shown - otherwise to it synchronously
- if ( settings.oFeatures.bProcessing ) {
- _fnProcessingDisplay( settings, true );
-
- setTimeout( function() {
- _fnSortListener( settings, colIdx, e.shiftKey, callback );
-
- // In server-side processing, the draw callback will remove the
- // processing display
- if ( _fnDataSource( settings ) !== 'ssp' ) {
- _fnProcessingDisplay( settings, false );
- }
- }, 0 );
- }
- else {
- _fnSortListener( settings, colIdx, e.shiftKey, callback );
- }
- } );
- }
-
-
- /**
- * Set the sorting classes on table's body, Note: it is safe to call this function
- * when bSort and bSortClasses are false
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnSortingClasses( settings )
- {
- var oldSort = settings.aLastSort;
- var sortClass = settings.oClasses.sSortColumn;
- var sort = _fnSortFlatten( settings );
- var features = settings.oFeatures;
- var i, ien, colIdx;
-
- if ( features.bSort && features.bSortClasses ) {
- // Remove old sorting classes
- for ( i=0, ien=oldSort.length ; i 0 && s.time < +new Date() - (duration*1000) ) {
- callback();
- return;
- }
-
- // Number of columns have changed - all bets are off, no restore of settings
- if ( s.columns && columns.length !== s.columns.length ) {
- callback();
- return;
- }
-
- // Store the saved state so it might be accessed at any time
- settings.oLoadedState = $.extend( true, {}, s );
-
- // Restore key features - todo - for 1.11 this needs to be done by
- // subscribed events
- if ( s.start !== undefined ) {
- settings._iDisplayStart = s.start;
- settings.iInitDisplayStart = s.start;
- }
- if ( s.length !== undefined ) {
- settings._iDisplayLength = s.length;
- }
-
- // Order
- if ( s.order !== undefined ) {
- settings.aaSorting = [];
- $.each( s.order, function ( i, col ) {
- settings.aaSorting.push( col[0] >= columns.length ?
- [ 0, col[1] ] :
- col
- );
- } );
- }
-
- // Search
- if ( s.search !== undefined ) {
- $.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );
- }
-
- // Columns
- //
- if ( s.columns ) {
- for ( i=0, ien=s.columns.length ; i= end )
- {
- start = end - len;
- }
-
- // Keep the start record on the current page
- start -= (start % len);
-
- if ( len === -1 || start < 0 )
- {
- start = 0;
- }
-
- settings._iDisplayStart = start;
- }
-
-
- function _fnRenderer( settings, type )
- {
- var renderer = settings.renderer;
- var host = DataTable.ext.renderer[type];
-
- if ( $.isPlainObject( renderer ) && renderer[type] ) {
- // Specific renderer for this type. If available use it, otherwise use
- // the default.
- return host[renderer[type]] || host._;
- }
- else if ( typeof renderer === 'string' ) {
- // Common renderer - if there is one available for this type use it,
- // otherwise use the default
- return host[renderer] || host._;
- }
-
- // Use the default
- return host._;
- }
-
-
- /**
- * Detect the data source being used for the table. Used to simplify the code
- * a little (ajax) and to make it compress a little smaller.
- *
- * @param {object} settings dataTables settings object
- * @returns {string} Data source
- * @memberof DataTable#oApi
- */
- function _fnDataSource ( settings )
- {
- if ( settings.oFeatures.bServerSide ) {
- return 'ssp';
- }
- else if ( settings.ajax || settings.sAjaxSource ) {
- return 'ajax';
- }
- return 'dom';
- }
-
-
-
-
- /**
- * Computed structure of the DataTables API, defined by the options passed to
- * `DataTable.Api.register()` when building the API.
- *
- * The structure is built in order to speed creation and extension of the Api
- * objects since the extensions are effectively pre-parsed.
- *
- * The array is an array of objects with the following structure, where this
- * base array represents the Api prototype base:
- *
- * [
- * {
- * name: 'data' -- string - Property name
- * val: function () {}, -- function - Api method (or undefined if just an object
- * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
- * propExt: [ ... ] -- array - Array of Api object definitions to extend the property
- * },
- * {
- * name: 'row'
- * val: {},
- * methodExt: [ ... ],
- * propExt: [
- * {
- * name: 'data'
- * val: function () {},
- * methodExt: [ ... ],
- * propExt: [ ... ]
- * },
- * ...
- * ]
- * }
- * ]
- *
- * @type {Array}
- * @ignore
- */
- var __apiStruct = [];
-
-
- /**
- * `Array.prototype` reference.
- *
- * @type object
- * @ignore
- */
- var __arrayProto = Array.prototype;
-
-
- /**
- * Abstraction for `context` parameter of the `Api` constructor to allow it to
- * take several different forms for ease of use.
- *
- * Each of the input parameter types will be converted to a DataTables settings
- * object where possible.
- *
- * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one
- * of:
- *
- * * `string` - jQuery selector. Any DataTables' matching the given selector
- * with be found and used.
- * * `node` - `TABLE` node which has already been formed into a DataTable.
- * * `jQuery` - A jQuery object of `TABLE` nodes.
- * * `object` - DataTables settings object
- * * `DataTables.Api` - API instance
- * @return {array|null} Matching DataTables settings objects. `null` or
- * `undefined` is returned if no matching DataTable is found.
- * @ignore
- */
- var _toSettings = function ( mixed )
- {
- var idx, jq;
- var settings = DataTable.settings;
- var tables = $.map( settings, function (el, i) {
- return el.nTable;
- } );
-
- if ( ! mixed ) {
- return [];
- }
- else if ( mixed.nTable && mixed.oApi ) {
- // DataTables settings object
- return [ mixed ];
- }
- else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
- // Table node
- idx = $.inArray( mixed, tables );
- return idx !== -1 ? [ settings[idx] ] : null;
- }
- else if ( mixed && typeof mixed.settings === 'function' ) {
- return mixed.settings().toArray();
- }
- else if ( typeof mixed === 'string' ) {
- // jQuery selector
- jq = $(mixed);
- }
- else if ( mixed instanceof $ ) {
- // jQuery object (also DataTables instance)
- jq = mixed;
- }
-
- if ( jq ) {
- return jq.map( function(i) {
- idx = $.inArray( this, tables );
- return idx !== -1 ? settings[idx] : null;
- } ).toArray();
- }
- };
-
-
- /**
- * DataTables API class - used to control and interface with one or more
- * DataTables enhanced tables.
- *
- * The API class is heavily based on jQuery, presenting a chainable interface
- * that you can use to interact with tables. Each instance of the API class has
- * a "context" - i.e. the tables that it will operate on. This could be a single
- * table, all tables on a page or a sub-set thereof.
- *
- * Additionally the API is designed to allow you to easily work with the data in
- * the tables, retrieving and manipulating it as required. This is done by
- * presenting the API class as an array like interface. The contents of the
- * array depend upon the actions requested by each method (for example
- * `rows().nodes()` will return an array of nodes, while `rows().data()` will
- * return an array of objects or arrays depending upon your table's
- * configuration). The API object has a number of array like methods (`push`,
- * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
- * `unique` etc) to assist your working with the data held in a table.
- *
- * Most methods (those which return an Api instance) are chainable, which means
- * the return from a method call also has all of the methods available that the
- * top level object had. For example, these two calls are equivalent:
- *
- * // Not chained
- * api.row.add( {...} );
- * api.draw();
- *
- * // Chained
- * api.row.add( {...} ).draw();
- *
- * @class DataTable.Api
- * @param {array|object|string|jQuery} context DataTable identifier. This is
- * used to define which DataTables enhanced tables this API will operate on.
- * Can be one of:
- *
- * * `string` - jQuery selector. Any DataTables' matching the given selector
- * with be found and used.
- * * `node` - `TABLE` node which has already been formed into a DataTable.
- * * `jQuery` - A jQuery object of `TABLE` nodes.
- * * `object` - DataTables settings object
- * @param {array} [data] Data to initialise the Api instance with.
- *
- * @example
- * // Direct initialisation during DataTables construction
- * var api = $('#example').DataTable();
- *
- * @example
- * // Initialisation using a DataTables jQuery object
- * var api = $('#example').dataTable().api();
- *
- * @example
- * // Initialisation as a constructor
- * var api = new $.fn.DataTable.Api( 'table.dataTable' );
- */
- _Api = function ( context, data )
- {
- if ( ! (this instanceof _Api) ) {
- return new _Api( context, data );
- }
-
- var settings = [];
- var ctxSettings = function ( o ) {
- var a = _toSettings( o );
- if ( a ) {
- settings = settings.concat( a );
- }
- };
-
- if ( $.isArray( context ) ) {
- for ( var i=0, ien=context.length ; i idx ?
- new _Api( ctx[idx], this[idx] ) :
- null;
- },
-
-
- filter: function ( fn )
- {
- var a = [];
-
- if ( __arrayProto.filter ) {
- a = __arrayProto.filter.call( this, fn, this );
- }
- else {
- // Compatibility for browsers without EMCA-252-5 (JS 1.6)
- for ( var i=0, ien=this.length ; i 0 ) {
- return ctx[0].json;
- }
-
- // else return undefined;
- } );
-
-
- /**
- * Get the data submitted in the last Ajax request
- */
- _api_register( 'ajax.params()', function () {
- var ctx = this.context;
-
- if ( ctx.length > 0 ) {
- return ctx[0].oAjaxData;
- }
-
- // else return undefined;
- } );
-
-
- /**
- * Reload tables from the Ajax data source. Note that this function will
- * automatically re-draw the table when the remote data has been loaded.
- *
- * @param {boolean} [reset=true] Reset (default) or hold the current paging
- * position. A full re-sort and re-filter is performed when this method is
- * called, which is why the pagination reset is the default action.
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.reload()', function ( callback, resetPaging ) {
- return this.iterator( 'table', function (settings) {
- __reload( settings, resetPaging===false, callback );
- } );
- } );
-
-
- /**
- * Get the current Ajax URL. Note that this returns the URL from the first
- * table in the current context.
- *
- * @return {string} Current Ajax source URL
- *//**
- * Set the Ajax URL. Note that this will set the URL for all tables in the
- * current context.
- *
- * @param {string} url URL to set.
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.url()', function ( url ) {
- var ctx = this.context;
-
- if ( url === undefined ) {
- // get
- if ( ctx.length === 0 ) {
- return undefined;
- }
- ctx = ctx[0];
-
- return ctx.ajax ?
- $.isPlainObject( ctx.ajax ) ?
- ctx.ajax.url :
- ctx.ajax :
- ctx.sAjaxSource;
- }
-
- // set
- return this.iterator( 'table', function ( settings ) {
- if ( $.isPlainObject( settings.ajax ) ) {
- settings.ajax.url = url;
- }
- else {
- settings.ajax = url;
- }
- // No need to consider sAjaxSource here since DataTables gives priority
- // to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
- // value of `sAjaxSource` redundant.
- } );
- } );
-
-
- /**
- * Load data from the newly set Ajax URL. Note that this method is only
- * available when `ajax.url()` is used to set a URL. Additionally, this method
- * has the same effect as calling `ajax.reload()` but is provided for
- * convenience when setting a new URL. Like `ajax.reload()` it will
- * automatically redraw the table once the remote data has been loaded.
- *
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
- // Same as a reload, but makes sense to present it for easy access after a
- // url change
- return this.iterator( 'table', function ( ctx ) {
- __reload( ctx, resetPaging===false, callback );
- } );
- } );
-
-
-
-
- var _selector_run = function ( type, selector, selectFn, settings, opts )
- {
- var
- out = [], res,
- a, i, ien, j, jen,
- selectorType = typeof selector;
-
- // Can't just check for isArray here, as an API or jQuery instance might be
- // given with their array like look
- if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {
- selector = [ selector ];
- }
-
- for ( i=0, ien=selector.length ; i 0 ) {
- // Assign the first element to the first item in the instance
- // and truncate the instance and context
- inst[0] = inst[i];
- inst[0].length = 1;
- inst.length = 1;
- inst.context = [ inst.context[i] ];
-
- return inst;
- }
- }
-
- // Not found - return an empty instance
- inst.length = 0;
- return inst;
- };
-
-
- var _selector_row_indexes = function ( settings, opts )
- {
- var
- i, ien, tmp, a=[],
- displayFiltered = settings.aiDisplay,
- displayMaster = settings.aiDisplayMaster;
-
- var
- search = opts.search, // none, applied, removed
- order = opts.order, // applied, current, index (original - compatibility with 1.9)
- page = opts.page; // all, current
-
- if ( _fnDataSource( settings ) == 'ssp' ) {
- // In server-side processing mode, most options are irrelevant since
- // rows not shown don't exist and the index order is the applied order
- // Removed is a special case - for consistency just return an empty
- // array
- return search === 'removed' ?
- [] :
- _range( 0, displayMaster.length );
- }
- else if ( page == 'current' ) {
- // Current page implies that order=current and fitler=applied, since it is
- // fairly senseless otherwise, regardless of what order and search actually
- // are
- for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i= 0 && search == 'applied') )
- {
- a.push( i );
- }
- }
- }
- }
-
- return a;
- };
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Rows
- *
- * {} - no selector - use all available rows
- * {integer} - row aoData index
- * {node} - TR node
- * {string} - jQuery selector to apply to the TR elements
- * {array} - jQuery array of nodes, or simply an array of TR nodes
- *
- */
- var __row_selector = function ( settings, selector, opts )
- {
- var rows;
- var run = function ( sel ) {
- var selInt = _intVal( sel );
- var i, ien;
- var aoData = settings.aoData;
-
- // Short cut - selector is a number and no options provided (default is
- // all records, so no need to check if the index is in there, since it
- // must be - dev error if the index doesn't exist).
- if ( selInt !== null && ! opts ) {
- return [ selInt ];
- }
-
- if ( ! rows ) {
- rows = _selector_row_indexes( settings, opts );
- }
-
- if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
- // Selector - integer
- return [ selInt ];
- }
- else if ( sel === null || sel === undefined || sel === '' ) {
- // Selector - none
- return rows;
- }
-
- // Selector - function
- if ( typeof sel === 'function' ) {
- return $.map( rows, function (idx) {
- var row = aoData[ idx ];
- return sel( idx, row._aData, row.nTr ) ? idx : null;
- } );
- }
-
- // Selector - node
- if ( sel.nodeName ) {
- var rowIdx = sel._DT_RowIndex; // Property added by DT for fast lookup
- var cellIdx = sel._DT_CellIndex;
-
- if ( rowIdx !== undefined ) {
- // Make sure that the row is actually still present in the table
- return aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ?
- [ rowIdx ] :
- [];
- }
- else if ( cellIdx ) {
- return aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel ?
- [ cellIdx.row ] :
- [];
- }
- else {
- var host = $(sel).closest('*[data-dt-row]');
- return host.length ?
- [ host.data('dt-row') ] :
- [];
- }
- }
-
- // ID selector. Want to always be able to select rows by id, regardless
- // of if the tr element has been created or not, so can't rely upon
- // jQuery here - hence a custom implementation. This does not match
- // Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,
- // but to select it using a CSS selector engine (like Sizzle or
- // querySelect) it would need to need to be escaped for some characters.
- // DataTables simplifies this for row selectors since you can select
- // only a row. A # indicates an id any anything that follows is the id -
- // unescaped.
- if ( typeof sel === 'string' && sel.charAt(0) === '#' ) {
- // get row index from id
- var rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];
- if ( rowObj !== undefined ) {
- return [ rowObj.idx ];
- }
-
- // need to fall through to jQuery in case there is DOM id that
- // matches
- }
-
- // Get nodes in the order from the `rows` array with null values removed
- var nodes = _removeEmpty(
- _pluck_order( settings.aoData, rows, 'nTr' )
- );
-
- // Selector - jQuery selector string, array of nodes or jQuery object/
- // As jQuery's .filter() allows jQuery objects to be passed in filter,
- // it also allows arrays, so this will cope with all three options
- return $(nodes)
- .filter( sel )
- .map( function () {
- return this._DT_RowIndex;
- } )
- .toArray();
- };
-
- return _selector_run( 'row', selector, run, settings, opts );
- };
-
-
- _api_register( 'rows()', function ( selector, opts ) {
- // argument shifting
- if ( selector === undefined ) {
- selector = '';
- }
- else if ( $.isPlainObject( selector ) ) {
- opts = selector;
- selector = '';
- }
-
- opts = _selector_opts( opts );
-
- var inst = this.iterator( 'table', function ( settings ) {
- return __row_selector( settings, selector, opts );
- }, 1 );
-
- // Want argument shifting here and in __row_selector?
- inst.selector.rows = selector;
- inst.selector.opts = opts;
-
- return inst;
- } );
-
- _api_register( 'rows().nodes()', function () {
- return this.iterator( 'row', function ( settings, row ) {
- return settings.aoData[ row ].nTr || undefined;
- }, 1 );
- } );
-
- _api_register( 'rows().data()', function () {
- return this.iterator( true, 'rows', function ( settings, rows ) {
- return _pluck_order( settings.aoData, rows, '_aData' );
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
- return this.iterator( 'row', function ( settings, row ) {
- var r = settings.aoData[ row ];
- return type === 'search' ? r._aFilterData : r._aSortData;
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
- return this.iterator( 'row', function ( settings, row ) {
- _fnInvalidate( settings, row, src );
- } );
- } );
-
- _api_registerPlural( 'rows().indexes()', 'row().index()', function () {
- return this.iterator( 'row', function ( settings, row ) {
- return row;
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {
- var a = [];
- var context = this.context;
-
- // `iterator` will drop undefined values, but in this case we want them
- for ( var i=0, ien=context.length ; i 0 ) {
- settings._iRecordsDisplay--;
- }
-
- // Check for an 'overflow' they case for displaying the table
- _fnLengthOverflow( settings );
-
- // Remove the row's ID reference if there is one
- var id = settings.rowIdFn( rowData._aData );
- if ( id !== undefined ) {
- delete settings.aIds[ id ];
- }
- } );
-
- this.iterator( 'table', function ( settings ) {
- for ( var i=0, ien=settings.aoData.length ; i ').addClass( k );
- $('td', created)
- .addClass( k )
- .html( r )
- [0].colSpan = _fnVisbleColumns( ctx );
-
- rows.push( created[0] );
- }
- };
-
- addRow( data, klass );
-
- if ( row._details ) {
- row._details.detach();
- }
-
- row._details = $(rows);
-
- // If the children were already shown, that state should be retained
- if ( row._detailsShow ) {
- row._details.insertAfter( row.nTr );
- }
- };
-
-
- var __details_remove = function ( api, idx )
- {
- var ctx = api.context;
-
- if ( ctx.length ) {
- var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];
-
- if ( row && row._details ) {
- row._details.remove();
-
- row._detailsShow = undefined;
- row._details = undefined;
- }
- }
- };
-
-
- var __details_display = function ( api, show ) {
- var ctx = api.context;
-
- if ( ctx.length && api.length ) {
- var row = ctx[0].aoData[ api[0] ];
-
- if ( row._details ) {
- row._detailsShow = show;
-
- if ( show ) {
- row._details.insertAfter( row.nTr );
- }
- else {
- row._details.detach();
- }
-
- __details_events( ctx[0] );
- }
- }
- };
-
-
- var __details_events = function ( settings )
- {
- var api = new _Api( settings );
- var namespace = '.dt.DT_details';
- var drawEvent = 'draw'+namespace;
- var colvisEvent = 'column-visibility'+namespace;
- var destroyEvent = 'destroy'+namespace;
- var data = settings.aoData;
-
- api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );
-
- if ( _pluck( data, '_details' ).length > 0 ) {
- // On each draw, insert the required elements into the document
- api.on( drawEvent, function ( e, ctx ) {
- if ( settings !== ctx ) {
- return;
- }
-
- api.rows( {page:'current'} ).eq(0).each( function (idx) {
- // Internal data grab
- var row = data[ idx ];
-
- if ( row._detailsShow ) {
- row._details.insertAfter( row.nTr );
- }
- } );
- } );
-
- // Column visibility change - update the colspan
- api.on( colvisEvent, function ( e, ctx, idx, vis ) {
- if ( settings !== ctx ) {
- return;
- }
-
- // Update the colspan for the details rows (note, only if it already has
- // a colspan)
- var row, visible = _fnVisbleColumns( ctx );
-
- for ( var i=0, ien=data.length ; i=0 count from left, <0 count from right)
- * "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)
- * "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)
- * "{string}:name" - column name
- * "{string}" - jQuery selector on column header nodes
- *
- */
-
- // can be an array of these items, comma separated list, or an array of comma
- // separated lists
-
- var __re_column_selector = /^([^:]+):(name|visIdx|visible)$/;
-
-
- // r1 and r2 are redundant - but it means that the parameters match for the
- // iterator callback in columns().data()
- var __columnData = function ( settings, column, r1, r2, rows ) {
- var a = [];
- for ( var row=0, ien=rows.length ; row= 0 ?
- selInt : // Count from left
- columns.length + selInt // Count from right (+ because its a negative value)
- ];
- }
-
- // Selector = function
- if ( typeof s === 'function' ) {
- var rows = _selector_row_indexes( settings, opts );
-
- return $.map( columns, function (col, idx) {
- return s(
- idx,
- __columnData( settings, idx, 0, 0, rows ),
- nodes[ idx ]
- ) ? idx : null;
- } );
- }
-
- // jQuery or string selector
- var match = typeof s === 'string' ?
- s.match( __re_column_selector ) :
- '';
-
- if ( match ) {
- switch( match[2] ) {
- case 'visIdx':
- case 'visible':
- var idx = parseInt( match[1], 10 );
- // Visible index given, convert to column index
- if ( idx < 0 ) {
- // Counting from the right
- var visColumns = $.map( columns, function (col,i) {
- return col.bVisible ? i : null;
- } );
- return [ visColumns[ visColumns.length + idx ] ];
- }
- // Counting from the left
- return [ _fnVisibleToColumnIndex( settings, idx ) ];
-
- case 'name':
- // match by name. `names` is column index complete and in order
- return $.map( names, function (name, i) {
- return name === match[1] ? i : null;
- } );
-
- default:
- return [];
- }
- }
-
- // Cell in the table body
- if ( s.nodeName && s._DT_CellIndex ) {
- return [ s._DT_CellIndex.column ];
- }
-
- // jQuery selector on the TH elements for the columns
- var jqResult = $( nodes )
- .filter( s )
- .map( function () {
- return $.inArray( this, nodes ); // `nodes` is column index complete and in order
- } )
- .toArray();
-
- if ( jqResult.length || ! s.nodeName ) {
- return jqResult;
- }
-
- // Otherwise a node which might have a `dt-column` data attribute, or be
- // a child or such an element
- var host = $(s).closest('*[data-dt-column]');
- return host.length ?
- [ host.data('dt-column') ] :
- [];
- };
-
- return _selector_run( 'column', selector, run, settings, opts );
- };
-
-
- var __setColumnVis = function ( settings, column, vis ) {
- var
- cols = settings.aoColumns,
- col = cols[ column ],
- data = settings.aoData,
- row, cells, i, ien, tr;
-
- // Get
- if ( vis === undefined ) {
- return col.bVisible;
- }
-
- // Set
- // No change
- if ( col.bVisible === vis ) {
- return;
- }
-
- if ( vis ) {
- // Insert column
- // Need to decide if we should use appendChild or insertBefore
- var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
-
- for ( i=0, ien=data.length ; i iThat;
- }
-
- return true;
- };
-
-
- /**
- * Check if a `` node is a DataTable table already or not.
- *
- * @param {node|jquery|string} table Table node, jQuery object or jQuery
- * selector for the table to test. Note that if more than more than one
- * table is passed on, only the first will be checked
- * @returns {boolean} true the table given is a DataTable, or false otherwise
- * @static
- * @dtopt API-Static
- *
- * @example
- * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
- * $('#example').dataTable();
- * }
- */
- DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
- {
- var t = $(table).get(0);
- var is = false;
-
- if ( table instanceof DataTable.Api ) {
- return true;
- }
-
- $.each( DataTable.settings, function (i, o) {
- var head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;
- var foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;
-
- if ( o.nTable === t || head === t || foot === t ) {
- is = true;
- }
- } );
-
- return is;
- };
-
-
- /**
- * Get all DataTable tables that have been initialised - optionally you can
- * select to get only currently visible tables.
- *
- * @param {boolean} [visible=false] Flag to indicate if you want all (default)
- * or visible tables only.
- * @returns {array} Array of `table` nodes (not DataTable instances) which are
- * DataTables
- * @static
- * @dtopt API-Static
- *
- * @example
- * $.each( $.fn.dataTable.tables(true), function () {
- * $(table).DataTable().columns.adjust();
- * } );
- */
- DataTable.tables = DataTable.fnTables = function ( visible )
- {
- var api = false;
-
- if ( $.isPlainObject( visible ) ) {
- api = visible.api;
- visible = visible.visible;
- }
-
- var a = $.map( DataTable.settings, function (o) {
- if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
- return o.nTable;
- }
- } );
-
- return api ?
- new _Api( a ) :
- a;
- };
-
-
- /**
- * Convert from camel case parameters to Hungarian notation. This is made public
- * for the extensions to provide the same ability as DataTables core to accept
- * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
- * parameters.
- *
- * @param {object} src The model object which holds all parameters that can be
- * mapped.
- * @param {object} user The object to convert from camel case to Hungarian.
- * @param {boolean} force When set to `true`, properties which already have a
- * Hungarian value in the `user` object will be overwritten. Otherwise they
- * won't be.
- */
- DataTable.camelToHungarian = _fnCamelToHungarian;
-
-
-
- /**
- *
- */
- _api_register( '$()', function ( selector, opts ) {
- var
- rows = this.rows( opts ).nodes(), // Get all rows
- jqRows = $(rows);
-
- return $( [].concat(
- jqRows.filter( selector ).toArray(),
- jqRows.find( selector ).toArray()
- ) );
- } );
-
-
- // jQuery functions to operate on the tables
- $.each( [ 'on', 'one', 'off' ], function (i, key) {
- _api_register( key+'()', function ( /* event, handler */ ) {
- var args = Array.prototype.slice.call(arguments);
-
- // Add the `dt` namespace automatically if it isn't already present
- args[0] = $.map( args[0].split( /\s/ ), function ( e ) {
- return ! e.match(/\.dt\b/) ?
- e+'.dt' :
- e;
- } ).join( ' ' );
-
- var inst = $( this.tables().nodes() );
- inst[key].apply( inst, args );
- return this;
- } );
- } );
-
-
- _api_register( 'clear()', function () {
- return this.iterator( 'table', function ( settings ) {
- _fnClearTable( settings );
- } );
- } );
-
-
- _api_register( 'settings()', function () {
- return new _Api( this.context, this.context );
- } );
-
-
- _api_register( 'init()', function () {
- var ctx = this.context;
- return ctx.length ? ctx[0].oInit : null;
- } );
-
-
- _api_register( 'data()', function () {
- return this.iterator( 'table', function ( settings ) {
- return _pluck( settings.aoData, '_aData' );
- } ).flatten();
- } );
-
-
- _api_register( 'destroy()', function ( remove ) {
- remove = remove || false;
-
- return this.iterator( 'table', function ( settings ) {
- var orig = settings.nTableWrapper.parentNode;
- var classes = settings.oClasses;
- var table = settings.nTable;
- var tbody = settings.nTBody;
- var thead = settings.nTHead;
- var tfoot = settings.nTFoot;
- var jqTable = $(table);
- var jqTbody = $(tbody);
- var jqWrapper = $(settings.nTableWrapper);
- var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
- var i, ien;
-
- // Flag to note that the table is currently being destroyed - no action
- // should be taken
- settings.bDestroying = true;
-
- // Fire off the destroy callbacks for plug-ins etc
- _fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
-
- // If not being removed from the document, make all columns visible
- if ( ! remove ) {
- new _Api( settings ).columns().visible( true );
- }
-
- // Blitz all `DT` namespaced events (these are internal events, the
- // lowercase, `dt` events are user subscribed and they are responsible
- // for removing them
- jqWrapper.off('.DT').find(':not(tbody *)').off('.DT');
- $(window).off('.DT-'+settings.sInstance);
-
- // When scrolling we had to break the table up - restore it
- if ( table != thead.parentNode ) {
- jqTable.children('thead').detach();
- jqTable.append( thead );
- }
-
- if ( tfoot && table != tfoot.parentNode ) {
- jqTable.children('tfoot').detach();
- jqTable.append( tfoot );
- }
-
- settings.aaSorting = [];
- settings.aaSortingFixed = [];
- _fnSortingClasses( settings );
-
- $( rows ).removeClass( settings.asStripeClasses.join(' ') );
-
- $('th, td', thead).removeClass( classes.sSortable+' '+
- classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
- );
-
- // Add the TR elements back into the table in their original order
- jqTbody.children().detach();
- jqTbody.append( rows );
-
- // Remove the DataTables generated nodes, events and classes
- var removedMethod = remove ? 'remove' : 'detach';
- jqTable[ removedMethod ]();
- jqWrapper[ removedMethod ]();
-
- // If we need to reattach the table to the document
- if ( ! remove && orig ) {
- // insertBefore acts like appendChild if !arg[1]
- orig.insertBefore( table, settings.nTableReinsertBefore );
-
- // Restore the width of the original table - was read from the style property,
- // so we can restore directly to that
- jqTable
- .css( 'width', settings.sDestroyWidth )
- .removeClass( classes.sTable );
-
- // If the were originally stripe classes - then we add them back here.
- // Note this is not fool proof (for example if not all rows had stripe
- // classes - but it's a good effort without getting carried away
- ien = settings.asDestroyStripes.length;
-
- if ( ien ) {
- jqTbody.children().each( function (i) {
- $(this).addClass( settings.asDestroyStripes[i % ien] );
- } );
- }
- }
-
- /* Remove the settings object from the settings array */
- var idx = $.inArray( settings, DataTable.settings );
- if ( idx !== -1 ) {
- DataTable.settings.splice( idx, 1 );
- }
- } );
- } );
-
-
- // Add the `every()` method for rows, columns and cells in a compact form
- $.each( [ 'column', 'row', 'cell' ], function ( i, type ) {
- _api_register( type+'s().every()', function ( fn ) {
- var opts = this.selector.opts;
- var api = this;
-
- return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {
- // Rows and columns:
- // arg1 - index
- // arg2 - table counter
- // arg3 - loop counter
- // arg4 - undefined
- // Cells:
- // arg1 - row index
- // arg2 - column index
- // arg3 - table counter
- // arg4 - loop counter
- fn.call(
- api[ type ](
- arg1,
- type==='cell' ? arg2 : opts,
- type==='cell' ? opts : undefined
- ),
- arg1, arg2, arg3, arg4
- );
- } );
- } );
- } );
-
-
- // i18n method for extensions to be able to use the language object from the
- // DataTable
- _api_register( 'i18n()', function ( token, def, plural ) {
- var ctx = this.context[0];
- var resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );
-
- if ( resolved === undefined ) {
- resolved = def;
- }
-
- if ( plural !== undefined && $.isPlainObject( resolved ) ) {
- resolved = resolved[ plural ] !== undefined ?
- resolved[ plural ] :
- resolved._;
- }
-
- return resolved.replace( '%d', plural ); // nb: plural might be undefined,
- } );
- /**
- * Version string for plug-ins to check compatibility. Allowed format is
- * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
- * only for non-release builds. See http://semver.org/ for more information.
- * @member
- * @type string
- * @default Version number
- */
- DataTable.version = "1.10.19";
-
- /**
- * Private data store, containing all of the settings objects that are
- * created for the tables on a given page.
- *
- * Note that the `DataTable.settings` object is aliased to
- * `jQuery.fn.dataTableExt` through which it may be accessed and
- * manipulated, or `jQuery.fn.dataTable.settings`.
- * @member
- * @type array
- * @default []
- * @private
- */
- DataTable.settings = [];
-
- /**
- * Object models container, for the various models that DataTables has
- * available to it. These models define the objects that are used to hold
- * the active state and configuration of the table.
- * @namespace
- */
- DataTable.models = {};
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * search information for the global filter and individual column filters.
- * @namespace
- */
- DataTable.models.oSearch = {
- /**
- * Flag to indicate if the filtering should be case insensitive or not
- * @type boolean
- * @default true
- */
- "bCaseInsensitive": true,
-
- /**
- * Applied search term
- * @type string
- * @default Empty string
- */
- "sSearch": "",
-
- /**
- * Flag to indicate if the search term should be interpreted as a
- * regular expression (true) or not (false) and therefore and special
- * regex characters escaped.
- * @type boolean
- * @default false
- */
- "bRegex": false,
-
- /**
- * Flag to indicate if DataTables is to use its smart filtering or not.
- * @type boolean
- * @default true
- */
- "bSmart": true
- };
-
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * each individual row. This is the object format used for the settings
- * aoData array.
- * @namespace
- */
- DataTable.models.oRow = {
- /**
- * TR element for the row
- * @type node
- * @default null
- */
- "nTr": null,
-
- /**
- * Array of TD elements for each row. This is null until the row has been
- * created.
- * @type array nodes
- * @default []
- */
- "anCells": null,
-
- /**
- * Data object from the original data source for the row. This is either
- * an array if using the traditional form of DataTables, or an object if
- * using mData options. The exact type will depend on the passed in
- * data from the data source, or will be an array if using DOM a data
- * source.
- * @type array|object
- * @default []
- */
- "_aData": [],
-
- /**
- * Sorting data cache - this array is ostensibly the same length as the
- * number of columns (although each index is generated only as it is
- * needed), and holds the data that is used for sorting each column in the
- * row. We do this cache generation at the start of the sort in order that
- * the formatting of the sort data need be done only once for each cell
- * per sort. This array should not be read from or written to by anything
- * other than the master sorting methods.
- * @type array
- * @default null
- * @private
- */
- "_aSortData": null,
-
- /**
- * Per cell filtering data cache. As per the sort data cache, used to
- * increase the performance of the filtering in DataTables
- * @type array
- * @default null
- * @private
- */
- "_aFilterData": null,
-
- /**
- * Filtering data cache. This is the same as the cell filtering cache, but
- * in this case a string rather than an array. This is easily computed with
- * a join on `_aFilterData`, but is provided as a cache so the join isn't
- * needed on every search (memory traded for performance)
- * @type array
- * @default null
- * @private
- */
- "_sFilterRow": null,
-
- /**
- * Cache of the class name that DataTables has applied to the row, so we
- * can quickly look at this variable rather than needing to do a DOM check
- * on className for the nTr property.
- * @type string
- * @default Empty string
- * @private
- */
- "_sRowStripe": "",
-
- /**
- * Denote if the original data source was from the DOM, or the data source
- * object. This is used for invalidating data, so DataTables can
- * automatically read data from the original source, unless uninstructed
- * otherwise.
- * @type string
- * @default null
- * @private
- */
- "src": null,
-
- /**
- * Index in the aoData array. This saves an indexOf lookup when we have the
- * object, but want to know the index
- * @type integer
- * @default -1
- * @private
- */
- "idx": -1
- };
-
-
- /**
- * Template object for the column information object in DataTables. This object
- * is held in the settings aoColumns array and contains all the information that
- * DataTables needs about each individual column.
- *
- * Note that this object is related to {@link DataTable.defaults.column}
- * but this one is the internal data store for DataTables's cache of columns.
- * It should NOT be manipulated outside of DataTables. Any configuration should
- * be done through the initialisation options.
- * @namespace
- */
- DataTable.models.oColumn = {
- /**
- * Column index. This could be worked out on-the-fly with $.inArray, but it
- * is faster to just hold it as a variable
- * @type integer
- * @default null
- */
- "idx": null,
-
- /**
- * A list of the columns that sorting should occur on when this column
- * is sorted. That this property is an array allows multi-column sorting
- * to be defined for a column (for example first name / last name columns
- * would benefit from this). The values are integers pointing to the
- * columns to be sorted on (typically it will be a single integer pointing
- * at itself, but that doesn't need to be the case).
- * @type array
- */
- "aDataSort": null,
-
- /**
- * Define the sorting directions that are applied to the column, in sequence
- * as the column is repeatedly sorted upon - i.e. the first value is used
- * as the sorting direction when the column if first sorted (clicked on).
- * Sort it again (click again) and it will move on to the next index.
- * Repeat until loop.
- * @type array
- */
- "asSorting": null,
-
- /**
- * Flag to indicate if the column is searchable, and thus should be included
- * in the filtering or not.
- * @type boolean
- */
- "bSearchable": null,
-
- /**
- * Flag to indicate if the column is sortable or not.
- * @type boolean
- */
- "bSortable": null,
-
- /**
- * Flag to indicate if the column is currently visible in the table or not
- * @type boolean
- */
- "bVisible": null,
-
- /**
- * Store for manual type assignment using the `column.type` option. This
- * is held in store so we can manipulate the column's `sType` property.
- * @type string
- * @default null
- * @private
- */
- "_sManualType": null,
-
- /**
- * Flag to indicate if HTML5 data attributes should be used as the data
- * source for filtering or sorting. True is either are.
- * @type boolean
- * @default false
- * @private
- */
- "_bAttrSrc": false,
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} nTd The TD node that has been created
- * @param {*} sData The Data for the cell
- * @param {array|object} oData The data for the whole row
- * @param {int} iRow The row index for the aoData data store
- * @default null
- */
- "fnCreatedCell": null,
-
- /**
- * Function to get data from a cell in a column. You should never
- * access data directly through _aData internally in DataTables - always use
- * the method attached to this property. It allows mData to function as
- * required. This function is automatically assigned by the column
- * initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {string} sSpecific The specific data type you want to get -
- * 'display', 'type' 'filter' 'sort'
- * @returns {*} The data for the cell from the given row's data
- * @default null
- */
- "fnGetData": null,
-
- /**
- * Function to set data for a cell in the column. You should never
- * set the data directly to _aData internally in DataTables - always use
- * this method. It allows mData to function as required. This function
- * is automatically assigned by the column initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {*} sValue Value to set
- * @default null
- */
- "fnSetData": null,
-
- /**
- * Property to read the value for the cells in the column from the data
- * source array / object. If null, then the default content is used, if a
- * function is given then the return from the function is used.
- * @type function|int|string|null
- * @default null
- */
- "mData": null,
-
- /**
- * Partner property to mData which is used (only when defined) to get
- * the data - i.e. it is basically the same as mData, but without the
- * 'set' option, and also the data fed to it is the result from mData.
- * This is the rendering method to match the data method of mData.
- * @type function|int|string|null
- * @default null
- */
- "mRender": null,
-
- /**
- * Unique header TH/TD element for this column - this is what the sorting
- * listener is attached to (if sorting is enabled.)
- * @type node
- * @default null
- */
- "nTh": null,
-
- /**
- * Unique footer TH/TD element for this column (if there is one). Not used
- * in DataTables as such, but can be used for plug-ins to reference the
- * footer for each column.
- * @type node
- * @default null
- */
- "nTf": null,
-
- /**
- * The class to apply to all TD elements in the table's TBODY for the column
- * @type string
- * @default null
- */
- "sClass": null,
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * @type string
- */
- "sContentPadding": null,
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because mData
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- */
- "sDefaultContent": null,
-
- /**
- * Name for the column, allowing reference to the column by name as well as
- * by index (needs a lookup to work by name).
- * @type string
- */
- "sName": null,
-
- /**
- * Custom sorting data type - defines which of the available plug-ins in
- * afnSortData the custom sorting will use - if any is defined.
- * @type string
- * @default std
- */
- "sSortDataType": 'std',
-
- /**
- * Class to be applied to the header element when sorting on this column
- * @type string
- * @default null
- */
- "sSortingClass": null,
-
- /**
- * Class to be applied to the header element when sorting on this column -
- * when jQuery UI theming is used.
- * @type string
- * @default null
- */
- "sSortingClassJUI": null,
-
- /**
- * Title of the column - what is seen in the TH element (nTh).
- * @type string
- */
- "sTitle": null,
-
- /**
- * Column sorting and filtering type
- * @type string
- * @default null
- */
- "sType": null,
-
- /**
- * Width of the column
- * @type string
- * @default null
- */
- "sWidth": null,
-
- /**
- * Width of the column when it was first "encountered"
- * @type string
- * @default null
- */
- "sWidthOrig": null
- };
-
-
- /*
- * Developer note: The properties of the object below are given in Hungarian
- * notation, that was used as the interface for DataTables prior to v1.10, however
- * from v1.10 onwards the primary interface is camel case. In order to avoid
- * breaking backwards compatibility utterly with this change, the Hungarian
- * version is still, internally the primary interface, but is is not documented
- * - hence the @name tags in each doc comment. This allows a Javascript function
- * to create a map from Hungarian notation to camel case (going the other direction
- * would require each property to be listed, which would at around 3K to the size
- * of DataTables, while this method is about a 0.5K hit.
- *
- * Ultimately this does pave the way for Hungarian notation to be dropped
- * completely, but that is a massive amount of work and will break current
- * installs (therefore is on-hold until v2).
- */
-
- /**
- * Initialisation options that can be given to DataTables at initialisation
- * time.
- * @namespace
- */
- DataTable.defaults = {
- /**
- * An array of data to use for the table, passed in at initialisation which
- * will be used in preference to any data which is already in the DOM. This is
- * particularly useful for constructing tables purely in Javascript, for
- * example with a custom Ajax call.
- * @type array
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.data
- *
- * @example
- * // Using a 2D array data source
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "data": [
- * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
- * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
- * ],
- * "columns": [
- * { "title": "Engine" },
- * { "title": "Browser" },
- * { "title": "Platform" },
- * { "title": "Version" },
- * { "title": "Grade" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using an array of objects as a data source (`data`)
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "data": [
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 4.0",
- * "platform": "Win 95+",
- * "version": 4,
- * "grade": "X"
- * },
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 5.0",
- * "platform": "Win 95+",
- * "version": 5,
- * "grade": "C"
- * }
- * ],
- * "columns": [
- * { "title": "Engine", "data": "engine" },
- * { "title": "Browser", "data": "browser" },
- * { "title": "Platform", "data": "platform" },
- * { "title": "Version", "data": "version" },
- * { "title": "Grade", "data": "grade" }
- * ]
- * } );
- * } );
- */
- "aaData": null,
-
-
- /**
- * If ordering is enabled, then DataTables will perform a first pass sort on
- * initialisation. You can define which column(s) the sort is performed
- * upon, and the sorting direction, with this variable. The `sorting` array
- * should contain an array for each column to be sorted initially containing
- * the column's index and a direction string ('asc' or 'desc').
- * @type array
- * @default [[0,'asc']]
- *
- * @dtopt Option
- * @name DataTable.defaults.order
- *
- * @example
- * // Sort by 3rd column first, and then 4th column
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "order": [[2,'asc'], [3,'desc']]
- * } );
- * } );
- *
- * // No initial sorting
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "order": []
- * } );
- * } );
- */
- "aaSorting": [[0,'asc']],
-
-
- /**
- * This parameter is basically identical to the `sorting` parameter, but
- * cannot be overridden by user interaction with the table. What this means
- * is that you could have a column (visible or hidden) which the sorting
- * will always be forced on first - any sorting after that (from the user)
- * will then be performed as required. This can be useful for grouping rows
- * together.
- * @type array
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.orderFixed
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "orderFixed": [[0,'asc']]
- * } );
- * } )
- */
- "aaSortingFixed": [],
-
-
- /**
- * DataTables can be instructed to load data to display in the table from a
- * Ajax source. This option defines how that Ajax call is made and where to.
- *
- * The `ajax` property has three different modes of operation, depending on
- * how it is defined. These are:
- *
- * * `string` - Set the URL from where the data should be loaded from.
- * * `object` - Define properties for `jQuery.ajax`.
- * * `function` - Custom data get function
- *
- * `string`
- * --------
- *
- * As a string, the `ajax` property simply defines the URL from which
- * DataTables will load data.
- *
- * `object`
- * --------
- *
- * As an object, the parameters in the object are passed to
- * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
- * of the Ajax request. DataTables has a number of default parameters which
- * you can override using this option. Please refer to the jQuery
- * documentation for a full description of the options available, although
- * the following parameters provide additional options in DataTables or
- * require special consideration:
- *
- * * `data` - As with jQuery, `data` can be provided as an object, but it
- * can also be used as a function to manipulate the data DataTables sends
- * to the server. The function takes a single parameter, an object of
- * parameters with the values that DataTables has readied for sending. An
- * object may be returned which will be merged into the DataTables
- * defaults, or you can add the items to the object that was passed in and
- * not return anything from the function. This supersedes `fnServerParams`
- * from DataTables 1.9-.
- *
- * * `dataSrc` - By default DataTables will look for the property `data` (or
- * `aaData` for compatibility with DataTables 1.9-) when obtaining data
- * from an Ajax source or for server-side processing - this parameter
- * allows that property to be changed. You can use Javascript dotted
- * object notation to get a data source for multiple levels of nesting, or
- * it my be used as a function. As a function it takes a single parameter,
- * the JSON returned from the server, which can be manipulated as
- * required, with the returned value being that used by DataTables as the
- * data source for the table. This supersedes `sAjaxDataProp` from
- * DataTables 1.9-.
- *
- * * `success` - Should not be overridden it is used internally in
- * DataTables. To manipulate / transform the data returned by the server
- * use `ajax.dataSrc`, or use `ajax` as a function (see below).
- *
- * `function`
- * ----------
- *
- * As a function, making the Ajax call is left up to yourself allowing
- * complete control of the Ajax request. Indeed, if desired, a method other
- * than Ajax could be used to obtain the required data, such as Web storage
- * or an AIR database.
- *
- * The function is given four parameters and no return is required. The
- * parameters are:
- *
- * 1. _object_ - Data to send to the server
- * 2. _function_ - Callback function that must be executed when the required
- * data has been obtained. That data should be passed into the callback
- * as the only parameter
- * 3. _object_ - DataTables settings object for the table
- *
- * Note that this supersedes `fnServerData` from DataTables 1.9-.
- *
- * @type string|object|function
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.ajax
- * @since 1.10.0
- *
- * @example
- * // Get JSON data from a file via Ajax.
- * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
- * $('#example').dataTable( {
- * "ajax": "data.json"
- * } );
- *
- * @example
- * // Get JSON data from a file via Ajax, using `dataSrc` to change
- * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": "tableData"
- * }
- * } );
- *
- * @example
- * // Get JSON data from a file via Ajax, using `dataSrc` to read data
- * // from a plain array rather than an array in an object
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": ""
- * }
- * } );
- *
- * @example
- * // Manipulate the data returned from the server - add a link to data
- * // (note this can, should, be done using `render` for the column - this
- * // is just a simple example of how the data can be manipulated).
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": function ( json ) {
- * for ( var i=0, ien=json.length ; i
- * a string - class name will be matched on the TH for the column
- * 0 or a positive integer - column index counting from the left
- * a negative integer - column index counting from the right
- * the string "_all" - all columns (i.e. assign a default)
- *
- * @member
- *
- * @name DataTable.defaults.columnDefs
- */
- "aoColumnDefs": null,
-
-
- /**
- * Basically the same as `search`, this parameter defines the individual column
- * filtering state at initialisation time. The array must be of the same size
- * as the number of columns, and each element be an object with the parameters
- * `search` and `escapeRegex` (the latter is optional). 'null' is also
- * accepted and the default will be used.
- * @type array
- * @default []
- *
- * @dtopt Option
- * @name DataTable.defaults.searchCols
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "searchCols": [
- * null,
- * { "search": "My filter" },
- * null,
- * { "search": "^[0-9]", "escapeRegex": false }
- * ]
- * } );
- * } )
- */
- "aoSearchCols": [],
-
-
- /**
- * An array of CSS classes that should be applied to displayed rows. This
- * array may be of any length, and DataTables will apply each class
- * sequentially, looping when required.
- * @type array
- * @default null Will take the values determined by the `oClasses.stripe*`
- * options
- *
- * @dtopt Option
- * @name DataTable.defaults.stripeClasses
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
- * } );
- * } )
- */
- "asStripeClasses": null,
-
-
- /**
- * Enable or disable automatic column width calculation. This can be disabled
- * as an optimisation (it takes some time to calculate the widths) if the
- * tables widths are passed in using `columns`.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.autoWidth
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "autoWidth": false
- * } );
- * } );
- */
- "bAutoWidth": true,
-
-
- /**
- * Deferred rendering can provide DataTables with a huge speed boost when you
- * are using an Ajax or JS data source for the table. This option, when set to
- * true, will cause DataTables to defer the creation of the table elements for
- * each row until they are needed for a draw - saving a significant amount of
- * time.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.deferRender
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajax": "sources/arrays.txt",
- * "deferRender": true
- * } );
- * } );
- */
- "bDeferRender": false,
-
-
- /**
- * Replace a DataTable which matches the given selector and replace it with
- * one which has the properties of the new initialisation object passed. If no
- * table matches the selector, then the new DataTable will be constructed as
- * per normal.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.destroy
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "srollY": "200px",
- * "paginate": false
- * } );
- *
- * // Some time later....
- * $('#example').dataTable( {
- * "filter": false,
- * "destroy": true
- * } );
- * } );
- */
- "bDestroy": false,
-
-
- /**
- * Enable or disable filtering of data. Filtering in DataTables is "smart" in
- * that it allows the end user to input multiple words (space separated) and
- * will match a row containing those words, even if not in the order that was
- * specified (this allow matching across multiple columns). Note that if you
- * wish to use filtering in DataTables this must remain 'true' - to remove the
- * default filtering input box and retain filtering abilities, please use
- * {@link DataTable.defaults.dom}.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.searching
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "searching": false
- * } );
- * } );
- */
- "bFilter": true,
-
-
- /**
- * Enable or disable the table information display. This shows information
- * about the data that is currently visible on the page, including information
- * about filtered data if that action is being performed.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.info
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "info": false
- * } );
- * } );
- */
- "bInfo": true,
-
-
- /**
- * Allows the end user to select the size of a formatted page from a select
- * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.lengthChange
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "lengthChange": false
- * } );
- * } );
- */
- "bLengthChange": true,
-
-
- /**
- * Enable or disable pagination.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.paging
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "paging": false
- * } );
- * } );
- */
- "bPaginate": true,
-
-
- /**
- * Enable or disable the display of a 'processing' indicator when the table is
- * being processed (e.g. a sort). This is particularly useful for tables with
- * large amounts of data where it can take a noticeable amount of time to sort
- * the entries.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.processing
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "processing": true
- * } );
- * } );
- */
- "bProcessing": false,
-
-
- /**
- * Retrieve the DataTables object for the given selector. Note that if the
- * table has already been initialised, this parameter will cause DataTables
- * to simply return the object that has already been set up - it will not take
- * account of any changes you might have made to the initialisation object
- * passed to DataTables (setting this parameter to true is an acknowledgement
- * that you understand this). `destroy` can be used to reinitialise a table if
- * you need.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.retrieve
- *
- * @example
- * $(document).ready( function() {
- * initTable();
- * tableActions();
- * } );
- *
- * function initTable ()
- * {
- * return $('#example').dataTable( {
- * "scrollY": "200px",
- * "paginate": false,
- * "retrieve": true
- * } );
- * }
- *
- * function tableActions ()
- * {
- * var table = initTable();
- * // perform API operations with oTable
- * }
- */
- "bRetrieve": false,
-
-
- /**
- * When vertical (y) scrolling is enabled, DataTables will force the height of
- * the table's viewport to the given height at all times (useful for layout).
- * However, this can look odd when filtering data down to a small data set,
- * and the footer is left "floating" further down. This parameter (when
- * enabled) will cause DataTables to collapse the table's viewport down when
- * the result set will fit within the given Y height.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.scrollCollapse
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollY": "200",
- * "scrollCollapse": true
- * } );
- * } );
- */
- "bScrollCollapse": false,
-
-
- /**
- * Configure DataTables to use server-side processing. Note that the
- * `ajax` parameter must also be given in order to give DataTables a
- * source to obtain the required data for each draw.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @dtopt Server-side
- * @name DataTable.defaults.serverSide
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "xhr.php"
- * } );
- * } );
- */
- "bServerSide": false,
-
-
- /**
- * Enable or disable sorting of columns. Sorting of individual columns can be
- * disabled by the `sortable` option for each column.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.ordering
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "ordering": false
- * } );
- * } );
- */
- "bSort": true,
-
-
- /**
- * Enable or display DataTables' ability to sort multiple columns at the
- * same time (activated by shift-click by the user).
- * @type boolean
- * @default true
- *
- * @dtopt Options
- * @name DataTable.defaults.orderMulti
- *
- * @example
- * // Disable multiple column sorting ability
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "orderMulti": false
- * } );
- * } );
- */
- "bSortMulti": true,
-
-
- /**
- * Allows control over whether DataTables should use the top (true) unique
- * cell that is found for a single column, or the bottom (false - default).
- * This is useful when using complex headers.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.orderCellsTop
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "orderCellsTop": true
- * } );
- * } );
- */
- "bSortCellsTop": false,
-
-
- /**
- * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
- * `sorting\_3` to the columns which are currently being sorted on. This is
- * presented as a feature switch as it can increase processing time (while
- * classes are removed and added) so for large data sets you might want to
- * turn this off.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.orderClasses
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "orderClasses": false
- * } );
- * } );
- */
- "bSortClasses": true,
-
-
- /**
- * Enable or disable state saving. When enabled HTML5 `localStorage` will be
- * used to save table display information such as pagination information,
- * display length, filtering and sorting. As such when the end user reloads
- * the page the display display will match what thy had previously set up.
- *
- * Due to the use of `localStorage` the default state saving is not supported
- * in IE6 or 7. If state saving is required in those browsers, use
- * `stateSaveCallback` to provide a storage solution such as cookies.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.stateSave
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "stateSave": true
- * } );
- * } );
- */
- "bStateSave": false,
-
-
- /**
- * This function is called when a TR element is created (and all TD child
- * elements have been inserted), or registered if using a DOM source, allowing
- * manipulation of the TR element (adding classes etc).
- * @type function
- * @param {node} row "TR" element for the current row
- * @param {array} data Raw data array for this row
- * @param {int} dataIndex The index of this row in the internal aoData array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.createdRow
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "createdRow": function( row, data, dataIndex ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( data[4] == "A" )
- * {
- * $('td:eq(4)', row).html( 'A ' );
- * }
- * }
- * } );
- * } );
- */
- "fnCreatedRow": null,
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify any aspect you want about the created DOM.
- * @type function
- * @param {object} settings DataTables settings object
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.drawCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "drawCallback": function( settings ) {
- * alert( 'DataTables has redrawn the table' );
- * }
- * } );
- * } );
- */
- "fnDrawCallback": null,
-
-
- /**
- * Identical to fnHeaderCallback() but for the table footer this function
- * allows you to modify the table footer on every 'draw' event.
- * @type function
- * @param {node} foot "TR" element for the footer
- * @param {array} data Full table data (as derived from the original HTML)
- * @param {int} start Index for the current display starting point in the
- * display array
- * @param {int} end Index for the current display ending point in the
- * display array
- * @param {array int} display Index array to translate the visual position
- * to the full data array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.footerCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "footerCallback": function( tfoot, data, start, end, display ) {
- * tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
- * }
- * } );
- * } )
- */
- "fnFooterCallback": null,
-
-
- /**
- * When rendering large numbers in the information element for the table
- * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
- * to have a comma separator for the 'thousands' units (e.g. 1 million is
- * rendered as "1,000,000") to help readability for the end user. This
- * function will override the default method DataTables uses.
- * @type function
- * @member
- * @param {int} toFormat number to be formatted
- * @returns {string} formatted string for DataTables to show the number
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.formatNumber
- *
- * @example
- * // Format a number using a single quote for the separator (note that
- * // this can also be done with the language.thousands option)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "formatNumber": function ( toFormat ) {
- * return toFormat.toString().replace(
- * /\B(?=(\d{3})+(?!\d))/g, "'"
- * );
- * };
- * } );
- * } );
- */
- "fnFormatNumber": function ( toFormat ) {
- return toFormat.toString().replace(
- /\B(?=(\d{3})+(?!\d))/g,
- this.oLanguage.sThousands
- );
- },
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify the header row. This can be used to calculate and
- * display useful information about the table.
- * @type function
- * @param {node} head "TR" element for the header
- * @param {array} data Full table data (as derived from the original HTML)
- * @param {int} start Index for the current display starting point in the
- * display array
- * @param {int} end Index for the current display ending point in the
- * display array
- * @param {array int} display Index array to translate the visual position
- * to the full data array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.headerCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fheaderCallback": function( head, data, start, end, display ) {
- * head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
- * }
- * } );
- * } )
- */
- "fnHeaderCallback": null,
-
-
- /**
- * The information element can be used to convey information about the current
- * state of the table. Although the internationalisation options presented by
- * DataTables are quite capable of dealing with most customisations, there may
- * be times where you wish to customise the string further. This callback
- * allows you to do exactly that.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {int} start Starting position in data for the draw
- * @param {int} end End position in data for the draw
- * @param {int} max Total number of rows in the table (regardless of
- * filtering)
- * @param {int} total Total number of rows in the data set, after filtering
- * @param {string} pre The string that DataTables has formatted using it's
- * own rules
- * @returns {string} The string to be displayed in the information element.
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.infoCallback
- *
- * @example
- * $('#example').dataTable( {
- * "infoCallback": function( settings, start, end, max, total, pre ) {
- * return start +" to "+ end;
- * }
- * } );
- */
- "fnInfoCallback": null,
-
-
- /**
- * Called when the table has been initialised. Normally DataTables will
- * initialise sequentially and there will be no need for this function,
- * however, this does not hold true when using external language information
- * since that is obtained using an async XHR call.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.initComplete
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "initComplete": function(settings, json) {
- * alert( 'DataTables has finished its initialisation.' );
- * }
- * } );
- * } )
- */
- "fnInitComplete": null,
-
-
- /**
- * Called at the very start of each table draw and can be used to cancel the
- * draw by returning false, any other return (including undefined) results in
- * the full draw occurring).
- * @type function
- * @param {object} settings DataTables settings object
- * @returns {boolean} False will cancel the draw, anything else (including no
- * return) will allow it to complete.
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.preDrawCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "preDrawCallback": function( settings ) {
- * if ( $('#test').val() == 1 ) {
- * return false;
- * }
- * }
- * } );
- * } );
- */
- "fnPreDrawCallback": null,
-
-
- /**
- * This function allows you to 'post process' each row after it have been
- * generated for each table draw, but before it is rendered on screen. This
- * function might be used for setting the row class name etc.
- * @type function
- * @param {node} row "TR" element for the current row
- * @param {array} data Raw data array for this row
- * @param {int} displayIndex The display index for the current table draw
- * @param {int} displayIndexFull The index of the data in the full list of
- * rows (after filtering)
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.rowCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( data[4] == "A" ) {
- * $('td:eq(4)', row).html( 'A ' );
- * }
- * }
- * } );
- * } );
- */
- "fnRowCallback": null,
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * This parameter allows you to override the default function which obtains
- * the data from the server so something more suitable for your application.
- * For example you could use POST data, or pull information from a Gears or
- * AIR database.
- * @type function
- * @member
- * @param {string} source HTTP source to obtain the data from (`ajax`)
- * @param {array} data A key/value pair object containing the data to send
- * to the server
- * @param {function} callback to be called on completion of the data get
- * process that will draw the data on the page.
- * @param {object} settings DataTables settings object
- *
- * @dtopt Callbacks
- * @dtopt Server-side
- * @name DataTable.defaults.serverData
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "fnServerData": null,
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * It is often useful to send extra data to the server when making an Ajax
- * request - for example custom filtering information, and this callback
- * function makes it trivial to send extra information to the server. The
- * passed in parameter is the data set that has been constructed by
- * DataTables, and you can add to this or modify it as you require.
- * @type function
- * @param {array} data Data array (array of objects which are name/value
- * pairs) that has been constructed by DataTables and will be sent to the
- * server. In the case of Ajax sourced data with server-side processing
- * this will be an empty array, for server-side processing there will be a
- * significant number of parameters!
- * @returns {undefined} Ensure that you modify the data array passed in,
- * as this is passed by reference.
- *
- * @dtopt Callbacks
- * @dtopt Server-side
- * @name DataTable.defaults.serverParams
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "fnServerParams": null,
-
-
- /**
- * Load the table state. With this function you can define from where, and how, the
- * state of a table is loaded. By default DataTables will load from `localStorage`
- * but you might wish to use a server-side database or cookies.
- * @type function
- * @member
- * @param {object} settings DataTables settings object
- * @param {object} callback Callback that can be executed when done. It
- * should be passed the loaded state object.
- * @return {object} The DataTables state object to be loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoadCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadCallback": function (settings, callback) {
- * $.ajax( {
- * "url": "/state_load",
- * "dataType": "json",
- * "success": function (json) {
- * callback( json );
- * }
- * } );
- * }
- * } );
- * } );
- */
- "fnStateLoadCallback": function ( settings ) {
- try {
- return JSON.parse(
- (settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
- 'DataTables_'+settings.sInstance+'_'+location.pathname
- )
- );
- } catch (e) {}
- },
-
-
- /**
- * Callback which allows modification of the saved state prior to loading that state.
- * This callback is called when the table is loading state from the stored data, but
- * prior to the settings object being modified by the saved state. Note that for
- * plug-in authors, you should use the `stateLoadParams` event to load parameters for
- * a plug-in.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object that is to be loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoadParams
- *
- * @example
- * // Remove a saved filter, so filtering is never loaded
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadParams": function (settings, data) {
- * data.oSearch.sSearch = "";
- * }
- * } );
- * } );
- *
- * @example
- * // Disallow state loading by returning false
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadParams": function (settings, data) {
- * return false;
- * }
- * } );
- * } );
- */
- "fnStateLoadParams": null,
-
-
- /**
- * Callback that is called when the state has been loaded from the state saving method
- * and the DataTables settings object has been modified as a result of the loaded state.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object that was loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoaded
- *
- * @example
- * // Show an alert with the filtering value that was saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoaded": function (settings, data) {
- * alert( 'Saved filter was: '+data.oSearch.sSearch );
- * }
- * } );
- * } );
- */
- "fnStateLoaded": null,
-
-
- /**
- * Save the table state. This function allows you to define where and how the state
- * information for the table is stored By default DataTables will use `localStorage`
- * but you might wish to use a server-side database or cookies.
- * @type function
- * @member
- * @param {object} settings DataTables settings object
- * @param {object} data The state object to be saved
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateSaveCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateSaveCallback": function (settings, data) {
- * // Send an Ajax request to the server with the state object
- * $.ajax( {
- * "url": "/state_save",
- * "data": data,
- * "dataType": "json",
- * "method": "POST"
- * "success": function () {}
- * } );
- * }
- * } );
- * } );
- */
- "fnStateSaveCallback": function ( settings, data ) {
- try {
- (settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
- 'DataTables_'+settings.sInstance+'_'+location.pathname,
- JSON.stringify( data )
- );
- } catch (e) {}
- },
-
-
- /**
- * Callback which allows modification of the state to be saved. Called when the table
- * has changed state a new state save is required. This method allows modification of
- * the state saving object prior to actually doing the save, including addition or
- * other state properties or modification. Note that for plug-in authors, you should
- * use the `stateSaveParams` event to save parameters for a plug-in.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object to be saved
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateSaveParams
- *
- * @example
- * // Remove a saved filter, so filtering is never saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateSaveParams": function (settings, data) {
- * data.oSearch.sSearch = "";
- * }
- * } );
- * } );
- */
- "fnStateSaveParams": null,
-
-
- /**
- * Duration for which the saved state information is considered valid. After this period
- * has elapsed the state will be returned to the default.
- * Value is given in seconds.
- * @type int
- * @default 7200 (2 hours)
- *
- * @dtopt Options
- * @name DataTable.defaults.stateDuration
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateDuration": 60*60*24; // 1 day
- * } );
- * } )
- */
- "iStateDuration": 7200,
-
-
- /**
- * When enabled DataTables will not make a request to the server for the first
- * page draw - rather it will use the data already on the page (no sorting etc
- * will be applied to it), thus saving on an XHR at load time. `deferLoading`
- * is used to indicate that deferred loading is required, but it is also used
- * to tell DataTables how many records there are in the full table (allowing
- * the information element and pagination to be displayed correctly). In the case
- * where a filtering is applied to the table on initial load, this can be
- * indicated by giving the parameter as an array, where the first element is
- * the number of records available after filtering and the second element is the
- * number of records without filtering (allowing the table information element
- * to be shown correctly).
- * @type int | array
- * @default null
- *
- * @dtopt Options
- * @name DataTable.defaults.deferLoading
- *
- * @example
- * // 57 records available in the table, no filtering applied
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "scripts/server_processing.php",
- * "deferLoading": 57
- * } );
- * } );
- *
- * @example
- * // 57 records after filtering, 100 without filtering (an initial filter applied)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "scripts/server_processing.php",
- * "deferLoading": [ 57, 100 ],
- * "search": {
- * "search": "my_filter"
- * }
- * } );
- * } );
- */
- "iDeferLoading": null,
-
-
- /**
- * Number of rows to display on a single page when using pagination. If
- * feature enabled (`lengthChange`) then the end user will be able to override
- * this to a custom setting using a pop-up menu.
- * @type int
- * @default 10
- *
- * @dtopt Options
- * @name DataTable.defaults.pageLength
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "pageLength": 50
- * } );
- * } )
- */
- "iDisplayLength": 10,
-
-
- /**
- * Define the starting point for data display when using DataTables with
- * pagination. Note that this parameter is the number of records, rather than
- * the page number, so if you have 10 records per page and want to start on
- * the third page, it should be "20".
- * @type int
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.displayStart
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "displayStart": 20
- * } );
- * } )
- */
- "iDisplayStart": 0,
-
-
- /**
- * By default DataTables allows keyboard navigation of the table (sorting, paging,
- * and filtering) by adding a `tabindex` attribute to the required elements. This
- * allows you to tab through the controls and press the enter key to activate them.
- * The tabindex is default 0, meaning that the tab follows the flow of the document.
- * You can overrule this using this parameter if you wish. Use a value of -1 to
- * disable built-in keyboard navigation.
- * @type int
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.tabIndex
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "tabIndex": 1
- * } );
- * } );
- */
- "iTabIndex": 0,
-
-
- /**
- * Classes that DataTables assigns to the various components and features
- * that it adds to the HTML table. This allows classes to be configured
- * during initialisation in addition to through the static
- * {@link DataTable.ext.oStdClasses} object).
- * @namespace
- * @name DataTable.defaults.classes
- */
- "oClasses": {},
-
-
- /**
- * All strings that DataTables uses in the user interface that it creates
- * are defined in this object, allowing you to modified them individually or
- * completely replace them all as required.
- * @namespace
- * @name DataTable.defaults.language
- */
- "oLanguage": {
- /**
- * Strings that are used for WAI-ARIA labels and controls only (these are not
- * actually visible on the page, but will be read by screenreaders, and thus
- * must be internationalised as well).
- * @namespace
- * @name DataTable.defaults.language.aria
- */
- "oAria": {
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted ascending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- *
- * @dtopt Language
- * @name DataTable.defaults.language.aria.sortAscending
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "aria": {
- * "sortAscending": " - click/return to sort ascending"
- * }
- * }
- * } );
- * } );
- */
- "sSortAscending": ": activate to sort column ascending",
-
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted descending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- *
- * @dtopt Language
- * @name DataTable.defaults.language.aria.sortDescending
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "aria": {
- * "sortDescending": " - click/return to sort descending"
- * }
- * }
- * } );
- * } );
- */
- "sSortDescending": ": activate to sort column descending"
- },
-
- /**
- * Pagination string used by DataTables for the built-in pagination
- * control types.
- * @namespace
- * @name DataTable.defaults.language.paginate
- */
- "oPaginate": {
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the first page.
- * @type string
- * @default First
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.first
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "first": "First page"
- * }
- * }
- * } );
- * } );
- */
- "sFirst": "First",
-
-
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the last page.
- * @type string
- * @default Last
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.last
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "last": "Last page"
- * }
- * }
- * } );
- * } );
- */
- "sLast": "Last",
-
-
- /**
- * Text to use for the 'next' pagination button (to take the user to the
- * next page).
- * @type string
- * @default Next
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.next
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "next": "Next page"
- * }
- * }
- * } );
- * } );
- */
- "sNext": "Next",
-
-
- /**
- * Text to use for the 'previous' pagination button (to take the user to
- * the previous page).
- * @type string
- * @default Previous
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.previous
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "previous": "Previous page"
- * }
- * }
- * } );
- * } );
- */
- "sPrevious": "Previous"
- },
-
- /**
- * This string is shown in preference to `zeroRecords` when the table is
- * empty of data (regardless of filtering). Note that this is an optional
- * parameter - if it is not given, the value of `zeroRecords` will be used
- * instead (either the default or given value).
- * @type string
- * @default No data available in table
- *
- * @dtopt Language
- * @name DataTable.defaults.language.emptyTable
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "emptyTable": "No data available in table"
- * }
- * } );
- * } );
- */
- "sEmptyTable": "No data available in table",
-
-
- /**
- * This string gives information to the end user about the information
- * that is current on display on the page. The following tokens can be
- * used in the string and will be dynamically replaced as the table
- * display updates. This tokens can be placed anywhere in the string, or
- * removed as needed by the language requires:
- *
- * * `\_START\_` - Display index of the first record on the current page
- * * `\_END\_` - Display index of the last record on the current page
- * * `\_TOTAL\_` - Number of records in the table after filtering
- * * `\_MAX\_` - Number of records in the table without filtering
- * * `\_PAGE\_` - Current page number
- * * `\_PAGES\_` - Total number of pages of data in the table
- *
- * @type string
- * @default Showing _START_ to _END_ of _TOTAL_ entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.info
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "info": "Showing page _PAGE_ of _PAGES_"
- * }
- * } );
- * } );
- */
- "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
-
-
- /**
- * Display information string for when the table is empty. Typically the
- * format of this string should match `info`.
- * @type string
- * @default Showing 0 to 0 of 0 entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoEmpty
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoEmpty": "No entries to show"
- * }
- * } );
- * } );
- */
- "sInfoEmpty": "Showing 0 to 0 of 0 entries",
-
-
- /**
- * When a user filters the information in a table, this string is appended
- * to the information (`info`) to give an idea of how strong the filtering
- * is. The variable _MAX_ is dynamically updated.
- * @type string
- * @default (filtered from _MAX_ total entries)
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoFiltered
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoFiltered": " - filtering from _MAX_ records"
- * }
- * } );
- * } );
- */
- "sInfoFiltered": "(filtered from _MAX_ total entries)",
-
-
- /**
- * If can be useful to append extra information to the info string at times,
- * and this variable does exactly that. This information will be appended to
- * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
- * being used) at all times.
- * @type string
- * @default Empty string
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoPostFix
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoPostFix": "All records shown are derived from real information."
- * }
- * } );
- * } );
- */
- "sInfoPostFix": "",
-
-
- /**
- * This decimal place operator is a little different from the other
- * language options since DataTables doesn't output floating point
- * numbers, so it won't ever use this for display of a number. Rather,
- * what this parameter does is modify the sort methods of the table so
- * that numbers which are in a format which has a character other than
- * a period (`.`) as a decimal place will be sorted numerically.
- *
- * Note that numbers with different decimal places cannot be shown in
- * the same table and still be sortable, the table must be consistent.
- * However, multiple different tables on the page can use different
- * decimal place characters.
- * @type string
- * @default
- *
- * @dtopt Language
- * @name DataTable.defaults.language.decimal
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "decimal": ","
- * "thousands": "."
- * }
- * } );
- * } );
- */
- "sDecimal": "",
-
-
- /**
- * DataTables has a build in number formatter (`formatNumber`) which is
- * used to format large numbers that are used in the table information.
- * By default a comma is used, but this can be trivially changed to any
- * character you wish with this parameter.
- * @type string
- * @default ,
- *
- * @dtopt Language
- * @name DataTable.defaults.language.thousands
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "thousands": "'"
- * }
- * } );
- * } );
- */
- "sThousands": ",",
-
-
- /**
- * Detail the action that will be taken when the drop down menu for the
- * pagination length option is changed. The '_MENU_' variable is replaced
- * with a default select list of 10, 25, 50 and 100, and can be replaced
- * with a custom select box if required.
- * @type string
- * @default Show _MENU_ entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.lengthMenu
- *
- * @example
- * // Language change only
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "lengthMenu": "Display _MENU_ records"
- * }
- * } );
- * } );
- *
- * @example
- * // Language and options change
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "lengthMenu": 'Display '+
- * '10 '+
- * '20 '+
- * '30 '+
- * '40 '+
- * '50 '+
- * 'All '+
- * ' records'
- * }
- * } );
- * } );
- */
- "sLengthMenu": "Show _MENU_ entries",
-
-
- /**
- * When using Ajax sourced data and during the first draw when DataTables is
- * gathering the data, this message is shown in an empty row in the table to
- * indicate to the end user the the data is being loaded. Note that this
- * parameter is not used when loading data by server-side processing, just
- * Ajax sourced data with client-side processing.
- * @type string
- * @default Loading...
- *
- * @dtopt Language
- * @name DataTable.defaults.language.loadingRecords
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "loadingRecords": "Please wait - loading..."
- * }
- * } );
- * } );
- */
- "sLoadingRecords": "Loading...",
-
-
- /**
- * Text which is displayed when the table is processing a user action
- * (usually a sort command or similar).
- * @type string
- * @default Processing...
- *
- * @dtopt Language
- * @name DataTable.defaults.language.processing
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "processing": "DataTables is currently busy"
- * }
- * } );
- * } );
- */
- "sProcessing": "Processing...",
-
-
- /**
- * Details the actions that will be taken when the user types into the
- * filtering input text box. The variable "_INPUT_", if used in the string,
- * is replaced with the HTML text box for the filtering input allowing
- * control over where it appears in the string. If "_INPUT_" is not given
- * then the input box is appended to the string automatically.
- * @type string
- * @default Search:
- *
- * @dtopt Language
- * @name DataTable.defaults.language.search
- *
- * @example
- * // Input text box will be appended at the end automatically
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "search": "Filter records:"
- * }
- * } );
- * } );
- *
- * @example
- * // Specify where the filter should appear
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "search": "Apply filter _INPUT_ to table"
- * }
- * } );
- * } );
- */
- "sSearch": "Search:",
-
-
- /**
- * Assign a `placeholder` attribute to the search `input` element
- * @type string
- * @default
- *
- * @dtopt Language
- * @name DataTable.defaults.language.searchPlaceholder
- */
- "sSearchPlaceholder": "",
-
-
- /**
- * All of the language information can be stored in a file on the
- * server-side, which DataTables will look up if this parameter is passed.
- * It must store the URL of the language file, which is in a JSON format,
- * and the object has the same properties as the oLanguage object in the
- * initialiser object (i.e. the above parameters). Please refer to one of
- * the example language files to see how this works in action.
- * @type string
- * @default Empty string - i.e. disabled
- *
- * @dtopt Language
- * @name DataTable.defaults.language.url
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
- * }
- * } );
- * } );
- */
- "sUrl": "",
-
-
- /**
- * Text shown inside the table records when the is no information to be
- * displayed after filtering. `emptyTable` is shown when there is simply no
- * information in the table at all (regardless of filtering).
- * @type string
- * @default No matching records found
- *
- * @dtopt Language
- * @name DataTable.defaults.language.zeroRecords
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "zeroRecords": "No records to display"
- * }
- * } );
- * } );
- */
- "sZeroRecords": "No matching records found"
- },
-
-
- /**
- * This parameter allows you to have define the global filtering state at
- * initialisation time. As an object the `search` parameter must be
- * defined, but all other parameters are optional. When `regex` is true,
- * the search string will be treated as a regular expression, when false
- * (default) it will be treated as a straight string. When `smart`
- * DataTables will use it's smart filtering methods (to word match at
- * any point in the data), when false this will not be done.
- * @namespace
- * @extends DataTable.models.oSearch
- *
- * @dtopt Options
- * @name DataTable.defaults.search
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "search": {"search": "Initial search"}
- * } );
- * } )
- */
- "oSearch": $.extend( {}, DataTable.models.oSearch ),
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * By default DataTables will look for the property `data` (or `aaData` for
- * compatibility with DataTables 1.9-) when obtaining data from an Ajax
- * source or for server-side processing - this parameter allows that
- * property to be changed. You can use Javascript dotted object notation to
- * get a data source for multiple levels of nesting.
- * @type string
- * @default data
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.ajaxDataProp
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sAjaxDataProp": "data",
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * You can instruct DataTables to load data from an external
- * source using this parameter (use aData if you want to pass data in you
- * already have). Simply provide a url a JSON object can be obtained from.
- * @type string
- * @default null
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.ajaxSource
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sAjaxSource": null,
-
-
- /**
- * This initialisation variable allows you to specify exactly where in the
- * DOM you want DataTables to inject the various controls it adds to the page
- * (for example you might want the pagination controls at the top of the
- * table). DIV elements (with or without a custom class) can also be added to
- * aid styling. The follow syntax is used:
- *
- * The following options are allowed:
- *
- * 'l' - Length changing
- * 'f' - Filtering input
- * 't' - The table!
- * 'i' - Information
- * 'p' - Pagination
- * 'r' - pRocessing
- *
- *
- * The following constants are allowed:
- *
- * 'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')
- * 'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')
- *
- *
- * The following syntax is expected:
- *
- * '<' and '>' - div elements
- * '<"class" and '>' - div with a class
- * '<"#id" and '>' - div with an ID
- *
- *
- * Examples:
- *
- * '<"wrapper"flipt>'
- * '<lf<t>ip>'
- *
- *
- *
- * @type string
- * @default lfrtip (when `jQueryUI` is false) or
- * <"H"lfr>t<"F"ip> (when `jQueryUI` is true)
- *
- * @dtopt Options
- * @name DataTable.defaults.dom
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "dom": '<"top"i>rt<"bottom"flp><"clear">'
- * } );
- * } );
- */
- "sDom": "lfrtip",
-
-
- /**
- * Search delay option. This will throttle full table searches that use the
- * DataTables provided search input element (it does not effect calls to
- * `dt-api search()`, providing a delay before the search is made.
- * @type integer
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.searchDelay
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "searchDelay": 200
- * } );
- * } )
- */
- "searchDelay": null,
-
-
- /**
- * DataTables features six different built-in options for the buttons to
- * display for pagination control:
- *
- * * `numbers` - Page number buttons only
- * * `simple` - 'Previous' and 'Next' buttons only
- * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
- * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
- * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers
- * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers
- *
- * Further methods can be added using {@link DataTable.ext.oPagination}.
- * @type string
- * @default simple_numbers
- *
- * @dtopt Options
- * @name DataTable.defaults.pagingType
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "pagingType": "full_numbers"
- * } );
- * } )
- */
- "sPaginationType": "simple_numbers",
-
-
- /**
- * Enable horizontal scrolling. When a table is too wide to fit into a
- * certain layout, or you have a large number of columns in the table, you
- * can enable x-scrolling to show the table in a viewport, which can be
- * scrolled. This property can be `true` which will allow the table to
- * scroll horizontally when needed, or any CSS unit, or a number (in which
- * case it will be treated as a pixel measurement). Setting as simply `true`
- * is recommended.
- * @type boolean|string
- * @default blank string - i.e. disabled
- *
- * @dtopt Features
- * @name DataTable.defaults.scrollX
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollX": true,
- * "scrollCollapse": true
- * } );
- * } );
- */
- "sScrollX": "",
-
-
- /**
- * This property can be used to force a DataTable to use more width than it
- * might otherwise do when x-scrolling is enabled. For example if you have a
- * table which requires to be well spaced, this parameter is useful for
- * "over-sizing" the table, and thus forcing scrolling. This property can by
- * any CSS unit, or a number (in which case it will be treated as a pixel
- * measurement).
- * @type string
- * @default blank string - i.e. disabled
- *
- * @dtopt Options
- * @name DataTable.defaults.scrollXInner
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollX": "100%",
- * "scrollXInner": "110%"
- * } );
- * } );
- */
- "sScrollXInner": "",
-
-
- /**
- * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
- * to the given height, and enable scrolling for any data which overflows the
- * current viewport. This can be used as an alternative to paging to display
- * a lot of data in a small area (although paging and scrolling can both be
- * enabled at the same time). This property can be any CSS unit, or a number
- * (in which case it will be treated as a pixel measurement).
- * @type string
- * @default blank string - i.e. disabled
- *
- * @dtopt Features
- * @name DataTable.defaults.scrollY
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollY": "200px",
- * "paginate": false
- * } );
- * } );
- */
- "sScrollY": "",
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * Set the HTTP method that is used to make the Ajax call for server-side
- * processing or Ajax sourced data.
- * @type string
- * @default GET
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.serverMethod
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sServerMethod": "GET",
-
-
- /**
- * DataTables makes use of renderers when displaying HTML elements for
- * a table. These renderers can be added or modified by plug-ins to
- * generate suitable mark-up for a site. For example the Bootstrap
- * integration plug-in for DataTables uses a paging button renderer to
- * display pagination buttons in the mark-up required by Bootstrap.
- *
- * For further information about the renderers available see
- * DataTable.ext.renderer
- * @type string|object
- * @default null
- *
- * @name DataTable.defaults.renderer
- *
- */
- "renderer": null,
-
-
- /**
- * Set the data property name that DataTables should use to get a row's id
- * to set as the `id` property in the node.
- * @type string
- * @default DT_RowId
- *
- * @name DataTable.defaults.rowId
- */
- "rowId": "DT_RowId"
- };
-
- _fnHungarianMap( DataTable.defaults );
-
-
-
- /*
- * Developer note - See note in model.defaults.js about the use of Hungarian
- * notation and camel case.
- */
-
- /**
- * Column options that can be given to DataTables at initialisation time.
- * @namespace
- */
- DataTable.defaults.column = {
- /**
- * Define which column(s) an order will occur on for this column. This
- * allows a column's ordering to take multiple columns into account when
- * doing a sort or use the data from a different column. For example first
- * name / last name columns make sense to do a multi-column sort over the
- * two columns.
- * @type array|int
- * @default null Takes the value of the column index automatically
- *
- * @name DataTable.defaults.column.orderData
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderData": [ 0, 1 ], "targets": [ 0 ] },
- * { "orderData": [ 1, 0 ], "targets": [ 1 ] },
- * { "orderData": 2, "targets": [ 2 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "orderData": [ 0, 1 ] },
- * { "orderData": [ 1, 0 ] },
- * { "orderData": 2 },
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "aDataSort": null,
- "iDataSort": -1,
-
-
- /**
- * You can control the default ordering direction, and even alter the
- * behaviour of the sort handler (i.e. only allow ascending ordering etc)
- * using this parameter.
- * @type array
- * @default [ 'asc', 'desc' ]
- *
- * @name DataTable.defaults.column.orderSequence
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderSequence": [ "asc" ], "targets": [ 1 ] },
- * { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
- * { "orderSequence": [ "desc" ], "targets": [ 3 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * { "orderSequence": [ "asc" ] },
- * { "orderSequence": [ "desc", "asc", "asc" ] },
- * { "orderSequence": [ "desc" ] },
- * null
- * ]
- * } );
- * } );
- */
- "asSorting": [ 'asc', 'desc' ],
-
-
- /**
- * Enable or disable filtering on the data in this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.searchable
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "searchable": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "searchable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSearchable": true,
-
-
- /**
- * Enable or disable ordering on this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.orderable
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderable": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "orderable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSortable": true,
-
-
- /**
- * Enable or disable the display of this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.visible
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "visible": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "visible": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bVisible": true,
-
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} td The TD node that has been created
- * @param {*} cellData The Data for the cell
- * @param {array|object} rowData The data for the whole row
- * @param {int} row The row index for the aoData data store
- * @param {int} col The column index for aoColumns
- *
- * @name DataTable.defaults.column.createdCell
- * @dtopt Columns
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [3],
- * "createdCell": function (td, cellData, rowData, row, col) {
- * if ( cellData == "1.7" ) {
- * $(td).css('color', 'blue')
- * }
- * }
- * } ]
- * });
- * } );
- */
- "fnCreatedCell": null,
-
-
- /**
- * This parameter has been replaced by `data` in DataTables to ensure naming
- * consistency. `dataProp` can still be used, as there is backwards
- * compatibility in DataTables for this option, but it is strongly
- * recommended that you use `data` in preference to `dataProp`.
- * @name DataTable.defaults.column.dataProp
- */
-
-
- /**
- * This property can be used to read data from any data source property,
- * including deeply nested objects / properties. `data` can be given in a
- * number of different ways which effect its behaviour:
- *
- * * `integer` - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).
- * * `string` - read an object property from the data source. There are
- * three 'special' options that can be used in the string to alter how
- * DataTables reads the data from the source object:
- * * `.` - Dotted Javascript notation. Just as you use a `.` in
- * Javascript to read from nested objects, so to can the options
- * specified in `data`. For example: `browser.version` or
- * `browser.name`. If your object parameter name contains a period, use
- * `\\` to escape it - i.e. `first\\.name`.
- * * `[]` - Array notation. DataTables can automatically combine data
- * from and array source, joining the data with the characters provided
- * between the two brackets. For example: `name[, ]` would provide a
- * comma-space separated list from the source array. If no characters
- * are provided between the brackets, the original array source is
- * returned.
- * * `()` - Function notation. Adding `()` to the end of a parameter will
- * execute a function of the name given. For example: `browser()` for a
- * simple function on the data source, `browser.version()` for a
- * function in a nested property or even `browser().version` to get an
- * object property if the function called returns an object. Note that
- * function notation is recommended for use in `render` rather than
- * `data` as it is much simpler to use as a renderer.
- * * `null` - use the original data source for the row rather than plucking
- * data directly from it. This action has effects on two other
- * initialisation options:
- * * `defaultContent` - When null is given as the `data` option and
- * `defaultContent` is specified for the column, the value defined by
- * `defaultContent` will be used for the cell.
- * * `render` - When null is used for the `data` option and the `render`
- * option is specified for the column, the whole data source for the
- * row is used for the renderer.
- * * `function` - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * * Parameters:
- * * `{array|object}` The data source for the row
- * * `{string}` The type call data requested - this will be 'set' when
- * setting data or 'filter', 'display', 'type', 'sort' or undefined
- * when gathering data. Note that when `undefined` is given for the
- * type DataTables expects to get the raw data for the object back<
- * * `{*}` Data to set when the second parameter is 'set'.
- * * Return:
- * * The return value from the function is not required when 'set' is
- * the type of call, but otherwise the return is what will be used
- * for the data requested.
- *
- * Note that `data` is a getter and setter option. If you just require
- * formatting of data for output, you will likely want to use `render` which
- * is simply a getter and thus simpler to use.
- *
- * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
- * name change reflects the flexibility of this property and is consistent
- * with the naming of mRender. If 'mDataProp' is given, then it will still
- * be used by DataTables, as it automatically maps the old name to the new
- * if required.
- *
- * @type string|int|function|null
- * @default null Use automatically calculated column index
- *
- * @name DataTable.defaults.column.data
- * @dtopt Columns
- *
- * @example
- * // Read table data from objects
- * // JSON structure for each row:
- * // {
- * // "engine": {value},
- * // "browser": {value},
- * // "platform": {value},
- * // "version": {value},
- * // "grade": {value}
- * // }
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/objects.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * { "data": "platform" },
- * { "data": "version" },
- * { "data": "grade" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Read information from deeply nested objects
- * // JSON structure for each row:
- * // {
- * // "engine": {value},
- * // "browser": {value},
- * // "platform": {
- * // "inner": {value}
- * // },
- * // "details": [
- * // {value}, {value}
- * // ]
- * // }
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/deep.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * { "data": "platform.inner" },
- * { "data": "details.0" },
- * { "data": "details.1" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `data` as a function to provide different information for
- * // sorting, filtering and display. In this case, currency (price)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": function ( source, type, val ) {
- * if (type === 'set') {
- * source.price = val;
- * // Store the computed dislay and filter values for efficiency
- * source.price_display = val=="" ? "" : "$"+numberFormat(val);
- * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
- * return;
- * }
- * else if (type === 'display') {
- * return source.price_display;
- * }
- * else if (type === 'filter') {
- * return source.price_filter;
- * }
- * // 'sort', 'type' and undefined all just use the integer
- * return source.price;
- * }
- * } ]
- * } );
- * } );
- *
- * @example
- * // Using default content
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null,
- * "defaultContent": "Click to edit"
- * } ]
- * } );
- * } );
- *
- * @example
- * // Using array notation - outputting a list from an array
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": "name[, ]"
- * } ]
- * } );
- * } );
- *
- */
- "mData": null,
-
-
- /**
- * This property is the rendering partner to `data` and it is suggested that
- * when you want to manipulate data for display (including filtering,
- * sorting etc) without altering the underlying data for the table, use this
- * property. `render` can be considered to be the the read only companion to
- * `data` which is read / write (then as such more complex). Like `data`
- * this option can be given in a number of different ways to effect its
- * behaviour:
- *
- * * `integer` - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).
- * * `string` - read an object property from the data source. There are
- * three 'special' options that can be used in the string to alter how
- * DataTables reads the data from the source object:
- * * `.` - Dotted Javascript notation. Just as you use a `.` in
- * Javascript to read from nested objects, so to can the options
- * specified in `data`. For example: `browser.version` or
- * `browser.name`. If your object parameter name contains a period, use
- * `\\` to escape it - i.e. `first\\.name`.
- * * `[]` - Array notation. DataTables can automatically combine data
- * from and array source, joining the data with the characters provided
- * between the two brackets. For example: `name[, ]` would provide a
- * comma-space separated list from the source array. If no characters
- * are provided between the brackets, the original array source is
- * returned.
- * * `()` - Function notation. Adding `()` to the end of a parameter will
- * execute a function of the name given. For example: `browser()` for a
- * simple function on the data source, `browser.version()` for a
- * function in a nested property or even `browser().version` to get an
- * object property if the function called returns an object.
- * * `object` - use different data for the different data types requested by
- * DataTables ('filter', 'display', 'type' or 'sort'). The property names
- * of the object is the data type the property refers to and the value can
- * defined using an integer, string or function using the same rules as
- * `render` normally does. Note that an `_` option _must_ be specified.
- * This is the default value to use if you haven't specified a value for
- * the data type requested by DataTables.
- * * `function` - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * * Parameters:
- * * {array|object} The data source for the row (based on `data`)
- * * {string} The type call data requested - this will be 'filter',
- * 'display', 'type' or 'sort'.
- * * {array|object} The full data source for the row (not based on
- * `data`)
- * * Return:
- * * The return value from the function is what will be used for the
- * data requested.
- *
- * @type string|int|function|object|null
- * @default null Use the data source value.
- *
- * @name DataTable.defaults.column.render
- * @dtopt Columns
- *
- * @example
- * // Create a comma separated list from an array of objects
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/deep.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * {
- * "data": "platform",
- * "render": "[, ].name"
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Execute a function to obtain data
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null, // Use the full data source object for the renderer's source
- * "render": "browserName()"
- * } ]
- * } );
- * } );
- *
- * @example
- * // As an object, extracting different data for the different types
- * // This would be used with a data source such as:
- * // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
- * // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
- * // (which has both forms) is used for filtering for if a user inputs either format, while
- * // the formatted phone number is the one that is shown in the table.
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null, // Use the full data source object for the renderer's source
- * "render": {
- * "_": "phone",
- * "filter": "phone_filter",
- * "display": "phone_display"
- * }
- * } ]
- * } );
- * } );
- *
- * @example
- * // Use as a function to create a link from the data source
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": "download_link",
- * "render": function ( data, type, full ) {
- * return 'Download ';
- * }
- * } ]
- * } );
- * } );
- */
- "mRender": null,
-
-
- /**
- * Change the cell type created for the column - either TD cells or TH cells. This
- * can be useful as TH cells have semantic meaning in the table body, allowing them
- * to act as a header for a row (you may wish to add scope='row' to the TH elements).
- * @type string
- * @default td
- *
- * @name DataTable.defaults.column.cellType
- * @dtopt Columns
- *
- * @example
- * // Make the first column use TH cells
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "cellType": "th"
- * } ]
- * } );
- * } );
- */
- "sCellType": "td",
-
-
- /**
- * Class to give to each cell in this column.
- * @type string
- * @default Empty string
- *
- * @name DataTable.defaults.column.class
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "class": "my_class", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "class": "my_class" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sClass": "",
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * Generally you shouldn't need this!
- * @type string
- * @default Empty string
- *
- * @name DataTable.defaults.column.contentPadding
- * @dtopt Columns
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * null,
- * {
- * "contentPadding": "mmm"
- * }
- * ]
- * } );
- * } );
- */
- "sContentPadding": "",
-
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because `data`
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- *
- * @name DataTable.defaults.column.defaultContent
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * {
- * "data": null,
- * "defaultContent": "Edit",
- * "targets": [ -1 ]
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * null,
- * {
- * "data": null,
- * "defaultContent": "Edit"
- * }
- * ]
- * } );
- * } );
- */
- "sDefaultContent": null,
-
-
- /**
- * This parameter is only used in DataTables' server-side processing. It can
- * be exceptionally useful to know what columns are being displayed on the
- * client side, and to map these to database fields. When defined, the names
- * also allow DataTables to reorder information from the server if it comes
- * back in an unexpected order (i.e. if you switch your columns around on the
- * client-side, your server-side code does not also need updating).
- * @type string
- * @default Empty string
- *
- * @name DataTable.defaults.column.name
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "name": "engine", "targets": [ 0 ] },
- * { "name": "browser", "targets": [ 1 ] },
- * { "name": "platform", "targets": [ 2 ] },
- * { "name": "version", "targets": [ 3 ] },
- * { "name": "grade", "targets": [ 4 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "name": "engine" },
- * { "name": "browser" },
- * { "name": "platform" },
- * { "name": "version" },
- * { "name": "grade" }
- * ]
- * } );
- * } );
- */
- "sName": "",
-
-
- /**
- * Defines a data source type for the ordering which can be used to read
- * real-time information from the table (updating the internally cached
- * version) prior to ordering. This allows ordering to occur on user
- * editable elements such as form inputs.
- * @type string
- * @default std
- *
- * @name DataTable.defaults.column.orderDataType
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
- * { "type": "numeric", "targets": [ 3 ] },
- * { "orderDataType": "dom-select", "targets": [ 4 ] },
- * { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * { "orderDataType": "dom-text" },
- * { "orderDataType": "dom-text", "type": "numeric" },
- * { "orderDataType": "dom-select" },
- * { "orderDataType": "dom-checkbox" }
- * ]
- * } );
- * } );
- */
- "sSortDataType": "std",
-
-
- /**
- * The title of this column.
- * @type string
- * @default null Derived from the 'TH' value for this column in the
- * original HTML table.
- *
- * @name DataTable.defaults.column.title
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "title": "My column title", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "title": "My column title" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sTitle": null,
-
-
- /**
- * The type allows you to specify how the data for this column will be
- * ordered. Four types (string, numeric, date and html (which will strip
- * HTML tags before ordering)) are currently available. Note that only date
- * formats understood by Javascript's Date() object will be accepted as type
- * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
- * 'numeric', 'date' or 'html' (by default). Further types can be adding
- * through plug-ins.
- * @type string
- * @default null Auto-detected from raw data
- *
- * @name DataTable.defaults.column.type
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "type": "html", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "type": "html" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sType": null,
-
-
- /**
- * Defining the width of the column, this parameter may take any CSS value
- * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
- * been given a specific width through this interface ensuring that the table
- * remains readable.
- * @type string
- * @default null Automatic
- *
- * @name DataTable.defaults.column.width
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "width": "20%", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "width": "20%" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sWidth": null
- };
-
- _fnHungarianMap( DataTable.defaults.column );
-
-
-
- /**
- * DataTables settings object - this holds all the information needed for a
- * given table, including configuration, data and current application of the
- * table options. DataTables does not have a single instance for each DataTable
- * with the settings attached to that instance, but rather instances of the
- * DataTable "class" are created on-the-fly as needed (typically by a
- * $().dataTable() call) and the settings object is then applied to that
- * instance.
- *
- * Note that this object is related to {@link DataTable.defaults} but this
- * one is the internal data store for DataTables's cache of columns. It should
- * NOT be manipulated outside of DataTables. Any configuration should be done
- * through the initialisation options.
- * @namespace
- * @todo Really should attach the settings object to individual instances so we
- * don't need to create new instances on each $().dataTable() call (if the
- * table already exists). It would also save passing oSettings around and
- * into every single function. However, this is a very significant
- * architecture change for DataTables and will almost certainly break
- * backwards compatibility with older installations. This is something that
- * will be done in 2.0.
- */
- DataTable.models.oSettings = {
- /**
- * Primary features of DataTables and their enablement state.
- * @namespace
- */
- "oFeatures": {
-
- /**
- * Flag to say if DataTables should automatically try to calculate the
- * optimum table and columns widths (true) or not (false).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bAutoWidth": null,
-
- /**
- * Delay the creation of TR and TD elements until they are actually
- * needed by a driven page draw. This can give a significant speed
- * increase for Ajax source and Javascript source data, but makes no
- * difference at all fro DOM and server-side processing tables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bDeferRender": null,
-
- /**
- * Enable filtering on the table or not. Note that if this is disabled
- * then there is no filtering at all on the table, including fnFilter.
- * To just remove the filtering input use sDom and remove the 'f' option.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bFilter": null,
-
- /**
- * Table information element (the 'Showing x of y records' div) enable
- * flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bInfo": null,
-
- /**
- * Present a user control allowing the end user to change the page size
- * when pagination is enabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bLengthChange": null,
-
- /**
- * Pagination enabled or not. Note that if this is disabled then length
- * changing must also be disabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bPaginate": null,
-
- /**
- * Processing indicator enable flag whenever DataTables is enacting a
- * user request - typically an Ajax request for server-side processing.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bProcessing": null,
-
- /**
- * Server-side processing enabled flag - when enabled DataTables will
- * get all data from the server for every draw - there is no filtering,
- * sorting or paging done on the client-side.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bServerSide": null,
-
- /**
- * Sorting enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSort": null,
-
- /**
- * Multi-column sorting
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortMulti": null,
-
- /**
- * Apply a class to the columns which are being sorted to provide a
- * visual highlight or not. This can slow things down when enabled since
- * there is a lot of DOM interaction.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortClasses": null,
-
- /**
- * State saving enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bStateSave": null
- },
-
-
- /**
- * Scrolling settings for a table.
- * @namespace
- */
- "oScroll": {
- /**
- * When the table is shorter in height than sScrollY, collapse the
- * table container down to the height of the table (when true).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bCollapse": null,
-
- /**
- * Width of the scrollbar for the web-browser's platform. Calculated
- * during table initialisation.
- * @type int
- * @default 0
- */
- "iBarWidth": 0,
-
- /**
- * Viewport width for horizontal scrolling. Horizontal scrolling is
- * disabled if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sX": null,
-
- /**
- * Width to expand the table to when using x-scrolling. Typically you
- * should not need to use this.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @deprecated
- */
- "sXInner": null,
-
- /**
- * Viewport height for vertical scrolling. Vertical scrolling is disabled
- * if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sY": null
- },
-
- /**
- * Language information for the table.
- * @namespace
- * @extends DataTable.defaults.oLanguage
- */
- "oLanguage": {
- /**
- * Information callback function. See
- * {@link DataTable.defaults.fnInfoCallback}
- * @type function
- * @default null
- */
- "fnInfoCallback": null
- },
-
- /**
- * Browser support parameters
- * @namespace
- */
- "oBrowser": {
- /**
- * Indicate if the browser incorrectly calculates width:100% inside a
- * scrolling element (IE6/7)
- * @type boolean
- * @default false
- */
- "bScrollOversize": false,
-
- /**
- * Determine if the vertical scrollbar is on the right or left of the
- * scrolling container - needed for rtl language layout, although not
- * all browsers move the scrollbar (Safari).
- * @type boolean
- * @default false
- */
- "bScrollbarLeft": false,
-
- /**
- * Flag for if `getBoundingClientRect` is fully supported or not
- * @type boolean
- * @default false
- */
- "bBounding": false,
-
- /**
- * Browser scrollbar width
- * @type integer
- * @default 0
- */
- "barWidth": 0
- },
-
-
- "ajax": null,
-
-
- /**
- * Array referencing the nodes which are used for the features. The
- * parameters of this object match what is allowed by sDom - i.e.
- *
- * 'l' - Length changing
- * 'f' - Filtering input
- * 't' - The table!
- * 'i' - Information
- * 'p' - Pagination
- * 'r' - pRocessing
- *
- * @type array
- * @default []
- */
- "aanFeatures": [],
-
- /**
- * Store data information - see {@link DataTable.models.oRow} for detailed
- * information.
- * @type array
- * @default []
- */
- "aoData": [],
-
- /**
- * Array of indexes which are in the current display (after filtering etc)
- * @type array
- * @default []
- */
- "aiDisplay": [],
-
- /**
- * Array of indexes for display - no filtering
- * @type array
- * @default []
- */
- "aiDisplayMaster": [],
-
- /**
- * Map of row ids to data indexes
- * @type object
- * @default {}
- */
- "aIds": {},
-
- /**
- * Store information about each column that is in use
- * @type array
- * @default []
- */
- "aoColumns": [],
-
- /**
- * Store information about the table's header
- * @type array
- * @default []
- */
- "aoHeader": [],
-
- /**
- * Store information about the table's footer
- * @type array
- * @default []
- */
- "aoFooter": [],
-
- /**
- * Store the applied global search information in case we want to force a
- * research or compare the old search to a new one.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @namespace
- * @extends DataTable.models.oSearch
- */
- "oPreviousSearch": {},
-
- /**
- * Store the applied search for each column - see
- * {@link DataTable.models.oSearch} for the format that is used for the
- * filtering information for each column.
- * @type array
- * @default []
- */
- "aoPreSearchCols": [],
-
- /**
- * Sorting that is applied to the table. Note that the inner arrays are
- * used in the following manner:
- *
- * Index 0 - column number
- * Index 1 - current sorting direction
- *
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @todo These inner arrays should really be objects
- */
- "aaSorting": null,
-
- /**
- * Sorting that is always applied to the table (i.e. prefixed in front of
- * aaSorting).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "aaSortingFixed": [],
-
- /**
- * Classes to use for the striping of a table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "asStripeClasses": null,
-
- /**
- * If restoring a table - we should restore its striping classes as well
- * @type array
- * @default []
- */
- "asDestroyStripes": [],
-
- /**
- * If restoring a table - we should restore its width
- * @type int
- * @default 0
- */
- "sDestroyWidth": 0,
-
- /**
- * Callback functions array for every time a row is inserted (i.e. on a draw).
- * @type array
- * @default []
- */
- "aoRowCallback": [],
-
- /**
- * Callback functions for the header on each draw.
- * @type array
- * @default []
- */
- "aoHeaderCallback": [],
-
- /**
- * Callback function for the footer on each draw.
- * @type array
- * @default []
- */
- "aoFooterCallback": [],
-
- /**
- * Array of callback functions for draw callback functions
- * @type array
- * @default []
- */
- "aoDrawCallback": [],
-
- /**
- * Array of callback functions for row created function
- * @type array
- * @default []
- */
- "aoRowCreatedCallback": [],
-
- /**
- * Callback functions for just before the table is redrawn. A return of
- * false will be used to cancel the draw.
- * @type array
- * @default []
- */
- "aoPreDrawCallback": [],
-
- /**
- * Callback functions for when the table has been initialised.
- * @type array
- * @default []
- */
- "aoInitComplete": [],
-
-
- /**
- * Callbacks for modifying the settings to be stored for state saving, prior to
- * saving state.
- * @type array
- * @default []
- */
- "aoStateSaveParams": [],
-
- /**
- * Callbacks for modifying the settings that have been stored for state saving
- * prior to using the stored values to restore the state.
- * @type array
- * @default []
- */
- "aoStateLoadParams": [],
-
- /**
- * Callbacks for operating on the settings object once the saved state has been
- * loaded
- * @type array
- * @default []
- */
- "aoStateLoaded": [],
-
- /**
- * Cache the table ID for quick access
- * @type string
- * @default Empty string
- */
- "sTableId": "",
-
- /**
- * The TABLE node for the main table
- * @type node
- * @default null
- */
- "nTable": null,
-
- /**
- * Permanent ref to the thead element
- * @type node
- * @default null
- */
- "nTHead": null,
-
- /**
- * Permanent ref to the tfoot element - if it exists
- * @type node
- * @default null
- */
- "nTFoot": null,
-
- /**
- * Permanent ref to the tbody element
- * @type node
- * @default null
- */
- "nTBody": null,
-
- /**
- * Cache the wrapper node (contains all DataTables controlled elements)
- * @type node
- * @default null
- */
- "nTableWrapper": null,
-
- /**
- * Indicate if when using server-side processing the loading of data
- * should be deferred until the second draw.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- * @default false
- */
- "bDeferLoading": false,
-
- /**
- * Indicate if all required information has been read in
- * @type boolean
- * @default false
- */
- "bInitialised": false,
-
- /**
- * Information about open rows. Each object in the array has the parameters
- * 'nTr' and 'nParent'
- * @type array
- * @default []
- */
- "aoOpenRows": [],
-
- /**
- * Dictate the positioning of DataTables' control elements - see
- * {@link DataTable.model.oInit.sDom}.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sDom": null,
-
- /**
- * Search delay (in mS)
- * @type integer
- * @default null
- */
- "searchDelay": null,
-
- /**
- * Which type of pagination should be used.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default two_button
- */
- "sPaginationType": "two_button",
-
- /**
- * The state duration (for `stateSave`) in seconds.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type int
- * @default 0
- */
- "iStateDuration": 0,
-
- /**
- * Array of callback functions for state saving. Each array element is an
- * object with the following parameters:
- *
- * function:fn - function to call. Takes two parameters, oSettings
- * and the JSON string to save that has been thus far created. Returns
- * a JSON string to be inserted into a json object
- * (i.e. '"param": [ 0, 1, 2]')
- * string:sName - name of callback
- *
- * @type array
- * @default []
- */
- "aoStateSave": [],
-
- /**
- * Array of callback functions for state loading. Each array element is an
- * object with the following parameters:
- *
- * function:fn - function to call. Takes two parameters, oSettings
- * and the object stored. May return false to cancel state loading
- * string:sName - name of callback
- *
- * @type array
- * @default []
- */
- "aoStateLoad": [],
-
- /**
- * State that was saved. Useful for back reference
- * @type object
- * @default null
- */
- "oSavedState": null,
-
- /**
- * State that was loaded. Useful for back reference
- * @type object
- * @default null
- */
- "oLoadedState": null,
-
- /**
- * Source url for AJAX data for the table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sAjaxSource": null,
-
- /**
- * Property from a given object from which to read the table data from. This
- * can be an empty string (when not server-side processing), in which case
- * it is assumed an an array is given directly.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sAjaxDataProp": null,
-
- /**
- * Note if draw should be blocked while getting data
- * @type boolean
- * @default true
- */
- "bAjaxDataGet": true,
-
- /**
- * The last jQuery XHR object that was used for server-side data gathering.
- * This can be used for working with the XHR information in one of the
- * callbacks
- * @type object
- * @default null
- */
- "jqXHR": null,
-
- /**
- * JSON returned from the server in the last Ajax request
- * @type object
- * @default undefined
- */
- "json": undefined,
-
- /**
- * Data submitted as part of the last Ajax request
- * @type object
- * @default undefined
- */
- "oAjaxData": undefined,
-
- /**
- * Function to get the server-side data.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnServerData": null,
-
- /**
- * Functions which are called prior to sending an Ajax request so extra
- * parameters can easily be sent to the server
- * @type array
- * @default []
- */
- "aoServerParams": [],
-
- /**
- * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
- * required).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sServerMethod": null,
-
- /**
- * Format numbers for display.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnFormatNumber": null,
-
- /**
- * List of options that can be used for the user selectable length menu.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "aLengthMenu": null,
-
- /**
- * Counter for the draws that the table does. Also used as a tracker for
- * server-side processing
- * @type int
- * @default 0
- */
- "iDraw": 0,
-
- /**
- * Indicate if a redraw is being done - useful for Ajax
- * @type boolean
- * @default false
- */
- "bDrawing": false,
-
- /**
- * Draw index (iDraw) of the last error when parsing the returned data
- * @type int
- * @default -1
- */
- "iDrawError": -1,
-
- /**
- * Paging display length
- * @type int
- * @default 10
- */
- "_iDisplayLength": 10,
-
- /**
- * Paging start point - aiDisplay index
- * @type int
- * @default 0
- */
- "_iDisplayStart": 0,
-
- /**
- * Server-side processing - number of records in the result set
- * (i.e. before filtering), Use fnRecordsTotal rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type int
- * @default 0
- * @private
- */
- "_iRecordsTotal": 0,
-
- /**
- * Server-side processing - number of records in the current display set
- * (i.e. after filtering). Use fnRecordsDisplay rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type boolean
- * @default 0
- * @private
- */
- "_iRecordsDisplay": 0,
-
- /**
- * The classes to use for the table
- * @type object
- * @default {}
- */
- "oClasses": {},
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if filtering has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bFiltered": false,
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if sorting has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bSorted": false,
-
- /**
- * Indicate that if multiple rows are in the header and there is more than
- * one unique cell per column, if the top one (true) or bottom one (false)
- * should be used for sorting / title by DataTables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortCellsTop": null,
-
- /**
- * Initialisation object that is used for the table
- * @type object
- * @default null
- */
- "oInit": null,
-
- /**
- * Destroy callback functions - for plug-ins to attach themselves to the
- * destroy so they can clean up markup and events.
- * @type array
- * @default []
- */
- "aoDestroyCallback": [],
-
-
- /**
- * Get the number of records in the current record set, before filtering
- * @type function
- */
- "fnRecordsTotal": function ()
- {
- return _fnDataSource( this ) == 'ssp' ?
- this._iRecordsTotal * 1 :
- this.aiDisplayMaster.length;
- },
-
- /**
- * Get the number of records in the current record set, after filtering
- * @type function
- */
- "fnRecordsDisplay": function ()
- {
- return _fnDataSource( this ) == 'ssp' ?
- this._iRecordsDisplay * 1 :
- this.aiDisplay.length;
- },
-
- /**
- * Get the display end point - aiDisplay index
- * @type function
- */
- "fnDisplayEnd": function ()
- {
- var
- len = this._iDisplayLength,
- start = this._iDisplayStart,
- calc = start + len,
- records = this.aiDisplay.length,
- features = this.oFeatures,
- paginate = features.bPaginate;
-
- if ( features.bServerSide ) {
- return paginate === false || len === -1 ?
- start + records :
- Math.min( start+len, this._iRecordsDisplay );
- }
- else {
- return ! paginate || calc>records || len===-1 ?
- records :
- calc;
- }
- },
-
- /**
- * The DataTables object for this table
- * @type object
- * @default null
- */
- "oInstance": null,
-
- /**
- * Unique identifier for each instance of the DataTables object. If there
- * is an ID on the table node, then it takes that value, otherwise an
- * incrementing internal counter is used.
- * @type string
- * @default null
- */
- "sInstance": null,
-
- /**
- * tabindex attribute value that is added to DataTables control elements, allowing
- * keyboard navigation of the table and its controls.
- */
- "iTabIndex": 0,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollHead": null,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollFoot": null,
-
- /**
- * Last applied sort
- * @type array
- * @default []
- */
- "aLastSort": [],
-
- /**
- * Stored plug-in instances
- * @type object
- * @default {}
- */
- "oPlugins": {},
-
- /**
- * Function used to get a row's id from the row's data
- * @type function
- * @default null
- */
- "rowIdFn": null,
-
- /**
- * Data location where to store a row's id
- * @type string
- * @default null
- */
- "rowId": null
- };
-
- /**
- * Extension object for DataTables that is used to provide all extension
- * options.
- *
- * Note that the `DataTable.ext` object is available through
- * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
- * also aliased to `jQuery.fn.dataTableExt` for historic reasons.
- * @namespace
- * @extends DataTable.models.ext
- */
-
-
- /**
- * DataTables extensions
- *
- * This namespace acts as a collection area for plug-ins that can be used to
- * extend DataTables capabilities. Indeed many of the build in methods
- * use this method to provide their own capabilities (sorting methods for
- * example).
- *
- * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
- * reasons
- *
- * @namespace
- */
- DataTable.ext = _ext = {
- /**
- * Buttons. For use with the Buttons extension for DataTables. This is
- * defined here so other extensions can define buttons regardless of load
- * order. It is _not_ used by DataTables core.
- *
- * @type object
- * @default {}
- */
- buttons: {},
-
-
- /**
- * Element class names
- *
- * @type object
- * @default {}
- */
- classes: {},
-
-
- /**
- * DataTables build type (expanded by the download builder)
- *
- * @type string
- */
- builder: "-source-",
-
-
- /**
- * Error reporting.
- *
- * How should DataTables report an error. Can take the value 'alert',
- * 'throw', 'none' or a function.
- *
- * @type string|function
- * @default alert
- */
- errMode: "alert",
-
-
- /**
- * Feature plug-ins.
- *
- * This is an array of objects which describe the feature plug-ins that are
- * available to DataTables. These feature plug-ins are then available for
- * use through the `dom` initialisation option.
- *
- * Each feature plug-in is described by an object which must have the
- * following properties:
- *
- * * `fnInit` - function that is used to initialise the plug-in,
- * * `cFeature` - a character so the feature can be enabled by the `dom`
- * instillation option. This is case sensitive.
- *
- * The `fnInit` function has the following input parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- *
- * And the following return is expected:
- *
- * * {node|null} The element which contains your feature. Note that the
- * return may also be void if your plug-in does not require to inject any
- * DOM elements into DataTables control (`dom`) - for example this might
- * be useful when developing a plug-in which allows table control via
- * keyboard entry
- *
- * @type array
- *
- * @example
- * $.fn.dataTable.ext.features.push( {
- * "fnInit": function( oSettings ) {
- * return new TableTools( { "oDTSettings": oSettings } );
- * },
- * "cFeature": "T"
- * } );
- */
- feature: [],
-
-
- /**
- * Row searching.
- *
- * This method of searching is complimentary to the default type based
- * searching, and a lot more comprehensive as it allows you complete control
- * over the searching logic. Each element in this array is a function
- * (parameters described below) that is called for every row in the table,
- * and your logic decides if it should be included in the searching data set
- * or not.
- *
- * Searching functions have the following input parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- * 2. `{array|object}` Data for the row to be processed (same as the
- * original format that was passed in as the data source, or an array
- * from a DOM data source
- * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
- * can be useful to retrieve the `TR` element if you need DOM interaction.
- *
- * And the following return is expected:
- *
- * * {boolean} Include the row in the searched result set (true) or not
- * (false)
- *
- * Note that as with the main search ability in DataTables, technically this
- * is "filtering", since it is subtractive. However, for consistency in
- * naming we call it searching here.
- *
- * @type array
- * @default []
- *
- * @example
- * // The following example shows custom search being applied to the
- * // fourth column (i.e. the data[3] index) based on two input values
- * // from the end-user, matching the data in a certain range.
- * $.fn.dataTable.ext.search.push(
- * function( settings, data, dataIndex ) {
- * var min = document.getElementById('min').value * 1;
- * var max = document.getElementById('max').value * 1;
- * var version = data[3] == "-" ? 0 : data[3]*1;
- *
- * if ( min == "" && max == "" ) {
- * return true;
- * }
- * else if ( min == "" && version < max ) {
- * return true;
- * }
- * else if ( min < version && "" == max ) {
- * return true;
- * }
- * else if ( min < version && version < max ) {
- * return true;
- * }
- * return false;
- * }
- * );
- */
- search: [],
-
-
- /**
- * Selector extensions
- *
- * The `selector` option can be used to extend the options available for the
- * selector modifier options (`selector-modifier` object data type) that
- * each of the three built in selector types offer (row, column and cell +
- * their plural counterparts). For example the Select extension uses this
- * mechanism to provide an option to select only rows, columns and cells
- * that have been marked as selected by the end user (`{selected: true}`),
- * which can be used in conjunction with the existing built in selector
- * options.
- *
- * Each property is an array to which functions can be pushed. The functions
- * take three attributes:
- *
- * * Settings object for the host table
- * * Options object (`selector-modifier` object type)
- * * Array of selected item indexes
- *
- * The return is an array of the resulting item indexes after the custom
- * selector has been applied.
- *
- * @type object
- */
- selector: {
- cell: [],
- column: [],
- row: []
- },
-
-
- /**
- * Internal functions, exposed for used in plug-ins.
- *
- * Please note that you should not need to use the internal methods for
- * anything other than a plug-in (and even then, try to avoid if possible).
- * The internal function may change between releases.
- *
- * @type object
- * @default {}
- */
- internal: {},
-
-
- /**
- * Legacy configuration options. Enable and disable legacy options that
- * are available in DataTables.
- *
- * @type object
- */
- legacy: {
- /**
- * Enable / disable DataTables 1.9 compatible server-side processing
- * requests
- *
- * @type boolean
- * @default null
- */
- ajax: null
- },
-
-
- /**
- * Pagination plug-in methods.
- *
- * Each entry in this object is a function and defines which buttons should
- * be shown by the pagination rendering method that is used for the table:
- * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
- * buttons are displayed in the document, while the functions here tell it
- * what buttons to display. This is done by returning an array of button
- * descriptions (what each button will do).
- *
- * Pagination types (the four built in options and any additional plug-in
- * options defined here) can be used through the `paginationType`
- * initialisation parameter.
- *
- * The functions defined take two parameters:
- *
- * 1. `{int} page` The current page index
- * 2. `{int} pages` The number of pages in the table
- *
- * Each function is expected to return an array where each element of the
- * array can be one of:
- *
- * * `first` - Jump to first page when activated
- * * `last` - Jump to last page when activated
- * * `previous` - Show previous page when activated
- * * `next` - Show next page when activated
- * * `{int}` - Show page of the index given
- * * `{array}` - A nested array containing the above elements to add a
- * containing 'DIV' element (might be useful for styling).
- *
- * Note that DataTables v1.9- used this object slightly differently whereby
- * an object with two functions would be defined for each plug-in. That
- * ability is still supported by DataTables 1.10+ to provide backwards
- * compatibility, but this option of use is now decremented and no longer
- * documented in DataTables 1.10+.
- *
- * @type object
- * @default {}
- *
- * @example
- * // Show previous, next and current page buttons only
- * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
- * return [ 'previous', page, 'next' ];
- * };
- */
- pager: {},
-
-
- renderer: {
- pageButton: {},
- header: {}
- },
-
-
- /**
- * Ordering plug-ins - custom data source
- *
- * The extension options for ordering of data available here is complimentary
- * to the default type based ordering that DataTables typically uses. It
- * allows much greater control over the the data that is being used to
- * order a column, but is necessarily therefore more complex.
- *
- * This type of ordering is useful if you want to do ordering based on data
- * live from the DOM (for example the contents of an 'input' element) rather
- * than just the static string that DataTables knows of.
- *
- * The way these plug-ins work is that you create an array of the values you
- * wish to be ordering for the column in question and then return that
- * array. The data in the array much be in the index order of the rows in
- * the table (not the currently ordering order!). Which order data gathering
- * function is run here depends on the `dt-init columns.orderDataType`
- * parameter that is used for the column (if any).
- *
- * The functions defined take two parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- * 2. `{int}` Target column index
- *
- * Each function is expected to return an array:
- *
- * * `{array}` Data for the column to be ordering upon
- *
- * @type array
- *
- * @example
- * // Ordering using `input` node values
- * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
- * {
- * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
- * return $('input', td).val();
- * } );
- * }
- */
- order: {},
-
-
- /**
- * Type based plug-ins.
- *
- * Each column in DataTables has a type assigned to it, either by automatic
- * detection or by direct assignment using the `type` option for the column.
- * The type of a column will effect how it is ordering and search (plug-ins
- * can also make use of the column type if required).
- *
- * @namespace
- */
- type: {
- /**
- * Type detection functions.
- *
- * The functions defined in this object are used to automatically detect
- * a column's type, making initialisation of DataTables super easy, even
- * when complex data is in the table.
- *
- * The functions defined take two parameters:
- *
- * 1. `{*}` Data from the column cell to be analysed
- * 2. `{settings}` DataTables settings object. This can be used to
- * perform context specific type detection - for example detection
- * based on language settings such as using a comma for a decimal
- * place. Generally speaking the options from the settings will not
- * be required
- *
- * Each function is expected to return:
- *
- * * `{string|null}` Data type detected, or null if unknown (and thus
- * pass it on to the other type detection functions.
- *
- * @type array
- *
- * @example
- * // Currency type detection plug-in:
- * $.fn.dataTable.ext.type.detect.push(
- * function ( data, settings ) {
- * // Check the numeric part
- * if ( ! data.substring(1).match(/[0-9]/) ) {
- * return null;
- * }
- *
- * // Check prefixed by currency
- * if ( data.charAt(0) == '$' || data.charAt(0) == '£' ) {
- * return 'currency';
- * }
- * return null;
- * }
- * );
- */
- detect: [],
-
-
- /**
- * Type based search formatting.
- *
- * The type based searching functions can be used to pre-format the
- * data to be search on. For example, it can be used to strip HTML
- * tags or to de-format telephone numbers for numeric only searching.
- *
- * Note that is a search is not defined for a column of a given type,
- * no search formatting will be performed.
- *
- * Pre-processing of searching data plug-ins - When you assign the sType
- * for a column (or have it automatically detected for you by DataTables
- * or a type detection plug-in), you will typically be using this for
- * custom sorting, but it can also be used to provide custom searching
- * by allowing you to pre-processing the data and returning the data in
- * the format that should be searched upon. This is done by adding
- * functions this object with a parameter name which matches the sType
- * for that target column. This is the corollary of afnSortData
- * for searching data.
- *
- * The functions defined take a single parameter:
- *
- * 1. `{*}` Data from the column cell to be prepared for searching
- *
- * Each function is expected to return:
- *
- * * `{string|null}` Formatted string that will be used for the searching.
- *
- * @type object
- * @default {}
- *
- * @example
- * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
- * return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
- * }
- */
- search: {},
-
-
- /**
- * Type based ordering.
- *
- * The column type tells DataTables what ordering to apply to the table
- * when a column is sorted upon. The order for each type that is defined,
- * is defined by the functions available in this object.
- *
- * Each ordering option can be described by three properties added to
- * this object:
- *
- * * `{type}-pre` - Pre-formatting function
- * * `{type}-asc` - Ascending order function
- * * `{type}-desc` - Descending order function
- *
- * All three can be used together, only `{type}-pre` or only
- * `{type}-asc` and `{type}-desc` together. It is generally recommended
- * that only `{type}-pre` is used, as this provides the optimal
- * implementation in terms of speed, although the others are provided
- * for compatibility with existing Javascript sort functions.
- *
- * `{type}-pre`: Functions defined take a single parameter:
- *
- * 1. `{*}` Data from the column cell to be prepared for ordering
- *
- * And return:
- *
- * * `{*}` Data to be sorted upon
- *
- * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
- * functions, taking two parameters:
- *
- * 1. `{*}` Data to compare to the second parameter
- * 2. `{*}` Data to compare to the first parameter
- *
- * And returning:
- *
- * * `{*}` Ordering match: <0 if first parameter should be sorted lower
- * than the second parameter, ===0 if the two parameters are equal and
- * >0 if the first parameter should be sorted height than the second
- * parameter.
- *
- * @type object
- * @default {}
- *
- * @example
- * // Numeric ordering of formatted numbers with a pre-formatter
- * $.extend( $.fn.dataTable.ext.type.order, {
- * "string-pre": function(x) {
- * a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
- * return parseFloat( a );
- * }
- * } );
- *
- * @example
- * // Case-sensitive string ordering, with no pre-formatting method
- * $.extend( $.fn.dataTable.ext.order, {
- * "string-case-asc": function(x,y) {
- * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- * },
- * "string-case-desc": function(x,y) {
- * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- * }
- * } );
- */
- order: {}
- },
-
- /**
- * Unique DataTables instance counter
- *
- * @type int
- * @private
- */
- _unique: 0,
-
-
- //
- // Depreciated
- // The following properties are retained for backwards compatiblity only.
- // The should not be used in new projects and will be removed in a future
- // version
- //
-
- /**
- * Version check function.
- * @type function
- * @depreciated Since 1.10
- */
- fnVersionCheck: DataTable.fnVersionCheck,
-
-
- /**
- * Index for what 'this' index API functions should use
- * @type int
- * @deprecated Since v1.10
- */
- iApiIndex: 0,
-
-
- /**
- * jQuery UI class container
- * @type object
- * @deprecated Since v1.10
- */
- oJUIClasses: {},
-
-
- /**
- * Software version
- * @type string
- * @deprecated Since v1.10
- */
- sVersion: DataTable.version
- };
-
-
- //
- // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
- //
- $.extend( _ext, {
- afnFiltering: _ext.search,
- aTypes: _ext.type.detect,
- ofnSearch: _ext.type.search,
- oSort: _ext.type.order,
- afnSortData: _ext.order,
- aoFeatures: _ext.feature,
- oApi: _ext.internal,
- oStdClasses: _ext.classes,
- oPagination: _ext.pager
- } );
-
-
- $.extend( DataTable.ext.classes, {
- "sTable": "dataTable",
- "sNoFooter": "no-footer",
-
- /* Paging buttons */
- "sPageButton": "paginate_button",
- "sPageButtonActive": "current",
- "sPageButtonDisabled": "disabled",
-
- /* Striping classes */
- "sStripeOdd": "odd",
- "sStripeEven": "even",
-
- /* Empty row */
- "sRowEmpty": "dataTables_empty",
-
- /* Features */
- "sWrapper": "dataTables_wrapper",
- "sFilter": "dataTables_filter",
- "sInfo": "dataTables_info",
- "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
- "sLength": "dataTables_length",
- "sProcessing": "dataTables_processing",
-
- /* Sorting */
- "sSortAsc": "sorting_asc",
- "sSortDesc": "sorting_desc",
- "sSortable": "sorting", /* Sortable in both directions */
- "sSortableAsc": "sorting_asc_disabled",
- "sSortableDesc": "sorting_desc_disabled",
- "sSortableNone": "sorting_disabled",
- "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
-
- /* Filtering */
- "sFilterInput": "",
-
- /* Page length */
- "sLengthSelect": "",
-
- /* Scrolling */
- "sScrollWrapper": "dataTables_scroll",
- "sScrollHead": "dataTables_scrollHead",
- "sScrollHeadInner": "dataTables_scrollHeadInner",
- "sScrollBody": "dataTables_scrollBody",
- "sScrollFoot": "dataTables_scrollFoot",
- "sScrollFootInner": "dataTables_scrollFootInner",
-
- /* Misc */
- "sHeaderTH": "",
- "sFooterTH": "",
-
- // Deprecated
- "sSortJUIAsc": "",
- "sSortJUIDesc": "",
- "sSortJUI": "",
- "sSortJUIAscAllowed": "",
- "sSortJUIDescAllowed": "",
- "sSortJUIWrapper": "",
- "sSortIcon": "",
- "sJUIHeader": "",
- "sJUIFooter": ""
- } );
-
-
- var extPagination = DataTable.ext.pager;
-
- function _numbers ( page, pages ) {
- var
- numbers = [],
- buttons = extPagination.numbers_length,
- half = Math.floor( buttons / 2 ),
- i = 1;
-
- if ( pages <= buttons ) {
- numbers = _range( 0, pages );
- }
- else if ( page <= half ) {
- numbers = _range( 0, buttons-2 );
- numbers.push( 'ellipsis' );
- numbers.push( pages-1 );
- }
- else if ( page >= pages - 1 - half ) {
- numbers = _range( pages-(buttons-2), pages );
- numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
- numbers.splice( 0, 0, 0 );
- }
- else {
- numbers = _range( page-half+2, page+half-1 );
- numbers.push( 'ellipsis' );
- numbers.push( pages-1 );
- numbers.splice( 0, 0, 'ellipsis' );
- numbers.splice( 0, 0, 0 );
- }
-
- numbers.DT_el = 'span';
- return numbers;
- }
-
-
- $.extend( extPagination, {
- simple: function ( page, pages ) {
- return [ 'previous', 'next' ];
- },
-
- full: function ( page, pages ) {
- return [ 'first', 'previous', 'next', 'last' ];
- },
-
- numbers: function ( page, pages ) {
- return [ _numbers(page, pages) ];
- },
-
- simple_numbers: function ( page, pages ) {
- return [ 'previous', _numbers(page, pages), 'next' ];
- },
-
- full_numbers: function ( page, pages ) {
- return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
- },
-
- first_last_numbers: function (page, pages) {
- return ['first', _numbers(page, pages), 'last'];
- },
-
- // For testing and plug-ins to use
- _numbers: _numbers,
-
- // Number of number buttons (including ellipsis) to show. _Must be odd!_
- numbers_length: 7
- } );
-
-
- $.extend( true, DataTable.ext.renderer, {
- pageButton: {
- _: function ( settings, host, idx, buttons, page, pages ) {
- var classes = settings.oClasses;
- var lang = settings.oLanguage.oPaginate;
- var aria = settings.oLanguage.oAria.paginate || {};
- var btnDisplay, btnClass, counter=0;
-
- var attach = function( container, buttons ) {
- var i, ien, node, button;
- var clickHandler = function ( e ) {
- _fnPageChange( settings, e.data.action, true );
- };
-
- for ( i=0, ien=buttons.length ; i ' )
- .appendTo( container );
- attach( inner, button );
- }
- else {
- btnDisplay = null;
- btnClass = '';
-
- switch ( button ) {
- case 'ellipsis':
- container.append('… ');
- break;
-
- case 'first':
- btnDisplay = lang.sFirst;
- btnClass = button + (page > 0 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'previous':
- btnDisplay = lang.sPrevious;
- btnClass = button + (page > 0 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'next':
- btnDisplay = lang.sNext;
- btnClass = button + (page < pages-1 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'last':
- btnDisplay = lang.sLast;
- btnClass = button + (page < pages-1 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- default:
- btnDisplay = button + 1;
- btnClass = page === button ?
- classes.sPageButtonActive : '';
- break;
- }
-
- if ( btnDisplay !== null ) {
- node = $('', {
- 'class': classes.sPageButton+' '+btnClass,
- 'aria-controls': settings.sTableId,
- 'aria-label': aria[ button ],
- 'data-dt-idx': counter,
- 'tabindex': settings.iTabIndex,
- 'id': idx === 0 && typeof button === 'string' ?
- settings.sTableId +'_'+ button :
- null
- } )
- .html( btnDisplay )
- .appendTo( container );
-
- _fnBindAction(
- node, {action: button}, clickHandler
- );
-
- counter++;
- }
- }
- }
- };
-
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame. Try / catch the error. Not good for
- // accessibility, but neither are frames.
- var activeEl;
-
- try {
- // Because this approach is destroying and recreating the paging
- // elements, focus is lost on the select button which is bad for
- // accessibility. So we want to restore focus once the draw has
- // completed
- activeEl = $(host).find(document.activeElement).data('dt-idx');
- }
- catch (e) {}
-
- attach( $(host).empty(), buttons );
-
- if ( activeEl !== undefined ) {
- $(host).find( '[data-dt-idx='+activeEl+']' ).focus();
- }
- }
- }
- } );
-
-
-
- // Built in type detection. See model.ext.aTypes for information about
- // what is required from this methods.
- $.extend( DataTable.ext.type.detect, [
- // Plain numbers - first since V8 detects some plain numbers as dates
- // e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _isNumber( d, decimal ) ? 'num'+decimal : null;
- },
-
- // Dates (only those recognised by the browser's Date.parse)
- function ( d, settings )
- {
- // V8 tries _very_ hard to make a string passed into `Date.parse()`
- // valid, so we need to use a regex to restrict date formats. Use a
- // plug-in for anything other than ISO8601 style strings
- if ( d && !(d instanceof Date) && ! _re_date.test(d) ) {
- return null;
- }
- var parsed = Date.parse(d);
- return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;
- },
-
- // Formatted numbers
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;
- },
-
- // HTML numeric
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;
- },
-
- // HTML numeric, formatted
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;
- },
-
- // HTML (this is strict checking - there must be html)
- function ( d, settings )
- {
- return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?
- 'html' : null;
- }
- ] );
-
-
-
- // Filter formatting functions. See model.ext.ofnSearch for information about
- // what is required from these methods.
- //
- // Note that additional search methods are added for the html numbers and
- // html formatted numbers by `_addNumericSort()` when we know what the decimal
- // place is
-
-
- $.extend( DataTable.ext.type.search, {
- html: function ( data ) {
- return _empty(data) ?
- data :
- typeof data === 'string' ?
- data
- .replace( _re_new_lines, " " )
- .replace( _re_html, "" ) :
- '';
- },
-
- string: function ( data ) {
- return _empty(data) ?
- data :
- typeof data === 'string' ?
- data.replace( _re_new_lines, " " ) :
- data;
- }
- } );
-
-
-
- var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
- if ( d !== 0 && (!d || d === '-') ) {
- return -Infinity;
- }
-
- // If a decimal place other than `.` is used, it needs to be given to the
- // function so we can detect it and replace with a `.` which is the only
- // decimal place Javascript recognises - it is not locale aware.
- if ( decimalPlace ) {
- d = _numToDecimal( d, decimalPlace );
- }
-
- if ( d.replace ) {
- if ( re1 ) {
- d = d.replace( re1, '' );
- }
-
- if ( re2 ) {
- d = d.replace( re2, '' );
- }
- }
-
- return d * 1;
- };
-
-
- // Add the numeric 'deformatting' functions for sorting and search. This is done
- // in a function to provide an easy ability for the language options to add
- // additional methods if a non-period decimal place is used.
- function _addNumericSort ( decimalPlace ) {
- $.each(
- {
- // Plain numbers
- "num": function ( d ) {
- return __numericReplace( d, decimalPlace );
- },
-
- // Formatted numbers
- "num-fmt": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_formatted_numeric );
- },
-
- // HTML numeric
- "html-num": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_html );
- },
-
- // HTML numeric, formatted
- "html-num-fmt": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
- }
- },
- function ( key, fn ) {
- // Add the ordering method
- _ext.type.order[ key+decimalPlace+'-pre' ] = fn;
-
- // For HTML types add a search formatter that will strip the HTML
- if ( key.match(/^html\-/) ) {
- _ext.type.search[ key+decimalPlace ] = _ext.type.search.html;
- }
- }
- );
- }
-
-
- // Default sort methods
- $.extend( _ext.type.order, {
- // Dates
- "date-pre": function ( d ) {
- var ts = Date.parse( d );
- return isNaN(ts) ? -Infinity : ts;
- },
-
- // html
- "html-pre": function ( a ) {
- return _empty(a) ?
- '' :
- a.replace ?
- a.replace( /<.*?>/g, "" ).toLowerCase() :
- a+'';
- },
-
- // string
- "string-pre": function ( a ) {
- // This is a little complex, but faster than always calling toString,
- // http://jsperf.com/tostring-v-check
- return _empty(a) ?
- '' :
- typeof a === 'string' ?
- a.toLowerCase() :
- ! a.toString ?
- '' :
- a.toString();
- },
-
- // string-asc and -desc are retained only for compatibility with the old
- // sort methods
- "string-asc": function ( x, y ) {
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- },
-
- "string-desc": function ( x, y ) {
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- }
- } );
-
-
- // Numeric sorting types - order doesn't matter here
- _addNumericSort( '' );
-
-
- $.extend( true, DataTable.ext.renderer, {
- header: {
- _: function ( settings, cell, column, classes ) {
- // No additional mark-up required
- // Attach a sort listener to update on sort - note that using the
- // `DT` namespace will allow the event to be removed automatically
- // on destroy, while the `dt` namespaced event is the one we are
- // listening for
- $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
- if ( settings !== ctx ) { // need to check this this is the host
- return; // table, not a nested one
- }
-
- var colIdx = column.idx;
-
- cell
- .removeClass(
- column.sSortingClass +' '+
- classes.sSortAsc +' '+
- classes.sSortDesc
- )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortDesc :
- column.sSortingClass
- );
- } );
- },
-
- jqueryui: function ( settings, cell, column, classes ) {
- $('
')
- .addClass( classes.sSortJUIWrapper )
- .append( cell.contents() )
- .append( $(' ')
- .addClass( classes.sSortIcon+' '+column.sSortingClassJUI )
- )
- .appendTo( cell );
-
- // Attach a sort listener to update on sort
- $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
- if ( settings !== ctx ) {
- return;
- }
-
- var colIdx = column.idx;
-
- cell
- .removeClass( classes.sSortAsc +" "+classes.sSortDesc )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortDesc :
- column.sSortingClass
- );
-
- cell
- .find( 'span.'+classes.sSortIcon )
- .removeClass(
- classes.sSortJUIAsc +" "+
- classes.sSortJUIDesc +" "+
- classes.sSortJUI +" "+
- classes.sSortJUIAscAllowed +" "+
- classes.sSortJUIDescAllowed
- )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortJUIDesc :
- column.sSortingClassJUI
- );
- } );
- }
- }
- } );
-
- /*
- * Public helper functions. These aren't used internally by DataTables, or
- * called by any of the options passed into DataTables, but they can be used
- * externally by developers working with DataTables. They are helper functions
- * to make working with DataTables a little bit easier.
- */
-
- var __htmlEscapeEntities = function ( d ) {
- return typeof d === 'string' ?
- d.replace(//g, '>').replace(/"/g, '"') :
- d;
- };
-
- /**
- * Helpers for `columns.render`.
- *
- * The options defined here can be used with the `columns.render` initialisation
- * option to provide a display renderer. The following functions are defined:
- *
- * * `number` - Will format numeric data (defined by `columns.data`) for
- * display, retaining the original unformatted data for sorting and filtering.
- * It takes 5 parameters:
- * * `string` - Thousands grouping separator
- * * `string` - Decimal point indicator
- * * `integer` - Number of decimal points to show
- * * `string` (optional) - Prefix.
- * * `string` (optional) - Postfix (/suffix).
- * * `text` - Escape HTML to help prevent XSS attacks. It has no optional
- * parameters.
- *
- * @example
- * // Column definition using the number renderer
- * {
- * data: "salary",
- * render: $.fn.dataTable.render.number( '\'', '.', 0, '$' )
- * }
- *
- * @namespace
- */
- DataTable.render = {
- number: function ( thousands, decimal, precision, prefix, postfix ) {
- return {
- display: function ( d ) {
- if ( typeof d !== 'number' && typeof d !== 'string' ) {
- return d;
- }
-
- var negative = d < 0 ? '-' : '';
- var flo = parseFloat( d );
-
- // If NaN then there isn't much formatting that we can do - just
- // return immediately, escaping any HTML (this was supposed to
- // be a number after all)
- if ( isNaN( flo ) ) {
- return __htmlEscapeEntities( d );
- }
-
- flo = flo.toFixed( precision );
- d = Math.abs( flo );
-
- var intPart = parseInt( d, 10 );
- var floatPart = precision ?
- decimal+(d - intPart).toFixed( precision ).substring( 2 ):
- '';
-
- return negative + (prefix||'') +
- intPart.toString().replace(
- /\B(?=(\d{3})+(?!\d))/g, thousands
- ) +
- floatPart +
- (postfix||'');
- }
- };
- },
-
- text: function () {
- return {
- display: __htmlEscapeEntities,
- filter: __htmlEscapeEntities
- };
- }
- };
-
-
- /*
- * This is really a good bit rubbish this method of exposing the internal methods
- * publicly... - To be fixed in 2.0 using methods on the prototype
- */
-
-
- /**
- * Create a wrapper function for exporting an internal functions to an external API.
- * @param {string} fn API function name
- * @returns {function} wrapped function
- * @memberof DataTable#internal
- */
- function _fnExternApiFunc (fn)
- {
- return function() {
- var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(
- Array.prototype.slice.call(arguments)
- );
- return DataTable.ext.internal[fn].apply( this, args );
- };
- }
-
-
- /**
- * Reference to internal functions for use by plug-in developers. Note that
- * these methods are references to internal functions and are considered to be
- * private. If you use these methods, be aware that they are liable to change
- * between versions.
- * @namespace
- */
- $.extend( DataTable.ext.internal, {
- _fnExternApiFunc: _fnExternApiFunc,
- _fnBuildAjax: _fnBuildAjax,
- _fnAjaxUpdate: _fnAjaxUpdate,
- _fnAjaxParameters: _fnAjaxParameters,
- _fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
- _fnAjaxDataSrc: _fnAjaxDataSrc,
- _fnAddColumn: _fnAddColumn,
- _fnColumnOptions: _fnColumnOptions,
- _fnAdjustColumnSizing: _fnAdjustColumnSizing,
- _fnVisibleToColumnIndex: _fnVisibleToColumnIndex,
- _fnColumnIndexToVisible: _fnColumnIndexToVisible,
- _fnVisbleColumns: _fnVisbleColumns,
- _fnGetColumns: _fnGetColumns,
- _fnColumnTypes: _fnColumnTypes,
- _fnApplyColumnDefs: _fnApplyColumnDefs,
- _fnHungarianMap: _fnHungarianMap,
- _fnCamelToHungarian: _fnCamelToHungarian,
- _fnLanguageCompat: _fnLanguageCompat,
- _fnBrowserDetect: _fnBrowserDetect,
- _fnAddData: _fnAddData,
- _fnAddTr: _fnAddTr,
- _fnNodeToDataIndex: _fnNodeToDataIndex,
- _fnNodeToColumnIndex: _fnNodeToColumnIndex,
- _fnGetCellData: _fnGetCellData,
- _fnSetCellData: _fnSetCellData,
- _fnSplitObjNotation: _fnSplitObjNotation,
- _fnGetObjectDataFn: _fnGetObjectDataFn,
- _fnSetObjectDataFn: _fnSetObjectDataFn,
- _fnGetDataMaster: _fnGetDataMaster,
- _fnClearTable: _fnClearTable,
- _fnDeleteIndex: _fnDeleteIndex,
- _fnInvalidate: _fnInvalidate,
- _fnGetRowElements: _fnGetRowElements,
- _fnCreateTr: _fnCreateTr,
- _fnBuildHead: _fnBuildHead,
- _fnDrawHead: _fnDrawHead,
- _fnDraw: _fnDraw,
- _fnReDraw: _fnReDraw,
- _fnAddOptionsHtml: _fnAddOptionsHtml,
- _fnDetectHeader: _fnDetectHeader,
- _fnGetUniqueThs: _fnGetUniqueThs,
- _fnFeatureHtmlFilter: _fnFeatureHtmlFilter,
- _fnFilterComplete: _fnFilterComplete,
- _fnFilterCustom: _fnFilterCustom,
- _fnFilterColumn: _fnFilterColumn,
- _fnFilter: _fnFilter,
- _fnFilterCreateSearch: _fnFilterCreateSearch,
- _fnEscapeRegex: _fnEscapeRegex,
- _fnFilterData: _fnFilterData,
- _fnFeatureHtmlInfo: _fnFeatureHtmlInfo,
- _fnUpdateInfo: _fnUpdateInfo,
- _fnInfoMacros: _fnInfoMacros,
- _fnInitialise: _fnInitialise,
- _fnInitComplete: _fnInitComplete,
- _fnLengthChange: _fnLengthChange,
- _fnFeatureHtmlLength: _fnFeatureHtmlLength,
- _fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,
- _fnPageChange: _fnPageChange,
- _fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,
- _fnProcessingDisplay: _fnProcessingDisplay,
- _fnFeatureHtmlTable: _fnFeatureHtmlTable,
- _fnScrollDraw: _fnScrollDraw,
- _fnApplyToChildren: _fnApplyToChildren,
- _fnCalculateColumnWidths: _fnCalculateColumnWidths,
- _fnThrottle: _fnThrottle,
- _fnConvertToWidth: _fnConvertToWidth,
- _fnGetWidestNode: _fnGetWidestNode,
- _fnGetMaxLenString: _fnGetMaxLenString,
- _fnStringToCss: _fnStringToCss,
- _fnSortFlatten: _fnSortFlatten,
- _fnSort: _fnSort,
- _fnSortAria: _fnSortAria,
- _fnSortListener: _fnSortListener,
- _fnSortAttachListener: _fnSortAttachListener,
- _fnSortingClasses: _fnSortingClasses,
- _fnSortData: _fnSortData,
- _fnSaveState: _fnSaveState,
- _fnLoadState: _fnLoadState,
- _fnSettingsFromNode: _fnSettingsFromNode,
- _fnLog: _fnLog,
- _fnMap: _fnMap,
- _fnBindAction: _fnBindAction,
- _fnCallbackReg: _fnCallbackReg,
- _fnCallbackFire: _fnCallbackFire,
- _fnLengthOverflow: _fnLengthOverflow,
- _fnRenderer: _fnRenderer,
- _fnDataSource: _fnDataSource,
- _fnRowAttributes: _fnRowAttributes,
- _fnExtend: _fnExtend,
- _fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
- // in 1.10, so this dead-end function is
- // added to prevent errors
- } );
-
-
- // jQuery access
- $.fn.dataTable = DataTable;
-
- // Provide access to the host jQuery object (circular reference)
- DataTable.$ = $;
-
- // Legacy aliases
- $.fn.dataTableSettings = DataTable.settings;
- $.fn.dataTableExt = DataTable.ext;
-
- // With a capital `D` we return a DataTables API instance rather than a
- // jQuery object
- $.fn.DataTable = function ( opts ) {
- return $(this).dataTable( opts ).api();
- };
-
- // All properties that are available to $.fn.dataTable should also be
- // available on $.fn.DataTable
- $.each( DataTable, function ( prop, val ) {
- $.fn.DataTable[ prop ] = val;
- } );
-
-
- // Information about events fired by DataTables - for documentation.
- /**
- * Draw event, fired whenever the table is redrawn on the page, at the same
- * point as fnDrawCallback. This may be useful for binding events or
- * performing calculations when the table is altered at all.
- * @name DataTable#draw.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Search event, fired when the searching applied to the table (using the
- * built-in global search, or column filters) is altered.
- * @name DataTable#search.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Page change event, fired when the paging of the table is altered.
- * @name DataTable#page.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Order event, fired when the ordering applied to the table is altered.
- * @name DataTable#order.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * DataTables initialisation complete event, fired when the table is fully
- * drawn, including Ajax data loaded, if Ajax data is required.
- * @name DataTable#init.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used
- */
-
- /**
- * State save event, fired when the table has changed state a new state save
- * is required. This event allows modification of the state saving object
- * prior to actually doing the save, including addition or other state
- * properties (for plug-ins) or modification of a DataTables core property.
- * @name DataTable#stateSaveParams.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The state information to be saved
- */
-
- /**
- * State load event, fired when the table is loading state from the stored
- * data, but prior to the settings object being modified by the saved state
- * - allowing modification of the saved state is required or loading of
- * state for a plug-in.
- * @name DataTable#stateLoadParams.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * State loaded event, fired when state has been loaded from stored data and
- * the settings object has been modified by the loaded data.
- * @name DataTable#stateLoaded.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * Processing event, fired when DataTables is doing some kind of processing
- * (be it, order, searcg or anything else). It can be used to indicate to
- * the end user that there is something happening, or that something has
- * finished.
- * @name DataTable#processing.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {boolean} bShow Flag for if DataTables is doing processing or not
- */
-
- /**
- * Ajax (XHR) event, fired whenever an Ajax request is completed from a
- * request to made to the server for new data. This event is called before
- * DataTables processed the returned data, so it can also be used to pre-
- * process the data returned from the server, if needed.
- *
- * Note that this trigger is called in `fnServerData`, if you override
- * `fnServerData` and which to use this event, you need to trigger it in you
- * success function.
- * @name DataTable#xhr.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- * @param {object} json JSON returned from the server
- *
- * @example
- * // Use a custom property returned from the server in another DOM element
- * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
- * $('#status').html( json.status );
- * } );
- *
- * @example
- * // Pre-process the data returned from the server
- * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
- * for ( var i=0, ien=json.aaData.length ; i 0)
- er = args[0];
- if (er instanceof Error) {
- // Note: The comments on the `throw` lines are intentional, they show
- // up in Node's output if this results in an unhandled exception.
- throw er; // Unhandled 'error' event
- }
- // At least give some kind of context to the user
- var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
- err.context = er;
- throw err; // Unhandled 'error' event
- }
-
- var handler = events[type];
-
- if (handler === undefined)
- return false;
-
- if (typeof handler === 'function') {
- ReflectApply(handler, this, args);
- } else {
- var len = handler.length;
- var listeners = arrayClone(handler, len);
- for (var i = 0; i < len; ++i)
- ReflectApply(listeners[i], this, args);
- }
-
- return true;
-};
-
-function _addListener(target, type, listener, prepend) {
- var m;
- var events;
- var existing;
-
- if (typeof listener !== 'function') {
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
- }
-
- events = target._events;
- if (events === undefined) {
- events = target._events = Object.create(null);
- target._eventsCount = 0;
- } else {
- // To avoid recursion in the case that type === "newListener"! Before
- // adding it to the listeners, first emit "newListener".
- if (events.newListener !== undefined) {
- target.emit('newListener', type,
- listener.listener ? listener.listener : listener);
-
- // Re-assign `events` because a newListener handler could have caused the
- // this._events to be assigned to a new object
- events = target._events;
- }
- existing = events[type];
- }
-
- if (existing === undefined) {
- // Optimize the case of one listener. Don't need the extra array object.
- existing = events[type] = listener;
- ++target._eventsCount;
- } else {
- if (typeof existing === 'function') {
- // Adding the second element, need to change to array.
- existing = events[type] =
- prepend ? [listener, existing] : [existing, listener];
- // If we've already got an array, just append.
- } else if (prepend) {
- existing.unshift(listener);
- } else {
- existing.push(listener);
- }
-
- // Check for listener leak
- m = $getMaxListeners(target);
- if (m > 0 && existing.length > m && !existing.warned) {
- existing.warned = true;
- // No error code for this since it is a Warning
- // eslint-disable-next-line no-restricted-syntax
- var w = new Error('Possible EventEmitter memory leak detected. ' +
- existing.length + ' ' + String(type) + ' listeners ' +
- 'added. Use emitter.setMaxListeners() to ' +
- 'increase limit');
- w.name = 'MaxListenersExceededWarning';
- w.emitter = target;
- w.type = type;
- w.count = existing.length;
- ProcessEmitWarning(w);
- }
- }
-
- return target;
-}
-
-EventEmitter.prototype.addListener = function addListener(type, listener) {
- return _addListener(this, type, listener, false);
-};
-
-EventEmitter.prototype.on = EventEmitter.prototype.addListener;
-
-EventEmitter.prototype.prependListener =
- function prependListener(type, listener) {
- return _addListener(this, type, listener, true);
- };
-
-function onceWrapper() {
- var args = [];
- for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
- if (!this.fired) {
- this.target.removeListener(this.type, this.wrapFn);
- this.fired = true;
- ReflectApply(this.listener, this.target, args);
- }
-}
-
-function _onceWrap(target, type, listener) {
- var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
- var wrapped = onceWrapper.bind(state);
- wrapped.listener = listener;
- state.wrapFn = wrapped;
- return wrapped;
-}
-
-EventEmitter.prototype.once = function once(type, listener) {
- if (typeof listener !== 'function') {
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
- }
- this.on(type, _onceWrap(this, type, listener));
- return this;
-};
-
-EventEmitter.prototype.prependOnceListener =
- function prependOnceListener(type, listener) {
- if (typeof listener !== 'function') {
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
- }
- this.prependListener(type, _onceWrap(this, type, listener));
- return this;
- };
-
-// Emits a 'removeListener' event if and only if the listener was removed.
-EventEmitter.prototype.removeListener =
- function removeListener(type, listener) {
- var list, events, position, i, originalListener;
-
- if (typeof listener !== 'function') {
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
- }
-
- events = this._events;
- if (events === undefined)
- return this;
-
- list = events[type];
- if (list === undefined)
- return this;
-
- if (list === listener || list.listener === listener) {
- if (--this._eventsCount === 0)
- this._events = Object.create(null);
- else {
- delete events[type];
- if (events.removeListener)
- this.emit('removeListener', type, list.listener || listener);
- }
- } else if (typeof list !== 'function') {
- position = -1;
-
- for (i = list.length - 1; i >= 0; i--) {
- if (list[i] === listener || list[i].listener === listener) {
- originalListener = list[i].listener;
- position = i;
- break;
- }
- }
-
- if (position < 0)
- return this;
-
- if (position === 0)
- list.shift();
- else {
- spliceOne(list, position);
- }
-
- if (list.length === 1)
- events[type] = list[0];
-
- if (events.removeListener !== undefined)
- this.emit('removeListener', type, originalListener || listener);
- }
-
- return this;
- };
-
-EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
-
-EventEmitter.prototype.removeAllListeners =
- function removeAllListeners(type) {
- var listeners, events, i;
-
- events = this._events;
- if (events === undefined)
- return this;
-
- // not listening for removeListener, no need to emit
- if (events.removeListener === undefined) {
- if (arguments.length === 0) {
- this._events = Object.create(null);
- this._eventsCount = 0;
- } else if (events[type] !== undefined) {
- if (--this._eventsCount === 0)
- this._events = Object.create(null);
- else
- delete events[type];
- }
- return this;
- }
-
- // emit removeListener for all listeners on all events
- if (arguments.length === 0) {
- var keys = Object.keys(events);
- var key;
- for (i = 0; i < keys.length; ++i) {
- key = keys[i];
- if (key === 'removeListener') continue;
- this.removeAllListeners(key);
- }
- this.removeAllListeners('removeListener');
- this._events = Object.create(null);
- this._eventsCount = 0;
- return this;
- }
-
- listeners = events[type];
-
- if (typeof listeners === 'function') {
- this.removeListener(type, listeners);
- } else if (listeners !== undefined) {
- // LIFO order
- for (i = listeners.length - 1; i >= 0; i--) {
- this.removeListener(type, listeners[i]);
- }
- }
-
- return this;
- };
-
-function _listeners(target, type, unwrap) {
- var events = target._events;
-
- if (events === undefined)
- return [];
-
- var evlistener = events[type];
- if (evlistener === undefined)
- return [];
-
- if (typeof evlistener === 'function')
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
-
- return unwrap ?
- unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
-}
-
-EventEmitter.prototype.listeners = function listeners(type) {
- return _listeners(this, type, true);
-};
-
-EventEmitter.prototype.rawListeners = function rawListeners(type) {
- return _listeners(this, type, false);
-};
-
-EventEmitter.listenerCount = function(emitter, type) {
- if (typeof emitter.listenerCount === 'function') {
- return emitter.listenerCount(type);
- } else {
- return listenerCount.call(emitter, type);
- }
-};
-
-EventEmitter.prototype.listenerCount = listenerCount;
-function listenerCount(type) {
- var events = this._events;
-
- if (events !== undefined) {
- var evlistener = events[type];
-
- if (typeof evlistener === 'function') {
- return 1;
- } else if (evlistener !== undefined) {
- return evlistener.length;
- }
- }
-
- return 0;
-}
-
-EventEmitter.prototype.eventNames = function eventNames() {
- return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
-};
-
-function arrayClone(arr, n) {
- var copy = new Array(n);
- for (var i = 0; i < n; ++i)
- copy[i] = arr[i];
- return copy;
-}
-
-function spliceOne(list, index) {
- for (; index + 1 < list.length; index++)
- list[index] = list[index + 1];
- list.pop();
-}
-
-function unwrapListeners(arr) {
- var ret = new Array(arr.length);
- for (var i = 0; i < ret.length; ++i) {
- ret[i] = arr[i].listener || arr[i];
- }
- return ret;
-}
diff --git a/swh/web/static/jssources/highlight.js/lib/highlight.js b/swh/web/static/jssources/highlight.js/lib/highlight.js
deleted file mode 100644
index 04e6061c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/highlight.js
+++ /dev/null
@@ -1,889 +0,0 @@
-/*
-Syntax highlighting with language autodetection.
-https://highlightjs.org/
-*/
-
-(function(factory) {
-
- // Find the global object for export to both the browser and web workers.
- var globalObject = typeof window === 'object' && window ||
- typeof self === 'object' && self;
-
- // Setup highlight.js for different environments. First is Node.js or
- // CommonJS.
- if(typeof exports !== 'undefined') {
- factory(exports);
- } else if(globalObject) {
- // Export hljs globally even when using AMD for cases when this script
- // is loaded with others that may still expect a global hljs.
- globalObject.hljs = factory({});
-
- // Finally register the global hljs with AMD.
- if(typeof define === 'function' && define.amd) {
- define([], function() {
- return globalObject.hljs;
- });
- }
- }
-
-}(function(hljs) {
- // Convenience variables for build-in objects
- var ArrayProto = [],
- objectKeys = Object.keys;
-
- // Global internal variables used within the highlight.js library.
- var languages = {},
- aliases = {};
-
- // Regular expressions used throughout the highlight.js library.
- var noHighlightRe = /^(no-?highlight|plain|text)$/i,
- languagePrefixRe = /\blang(?:uage)?-([\w-]+)\b/i,
- fixMarkupRe = /((^(<[^>]+>|\t|)+|(?:\n)))/gm;
-
- // The object will be assigned by the build tool. It used to synchronize API
- // of external language files with minified version of the highlight.js library.
- var API_REPLACES;
-
- var spanEndTag = '';
-
- // Global options used when within external APIs. This is modified when
- // calling the `hljs.configure` function.
- var options = {
- classPrefix: 'hljs-',
- tabReplace: null,
- useBR: false,
- languages: undefined
- };
-
-
- /* Utility functions */
-
- function escape(value) {
- return value.replace(/&/g, '&').replace(//g, '>');
- }
-
- function tag(node) {
- return node.nodeName.toLowerCase();
- }
-
- function testRe(re, lexeme) {
- var match = re && re.exec(lexeme);
- return match && match.index === 0;
- }
-
- function isNotHighlighted(language) {
- return noHighlightRe.test(language);
- }
-
- function blockLanguage(block) {
- var i, match, length, _class;
- var classes = block.className + ' ';
-
- classes += block.parentNode ? block.parentNode.className : '';
-
- // language-* takes precedence over non-prefixed class names.
- match = languagePrefixRe.exec(classes);
- if (match) {
- return getLanguage(match[1]) ? match[1] : 'no-highlight';
- }
-
- classes = classes.split(/\s+/);
-
- for (i = 0, length = classes.length; i < length; i++) {
- _class = classes[i];
-
- if (isNotHighlighted(_class) || getLanguage(_class)) {
- return _class;
- }
- }
- }
-
- function inherit(parent) { // inherit(parent, override_obj, override_obj, ...)
- var key;
- var result = {};
- var objects = Array.prototype.slice.call(arguments, 1);
-
- for (key in parent)
- result[key] = parent[key];
- objects.forEach(function(obj) {
- for (key in obj)
- result[key] = obj[key];
- });
- return result;
- }
-
- /* Stream merging */
-
- function nodeStream(node) {
- var result = [];
- (function _nodeStream(node, offset) {
- for (var child = node.firstChild; child; child = child.nextSibling) {
- if (child.nodeType === 3)
- offset += child.nodeValue.length;
- else if (child.nodeType === 1) {
- result.push({
- event: 'start',
- offset: offset,
- node: child
- });
- offset = _nodeStream(child, offset);
- // Prevent void elements from having an end tag that would actually
- // double them in the output. There are more void elements in HTML
- // but we list only those realistically expected in code display.
- if (!tag(child).match(/br|hr|img|input/)) {
- result.push({
- event: 'stop',
- offset: offset,
- node: child
- });
- }
- }
- }
- return offset;
- })(node, 0);
- return result;
- }
-
- function mergeStreams(original, highlighted, value) {
- var processed = 0;
- var result = '';
- var nodeStack = [];
-
- function selectStream() {
- if (!original.length || !highlighted.length) {
- return original.length ? original : highlighted;
- }
- if (original[0].offset !== highlighted[0].offset) {
- return (original[0].offset < highlighted[0].offset) ? original : highlighted;
- }
-
- /*
- To avoid starting the stream just before it should stop the order is
- ensured that original always starts first and closes last:
-
- if (event1 == 'start' && event2 == 'start')
- return original;
- if (event1 == 'start' && event2 == 'stop')
- return highlighted;
- if (event1 == 'stop' && event2 == 'start')
- return original;
- if (event1 == 'stop' && event2 == 'stop')
- return highlighted;
-
- ... which is collapsed to:
- */
- return highlighted[0].event === 'start' ? original : highlighted;
- }
-
- function open(node) {
- function attr_str(a) {return ' ' + a.nodeName + '="' + escape(a.value).replace('"', '"') + '"';}
- result += '<' + tag(node) + ArrayProto.map.call(node.attributes, attr_str).join('') + '>';
- }
-
- function close(node) {
- result += '' + tag(node) + '>';
- }
-
- function render(event) {
- (event.event === 'start' ? open : close)(event.node);
- }
-
- while (original.length || highlighted.length) {
- var stream = selectStream();
- result += escape(value.substring(processed, stream[0].offset));
- processed = stream[0].offset;
- if (stream === original) {
- /*
- On any opening or closing tag of the original markup we first close
- the entire highlighted node stack, then render the original tag along
- with all the following original tags at the same offset and then
- reopen all the tags on the highlighted stack.
- */
- nodeStack.reverse().forEach(close);
- do {
- render(stream.splice(0, 1)[0]);
- stream = selectStream();
- } while (stream === original && stream.length && stream[0].offset === processed);
- nodeStack.reverse().forEach(open);
- } else {
- if (stream[0].event === 'start') {
- nodeStack.push(stream[0].node);
- } else {
- nodeStack.pop();
- }
- render(stream.splice(0, 1)[0]);
- }
- }
- return result + escape(value.substr(processed));
- }
-
- /* Initialization */
-
- function expand_mode(mode) {
- if (mode.variants && !mode.cached_variants) {
- mode.cached_variants = mode.variants.map(function(variant) {
- return inherit(mode, {variants: null}, variant);
- });
- }
- return mode.cached_variants || (mode.endsWithParent && [inherit(mode)]) || [mode];
- }
-
- function restoreLanguageApi(obj) {
- if(API_REPLACES && !obj.langApiRestored) {
- obj.langApiRestored = true;
- for(var key in API_REPLACES)
- obj[key] && (obj[API_REPLACES[key]] = obj[key]);
- (obj.contains || []).concat(obj.variants || []).forEach(restoreLanguageApi);
- }
- }
-
- function compileLanguage(language) {
-
- function reStr(re) {
- return (re && re.source) || re;
- }
-
- function langRe(value, global) {
- return new RegExp(
- reStr(value),
- 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')
- );
- }
-
- // joinRe logically computes regexps.join(separator), but fixes the
- // backreferences so they continue to match.
- function joinRe(regexps, separator) {
- // backreferenceRe matches an open parenthesis or backreference. To avoid
- // an incorrect parse, it additionally matches the following:
- // - [...] elements, where the meaning of parentheses and escapes change
- // - other escape sequences, so we do not misparse escape sequences as
- // interesting elements
- // - non-matching or lookahead parentheses, which do not capture. These
- // follow the '(' with a '?'.
- var backreferenceRe = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
- var numCaptures = 0;
- var ret = '';
- for (var i = 0; i < regexps.length; i++) {
- var offset = numCaptures;
- var re = reStr(regexps[i]);
- if (i > 0) {
- ret += separator;
- }
- while (re.length > 0) {
- var match = backreferenceRe.exec(re);
- if (match == null) {
- ret += re;
- break;
- }
- ret += re.substring(0, match.index);
- re = re.substring(match.index + match[0].length);
- if (match[0][0] == '\\' && match[1]) {
- // Adjust the backreference.
- ret += '\\' + String(Number(match[1]) + offset);
- } else {
- ret += match[0];
- if (match[0] == '(') {
- numCaptures++;
- }
- }
- }
- }
- return ret;
- }
-
- function compileMode(mode, parent) {
- if (mode.compiled)
- return;
- mode.compiled = true;
-
- mode.keywords = mode.keywords || mode.beginKeywords;
- if (mode.keywords) {
- var compiled_keywords = {};
-
- var flatten = function(className, str) {
- if (language.case_insensitive) {
- str = str.toLowerCase();
- }
- str.split(' ').forEach(function(kw) {
- var pair = kw.split('|');
- compiled_keywords[pair[0]] = [className, pair[1] ? Number(pair[1]) : 1];
- });
- };
-
- if (typeof mode.keywords === 'string') { // string
- flatten('keyword', mode.keywords);
- } else {
- objectKeys(mode.keywords).forEach(function (className) {
- flatten(className, mode.keywords[className]);
- });
- }
- mode.keywords = compiled_keywords;
- }
- mode.lexemesRe = langRe(mode.lexemes || /\w+/, true);
-
- if (parent) {
- if (mode.beginKeywords) {
- mode.begin = '\\b(' + mode.beginKeywords.split(' ').join('|') + ')\\b';
- }
- if (!mode.begin)
- mode.begin = /\B|\b/;
- mode.beginRe = langRe(mode.begin);
- if (mode.endSameAsBegin)
- mode.end = mode.begin;
- if (!mode.end && !mode.endsWithParent)
- mode.end = /\B|\b/;
- if (mode.end)
- mode.endRe = langRe(mode.end);
- mode.terminator_end = reStr(mode.end) || '';
- if (mode.endsWithParent && parent.terminator_end)
- mode.terminator_end += (mode.end ? '|' : '') + parent.terminator_end;
- }
- if (mode.illegal)
- mode.illegalRe = langRe(mode.illegal);
- if (mode.relevance == null)
- mode.relevance = 1;
- if (!mode.contains) {
- mode.contains = [];
- }
- mode.contains = Array.prototype.concat.apply([], mode.contains.map(function(c) {
- return expand_mode(c === 'self' ? mode : c);
- }));
- mode.contains.forEach(function(c) {compileMode(c, mode);});
-
- if (mode.starts) {
- compileMode(mode.starts, parent);
- }
-
- var terminators =
- mode.contains.map(function(c) {
- return c.beginKeywords ? '\\.?(?:' + c.begin + ')\\.?' : c.begin;
- })
- .concat([mode.terminator_end, mode.illegal])
- .map(reStr)
- .filter(Boolean);
- mode.terminators = terminators.length ? langRe(joinRe(terminators, '|'), true) : {exec: function(/*s*/) {return null;}};
- }
-
- compileMode(language);
- }
-
- /*
- Core highlighting function. Accepts a language name, or an alias, and a
- string with the code to highlight. Returns an object with the following
- properties:
-
- - relevance (int)
- - value (an HTML string with highlighting markup)
-
- */
- function highlight(name, value, ignore_illegals, continuation) {
-
- function escapeRe(value) {
- return new RegExp(value.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm');
- }
-
- function subMode(lexeme, mode) {
- var i, length;
-
- for (i = 0, length = mode.contains.length; i < length; i++) {
- if (testRe(mode.contains[i].beginRe, lexeme)) {
- if (mode.contains[i].endSameAsBegin) {
- mode.contains[i].endRe = escapeRe( mode.contains[i].beginRe.exec(lexeme)[0] );
- }
- return mode.contains[i];
- }
- }
- }
-
- function endOfMode(mode, lexeme) {
- if (testRe(mode.endRe, lexeme)) {
- while (mode.endsParent && mode.parent) {
- mode = mode.parent;
- }
- return mode;
- }
- if (mode.endsWithParent) {
- return endOfMode(mode.parent, lexeme);
- }
- }
-
- function isIllegal(lexeme, mode) {
- return !ignore_illegals && testRe(mode.illegalRe, lexeme);
- }
-
- function keywordMatch(mode, match) {
- var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0];
- return mode.keywords.hasOwnProperty(match_str) && mode.keywords[match_str];
- }
-
- function buildSpan(classname, insideSpan, leaveOpen, noPrefix) {
- var classPrefix = noPrefix ? '' : options.classPrefix,
- openSpan = '';
-
- return openSpan + insideSpan + closeSpan;
- }
-
- function processKeywords() {
- var keyword_match, last_index, match, result;
-
- if (!top.keywords)
- return escape(mode_buffer);
-
- result = '';
- last_index = 0;
- top.lexemesRe.lastIndex = 0;
- match = top.lexemesRe.exec(mode_buffer);
-
- while (match) {
- result += escape(mode_buffer.substring(last_index, match.index));
- keyword_match = keywordMatch(top, match);
- if (keyword_match) {
- relevance += keyword_match[1];
- result += buildSpan(keyword_match[0], escape(match[0]));
- } else {
- result += escape(match[0]);
- }
- last_index = top.lexemesRe.lastIndex;
- match = top.lexemesRe.exec(mode_buffer);
- }
- return result + escape(mode_buffer.substr(last_index));
- }
-
- function processSubLanguage() {
- var explicit = typeof top.subLanguage === 'string';
- if (explicit && !languages[top.subLanguage]) {
- return escape(mode_buffer);
- }
-
- var result = explicit ?
- highlight(top.subLanguage, mode_buffer, true, continuations[top.subLanguage]) :
- highlightAuto(mode_buffer, top.subLanguage.length ? top.subLanguage : undefined);
-
- // Counting embedded language score towards the host language may be disabled
- // with zeroing the containing mode relevance. Usecase in point is Markdown that
- // allows XML everywhere and makes every XML snippet to have a much larger Markdown
- // score.
- if (top.relevance > 0) {
- relevance += result.relevance;
- }
- if (explicit) {
- continuations[top.subLanguage] = result.top;
- }
- return buildSpan(result.language, result.value, false, true);
- }
-
- function processBuffer() {
- result += (top.subLanguage != null ? processSubLanguage() : processKeywords());
- mode_buffer = '';
- }
-
- function startNewMode(mode) {
- result += mode.className? buildSpan(mode.className, '', true): '';
- top = Object.create(mode, {parent: {value: top}});
- }
-
- function processLexeme(buffer, lexeme) {
-
- mode_buffer += buffer;
-
- if (lexeme == null) {
- processBuffer();
- return 0;
- }
-
- var new_mode = subMode(lexeme, top);
- if (new_mode) {
- if (new_mode.skip) {
- mode_buffer += lexeme;
- } else {
- if (new_mode.excludeBegin) {
- mode_buffer += lexeme;
- }
- processBuffer();
- if (!new_mode.returnBegin && !new_mode.excludeBegin) {
- mode_buffer = lexeme;
- }
- }
- startNewMode(new_mode, lexeme);
- return new_mode.returnBegin ? 0 : lexeme.length;
- }
-
- var end_mode = endOfMode(top, lexeme);
- if (end_mode) {
- var origin = top;
- if (origin.skip) {
- mode_buffer += lexeme;
- } else {
- if (!(origin.returnEnd || origin.excludeEnd)) {
- mode_buffer += lexeme;
- }
- processBuffer();
- if (origin.excludeEnd) {
- mode_buffer = lexeme;
- }
- }
- do {
- if (top.className) {
- result += spanEndTag;
- }
- if (!top.skip && !top.subLanguage) {
- relevance += top.relevance;
- }
- top = top.parent;
- } while (top !== end_mode.parent);
- if (end_mode.starts) {
- if (end_mode.endSameAsBegin) {
- end_mode.starts.endRe = end_mode.endRe;
- }
- startNewMode(end_mode.starts, '');
- }
- return origin.returnEnd ? 0 : lexeme.length;
- }
-
- if (isIllegal(lexeme, top))
- throw new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.className || '') + '"');
-
- /*
- Parser should not reach this point as all types of lexemes should be caught
- earlier, but if it does due to some bug make sure it advances at least one
- character forward to prevent infinite looping.
- */
- mode_buffer += lexeme;
- return lexeme.length || 1;
- }
-
- var language = getLanguage(name);
- if (!language) {
- throw new Error('Unknown language: "' + name + '"');
- }
-
- compileLanguage(language);
- var top = continuation || language;
- var continuations = {}; // keep continuations for sub-languages
- var result = '', current;
- for(current = top; current !== language; current = current.parent) {
- if (current.className) {
- result = buildSpan(current.className, '', true) + result;
- }
- }
- var mode_buffer = '';
- var relevance = 0;
- try {
- var match, count, index = 0;
- while (true) {
- top.terminators.lastIndex = index;
- match = top.terminators.exec(value);
- if (!match)
- break;
- count = processLexeme(value.substring(index, match.index), match[0]);
- index = match.index + count;
- }
- processLexeme(value.substr(index));
- for(current = top; current.parent; current = current.parent) { // close dangling modes
- if (current.className) {
- result += spanEndTag;
- }
- }
- return {
- relevance: relevance,
- value: result,
- language: name,
- top: top
- };
- } catch (e) {
- if (e.message && e.message.indexOf('Illegal') !== -1) {
- return {
- relevance: 0,
- value: escape(value)
- };
- } else {
- throw e;
- }
- }
- }
-
- /*
- Highlighting with language detection. Accepts a string with the code to
- highlight. Returns an object with the following properties:
-
- - language (detected language)
- - relevance (int)
- - value (an HTML string with highlighting markup)
- - second_best (object with the same structure for second-best heuristically
- detected language, may be absent)
-
- */
- function highlightAuto(text, languageSubset) {
- languageSubset = languageSubset || options.languages || objectKeys(languages);
- var result = {
- relevance: 0,
- value: escape(text)
- };
- var second_best = result;
- languageSubset.filter(getLanguage).filter(autoDetection).forEach(function(name) {
- var current = highlight(name, text, false);
- current.language = name;
- if (current.relevance > second_best.relevance) {
- second_best = current;
- }
- if (current.relevance > result.relevance) {
- second_best = result;
- result = current;
- }
- });
- if (second_best.language) {
- result.second_best = second_best;
- }
- return result;
- }
-
- /*
- Post-processing of the highlighted markup:
-
- - replace TABs with something more useful
- - replace real line-breaks with ' ' for non-pre containers
-
- */
- function fixMarkup(value) {
- return !(options.tabReplace || options.useBR)
- ? value
- : value.replace(fixMarkupRe, function(match, p1) {
- if (options.useBR && match === '\n') {
- return ' ';
- } else if (options.tabReplace) {
- return p1.replace(/\t/g, options.tabReplace);
- }
- return '';
- });
- }
-
- function buildClassName(prevClassName, currentLang, resultLang) {
- var language = currentLang ? aliases[currentLang] : resultLang,
- result = [prevClassName.trim()];
-
- if (!prevClassName.match(/\bhljs\b/)) {
- result.push('hljs');
- }
-
- if (prevClassName.indexOf(language) === -1) {
- result.push(language);
- }
-
- return result.join(' ').trim();
- }
-
- /*
- Applies highlighting to a DOM node containing code. Accepts a DOM node and
- two optional parameters for fixMarkup.
- */
- function highlightBlock(block) {
- var node, originalStream, result, resultNode, text;
- var language = blockLanguage(block);
-
- if (isNotHighlighted(language))
- return;
-
- if (options.useBR) {
- node = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
- node.innerHTML = block.innerHTML.replace(/\n/g, '').replace(/ /g, '\n');
- } else {
- node = block;
- }
- text = node.textContent;
- result = language ? highlight(language, text, true) : highlightAuto(text);
-
- originalStream = nodeStream(node);
- if (originalStream.length) {
- resultNode = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
- resultNode.innerHTML = result.value;
- result.value = mergeStreams(originalStream, nodeStream(resultNode), text);
- }
- result.value = fixMarkup(result.value);
-
- block.innerHTML = result.value;
- block.className = buildClassName(block.className, language, result.language);
- block.result = {
- language: result.language,
- re: result.relevance
- };
- if (result.second_best) {
- block.second_best = {
- language: result.second_best.language,
- re: result.second_best.relevance
- };
- }
- }
-
- /*
- Updates highlight.js global options with values passed in the form of an object.
- */
- function configure(user_options) {
- options = inherit(options, user_options);
- }
-
- /*
- Applies highlighting to all ..
blocks on a page.
- */
- function initHighlighting() {
- if (initHighlighting.called)
- return;
- initHighlighting.called = true;
-
- var blocks = document.querySelectorAll('pre code');
- ArrayProto.forEach.call(blocks, highlightBlock);
- }
-
- /*
- Attaches highlighting to the page load event.
- */
- function initHighlightingOnLoad() {
- addEventListener('DOMContentLoaded', initHighlighting, false);
- addEventListener('load', initHighlighting, false);
- }
-
- function registerLanguage(name, language) {
- var lang = languages[name] = language(hljs);
- restoreLanguageApi(lang);
- if (lang.aliases) {
- lang.aliases.forEach(function(alias) {aliases[alias] = name;});
- }
- }
-
- function listLanguages() {
- return objectKeys(languages);
- }
-
- function getLanguage(name) {
- name = (name || '').toLowerCase();
- return languages[name] || languages[aliases[name]];
- }
-
- function autoDetection(name) {
- var lang = getLanguage(name);
- return lang && !lang.disableAutodetect;
- }
-
- /* Interface definition */
-
- hljs.highlight = highlight;
- hljs.highlightAuto = highlightAuto;
- hljs.fixMarkup = fixMarkup;
- hljs.highlightBlock = highlightBlock;
- hljs.configure = configure;
- hljs.initHighlighting = initHighlighting;
- hljs.initHighlightingOnLoad = initHighlightingOnLoad;
- hljs.registerLanguage = registerLanguage;
- hljs.listLanguages = listLanguages;
- hljs.getLanguage = getLanguage;
- hljs.autoDetection = autoDetection;
- hljs.inherit = inherit;
-
- // Common regexps
- hljs.IDENT_RE = '[a-zA-Z]\\w*';
- hljs.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*';
- hljs.NUMBER_RE = '\\b\\d+(\\.\\d+)?';
- hljs.C_NUMBER_RE = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float
- hljs.BINARY_NUMBER_RE = '\\b(0b[01]+)'; // 0b...
- hljs.RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~';
-
- // Common modes
- hljs.BACKSLASH_ESCAPE = {
- begin: '\\\\[\\s\\S]', relevance: 0
- };
- hljs.APOS_STRING_MODE = {
- className: 'string',
- begin: '\'', end: '\'',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- };
- hljs.QUOTE_STRING_MODE = {
- className: 'string',
- begin: '"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- };
- hljs.PHRASAL_WORDS_MODE = {
- begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
- };
- hljs.COMMENT = function (begin, end, inherits) {
- var mode = hljs.inherit(
- {
- className: 'comment',
- begin: begin, end: end,
- contains: []
- },
- inherits || {}
- );
- mode.contains.push(hljs.PHRASAL_WORDS_MODE);
- mode.contains.push({
- className: 'doctag',
- begin: '(?:TODO|FIXME|NOTE|BUG|XXX):',
- relevance: 0
- });
- return mode;
- };
- hljs.C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$');
- hljs.C_BLOCK_COMMENT_MODE = hljs.COMMENT('/\\*', '\\*/');
- hljs.HASH_COMMENT_MODE = hljs.COMMENT('#', '$');
- hljs.NUMBER_MODE = {
- className: 'number',
- begin: hljs.NUMBER_RE,
- relevance: 0
- };
- hljs.C_NUMBER_MODE = {
- className: 'number',
- begin: hljs.C_NUMBER_RE,
- relevance: 0
- };
- hljs.BINARY_NUMBER_MODE = {
- className: 'number',
- begin: hljs.BINARY_NUMBER_RE,
- relevance: 0
- };
- hljs.CSS_NUMBER_MODE = {
- className: 'number',
- begin: hljs.NUMBER_RE + '(' +
- '%|em|ex|ch|rem' +
- '|vw|vh|vmin|vmax' +
- '|cm|mm|in|pt|pc|px' +
- '|deg|grad|rad|turn' +
- '|s|ms' +
- '|Hz|kHz' +
- '|dpi|dpcm|dppx' +
- ')?',
- relevance: 0
- };
- hljs.REGEXP_MODE = {
- className: 'regexp',
- begin: /\//, end: /\/[gimuy]*/,
- illegal: /\n/,
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {
- begin: /\[/, end: /\]/,
- relevance: 0,
- contains: [hljs.BACKSLASH_ESCAPE]
- }
- ]
- };
- hljs.TITLE_MODE = {
- className: 'title',
- begin: hljs.IDENT_RE,
- relevance: 0
- };
- hljs.UNDERSCORE_TITLE_MODE = {
- className: 'title',
- begin: hljs.UNDERSCORE_IDENT_RE,
- relevance: 0
- };
- hljs.METHOD_GUARD = {
- // excludes method names from keyword processing
- begin: '\\.\\s*' + hljs.UNDERSCORE_IDENT_RE,
- relevance: 0
- };
-
- return hljs;
-}));
diff --git a/swh/web/static/jssources/highlight.js/lib/index.js b/swh/web/static/jssources/highlight.js/lib/index.js
deleted file mode 100644
index eadcdf56..00000000
--- a/swh/web/static/jssources/highlight.js/lib/index.js
+++ /dev/null
@@ -1,189 +0,0 @@
-var hljs = require('./highlight');
-
-hljs.registerLanguage('1c', require('./languages/1c'));
-hljs.registerLanguage('abnf', require('./languages/abnf'));
-hljs.registerLanguage('accesslog', require('./languages/accesslog'));
-hljs.registerLanguage('actionscript', require('./languages/actionscript'));
-hljs.registerLanguage('ada', require('./languages/ada'));
-hljs.registerLanguage('angelscript', require('./languages/angelscript'));
-hljs.registerLanguage('apache', require('./languages/apache'));
-hljs.registerLanguage('applescript', require('./languages/applescript'));
-hljs.registerLanguage('arcade', require('./languages/arcade'));
-hljs.registerLanguage('cpp', require('./languages/cpp'));
-hljs.registerLanguage('arduino', require('./languages/arduino'));
-hljs.registerLanguage('armasm', require('./languages/armasm'));
-hljs.registerLanguage('xml', require('./languages/xml'));
-hljs.registerLanguage('asciidoc', require('./languages/asciidoc'));
-hljs.registerLanguage('aspectj', require('./languages/aspectj'));
-hljs.registerLanguage('autohotkey', require('./languages/autohotkey'));
-hljs.registerLanguage('autoit', require('./languages/autoit'));
-hljs.registerLanguage('avrasm', require('./languages/avrasm'));
-hljs.registerLanguage('awk', require('./languages/awk'));
-hljs.registerLanguage('axapta', require('./languages/axapta'));
-hljs.registerLanguage('bash', require('./languages/bash'));
-hljs.registerLanguage('basic', require('./languages/basic'));
-hljs.registerLanguage('bnf', require('./languages/bnf'));
-hljs.registerLanguage('brainfuck', require('./languages/brainfuck'));
-hljs.registerLanguage('cal', require('./languages/cal'));
-hljs.registerLanguage('capnproto', require('./languages/capnproto'));
-hljs.registerLanguage('ceylon', require('./languages/ceylon'));
-hljs.registerLanguage('clean', require('./languages/clean'));
-hljs.registerLanguage('clojure', require('./languages/clojure'));
-hljs.registerLanguage('clojure-repl', require('./languages/clojure-repl'));
-hljs.registerLanguage('cmake', require('./languages/cmake'));
-hljs.registerLanguage('coffeescript', require('./languages/coffeescript'));
-hljs.registerLanguage('coq', require('./languages/coq'));
-hljs.registerLanguage('cos', require('./languages/cos'));
-hljs.registerLanguage('crmsh', require('./languages/crmsh'));
-hljs.registerLanguage('crystal', require('./languages/crystal'));
-hljs.registerLanguage('cs', require('./languages/cs'));
-hljs.registerLanguage('csp', require('./languages/csp'));
-hljs.registerLanguage('css', require('./languages/css'));
-hljs.registerLanguage('d', require('./languages/d'));
-hljs.registerLanguage('markdown', require('./languages/markdown'));
-hljs.registerLanguage('dart', require('./languages/dart'));
-hljs.registerLanguage('delphi', require('./languages/delphi'));
-hljs.registerLanguage('diff', require('./languages/diff'));
-hljs.registerLanguage('django', require('./languages/django'));
-hljs.registerLanguage('dns', require('./languages/dns'));
-hljs.registerLanguage('dockerfile', require('./languages/dockerfile'));
-hljs.registerLanguage('dos', require('./languages/dos'));
-hljs.registerLanguage('dsconfig', require('./languages/dsconfig'));
-hljs.registerLanguage('dts', require('./languages/dts'));
-hljs.registerLanguage('dust', require('./languages/dust'));
-hljs.registerLanguage('ebnf', require('./languages/ebnf'));
-hljs.registerLanguage('elixir', require('./languages/elixir'));
-hljs.registerLanguage('elm', require('./languages/elm'));
-hljs.registerLanguage('ruby', require('./languages/ruby'));
-hljs.registerLanguage('erb', require('./languages/erb'));
-hljs.registerLanguage('erlang-repl', require('./languages/erlang-repl'));
-hljs.registerLanguage('erlang', require('./languages/erlang'));
-hljs.registerLanguage('excel', require('./languages/excel'));
-hljs.registerLanguage('fix', require('./languages/fix'));
-hljs.registerLanguage('flix', require('./languages/flix'));
-hljs.registerLanguage('fortran', require('./languages/fortran'));
-hljs.registerLanguage('fsharp', require('./languages/fsharp'));
-hljs.registerLanguage('gams', require('./languages/gams'));
-hljs.registerLanguage('gauss', require('./languages/gauss'));
-hljs.registerLanguage('gcode', require('./languages/gcode'));
-hljs.registerLanguage('gherkin', require('./languages/gherkin'));
-hljs.registerLanguage('glsl', require('./languages/glsl'));
-hljs.registerLanguage('gml', require('./languages/gml'));
-hljs.registerLanguage('go', require('./languages/go'));
-hljs.registerLanguage('golo', require('./languages/golo'));
-hljs.registerLanguage('gradle', require('./languages/gradle'));
-hljs.registerLanguage('groovy', require('./languages/groovy'));
-hljs.registerLanguage('haml', require('./languages/haml'));
-hljs.registerLanguage('handlebars', require('./languages/handlebars'));
-hljs.registerLanguage('haskell', require('./languages/haskell'));
-hljs.registerLanguage('haxe', require('./languages/haxe'));
-hljs.registerLanguage('hsp', require('./languages/hsp'));
-hljs.registerLanguage('htmlbars', require('./languages/htmlbars'));
-hljs.registerLanguage('http', require('./languages/http'));
-hljs.registerLanguage('hy', require('./languages/hy'));
-hljs.registerLanguage('inform7', require('./languages/inform7'));
-hljs.registerLanguage('ini', require('./languages/ini'));
-hljs.registerLanguage('irpf90', require('./languages/irpf90'));
-hljs.registerLanguage('isbl', require('./languages/isbl'));
-hljs.registerLanguage('java', require('./languages/java'));
-hljs.registerLanguage('javascript', require('./languages/javascript'));
-hljs.registerLanguage('jboss-cli', require('./languages/jboss-cli'));
-hljs.registerLanguage('json', require('./languages/json'));
-hljs.registerLanguage('julia', require('./languages/julia'));
-hljs.registerLanguage('julia-repl', require('./languages/julia-repl'));
-hljs.registerLanguage('kotlin', require('./languages/kotlin'));
-hljs.registerLanguage('lasso', require('./languages/lasso'));
-hljs.registerLanguage('ldif', require('./languages/ldif'));
-hljs.registerLanguage('leaf', require('./languages/leaf'));
-hljs.registerLanguage('less', require('./languages/less'));
-hljs.registerLanguage('lisp', require('./languages/lisp'));
-hljs.registerLanguage('livecodeserver', require('./languages/livecodeserver'));
-hljs.registerLanguage('livescript', require('./languages/livescript'));
-hljs.registerLanguage('llvm', require('./languages/llvm'));
-hljs.registerLanguage('lsl', require('./languages/lsl'));
-hljs.registerLanguage('lua', require('./languages/lua'));
-hljs.registerLanguage('makefile', require('./languages/makefile'));
-hljs.registerLanguage('mathematica', require('./languages/mathematica'));
-hljs.registerLanguage('matlab', require('./languages/matlab'));
-hljs.registerLanguage('maxima', require('./languages/maxima'));
-hljs.registerLanguage('mel', require('./languages/mel'));
-hljs.registerLanguage('mercury', require('./languages/mercury'));
-hljs.registerLanguage('mipsasm', require('./languages/mipsasm'));
-hljs.registerLanguage('mizar', require('./languages/mizar'));
-hljs.registerLanguage('perl', require('./languages/perl'));
-hljs.registerLanguage('mojolicious', require('./languages/mojolicious'));
-hljs.registerLanguage('monkey', require('./languages/monkey'));
-hljs.registerLanguage('moonscript', require('./languages/moonscript'));
-hljs.registerLanguage('n1ql', require('./languages/n1ql'));
-hljs.registerLanguage('nginx', require('./languages/nginx'));
-hljs.registerLanguage('nimrod', require('./languages/nimrod'));
-hljs.registerLanguage('nix', require('./languages/nix'));
-hljs.registerLanguage('nsis', require('./languages/nsis'));
-hljs.registerLanguage('objectivec', require('./languages/objectivec'));
-hljs.registerLanguage('ocaml', require('./languages/ocaml'));
-hljs.registerLanguage('openscad', require('./languages/openscad'));
-hljs.registerLanguage('oxygene', require('./languages/oxygene'));
-hljs.registerLanguage('parser3', require('./languages/parser3'));
-hljs.registerLanguage('pf', require('./languages/pf'));
-hljs.registerLanguage('pgsql', require('./languages/pgsql'));
-hljs.registerLanguage('php', require('./languages/php'));
-hljs.registerLanguage('plaintext', require('./languages/plaintext'));
-hljs.registerLanguage('pony', require('./languages/pony'));
-hljs.registerLanguage('powershell', require('./languages/powershell'));
-hljs.registerLanguage('processing', require('./languages/processing'));
-hljs.registerLanguage('profile', require('./languages/profile'));
-hljs.registerLanguage('prolog', require('./languages/prolog'));
-hljs.registerLanguage('properties', require('./languages/properties'));
-hljs.registerLanguage('protobuf', require('./languages/protobuf'));
-hljs.registerLanguage('puppet', require('./languages/puppet'));
-hljs.registerLanguage('purebasic', require('./languages/purebasic'));
-hljs.registerLanguage('python', require('./languages/python'));
-hljs.registerLanguage('q', require('./languages/q'));
-hljs.registerLanguage('qml', require('./languages/qml'));
-hljs.registerLanguage('r', require('./languages/r'));
-hljs.registerLanguage('reasonml', require('./languages/reasonml'));
-hljs.registerLanguage('rib', require('./languages/rib'));
-hljs.registerLanguage('roboconf', require('./languages/roboconf'));
-hljs.registerLanguage('routeros', require('./languages/routeros'));
-hljs.registerLanguage('rsl', require('./languages/rsl'));
-hljs.registerLanguage('ruleslanguage', require('./languages/ruleslanguage'));
-hljs.registerLanguage('rust', require('./languages/rust'));
-hljs.registerLanguage('sas', require('./languages/sas'));
-hljs.registerLanguage('scala', require('./languages/scala'));
-hljs.registerLanguage('scheme', require('./languages/scheme'));
-hljs.registerLanguage('scilab', require('./languages/scilab'));
-hljs.registerLanguage('scss', require('./languages/scss'));
-hljs.registerLanguage('shell', require('./languages/shell'));
-hljs.registerLanguage('smali', require('./languages/smali'));
-hljs.registerLanguage('smalltalk', require('./languages/smalltalk'));
-hljs.registerLanguage('sml', require('./languages/sml'));
-hljs.registerLanguage('sqf', require('./languages/sqf'));
-hljs.registerLanguage('sql', require('./languages/sql'));
-hljs.registerLanguage('stan', require('./languages/stan'));
-hljs.registerLanguage('stata', require('./languages/stata'));
-hljs.registerLanguage('step21', require('./languages/step21'));
-hljs.registerLanguage('stylus', require('./languages/stylus'));
-hljs.registerLanguage('subunit', require('./languages/subunit'));
-hljs.registerLanguage('swift', require('./languages/swift'));
-hljs.registerLanguage('taggerscript', require('./languages/taggerscript'));
-hljs.registerLanguage('yaml', require('./languages/yaml'));
-hljs.registerLanguage('tap', require('./languages/tap'));
-hljs.registerLanguage('tcl', require('./languages/tcl'));
-hljs.registerLanguage('tex', require('./languages/tex'));
-hljs.registerLanguage('thrift', require('./languages/thrift'));
-hljs.registerLanguage('tp', require('./languages/tp'));
-hljs.registerLanguage('twig', require('./languages/twig'));
-hljs.registerLanguage('typescript', require('./languages/typescript'));
-hljs.registerLanguage('vala', require('./languages/vala'));
-hljs.registerLanguage('vbnet', require('./languages/vbnet'));
-hljs.registerLanguage('vbscript', require('./languages/vbscript'));
-hljs.registerLanguage('vbscript-html', require('./languages/vbscript-html'));
-hljs.registerLanguage('verilog', require('./languages/verilog'));
-hljs.registerLanguage('vhdl', require('./languages/vhdl'));
-hljs.registerLanguage('vim', require('./languages/vim'));
-hljs.registerLanguage('x86asm', require('./languages/x86asm'));
-hljs.registerLanguage('xl', require('./languages/xl'));
-hljs.registerLanguage('xquery', require('./languages/xquery'));
-hljs.registerLanguage('zephir', require('./languages/zephir'));
-
-module.exports = hljs;
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/1c.js b/swh/web/static/jssources/highlight.js/lib/languages/1c.js
deleted file mode 100644
index 574daa9b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/1c.js
+++ /dev/null
@@ -1,509 +0,0 @@
-module.exports = function(hljs){
-
- // общий паттерн для определения идентификаторов
- var UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+';
-
- // v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword
- var v7_keywords =
- 'далее ';
-
- // v8 ключевые слова ==> keyword
- var v8_keywords =
- 'возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли ' +
- 'конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ';
-
- // keyword : ключевые слова
- var KEYWORD = v7_keywords + v8_keywords;
-
- // v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword
- var v7_meta_keywords =
- 'загрузитьизфайла ';
-
- // v8 ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях ==> meta-keyword
- var v8_meta_keywords =
- 'вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер ' +
- 'наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед ' +
- 'после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ';
-
- // meta-keyword : ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях
- var METAKEYWORD = v7_meta_keywords + v8_meta_keywords;
-
- // v7 системные константы ==> built_in
- var v7_system_constants =
- 'разделительстраниц разделительстрок символтабуляции ';
-
- // v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in
- var v7_global_context_methods =
- 'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ' +
- 'датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя ' +
- 'кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца ' +
- 'коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид ' +
- 'назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца ' +
- 'начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов ' +
- 'основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута ' +
- 'получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта ' +
- 'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына ' +
- 'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента ' +
- 'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ';
-
- // v8 методы глобального контекста ==> built_in
- var v8_global_context_methods =
- 'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ' +
- 'xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ' +
- 'ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации ' +
- 'выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода ' +
- 'деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы ' +
- 'загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации ' +
- 'заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию ' +
- 'значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла ' +
- 'изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке ' +
- 'каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку ' +
- 'кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты ' +
- 'конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы ' +
- 'копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти ' +
- 'найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы ' +
- 'началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя ' +
- 'начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты ' +
- 'начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов ' +
- 'начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя ' +
- 'начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога ' +
- 'начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией ' +
- 'начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы ' +
- 'номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения ' +
- 'обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении ' +
- 'отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения ' +
- 'открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально ' +
- 'отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа ' +
- 'перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту ' +
- 'подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения ' +
- 'подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки ' +
- 'показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение ' +
- 'показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя ' +
- 'получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса ' +
- 'получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора ' +
- 'получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса ' +
- 'получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации ' +
- 'получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла ' +
- 'получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации ' +
- 'получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления ' +
- 'получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу ' +
- 'получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы ' +
- 'получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет ' +
- 'получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима ' +
- 'получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения ' +
- 'получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути ' +
- 'получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы ' +
- 'получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю ' +
- 'получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных ' +
- 'получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию ' +
- 'получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище ' +
- 'поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода ' +
- 'представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение ' +
- 'прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока ' +
- 'рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных ' +
- 'раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени ' +
- 'смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить ' +
- 'состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс ' +
- 'строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений '+
- 'стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах ' +
- 'текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации ' +
- 'текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы ' +
- 'удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим ' +
- 'установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту ' +
- 'установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных ' +
- 'установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации ' +
- 'установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения ' +
- 'установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования ' +
- 'установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима ' +
- 'установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим ' +
- 'установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией ' +
- 'установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы ' +
- 'установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса ' +
- 'формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ';
-
- // v8 свойства глобального контекста ==> built_in
- var v8_global_context_property =
- 'wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы ' +
- 'внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль ' +
- 'документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты ' +
- 'историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений ' +
- 'отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик ' +
- 'планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок ' +
- 'рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений ' +
- 'регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа ' +
- 'средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек ' +
- 'хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков ' +
- 'хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ';
-
- // built_in : встроенные или библиотечные объекты (константы, классы, функции)
- var BUILTIN =
- v7_system_constants +
- v7_global_context_methods + v8_global_context_methods +
- v8_global_context_property;
-
- // v8 системные наборы значений ==> class
- var v8_system_sets_of_values =
- 'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ';
-
- // v8 системные перечисления - интерфейсные ==> class
- var v8_system_enums_interface =
- 'автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий ' +
- 'анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы ' +
- 'вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы ' +
- 'виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя ' +
- 'видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение ' +
- 'горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы ' +
- 'группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания ' +
- 'интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки ' +
- 'используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы ' +
- 'источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева ' +
- 'начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ' +
- 'ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме ' +
- 'отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы ' +
- 'отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы ' +
- 'отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы ' +
- 'отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска ' +
- 'отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования ' +
- 'отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта ' +
- 'отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы ' +
- 'поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы ' +
- 'поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы ' +
- 'положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы ' +
- 'положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы ' +
- 'положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском ' +
- 'положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы ' +
- 'размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта ' +
- 'режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты ' +
- 'режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения ' +
- 'режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра ' +
- 'режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения ' +
- 'режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы ' +
- 'режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки ' +
- 'режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание ' +
- 'сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы ' +
- 'способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление ' +
- 'статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы ' +
- 'типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы ' +
- 'типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления ' +
- 'типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы ' +
- 'типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы ' +
- 'типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений ' +
- 'типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы ' +
- 'типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы ' +
- 'типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы ' +
- 'факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени ' +
- 'форматкартинки ширинаподчиненныхэлементовформы ';
-
- // v8 системные перечисления - свойства прикладных объектов ==> class
- var v8_system_enums_objects_properties =
- 'виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса ' +
- 'использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения ' +
- 'использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ';
-
- // v8 системные перечисления - планы обмена ==> class
- var v8_system_enums_exchange_plans =
- 'авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ';
-
- // v8 системные перечисления - табличный документ ==> class
- var v8_system_enums_tabular_document =
- 'использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы ' +
- 'положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента ' +
- 'способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента ' +
- 'типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента ' +
- 'типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы ' +
- 'типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента ' +
- 'типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ';
-
- // v8 системные перечисления - планировщик ==> class
- var v8_system_enums_sheduler =
- 'отображениевремениэлементовпланировщика ';
-
- // v8 системные перечисления - форматированный документ ==> class
- var v8_system_enums_formatted_document =
- 'типфайлаформатированногодокумента ';
-
- // v8 системные перечисления - запрос ==> class
- var v8_system_enums_query =
- 'обходрезультатазапроса типзаписизапроса ';
-
- // v8 системные перечисления - построитель отчета ==> class
- var v8_system_enums_report_builder =
- 'видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ';
-
- // v8 системные перечисления - работа с файлами ==> class
- var v8_system_enums_files =
- 'доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ';
-
- // v8 системные перечисления - построитель запроса ==> class
- var v8_system_enums_query_builder =
- 'типизмеренияпостроителязапроса ';
-
- // v8 системные перечисления - анализ данных ==> class
- var v8_system_enums_data_analysis =
- 'видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных ' +
- 'типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений ' +
- 'типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций ' +
- 'типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных ' +
- 'типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных ' +
- 'типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ';
-
- // v8 системные перечисления - xml, json, xs, dom, xdto, web-сервисы ==> class
- var v8_system_enums_xml_json_xs_dom_xdto_ws =
- 'wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto ' +
- 'действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs ' +
- 'исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs ' +
- 'методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ' +
- 'ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson ' +
- 'типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs ' +
- 'форматдатыjson экранированиесимволовjson ';
-
- // v8 системные перечисления - система компоновки данных ==> class
- var v8_system_enums_data_composition_system =
- 'видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных ' +
- 'расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных ' +
- 'расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных ' +
- 'расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных ' +
- 'типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных ' +
- 'типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных ' +
- 'типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных ' +
- 'расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных ' +
- 'режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных ' +
- 'режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных '+
- 'вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных ' +
- 'использованиеусловногооформлениякомпоновкиданных ';
-
- // v8 системные перечисления - почта ==> class
- var v8_system_enums_email =
- 'важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения ' +
- 'способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты ' +
- 'статусразборапочтовогосообщения ';
-
- // v8 системные перечисления - журнал регистрации ==> class
- var v8_system_enums_logbook =
- 'режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ';
-
- // v8 системные перечисления - криптография ==> class
- var v8_system_enums_cryptography =
- 'расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии ' +
- 'типхранилищасертификатовкриптографии ';
-
- // v8 системные перечисления - ZIP ==> class
- var v8_system_enums_zip =
- 'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip ' +
- 'режимсохраненияпутейzip уровеньсжатияzip ';
-
- // v8 системные перечисления -
- // Блокировка данных, Фоновые задания, Автоматизированное тестирование,
- // Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class
- var v8_system_enums_other =
- 'звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных ' +
- 'сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ';
-
- // v8 системные перечисления - схема запроса ==> class
- var v8_system_enums_request_schema =
- 'направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса ' +
- 'типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ';
-
- // v8 системные перечисления - свойства объектов метаданных ==> class
- var v8_system_enums_properties_of_metadata_objects =
- 'httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления ' +
- 'видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование ' +
- 'использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения ' +
- 'использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита ' +
- 'назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных ' +
- 'оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи ' +
- 'основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении ' +
- 'периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений ' +
- 'повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение ' +
- 'разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита '+
- 'режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности ' +
- 'режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов ' +
- 'режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса ' +
- 'режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов ' +
- 'сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования ' +
- 'типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса ' +
- 'типномерадокумента типномеразадачи типформы удалениедвижений ';
-
- // v8 системные перечисления - разные ==> class
- var v8_system_enums_differents =
- 'важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения ' +
- 'вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки ' +
- 'видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак ' +
- 'использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога ' +
- 'кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных ' +
- 'отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения ' +
- 'режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных ' +
- 'способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter ' +
- 'типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты';
-
- // class: встроенные наборы значений, системные перечисления (содержат дочерние значения, обращения к которым через разыменование)
- var CLASS =
- v8_system_sets_of_values +
- v8_system_enums_interface +
- v8_system_enums_objects_properties +
- v8_system_enums_exchange_plans +
- v8_system_enums_tabular_document +
- v8_system_enums_sheduler +
- v8_system_enums_formatted_document +
- v8_system_enums_query +
- v8_system_enums_report_builder +
- v8_system_enums_files +
- v8_system_enums_query_builder +
- v8_system_enums_data_analysis +
- v8_system_enums_xml_json_xs_dom_xdto_ws +
- v8_system_enums_data_composition_system +
- v8_system_enums_email +
- v8_system_enums_logbook +
- v8_system_enums_cryptography +
- v8_system_enums_zip +
- v8_system_enums_other +
- v8_system_enums_request_schema +
- v8_system_enums_properties_of_metadata_objects +
- v8_system_enums_differents;
-
- // v8 общие объекты (у объектов есть конструктор, экземпляры создаются методом НОВЫЙ) ==> type
- var v8_shared_object =
- 'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs ' +
- 'блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема ' +
- 'географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма ' +
- 'диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания ' +
- 'диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление ' +
- 'записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom ' +
- 'запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта ' +
- 'интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs ' +
- 'использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных ' +
- 'итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла ' +
- 'компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных ' +
- 'конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных ' +
- 'макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson ' +
- 'обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs ' +
- 'объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации ' +
- 'описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных ' +
- 'описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs ' +
- 'определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom ' +
- 'определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных ' +
- 'параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных ' +
- 'полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных ' +
- 'построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml ' +
- 'процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент ' +
- 'процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml ' +
- 'результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto ' +
- 'сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows ' +
- 'сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш ' +
- 'сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент ' +
- 'текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток ' +
- 'фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs ' +
- 'фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs ' +
- 'фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs ' +
- 'фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент ' +
- 'фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла ' +
- 'чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ';
-
- // v8 универсальные коллекции значений ==> type
- var v8_universal_collection =
- 'comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура ' +
- 'фиксированноесоответствие фиксированныймассив ';
-
- // type : встроенные типы
- var TYPE =
- v8_shared_object +
- v8_universal_collection;
-
- // literal : примитивные типы
- var LITERAL = 'null истина ложь неопределено';
-
- // number : числа
- var NUMBERS = hljs.inherit(hljs.NUMBER_MODE);
-
- // string : строки
- var STRINGS = {
- className: 'string',
- begin: '"|\\|', end: '"|$',
- contains: [{begin: '""'}]
- };
-
- // number : даты
- var DATE = {
- begin: "'", end: "'", excludeBegin: true, excludeEnd: true,
- contains: [
- {
- className: 'number',
- begin: '\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}'
- }
- ]
- };
-
- // comment : комментарии
- var COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE);
-
- // meta : инструкции препроцессора, директивы компиляции
- var META = {
- className: 'meta',
- lexemes: UNDERSCORE_IDENT_RE,
- begin: '#|&', end: '$',
- keywords: {'meta-keyword': KEYWORD + METAKEYWORD},
- contains: [
- COMMENTS
- ]
- };
-
- // symbol : метка goto
- var SYMBOL = {
- className: 'symbol',
- begin: '~', end: ';|:', excludeEnd: true
- };
-
- // function : объявление процедур и функций
- var FUNCTION = {
- className: 'function',
- lexemes: UNDERSCORE_IDENT_RE,
- variants: [
- {begin: 'процедура|функция', end: '\\)', keywords: 'процедура функция'},
- {begin: 'конецпроцедуры|конецфункции', keywords: 'конецпроцедуры конецфункции'}
- ],
- contains: [
- {
- begin: '\\(', end: '\\)', endsParent : true,
- contains: [
- {
- className: 'params',
- lexemes: UNDERSCORE_IDENT_RE,
- begin: UNDERSCORE_IDENT_RE, end: ',', excludeEnd: true, endsWithParent: true,
- keywords: {
- keyword: 'знач',
- literal: LITERAL
- },
- contains: [
- NUMBERS,
- STRINGS,
- DATE
- ]
- },
- COMMENTS
- ]
- },
- hljs.inherit(hljs.TITLE_MODE, {begin: UNDERSCORE_IDENT_RE})
- ]
- };
-
- return {
- case_insensitive: true,
- lexemes: UNDERSCORE_IDENT_RE,
- keywords: {
- keyword: KEYWORD,
- built_in: BUILTIN,
- class: CLASS,
- type: TYPE,
- literal: LITERAL
- },
- contains: [
- META,
- FUNCTION,
- COMMENTS,
- SYMBOL,
- NUMBERS,
- STRINGS,
- DATE
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/abnf.js b/swh/web/static/jssources/highlight.js/lib/languages/abnf.js
deleted file mode 100644
index 9c5f7b7a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/abnf.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = function(hljs) {
- var regexes = {
- ruleDeclaration: "^[a-zA-Z][a-zA-Z0-9-]*",
- unexpectedChars: "[!@#$^&',?+~`|:]"
- };
-
- var keywords = [
- "ALPHA",
- "BIT",
- "CHAR",
- "CR",
- "CRLF",
- "CTL",
- "DIGIT",
- "DQUOTE",
- "HEXDIG",
- "HTAB",
- "LF",
- "LWSP",
- "OCTET",
- "SP",
- "VCHAR",
- "WSP"
- ];
-
- var commentMode = hljs.COMMENT(";", "$");
-
- var terminalBinaryMode = {
- className: "symbol",
- begin: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/
- };
-
- var terminalDecimalMode = {
- className: "symbol",
- begin: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/
- };
-
- var terminalHexadecimalMode = {
- className: "symbol",
- begin: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/,
- };
-
- var caseSensitivityIndicatorMode = {
- className: "symbol",
- begin: /%[si]/
- };
-
- var ruleDeclarationMode = {
- begin: regexes.ruleDeclaration + '\\s*=',
- returnBegin: true,
- end: /=/,
- relevance: 0,
- contains: [{className: "attribute", begin: regexes.ruleDeclaration}]
- };
-
- return {
- illegal: regexes.unexpectedChars,
- keywords: keywords.join(" "),
- contains: [
- ruleDeclarationMode,
- commentMode,
- terminalBinaryMode,
- terminalDecimalMode,
- terminalHexadecimalMode,
- caseSensitivityIndicatorMode,
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/accesslog.js b/swh/web/static/jssources/highlight.js/lib/languages/accesslog.js
deleted file mode 100644
index 9fc5370a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/accesslog.js
+++ /dev/null
@@ -1,37 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- // IP
- {
- className: 'number',
- begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b'
- },
- // Other numbers
- {
- className: 'number',
- begin: '\\b\\d+\\b',
- relevance: 0
- },
- // Requests
- {
- className: 'string',
- begin: '"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)', end: '"',
- keywords: 'GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE',
- illegal: '\\n',
- relevance: 10
- },
- // Dates
- {
- className: 'string',
- begin: /\[/, end: /\]/,
- illegal: '\\n'
- },
- // Strings
- {
- className: 'string',
- begin: '"', end: '"',
- illegal: '\\n'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/actionscript.js b/swh/web/static/jssources/highlight.js/lib/languages/actionscript.js
deleted file mode 100644
index 078e3ce1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/actionscript.js
+++ /dev/null
@@ -1,73 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
- var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
-
- var AS3_REST_ARG_MODE = {
- className: 'rest_arg',
- begin: '[.]{3}', end: IDENT_RE,
- relevance: 10
- };
-
- return {
- aliases: ['as'],
- keywords: {
- keyword: 'as break case catch class const continue default delete do dynamic each ' +
- 'else extends final finally for function get if implements import in include ' +
- 'instanceof interface internal is namespace native new override package private ' +
- 'protected public return set static super switch this throw try typeof use var void ' +
- 'while with',
- literal: 'true false null undefined'
- },
- contains: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'class',
- beginKeywords: 'package', end: '{',
- contains: [hljs.TITLE_MODE]
- },
- {
- className: 'class',
- beginKeywords: 'class interface', end: '{', excludeEnd: true,
- contains: [
- {
- beginKeywords: 'extends implements'
- },
- hljs.TITLE_MODE
- ]
- },
- {
- className: 'meta',
- beginKeywords: 'import include', end: ';',
- keywords: {'meta-keyword': 'import include'}
- },
- {
- className: 'function',
- beginKeywords: 'function', end: '[{;]', excludeEnd: true,
- illegal: '\\S',
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: '\\(', end: '\\)',
- contains: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AS3_REST_ARG_MODE
- ]
- },
- {
- begin: ':\\s*' + IDENT_FUNC_RETURN_TYPE_RE
- }
- ]
- },
- hljs.METHOD_GUARD
- ],
- illegal: /#/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ada.js b/swh/web/static/jssources/highlight.js/lib/languages/ada.js
deleted file mode 100644
index 4e96c860..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ada.js
+++ /dev/null
@@ -1,172 +0,0 @@
-module.exports = // We try to support full Ada2012
-//
-// We highlight all appearances of types, keywords, literals (string, char, number, bool)
-// and titles (user defined function/procedure/package)
-// CSS classes are set accordingly
-//
-// Languages causing problems for language detection:
-// xml (broken by Foo : Bar type), elm (broken by Foo : Bar type), vbscript-html (broken by body keyword)
-// sql (ada default.txt has a lot of sql keywords)
-
-function(hljs) {
- // Regular expression for Ada numeric literals.
- // stolen form the VHDL highlighter
-
- // Decimal literal:
- var INTEGER_RE = '\\d(_|\\d)*';
- var EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
- var DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
-
- // Based literal:
- var BASED_INTEGER_RE = '\\w+';
- var BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
-
- var NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
-
- // Identifier regex
- var ID_REGEX = '[A-Za-z](_?[A-Za-z0-9.])*';
-
- // bad chars, only allowed in literals
- var BAD_CHARS = '[]{}%#\'\"'
-
- // Ada doesn't have block comments, only line comments
- var COMMENTS = hljs.COMMENT('--', '$');
-
- // variable declarations of the form
- // Foo : Bar := Baz;
- // where only Bar will be highlighted
- var VAR_DECLS = {
- // TODO: These spaces are not required by the Ada syntax
- // however, I have yet to see handwritten Ada code where
- // someone does not put spaces around :
- begin: '\\s+:\\s+', end: '\\s*(:=|;|\\)|=>|$)',
- // endsWithParent: true,
- // returnBegin: true,
- illegal: BAD_CHARS,
- contains: [
- {
- // workaround to avoid highlighting
- // named loops and declare blocks
- beginKeywords: 'loop for declare others',
- endsParent: true,
- },
- {
- // properly highlight all modifiers
- className: 'keyword',
- beginKeywords: 'not null constant access function procedure in out aliased exception'
- },
- {
- className: 'type',
- begin: ID_REGEX,
- endsParent: true,
- relevance: 0,
- }
- ]
- };
-
- return {
- case_insensitive: true,
- keywords: {
- keyword:
- 'abort else new return abs elsif not reverse abstract end ' +
- 'accept entry select access exception of separate aliased exit or some ' +
- 'all others subtype and for out synchronized array function overriding ' +
- 'at tagged generic package task begin goto pragma terminate ' +
- 'body private then if procedure type case in protected constant interface ' +
- 'is raise use declare range delay limited record when delta loop rem while ' +
- 'digits renames with do mod requeue xor',
- literal:
- 'True False',
- },
- contains: [
- COMMENTS,
- // strings "foobar"
- {
- className: 'string',
- begin: /"/, end: /"/,
- contains: [{begin: /""/, relevance: 0}]
- },
- // characters ''
- {
- // character literals always contain one char
- className: 'string',
- begin: /'.'/
- },
- {
- // number literals
- className: 'number',
- begin: NUMBER_RE,
- relevance: 0
- },
- {
- // Attributes
- className: 'symbol',
- begin: "'" + ID_REGEX,
- },
- {
- // package definition, maybe inside generic
- className: 'title',
- begin: '(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?', end: '(is|$)',
- keywords: 'package body',
- excludeBegin: true,
- excludeEnd: true,
- illegal: BAD_CHARS
- },
- {
- // function/procedure declaration/definition
- // maybe inside generic
- begin: '(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+', end: '(\\bis|\\bwith|\\brenames|\\)\\s*;)',
- keywords: 'overriding function procedure with is renames return',
- // we need to re-match the 'function' keyword, so that
- // the title mode below matches only exactly once
- returnBegin: true,
- contains:
- [
- COMMENTS,
- {
- // name of the function/procedure
- className: 'title',
- begin: '(\\bwith\\s+)?\\b(function|procedure)\\s+',
- end: '(\\(|\\s+|$)',
- excludeBegin: true,
- excludeEnd: true,
- illegal: BAD_CHARS
- },
- // 'self'
- // // parameter types
- VAR_DECLS,
- {
- // return type
- className: 'type',
- begin: '\\breturn\\s+', end: '(\\s+|;|$)',
- keywords: 'return',
- excludeBegin: true,
- excludeEnd: true,
- // we are done with functions
- endsParent: true,
- illegal: BAD_CHARS
-
- },
- ]
- },
- {
- // new type declarations
- // maybe inside generic
- className: 'type',
- begin: '\\b(sub)?type\\s+', end: '\\s+',
- keywords: 'type',
- excludeBegin: true,
- illegal: BAD_CHARS
- },
-
- // see comment above the definition
- VAR_DECLS,
-
- // no markup
- // relevance boosters for small snippets
- // {begin: '\\s*=>\\s*'},
- // {begin: '\\s*:=\\s*'},
- // {begin: '\\s+:=\\s+'},
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/angelscript.js b/swh/web/static/jssources/highlight.js/lib/languages/angelscript.js
deleted file mode 100644
index b372b4fa..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/angelscript.js
+++ /dev/null
@@ -1,106 +0,0 @@
-module.exports = function(hljs) {
- var builtInTypeMode = {
- className: 'built_in',
- begin: '\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)'
- };
-
- var objectHandleMode = {
- className: 'symbol',
- begin: '[a-zA-Z0-9_]+@'
- };
-
- var genericMode = {
- className: 'keyword',
- begin: '<', end: '>',
- contains: [ builtInTypeMode, objectHandleMode ]
- };
-
- builtInTypeMode.contains = [ genericMode ];
- objectHandleMode.contains = [ genericMode ];
-
- return {
- aliases: [ 'asc' ],
-
- keywords:
- 'for in|0 break continue while do|0 return if else case switch namespace is cast ' +
- 'or and xor not get|0 in inout|10 out override set|0 private public const default|0 ' +
- 'final shared external mixin|10 enum typedef funcdef this super import from interface ' +
- 'abstract|0 try catch protected explicit',
-
- // avoid close detection with C# and JS
- illegal: '(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\s*[^\\(])',
-
- contains: [
- { // 'strings'
- className: 'string',
- begin: '\'', end: '\'',
- illegal: '\\n',
- contains: [ hljs.BACKSLASH_ESCAPE ],
- relevance: 0
- },
-
- { // "strings"
- className: 'string',
- begin: '"', end: '"',
- illegal: '\\n',
- contains: [ hljs.BACKSLASH_ESCAPE ],
- relevance: 0
- },
-
- // """heredoc strings"""
- {
- className: 'string',
- begin: '"""', end: '"""'
- },
-
- hljs.C_LINE_COMMENT_MODE, // single-line comments
- hljs.C_BLOCK_COMMENT_MODE, // comment blocks
-
- { // interface or namespace declaration
- beginKeywords: 'interface namespace', end: '{',
- illegal: '[;.\\-]',
- contains: [
- { // interface or namespace name
- className: 'symbol',
- begin: '[a-zA-Z0-9_]+'
- }
- ]
- },
-
- { // class declaration
- beginKeywords: 'class', end: '{',
- illegal: '[;.\\-]',
- contains: [
- { // class name
- className: 'symbol',
- begin: '[a-zA-Z0-9_]+',
- contains: [
- {
- begin: '[:,]\\s*',
- contains: [
- {
- className: 'symbol',
- begin: '[a-zA-Z0-9_]+'
- }
- ]
- }
- ]
- }
- ]
- },
-
- builtInTypeMode, // built-in types
- objectHandleMode, // object handles
-
- { // literals
- className: 'literal',
- begin: '\\b(null|true|false)'
- },
-
- { // numbers
- className: 'number',
- begin: '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/apache.js b/swh/web/static/jssources/highlight.js/lib/languages/apache.js
deleted file mode 100644
index 1679044a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/apache.js
+++ /dev/null
@@ -1,45 +0,0 @@
-module.exports = function(hljs) {
- var NUMBER = {className: 'number', begin: '[\\$%]\\d+'};
- return {
- aliases: ['apacheconf'],
- case_insensitive: true,
- contains: [
- hljs.HASH_COMMENT_MODE,
- {className: 'section', begin: '?', end: '>'},
- {
- className: 'attribute',
- begin: /\w+/,
- relevance: 0,
- // keywords aren’t needed for highlighting per se, they only boost relevance
- // for a very generally defined mode (starts with a word, ends with line-end
- keywords: {
- nomarkup:
- 'order deny allow setenv rewriterule rewriteengine rewritecond documentroot ' +
- 'sethandler errordocument loadmodule options header listen serverroot ' +
- 'servername'
- },
- starts: {
- end: /$/,
- relevance: 0,
- keywords: {
- literal: 'on off all'
- },
- contains: [
- {
- className: 'meta',
- begin: '\\s\\[', end: '\\]$'
- },
- {
- className: 'variable',
- begin: '[\\$%]\\{', end: '\\}',
- contains: ['self', NUMBER]
- },
- NUMBER,
- hljs.QUOTE_STRING_MODE
- ]
- }
- }
- ],
- illegal: /\S/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/applescript.js b/swh/web/static/jssources/highlight.js/lib/languages/applescript.js
deleted file mode 100644
index e87d4387..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/applescript.js
+++ /dev/null
@@ -1,85 +0,0 @@
-module.exports = function(hljs) {
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: ''});
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)',
- contains: ['self', hljs.C_NUMBER_MODE, STRING]
- };
- var COMMENT_MODE_1 = hljs.COMMENT('--', '$');
- var COMMENT_MODE_2 = hljs.COMMENT(
- '\\(\\*',
- '\\*\\)',
- {
- contains: ['self', COMMENT_MODE_1] //allow nesting
- }
- );
- var COMMENTS = [
- COMMENT_MODE_1,
- COMMENT_MODE_2,
- hljs.HASH_COMMENT_MODE
- ];
-
- return {
- aliases: ['osascript'],
- keywords: {
- keyword:
- 'about above after against and around as at back before beginning ' +
- 'behind below beneath beside between but by considering ' +
- 'contain contains continue copy div does eighth else end equal ' +
- 'equals error every exit fifth first for fourth from front ' +
- 'get given global if ignoring in into is it its last local me ' +
- 'middle mod my ninth not of on onto or over prop property put ref ' +
- 'reference repeat returning script second set seventh since ' +
- 'sixth some tell tenth that the|0 then third through thru ' +
- 'timeout times to transaction try until where while whose with ' +
- 'without',
- literal:
- 'AppleScript false linefeed return pi quote result space tab true',
- built_in:
- 'alias application boolean class constant date file integer list ' +
- 'number real record string text ' +
- 'activate beep count delay launch log offset read round ' +
- 'run say summarize write ' +
- 'character characters contents day frontmost id item length ' +
- 'month name paragraph paragraphs rest reverse running time version ' +
- 'weekday word words year'
- },
- contains: [
- STRING,
- hljs.C_NUMBER_MODE,
- {
- className: 'built_in',
- begin:
- '\\b(clipboard info|the clipboard|info for|list (disks|folder)|' +
- 'mount volume|path to|(close|open for) access|(get|set) eof|' +
- 'current date|do shell script|get volume settings|random number|' +
- 'set volume|system attribute|system info|time to GMT|' +
- '(load|run|store) script|scripting components|' +
- 'ASCII (character|number)|localized string|' +
- 'choose (application|color|file|file name|' +
- 'folder|from list|remote application|URL)|' +
- 'display (alert|dialog))\\b|^\\s*return\\b'
- },
- {
- className: 'literal',
- begin:
- '\\b(text item delimiters|current application|missing value)\\b'
- },
- {
- className: 'keyword',
- begin:
- '\\b(apart from|aside from|instead of|out of|greater than|' +
- "isn't|(doesn't|does not) (equal|come before|come after|contain)|" +
- '(greater|less) than( or equal)?|(starts?|ends|begins?) with|' +
- 'contained by|comes (before|after)|a (ref|reference)|POSIX file|' +
- 'POSIX path|(date|time) string|quoted form)\\b'
- },
- {
- beginKeywords: 'on',
- illegal: '[${=;\\n]',
- contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
- }
- ].concat(COMMENTS),
- illegal: '//|->|=>|\\[\\['
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/arcade.js b/swh/web/static/jssources/highlight.js/lib/languages/arcade.js
deleted file mode 100644
index d363168f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/arcade.js
+++ /dev/null
@@ -1,136 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[A-Za-z_][0-9A-Za-z_]*';
- var KEYWORDS = {
- keyword:
- 'if for while var new function do return void else break',
- literal:
- 'true false null undefined NaN Infinity PI BackSlash DoubleQuote ForwardSlash NewLine SingleQuote Tab',
- built_in:
- 'Abs Acos Area AreaGeodetic Asin Atan Atan2 Average Boolean Buffer BufferGeodetic ' +
- 'Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd ' +
- 'DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance Distinct ' +
- 'DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetById FeatureSetByTitle ' +
- 'FeatureSetByUrl Filter First Floor Geometry Guid HasKey Hour IIf IndexOf Intersection ' +
- 'Intersects IsEmpty Length LengthGeodetic Log Max Mean Millisecond Min Minute Month ' +
- 'MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon ' +
- 'Polyline Pow Random Relate Reverse Round Second SetGeometry Sin Sort Sqrt Stdev Sum ' +
- 'SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TypeOf Union Variance ' +
- 'Weekday When Within Year '
- };
- var EXPRESSIONS;
- var SYMBOL = {
- className: 'symbol',
- begin: '\\$[feature|layer|map|value|view]+'
- };
- var NUMBER = {
- className: 'number',
- variants: [
- { begin: '\\b(0[bB][01]+)' },
- { begin: '\\b(0[oO][0-7]+)' },
- { begin: hljs.C_NUMBER_RE }
- ],
- relevance: 0
- };
- var SUBST = {
- className: 'subst',
- begin: '\\$\\{', end: '\\}',
- keywords: KEYWORDS,
- contains: [] // defined later
- };
- var TEMPLATE_STRING = {
- className: 'string',
- begin: '`', end: '`',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- SUBST
- ]
- };
- SUBST.contains = [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- TEMPLATE_STRING,
- NUMBER,
- hljs.REGEXP_MODE
- ];
- var PARAMS_CONTAINS = SUBST.contains.concat([
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_LINE_COMMENT_MODE
- ]);
-
- return {
- aliases: ['arcade'],
- keywords: KEYWORDS,
- contains: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- TEMPLATE_STRING,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- SYMBOL,
- NUMBER,
- { // object attr container
- begin: /[{,]\s*/, relevance: 0,
- contains: [
- {
- begin: IDENT_RE + '\\s*:', returnBegin: true,
- relevance: 0,
- contains: [{className: 'attr', begin: IDENT_RE, relevance: 0}]
- }
- ]
- },
- { // "value" container
- begin: '(' + hljs.RE_STARTERS_RE + '|\\b(return)\\b)\\s*',
- keywords: 'return',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.REGEXP_MODE,
- {
- className: 'function',
- begin: '(\\(.*?\\)|' + IDENT_RE + ')\\s*=>', returnBegin: true,
- end: '\\s*=>',
- contains: [
- {
- className: 'params',
- variants: [
- {
- begin: IDENT_RE
- },
- {
- begin: /\(\s*\)/,
- },
- {
- begin: /\(/, end: /\)/,
- excludeBegin: true, excludeEnd: true,
- keywords: KEYWORDS,
- contains: PARAMS_CONTAINS
- }
- ]
- }
- ]
- }
- ],
- relevance: 0
- },
- {
- className: 'function',
- beginKeywords: 'function', end: /\{/, excludeEnd: true,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE}),
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- contains: PARAMS_CONTAINS
- }
- ],
- illegal: /\[|%/
- },
- {
- begin: /\$[(.]/
- }
- ],
- illegal: /#(?!!)/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/arduino.js b/swh/web/static/jssources/highlight.js/lib/languages/arduino.js
deleted file mode 100644
index c5394e19..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/arduino.js
+++ /dev/null
@@ -1,99 +0,0 @@
-module.exports = function(hljs) {
- var CPP = hljs.getLanguage('cpp').exports;
- return {
- keywords: {
- keyword:
- 'boolean byte word string String array ' + CPP.keywords.keyword,
- built_in:
- 'setup loop while catch for if do goto try switch case else ' +
- 'default break continue return ' +
- 'KeyboardController MouseController SoftwareSerial ' +
- 'EthernetServer EthernetClient LiquidCrystal ' +
- 'RobotControl GSMVoiceCall EthernetUDP EsploraTFT ' +
- 'HttpClient RobotMotor WiFiClient GSMScanner ' +
- 'FileSystem Scheduler GSMServer YunClient YunServer ' +
- 'IPAddress GSMClient GSMModem Keyboard Ethernet ' +
- 'Console GSMBand Esplora Stepper Process ' +
- 'WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage ' +
- 'Client Server GSMPIN FileIO Bridge Serial ' +
- 'EEPROM Stream Mouse Audio Servo File Task ' +
- 'GPRS WiFi Wire TFT GSM SPI SD ' +
- 'runShellCommandAsynchronously analogWriteResolution ' +
- 'retrieveCallingNumber printFirmwareVersion ' +
- 'analogReadResolution sendDigitalPortPair ' +
- 'noListenOnLocalhost readJoystickButton setFirmwareVersion ' +
- 'readJoystickSwitch scrollDisplayRight getVoiceCallStatus ' +
- 'scrollDisplayLeft writeMicroseconds delayMicroseconds ' +
- 'beginTransmission getSignalStrength runAsynchronously ' +
- 'getAsynchronously listenOnLocalhost getCurrentCarrier ' +
- 'readAccelerometer messageAvailable sendDigitalPorts ' +
- 'lineFollowConfig countryNameWrite runShellCommand ' +
- 'readStringUntil rewindDirectory readTemperature ' +
- 'setClockDivider readLightSensor endTransmission ' +
- 'analogReference detachInterrupt countryNameRead ' +
- 'attachInterrupt encryptionType readBytesUntil ' +
- 'robotNameWrite readMicrophone robotNameRead cityNameWrite ' +
- 'userNameWrite readJoystickY readJoystickX mouseReleased ' +
- 'openNextFile scanNetworks noInterrupts digitalWrite ' +
- 'beginSpeaker mousePressed isActionDone mouseDragged ' +
- 'displayLogos noAutoscroll addParameter remoteNumber ' +
- 'getModifiers keyboardRead userNameRead waitContinue ' +
- 'processInput parseCommand printVersion readNetworks ' +
- 'writeMessage blinkVersion cityNameRead readMessage ' +
- 'setDataMode parsePacket isListening setBitOrder ' +
- 'beginPacket isDirectory motorsWrite drawCompass ' +
- 'digitalRead clearScreen serialEvent rightToLeft ' +
- 'setTextSize leftToRight requestFrom keyReleased ' +
- 'compassRead analogWrite interrupts WiFiServer ' +
- 'disconnect playMelody parseFloat autoscroll ' +
- 'getPINUsed setPINUsed setTimeout sendAnalog ' +
- 'readSlider analogRead beginWrite createChar ' +
- 'motorsStop keyPressed tempoWrite readButton ' +
- 'subnetMask debugPrint macAddress writeGreen ' +
- 'randomSeed attachGPRS readString sendString ' +
- 'remotePort releaseAll mouseMoved background ' +
- 'getXChange getYChange answerCall getResult ' +
- 'voiceCall endPacket constrain getSocket writeJSON ' +
- 'getButton available connected findUntil readBytes ' +
- 'exitValue readGreen writeBlue startLoop IPAddress ' +
- 'isPressed sendSysex pauseMode gatewayIP setCursor ' +
- 'getOemKey tuneWrite noDisplay loadImage switchPIN ' +
- 'onRequest onReceive changePIN playFile noBuffer ' +
- 'parseInt overflow checkPIN knobRead beginTFT ' +
- 'bitClear updateIR bitWrite position writeRGB ' +
- 'highByte writeRed setSpeed readBlue noStroke ' +
- 'remoteIP transfer shutdown hangCall beginSMS ' +
- 'endWrite attached maintain noCursor checkReg ' +
- 'checkPUK shiftOut isValid shiftIn pulseIn ' +
- 'connect println localIP pinMode getIMEI ' +
- 'display noBlink process getBand running beginSD ' +
- 'drawBMP lowByte setBand release bitRead prepare ' +
- 'pointTo readRed setMode noFill remove listen ' +
- 'stroke detach attach noTone exists buffer ' +
- 'height bitSet circle config cursor random ' +
- 'IRread setDNS endSMS getKey micros ' +
- 'millis begin print write ready flush width ' +
- 'isPIN blink clear press mkdir rmdir close ' +
- 'point yield image BSSID click delay ' +
- 'read text move peek beep rect line open ' +
- 'seek fill size turn stop home find ' +
- 'step tone sqrt RSSI SSID ' +
- 'end bit tan cos sin pow map abs max ' +
- 'min get run put',
- literal:
- 'DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE ' +
- 'REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP ' +
- 'SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN ' +
- 'INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL ' +
- 'DEFAULT OUTPUT INPUT HIGH LOW'
- },
- contains: [
- CPP.preprocessor,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/armasm.js b/swh/web/static/jssources/highlight.js/lib/languages/armasm.js
deleted file mode 100644
index 33c355e8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/armasm.js
+++ /dev/null
@@ -1,91 +0,0 @@
-module.exports = function(hljs) {
- //local labels: %?[FB]?[AT]?\d{1,2}\w+
- return {
- case_insensitive: true,
- aliases: ['arm'],
- lexemes: '\\.?' + hljs.IDENT_RE,
- keywords: {
- meta:
- //GNU preprocs
- '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg '+
- //ARM directives
- 'ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ',
- built_in:
- 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 '+ //standard registers
- 'pc lr sp ip sl sb fp '+ //typical regs plus backward compatibility
- 'a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 '+ //more regs and fp
- 'p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 '+ //coprocessor regs
- 'c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 '+ //more coproc
- 'q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 '+ //advanced SIMD NEON regs
-
- //program status registers
- 'cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf '+
- 'spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf '+
-
- //NEON and VFP registers
- 's0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 '+
- 's16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 '+
- 'd0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 '+
- 'd16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 ' +
-
- '{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @'
- },
- contains: [
- {
- className: 'keyword',
- begin: '\\b('+ //mnemonics
- 'adc|'+
- '(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|'+
- 'and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|'+
- 'bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|'+
- 'setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|'+
- 'ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|'+
- 'mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|'+
- 'mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|'+
- 'mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|'+
- 'rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|'+
- 'stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|'+
- '[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|'+
- 'wfe|wfi|yield'+
- ')'+
- '(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?'+ //condition codes
- '[sptrx]?' , //legal postfixes
- end: '\\s'
- },
- hljs.COMMENT('[;@]', '$', {relevance: 0}),
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '\'',
- end: '[^\\\\]\'',
- relevance: 0
- },
- {
- className: 'title',
- begin: '\\|', end: '\\|',
- illegal: '\\n',
- relevance: 0
- },
- {
- className: 'number',
- variants: [
- {begin: '[#$=]?0x[0-9a-f]+'}, //hex
- {begin: '[#$=]?0b[01]+'}, //bin
- {begin: '[#$=]\\d+'}, //literal
- {begin: '\\b\\d+'} //bare number
- ],
- relevance: 0
- },
- {
- className: 'symbol',
- variants: [
- {begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+'}, //ARM syntax
- {begin: '^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:'}, //GNU ARM syntax
- {begin: '[=#]\\w+' } //label reference
- ],
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/asciidoc.js b/swh/web/static/jssources/highlight.js/lib/languages/asciidoc.js
deleted file mode 100644
index 5c46f982..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/asciidoc.js
+++ /dev/null
@@ -1,187 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['adoc'],
- contains: [
- // block comment
- hljs.COMMENT(
- '^/{4,}\\n',
- '\\n/{4,}$',
- // can also be done as...
- //'^/{4,}$',
- //'^/{4,}$',
- {
- relevance: 10
- }
- ),
- // line comment
- hljs.COMMENT(
- '^//',
- '$',
- {
- relevance: 0
- }
- ),
- // title
- {
- className: 'title',
- begin: '^\\.\\w.*$'
- },
- // example, admonition & sidebar blocks
- {
- begin: '^[=\\*]{4,}\\n',
- end: '\\n^[=\\*]{4,}$',
- relevance: 10
- },
- // headings
- {
- className: 'section',
- relevance: 10,
- variants: [
- {begin: '^(={1,5}) .+?( \\1)?$'},
- {begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$'},
- ]
- },
- // document attributes
- {
- className: 'meta',
- begin: '^:.+?:',
- end: '\\s',
- excludeEnd: true,
- relevance: 10
- },
- // block attributes
- {
- className: 'meta',
- begin: '^\\[.+?\\]$',
- relevance: 0
- },
- // quoteblocks
- {
- className: 'quote',
- begin: '^_{4,}\\n',
- end: '\\n_{4,}$',
- relevance: 10
- },
- // listing and literal blocks
- {
- className: 'code',
- begin: '^[\\-\\.]{4,}\\n',
- end: '\\n[\\-\\.]{4,}$',
- relevance: 10
- },
- // passthrough blocks
- {
- begin: '^\\+{4,}\\n',
- end: '\\n\\+{4,}$',
- contains: [
- {
- begin: '<', end: '>',
- subLanguage: 'xml',
- relevance: 0
- }
- ],
- relevance: 10
- },
- // lists (can only capture indicators)
- {
- className: 'bullet',
- begin: '^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+'
- },
- // admonition
- {
- className: 'symbol',
- begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+',
- relevance: 10
- },
- // inline strong
- {
- className: 'strong',
- // must not follow a word character or be followed by an asterisk or space
- begin: '\\B\\*(?![\\*\\s])',
- end: '(\\n{2}|\\*)',
- // allow escaped asterisk followed by word char
- contains: [
- {
- begin: '\\\\*\\w',
- relevance: 0
- }
- ]
- },
- // inline emphasis
- {
- className: 'emphasis',
- // must not follow a word character or be followed by a single quote or space
- begin: '\\B\'(?![\'\\s])',
- end: '(\\n{2}|\')',
- // allow escaped single quote followed by word char
- contains: [
- {
- begin: '\\\\\'\\w',
- relevance: 0
- }
- ],
- relevance: 0
- },
- // inline emphasis (alt)
- {
- className: 'emphasis',
- // must not follow a word character or be followed by an underline or space
- begin: '_(?![_\\s])',
- end: '(\\n{2}|_)',
- relevance: 0
- },
- // inline smart quotes
- {
- className: 'string',
- variants: [
- {begin: "``.+?''"},
- {begin: "`.+?'"}
- ]
- },
- // inline code snippets (TODO should get same treatment as strong and emphasis)
- {
- className: 'code',
- begin: '(`.+?`|\\+.+?\\+)',
- relevance: 0
- },
- // indented literal block
- {
- className: 'code',
- begin: '^[ \\t]',
- end: '$',
- relevance: 0
- },
- // horizontal rules
- {
- begin: '^\'{3,}[ \\t]*$',
- relevance: 10
- },
- // images and links
- {
- begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]',
- returnBegin: true,
- contains: [
- {
- begin: '(link|image:?):',
- relevance: 0
- },
- {
- className: 'link',
- begin: '\\w',
- end: '[^\\[]+',
- relevance: 0
- },
- {
- className: 'string',
- begin: '\\[',
- end: '\\]',
- excludeBegin: true,
- excludeEnd: true,
- relevance: 0
- }
- ],
- relevance: 10
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/aspectj.js b/swh/web/static/jssources/highlight.js/lib/languages/aspectj.js
deleted file mode 100644
index e48ee8bb..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/aspectj.js
+++ /dev/null
@@ -1,144 +0,0 @@
-module.exports = function (hljs) {
- var KEYWORDS =
- 'false synchronized int abstract float private char boolean static null if const ' +
- 'for true while long throw strictfp finally protected import native final return void ' +
- 'enum else extends implements break transient new catch instanceof byte super volatile case ' +
- 'assert short package default double public try this switch continue throws privileged ' +
- 'aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization ' +
- 'staticinitialization withincode target within execution getWithinTypeName handler ' +
- 'thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents '+
- 'warning error soft precedence thisAspectInstance';
- var SHORTKEYS = 'get set args call';
- return {
- keywords : KEYWORDS,
- illegal : /<\/|#/,
- contains : [
- hljs.COMMENT(
- '/\\*\\*',
- '\\*/',
- {
- relevance : 0,
- contains : [
- {
- // eat up @'s in emails to prevent them to be recognized as doctags
- begin: /\w+@/, relevance: 0
- },
- {
- className : 'doctag',
- begin : '@[A-Za-z]+'
- }
- ]
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className : 'class',
- beginKeywords : 'aspect',
- end : /[{;=]/,
- excludeEnd : true,
- illegal : /[:;"\[\]]/,
- contains : [
- {
- beginKeywords : 'extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton'
- },
- hljs.UNDERSCORE_TITLE_MODE,
- {
- begin : /\([^\)]*/,
- end : /[)]+/,
- keywords : KEYWORDS + ' ' + SHORTKEYS,
- excludeEnd : false
- }
- ]
- },
- {
- className : 'class',
- beginKeywords : 'class interface',
- end : /[{;=]/,
- excludeEnd : true,
- relevance: 0,
- keywords : 'class interface',
- illegal : /[:"\[\]]/,
- contains : [
- {beginKeywords : 'extends implements'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- // AspectJ Constructs
- beginKeywords : 'pointcut after before around throwing returning',
- end : /[)]/,
- excludeEnd : false,
- illegal : /["\[\]]/,
- contains : [
- {
- begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(',
- returnBegin : true,
- contains : [hljs.UNDERSCORE_TITLE_MODE]
- }
- ]
- },
- {
- begin : /[:]/,
- returnBegin : true,
- end : /[{;]/,
- relevance: 0,
- excludeEnd : false,
- keywords : KEYWORDS,
- illegal : /["\[\]]/,
- contains : [
- {
- begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(',
- keywords : KEYWORDS + ' ' + SHORTKEYS,
- relevance: 0
- },
- hljs.QUOTE_STRING_MODE
- ]
- },
- {
- // this prevents 'new Name(...), or throw ...' from being recognized as a function definition
- beginKeywords : 'new throw',
- relevance : 0
- },
- {
- // the function class is a bit different for AspectJ compared to the Java language
- className : 'function',
- begin : /\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,
- returnBegin : true,
- end : /[{;=]/,
- keywords : KEYWORDS,
- excludeEnd : true,
- contains : [
- {
- begin : hljs.UNDERSCORE_IDENT_RE + '\\s*\\(',
- returnBegin : true,
- relevance: 0,
- contains : [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- className : 'params',
- begin : /\(/, end : /\)/,
- relevance: 0,
- keywords : KEYWORDS,
- contains : [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- hljs.C_NUMBER_MODE,
- {
- // annotation is also used in this language
- className : 'meta',
- begin : '@[A-Za-z]+'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/autohotkey.js b/swh/web/static/jssources/highlight.js/lib/languages/autohotkey.js
deleted file mode 100644
index e0087121..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/autohotkey.js
+++ /dev/null
@@ -1,58 +0,0 @@
-module.exports = function(hljs) {
- var BACKTICK_ESCAPE = {
- begin: '`[\\s\\S]'
- };
-
- return {
- case_insensitive: true,
- aliases: [ 'ahk' ],
- keywords: {
- keyword: 'Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group',
- literal: 'A|0 true false NOT AND OR',
- built_in: 'ComSpec Clipboard ClipboardAll ErrorLevel',
- },
- contains: [
- {
- className: 'built_in',
- begin: 'A_[a-zA-Z0-9]+'
- },
- BACKTICK_ESCAPE,
- hljs.inherit(hljs.QUOTE_STRING_MODE, {contains: [BACKTICK_ESCAPE]}),
- hljs.COMMENT(';', '$', {relevance: 0}),
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'number',
- begin: hljs.NUMBER_RE,
- relevance: 0
- },
- {
- className: 'subst', // FIXED
- begin: '%(?=[a-zA-Z0-9#_$@])', end: '%',
- illegal: '[^a-zA-Z0-9#_$@]'
- },
- {
- className: 'built_in',
- begin: '^\\s*\\w+\\s*,'
- //I don't really know if this is totally relevant
- },
- {
- className: 'meta',
- begin: '^\\s*#\w+', end:'$',
- relevance: 0
- },
- {
- className: 'symbol',
- contains: [BACKTICK_ESCAPE],
- variants: [
- {begin: '^[^\\n";]+::(?!=)'},
- {begin: '^[^\\n";]+:(?!=)', relevance: 0} // zero relevance as it catches a lot of things
- // followed by a single ':' in many languages
- ]
- },
- {
- // consecutive commas, not for highlighting but just for relevance
- begin: ',\\s*,'
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/autoit.js b/swh/web/static/jssources/highlight.js/lib/languages/autoit.js
deleted file mode 100644
index 19932a07..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/autoit.js
+++ /dev/null
@@ -1,135 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = 'ByRef Case Const ContinueCase ContinueLoop ' +
- 'Default Dim Do Else ElseIf EndFunc EndIf EndSelect ' +
- 'EndSwitch EndWith Enum Exit ExitLoop For Func ' +
- 'Global If In Local Next ReDim Return Select Static ' +
- 'Step Switch Then To Until Volatile WEnd While With',
-
- LITERAL = 'True False And Null Not Or',
-
- BUILT_IN =
- 'Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait',
-
- COMMENT = {
- variants: [
- hljs.COMMENT(';', '$', {relevance: 0}),
- hljs.COMMENT('#cs', '#ce'),
- hljs.COMMENT('#comments-start', '#comments-end')
- ]
- },
-
- VARIABLE = {
- begin: '\\$[A-z0-9_]+'
- },
-
- STRING = {
- className: 'string',
- variants: [{
- begin: /"/,
- end: /"/,
- contains: [{
- begin: /""/,
- relevance: 0
- }]
- }, {
- begin: /'/,
- end: /'/,
- contains: [{
- begin: /''/,
- relevance: 0
- }]
- }]
- },
-
- NUMBER = {
- variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]
- },
-
- PREPROCESSOR = {
- className: 'meta',
- begin: '#',
- end: '$',
- keywords: {'meta-keyword': 'comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin'},
- contains: [{
- begin: /\\\n/,
- relevance: 0
- }, {
- beginKeywords: 'include',
- keywords: {'meta-keyword': 'include'},
- end: '$',
- contains: [
- STRING, {
- className: 'meta-string',
- variants: [{
- begin: '<',
- end: '>'
- }, {
- begin: /"/,
- end: /"/,
- contains: [{
- begin: /""/,
- relevance: 0
- }]
- }, {
- begin: /'/,
- end: /'/,
- contains: [{
- begin: /''/,
- relevance: 0
- }]
- }]
- }
- ]
- },
- STRING,
- COMMENT
- ]
- },
-
- CONSTANT = {
- className: 'symbol',
- // begin: '@',
- // end: '$',
- // keywords: 'AppDataCommonDir AppDataDir AutoItExe AutoItPID AutoItVersion AutoItX64 COM_EventObj CommonFilesDir Compiled ComputerName ComSpec CPUArch CR CRLF DesktopCommonDir DesktopDepth DesktopDir DesktopHeight DesktopRefresh DesktopWidth DocumentsCommonDir error exitCode exitMethod extended FavoritesCommonDir FavoritesDir GUI_CtrlHandle GUI_CtrlId GUI_DragFile GUI_DragId GUI_DropId GUI_WinHandle HomeDrive HomePath HomeShare HotKeyPressed HOUR IPAddress1 IPAddress2 IPAddress3 IPAddress4 KBLayout LF LocalAppDataDir LogonDNSDomain LogonDomain LogonServer MDAY MIN MON MSEC MUILang MyDocumentsDir NumParams OSArch OSBuild OSLang OSServicePack OSType OSVersion ProgramFilesDir ProgramsCommonDir ProgramsDir ScriptDir ScriptFullPath ScriptLineNumber ScriptName SEC StartMenuCommonDir StartMenuDir StartupCommonDir StartupDir SW_DISABLE SW_ENABLE SW_HIDE SW_LOCK SW_MAXIMIZE SW_MINIMIZE SW_RESTORE SW_SHOW SW_SHOWDEFAULT SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNA SW_SHOWNOACTIVATE SW_SHOWNORMAL SW_UNLOCK SystemDir TAB TempDir TRAY_ID TrayIconFlashing TrayIconVisible UserName UserProfileDir WDAY WindowsDir WorkingDir YDAY YEAR',
- // relevance: 5
- begin: '@[A-z0-9_]+'
- },
-
- FUNCTION = {
- className: 'function',
- beginKeywords: 'Func',
- end: '$',
- illegal: '\\$|\\[|%',
- contains: [
- hljs.UNDERSCORE_TITLE_MODE, {
- className: 'params',
- begin: '\\(',
- end: '\\)',
- contains: [
- VARIABLE,
- STRING,
- NUMBER
- ]
- }
- ]
- };
-
- return {
- case_insensitive: true,
- illegal: /\/\*/,
- keywords: {
- keyword: KEYWORDS,
- built_in: BUILT_IN,
- literal: LITERAL
- },
- contains: [
- COMMENT,
- VARIABLE,
- STRING,
- NUMBER,
- PREPROCESSOR,
- CONSTANT,
- FUNCTION
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/avrasm.js b/swh/web/static/jssources/highlight.js/lib/languages/avrasm.js
deleted file mode 100644
index bef09f6e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/avrasm.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- lexemes: '\\.?' + hljs.IDENT_RE,
- keywords: {
- keyword:
- /* mnemonic */
- 'adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs ' +
- 'brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr ' +
- 'clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor ' +
- 'fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul ' +
- 'muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs ' +
- 'sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub ' +
- 'subi swap tst wdr',
- built_in:
- /* general purpose registers */
- 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 ' +
- 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ' +
- /* IO Registers (ATMega128) */
- 'ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h ' +
- 'tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ' +
- 'ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ' +
- 'ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk ' +
- 'tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ' +
- 'ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr ' +
- 'porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ' +
- 'ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf',
- meta:
- '.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list ' +
- '.listmac .macro .nolist .org .set'
- },
- contains: [
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- ),
- hljs.C_NUMBER_MODE, // 0x..., decimal, float
- hljs.BINARY_NUMBER_MODE, // 0b...
- {
- className: 'number',
- begin: '\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)' // $..., 0o...
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '\'', end: '[^\\\\]\'',
- illegal: '[^\\\\][^\']'
- },
- {className: 'symbol', begin: '^[A-Za-z0-9_.$]+:'},
- {className: 'meta', begin: '#', end: '$'},
- { // подстановка в «.macro»
- className: 'subst',
- begin: '@[0-9]+'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/awk.js b/swh/web/static/jssources/highlight.js/lib/languages/awk.js
deleted file mode 100644
index 05266d3e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/awk.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module.exports = function(hljs) {
- var VARIABLE = {
- className: 'variable',
- variants: [
- {begin: /\$[\w\d#@][\w\d_]*/},
- {begin: /\$\{(.*?)}/}
- ]
- };
- var KEYWORDS = 'BEGIN END if else while do for in break continue delete next nextfile function func exit|10';
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- {
- begin: /(u|b)?r?'''/, end: /'''/,
- relevance: 10
- },
- {
- begin: /(u|b)?r?"""/, end: /"""/,
- relevance: 10
- },
- {
- begin: /(u|r|ur)'/, end: /'/,
- relevance: 10
- },
- {
- begin: /(u|r|ur)"/, end: /"/,
- relevance: 10
- },
- {
- begin: /(b|br)'/, end: /'/
- },
- {
- begin: /(b|br)"/, end: /"/
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- };
- return {
- keywords: {
- keyword: KEYWORDS
- },
- contains: [
- VARIABLE,
- STRING,
- hljs.REGEXP_MODE,
- hljs.HASH_COMMENT_MODE,
- hljs.NUMBER_MODE
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/axapta.js b/swh/web/static/jssources/highlight.js/lib/languages/axapta.js
deleted file mode 100644
index 9f03de6d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/axapta.js
+++ /dev/null
@@ -1,30 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: 'false int abstract private char boolean static null if for true ' +
- 'while long throw finally protected final return void enum else ' +
- 'break new catch byte super case short default double public try this switch ' +
- 'continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count ' +
- 'order group by asc desc index hint like dispaly edit client server ttsbegin ' +
- 'ttscommit str real date container anytype common div mod',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'meta',
- begin: '#', end: '$'
- },
- {
- className: 'class',
- beginKeywords: 'class interface', end: '{', excludeEnd: true,
- illegal: ':',
- contains: [
- {beginKeywords: 'extends implements'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/bash.js b/swh/web/static/jssources/highlight.js/lib/languages/bash.js
deleted file mode 100644
index ab9b1141..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/bash.js
+++ /dev/null
@@ -1,74 +0,0 @@
-module.exports = function(hljs) {
- var VAR = {
- className: 'variable',
- variants: [
- {begin: /\$[\w\d#@][\w\d_]*/},
- {begin: /\$\{(.*?)}/}
- ]
- };
- var QUOTE_STRING = {
- className: 'string',
- begin: /"/, end: /"/,
- contains: [
- hljs.BACKSLASH_ESCAPE,
- VAR,
- {
- className: 'variable',
- begin: /\$\(/, end: /\)/,
- contains: [hljs.BACKSLASH_ESCAPE]
- }
- ]
- };
- var APOS_STRING = {
- className: 'string',
- begin: /'/, end: /'/
- };
-
- return {
- aliases: ['sh', 'zsh'],
- lexemes: /\b-?[a-z\._]+\b/,
- keywords: {
- keyword:
- 'if then else elif fi for while in do done case esac function',
- literal:
- 'true false',
- built_in:
- // Shell built-ins
- // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
- 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' +
- 'trap umask unset ' +
- // Bash built-ins
- 'alias bind builtin caller command declare echo enable help let local logout mapfile printf ' +
- 'read readarray source type typeset ulimit unalias ' +
- // Shell modifiers
- 'set shopt ' +
- // Zsh built-ins
- 'autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ' +
- 'compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate ' +
- 'fc fg float functions getcap getln history integer jobs kill limit log noglob popd print ' +
- 'pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit ' +
- 'unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof ' +
- 'zpty zregexparse zsocket zstyle ztcp',
- _:
- '-ne -eq -lt -gt -f -d -e -s -l -a' // relevance booster
- },
- contains: [
- {
- className: 'meta',
- begin: /^#![^\n]+sh\s*$/,
- relevance: 10
- },
- {
- className: 'function',
- begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
- returnBegin: true,
- contains: [hljs.inherit(hljs.TITLE_MODE, {begin: /\w[\w\d_]*/})],
- relevance: 0
- },
- hljs.HASH_COMMENT_MODE,
- QUOTE_STRING,
- APOS_STRING,
- VAR
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/basic.js b/swh/web/static/jssources/highlight.js/lib/languages/basic.js
deleted file mode 100644
index 9efd05fd..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/basic.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- illegal: '^\.',
- // Support explicitely typed variables that end with $%! or #.
- lexemes: '[a-zA-Z][a-zA-Z0-9_\$\%\!\#]*',
- keywords: {
- keyword:
- 'ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE ' +
- 'CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ ' +
- 'DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ ' +
- 'EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO ' +
- 'HEX$ IF|0 THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON ' +
- 'OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET ' +
- 'MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION ' +
- 'BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET ' +
- 'PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET ' +
- 'RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP ' +
- 'SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE ' +
- 'WEND WIDTH WINDOW WRITE XOR'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.COMMENT('REM', '$', {relevance: 10}),
- hljs.COMMENT('\'', '$', {relevance: 0}),
- {
- // Match line numbers
- className: 'symbol',
- begin: '^[0-9]+\ ',
- relevance: 10
- },
- {
- // Match typed numeric constants (1000, 12.34!, 1.2e5, 1.5#, 1.2D2)
- className: 'number',
- begin: '\\b([0-9]+[0-9edED\.]*[#\!]?)',
- relevance: 0
- },
- {
- // Match hexadecimal numbers (&Hxxxx)
- className: 'number',
- begin: '(\&[hH][0-9a-fA-F]{1,4})'
- },
- {
- // Match octal numbers (&Oxxxxxx)
- className: 'number',
- begin: '(\&[oO][0-7]{1,6})'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/bnf.js b/swh/web/static/jssources/highlight.js/lib/languages/bnf.js
deleted file mode 100644
index 08285f65..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/bnf.js
+++ /dev/null
@@ -1,28 +0,0 @@
-module.exports = function(hljs){
- return {
- contains: [
- // Attribute
- {
- className: 'attribute',
- begin: /, end: />/
- },
- // Specific
- {
- begin: /::=/,
- starts: {
- end: /$/,
- contains: [
- {
- begin: /, end: />/
- },
- // Common
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- }
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/brainfuck.js b/swh/web/static/jssources/highlight.js/lib/languages/brainfuck.js
deleted file mode 100644
index bd50040b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/brainfuck.js
+++ /dev/null
@@ -1,36 +0,0 @@
-module.exports = function(hljs){
- var LITERAL = {
- className: 'literal',
- begin: '[\\+\\-]',
- relevance: 0
- };
- return {
- aliases: ['bf'],
- contains: [
- hljs.COMMENT(
- '[^\\[\\]\\.,\\+\\-<> \r\n]',
- '[\\[\\]\\.,\\+\\-<> \r\n]',
- {
- returnEnd: true,
- relevance: 0
- }
- ),
- {
- className: 'title',
- begin: '[\\[\\]]',
- relevance: 0
- },
- {
- className: 'string',
- begin: '[\\.,]',
- relevance: 0
- },
- {
- // this mode works as the only relevance counter
- begin: /\+\+|\-\-/, returnBegin: true,
- contains: [LITERAL]
- },
- LITERAL
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/cal.js b/swh/web/static/jssources/highlight.js/lib/languages/cal.js
deleted file mode 100644
index 141d3623..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/cal.js
+++ /dev/null
@@ -1,79 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS =
- 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' +
- 'until while with var';
- var LITERALS = 'false true';
- var COMMENT_MODES = [
- hljs.C_LINE_COMMENT_MODE,
- hljs.COMMENT(
- /\{/,
- /\}/,
- {
- relevance: 0
- }
- ),
- hljs.COMMENT(
- /\(\*/,
- /\*\)/,
- {
- relevance: 10
- }
- )
- ];
- var STRING = {
- className: 'string',
- begin: /'/, end: /'/,
- contains: [{begin: /''/}]
- };
- var CHAR_STRING = {
- className: 'string', begin: /(#\d+)+/
- };
- var DATE = {
- className: 'number',
- begin: '\\b\\d+(\\.\\d+)?(DT|D|T)',
- relevance: 0
- };
- var DBL_QUOTED_VARIABLE = {
- className: 'string', // not a string technically but makes sense to be highlighted in the same style
- begin: '"',
- end: '"'
- };
-
- var PROCEDURE = {
- className: 'function',
- beginKeywords: 'procedure', end: /[:;]/,
- keywords: 'procedure|10',
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- contains: [STRING, CHAR_STRING]
- }
- ].concat(COMMENT_MODES)
- };
-
- var OBJECT = {
- className: 'class',
- begin: 'OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)',
- returnBegin: true,
- contains: [
- hljs.TITLE_MODE,
- PROCEDURE
- ]
- };
-
- return {
- case_insensitive: true,
- keywords: { keyword: KEYWORDS, literal: LITERALS },
- illegal: /\/\*/,
- contains: [
- STRING, CHAR_STRING,
- DATE, DBL_QUOTED_VARIABLE,
- hljs.NUMBER_MODE,
- OBJECT,
- PROCEDURE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/capnproto.js b/swh/web/static/jssources/highlight.js/lib/languages/capnproto.js
deleted file mode 100644
index 0a1470da..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/capnproto.js
+++ /dev/null
@@ -1,48 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['capnp'],
- keywords: {
- keyword:
- 'struct enum interface union group import using const annotation extends in of on as with from fixed',
- built_in:
- 'Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 ' +
- 'Text Data AnyPointer AnyStruct Capability List',
- literal:
- 'true false'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE,
- hljs.HASH_COMMENT_MODE,
- {
- className: 'meta',
- begin: /@0x[\w\d]{16};/,
- illegal: /\n/
- },
- {
- className: 'symbol',
- begin: /@\d+\b/
- },
- {
- className: 'class',
- beginKeywords: 'struct enum', end: /\{/,
- illegal: /\n/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- starts: {endsWithParent: true, excludeEnd: true} // hack: eating everything after the first title
- })
- ]
- },
- {
- className: 'class',
- beginKeywords: 'interface', end: /\{/,
- illegal: /\n/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- starts: {endsWithParent: true, excludeEnd: true} // hack: eating everything after the first title
- })
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ceylon.js b/swh/web/static/jssources/highlight.js/lib/languages/ceylon.js
deleted file mode 100644
index eb59f16d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ceylon.js
+++ /dev/null
@@ -1,66 +0,0 @@
-module.exports = function(hljs) {
- // 2.3. Identifiers and keywords
- var KEYWORDS =
- 'assembly module package import alias class interface object given value ' +
- 'assign void function new of extends satisfies abstracts in out return ' +
- 'break continue throw assert dynamic if else switch case for while try ' +
- 'catch finally then let this outer super is exists nonempty';
- // 7.4.1 Declaration Modifiers
- var DECLARATION_MODIFIERS =
- 'shared abstract formal default actual variable late native deprecated' +
- 'final sealed annotation suppressWarnings small';
- // 7.4.2 Documentation
- var DOCUMENTATION =
- 'doc by license see throws tagged';
- var SUBST = {
- className: 'subst', excludeBegin: true, excludeEnd: true,
- begin: /``/, end: /``/,
- keywords: KEYWORDS,
- relevance: 10
- };
- var EXPRESSIONS = [
- {
- // verbatim string
- className: 'string',
- begin: '"""',
- end: '"""',
- relevance: 10
- },
- {
- // string literal or template
- className: 'string',
- begin: '"', end: '"',
- contains: [SUBST]
- },
- {
- // character literal
- className: 'string',
- begin: "'",
- end: "'"
- },
- {
- // numeric literal
- className: 'number',
- begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
- relevance: 0
- }
- ];
- SUBST.contains = EXPRESSIONS;
-
- return {
- keywords: {
- keyword: KEYWORDS + ' ' + DECLARATION_MODIFIERS,
- meta: DOCUMENTATION
- },
- illegal: '\\$[^01]|#[^0-9a-fA-F]',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.COMMENT('/\\*', '\\*/', {contains: ['self']}),
- {
- // compiler annotation
- className: 'meta',
- begin: '@[a-z]\\w*(?:\\:\"[^\"]*\")?'
- }
- ].concat(EXPRESSIONS)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/clean.js b/swh/web/static/jssources/highlight.js/lib/languages/clean.js
deleted file mode 100644
index b398d08b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/clean.js
+++ /dev/null
@@ -1,26 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['clean','icl','dcl'],
- keywords: {
- keyword:
- 'if let in with where case of class instance otherwise ' +
- 'implementation definition system module from import qualified as ' +
- 'special code inline foreign export ccall stdcall generic derive ' +
- 'infix infixl infixr',
- built_in:
- 'Int Real Char Bool',
- literal:
- 'True False'
- },
- contains: [
-
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
-
- {begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'} // relevance booster
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/clojure-repl.js b/swh/web/static/jssources/highlight.js/lib/languages/clojure-repl.js
deleted file mode 100644
index 7b5633c4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/clojure-repl.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- {
- className: 'meta',
- begin: /^([\w.-]+|\s*#_)?=>/,
- starts: {
- end: /$/,
- subLanguage: 'clojure'
- }
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/clojure.js b/swh/web/static/jssources/highlight.js/lib/languages/clojure.js
deleted file mode 100644
index 27a46dbe..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/clojure.js
+++ /dev/null
@@ -1,95 +0,0 @@
-module.exports = function(hljs) {
- var keywords = {
- 'builtin-name':
- // Clojure keywords
- 'def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem '+
- 'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? '+
- 'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? '+
- 'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? '+
- 'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . '+
- 'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last '+
- 'drop-while while intern condp case reduced cycle split-at split-with repeat replicate '+
- 'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext '+
- 'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends '+
- 'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler '+
- 'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter '+
- 'monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or '+
- 'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert '+
- 'peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast '+
- 'sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import '+
- 'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! '+
- 'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger '+
- 'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline '+
- 'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking '+
- 'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! '+
- 'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! '+
- 'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty '+
- 'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list '+
- 'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer '+
- 'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate '+
- 'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta '+
- 'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize'
- };
-
- var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>\'';
- var SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
- var SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?';
-
- var SYMBOL = {
- begin: SYMBOL_RE,
- relevance: 0
- };
- var NUMBER = {
- className: 'number', begin: SIMPLE_NUMBER_RE,
- relevance: 0
- };
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null});
- var COMMENT = hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- );
- var LITERAL = {
- className: 'literal',
- begin: /\b(true|false|nil)\b/
- };
- var COLLECTION = {
- begin: '[\\[\\{]', end: '[\\]\\}]'
- };
- var HINT = {
- className: 'comment',
- begin: '\\^' + SYMBOL_RE
- };
- var HINT_COL = hljs.COMMENT('\\^\\{', '\\}');
- var KEY = {
- className: 'symbol',
- begin: '[:]{1,2}' + SYMBOL_RE
- };
- var LIST = {
- begin: '\\(', end: '\\)'
- };
- var BODY = {
- endsWithParent: true,
- relevance: 0
- };
- var NAME = {
- keywords: keywords,
- lexemes: SYMBOL_RE,
- className: 'name', begin: SYMBOL_RE,
- starts: BODY
- };
- var DEFAULT_CONTAINS = [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL, SYMBOL];
-
- LIST.contains = [hljs.COMMENT('comment', ''), NAME, BODY];
- BODY.contains = DEFAULT_CONTAINS;
- COLLECTION.contains = DEFAULT_CONTAINS;
- HINT_COL.contains = [COLLECTION];
-
- return {
- aliases: ['clj'],
- illegal: /\S/,
- contains: [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/cmake.js b/swh/web/static/jssources/highlight.js/lib/languages/cmake.js
deleted file mode 100644
index faca2d9b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/cmake.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['cmake.in'],
- case_insensitive: true,
- keywords: {
- keyword:
- // scripting commands
- 'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments ' +
- 'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ' +
- 'endwhile execute_process file find_file find_library find_package find_path ' +
- 'find_program foreach function get_cmake_property get_directory_property ' +
- 'get_filename_component get_property if include include_guard list macro ' +
- 'mark_as_advanced math message option return separate_arguments ' +
- 'set_directory_properties set_property set site_name string unset variable_watch while ' +
- // project commands
- 'add_compile_definitions add_compile_options add_custom_command add_custom_target ' +
- 'add_definitions add_dependencies add_executable add_library add_link_options ' +
- 'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist ' +
- 'define_property enable_language enable_testing export fltk_wrap_ui ' +
- 'get_source_file_property get_target_property get_test_property include_directories ' +
- 'include_external_msproject include_regular_expression install link_directories ' +
- 'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions ' +
- 'set_source_files_properties set_target_properties set_tests_properties source_group ' +
- 'target_compile_definitions target_compile_features target_compile_options ' +
- 'target_include_directories target_link_directories target_link_libraries ' +
- 'target_link_options target_sources try_compile try_run ' +
- // CTest commands
- 'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ' +
- 'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ' +
- 'ctest_test ctest_update ctest_upload ' +
- // deprecated commands
- 'build_name exec_program export_library_dependencies install_files install_programs ' +
- 'install_targets load_command make_directory output_required_files remove ' +
- 'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file ' +
- 'qt5_use_modules qt5_use_package qt5_wrap_cpp ' +
- // core keywords
- 'on off true false and or not command policy target test exists is_newer_than ' +
- 'is_directory is_symlink is_absolute matches less greater equal less_equal ' +
- 'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less ' +
- 'version_greater version_equal version_less_equal version_greater_equal in_list defined'
- },
- contains: [
- {
- className: 'variable',
- begin: '\\${', end: '}'
- },
- hljs.HASH_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/coffeescript.js b/swh/web/static/jssources/highlight.js/lib/languages/coffeescript.js
deleted file mode 100644
index 92883a74..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/coffeescript.js
+++ /dev/null
@@ -1,145 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- // JS keywords
- 'in if for while finally new do return else break catch instanceof throw try this ' +
- 'switch continue typeof delete debugger super yield import export from as default await ' +
- // Coffee keywords
- 'then unless until loop of by when and or is isnt not',
- literal:
- // JS literals
- 'true false null undefined ' +
- // Coffee literals
- 'yes no on off',
- built_in:
- 'npm require console print module global window document'
- };
- var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
- var SUBST = {
- className: 'subst',
- begin: /#\{/, end: /}/,
- keywords: KEYWORDS
- };
- var EXPRESSIONS = [
- hljs.BINARY_NUMBER_MODE,
- hljs.inherit(hljs.C_NUMBER_MODE, {starts: {end: '(\\s*/)?', relevance: 0}}), // a number tries to eat the following slash to prevent treating it as a regexp
- {
- className: 'string',
- variants: [
- {
- begin: /'''/, end: /'''/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: /'/, end: /'/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: /"""/, end: /"""/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- },
- {
- begin: /"/, end: /"/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- }
- ]
- },
- {
- className: 'regexp',
- variants: [
- {
- begin: '///', end: '///',
- contains: [SUBST, hljs.HASH_COMMENT_MODE]
- },
- {
- begin: '//[gim]*',
- relevance: 0
- },
- {
- // regex can't start with space to parse x / 2 / 3 as two divisions
- // regex can't start with *, and it supports an "illegal" in the main mode
- begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/
- }
- ]
- },
- {
- begin: '@' + JS_IDENT_RE // relevance booster
- },
- {
- subLanguage: 'javascript',
- excludeBegin: true, excludeEnd: true,
- variants: [
- {
- begin: '```', end: '```',
- },
- {
- begin: '`', end: '`',
- }
- ]
- }
- ];
- SUBST.contains = EXPRESSIONS;
-
- var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: JS_IDENT_RE});
- var PARAMS_RE = '(\\(.*\\))?\\s*\\B[-=]>';
- var PARAMS = {
- className: 'params',
- begin: '\\([^\\(]', returnBegin: true,
- /* We need another contained nameless mode to not have every nested
- pair of parens to be called "params" */
- contains: [{
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- contains: ['self'].concat(EXPRESSIONS)
- }]
- };
-
- return {
- aliases: ['coffee', 'cson', 'iced'],
- keywords: KEYWORDS,
- illegal: /\/\*/,
- contains: EXPRESSIONS.concat([
- hljs.COMMENT('###', '###'),
- hljs.HASH_COMMENT_MODE,
- {
- className: 'function',
- begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + PARAMS_RE, end: '[-=]>',
- returnBegin: true,
- contains: [TITLE, PARAMS]
- },
- {
- // anonymous function start
- begin: /[:\(,=]\s*/,
- relevance: 0,
- contains: [
- {
- className: 'function',
- begin: PARAMS_RE, end: '[-=]>',
- returnBegin: true,
- contains: [PARAMS]
- }
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class',
- end: '$',
- illegal: /[:="\[\]]/,
- contains: [
- {
- beginKeywords: 'extends',
- endsWithParent: true,
- illegal: /[:="\[\]]/,
- contains: [TITLE]
- },
- TITLE
- ]
- },
- {
- begin: JS_IDENT_RE + ':', end: ':',
- returnBegin: true, returnEnd: true,
- relevance: 0
- }
- ])
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/coq.js b/swh/web/static/jssources/highlight.js/lib/languages/coq.js
deleted file mode 100644
index 0744ac6c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/coq.js
+++ /dev/null
@@ -1,66 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword:
- '_ as at cofix else end exists exists2 fix for forall fun if IF in let ' +
- 'match mod Prop return Set then Type using where with ' +
- 'Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo ' +
- 'Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion ' +
- 'Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture ' +
- 'Conjectures Constant constr Constraint Constructors Context Corollary ' +
- 'CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent' +
- 'Derive Drop eauto End Equality Eval Example Existential Existentials ' +
- 'Existing Export exporting Extern Extract Extraction Fact Field Fields File ' +
- 'Fixpoint Focus for From Function Functional Generalizable Global Goal Grab ' +
- 'Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident ' +
- 'Identity If Immediate Implicit Import Include Inductive Infix Info Initial ' +
- 'Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear ' +
- 'Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML ' +
- 'Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation ' +
- 'Obligations Opaque Open Optimize Options Parameter Parameters Parametric ' +
- 'Path Paths pattern Polymorphic Preterm Print Printing Program Projections ' +
- 'Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark ' +
- 'Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save ' +
- 'Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern ' +
- 'SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies ' +
- 'Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time ' +
- 'Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused ' +
- 'Unfold Universe Universes Unset Unshelve using Variable Variables Variant ' +
- 'Verbose Visibility where with',
- built_in:
- 'abstract absurd admit after apply as assert assumption at auto autorewrite ' +
- 'autounfold before bottom btauto by case case_eq cbn cbv change ' +
- 'classical_left classical_right clear clearbody cofix compare compute ' +
- 'congruence constr_eq constructor contradict contradiction cut cutrewrite ' +
- 'cycle decide decompose dependent destruct destruction dintuition ' +
- 'discriminate discrR do double dtauto eapply eassumption eauto ecase ' +
- 'econstructor edestruct ediscriminate eelim eexact eexists einduction ' +
- 'einjection eleft elim elimtype enough equality erewrite eright ' +
- 'esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail ' +
- 'field field_simplify field_simplify_eq first firstorder fix fold fourier ' +
- 'functional generalize generalizing gfail give_up has_evar hnf idtac in ' +
- 'induction injection instantiate intro intro_pattern intros intuition ' +
- 'inversion inversion_clear is_evar is_var lapply lazy left lia lra move ' +
- 'native_compute nia nsatz omega once pattern pose progress proof psatz quote ' +
- 'record red refine reflexivity remember rename repeat replace revert ' +
- 'revgoals rewrite rewrite_strat right ring ring_simplify rtauto set ' +
- 'setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry ' +
- 'setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve ' +
- 'specialize split split_Rabs split_Rmult stepl stepr subst sum swap ' +
- 'symmetry tactic tauto time timeout top transitivity trivial try tryif ' +
- 'unfold unify until using vm_compute with'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.COMMENT('\\(\\*', '\\*\\)'),
- hljs.C_NUMBER_MODE,
- {
- className: 'type',
- excludeBegin: true,
- begin: '\\|\\s*',
- end: '\\w+'
- },
- {begin: /[-=]>/} // relevance booster
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/cos.js b/swh/web/static/jssources/highlight.js/lib/languages/cos.js
deleted file mode 100644
index d56a7068..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/cos.js
+++ /dev/null
@@ -1,123 +0,0 @@
-module.exports = function cos (hljs) {
-
- var STRINGS = {
- className: 'string',
- variants: [
- {
- begin: '"',
- end: '"',
- contains: [{ // escaped
- begin: "\"\"",
- relevance: 0
- }]
- }
- ]
- };
-
- var NUMBERS = {
- className: "number",
- begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
- relevance: 0
- };
-
- var COS_KEYWORDS =
- 'property parameter class classmethod clientmethod extends as break ' +
- 'catch close continue do d|0 else elseif for goto halt hang h|0 if job ' +
- 'j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 ' +
- 'tcommit throw trollback try tstart use view while write w|0 xecute x|0 ' +
- 'zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert ' +
- 'zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit ' +
- 'zsync ascii';
-
- // registered function - no need in them due to all functions are highlighted,
- // but I'll just leave this here.
-
- //"$bit", "$bitcount",
- //"$bitfind", "$bitlogic", "$case", "$char", "$classmethod", "$classname",
- //"$compile", "$data", "$decimal", "$double", "$extract", "$factor",
- //"$find", "$fnumber", "$get", "$increment", "$inumber", "$isobject",
- //"$isvaliddouble", "$isvalidnum", "$justify", "$length", "$list",
- //"$listbuild", "$listdata", "$listfind", "$listfromstring", "$listget",
- //"$listlength", "$listnext", "$listsame", "$listtostring", "$listvalid",
- //"$locate", "$match", "$method", "$name", "$nconvert", "$next",
- //"$normalize", "$now", "$number", "$order", "$parameter", "$piece",
- //"$prefetchoff", "$prefetchon", "$property", "$qlength", "$qsubscript",
- //"$query", "$random", "$replace", "$reverse", "$sconvert", "$select",
- //"$sortbegin", "$sortend", "$stack", "$text", "$translate", "$view",
- //"$wascii", "$wchar", "$wextract", "$wfind", "$wiswide", "$wlength",
- //"$wreverse", "$xecute", "$zabs", "$zarccos", "$zarcsin", "$zarctan",
- //"$zcos", "$zcot", "$zcsc", "$zdate", "$zdateh", "$zdatetime",
- //"$zdatetimeh", "$zexp", "$zhex", "$zln", "$zlog", "$zpower", "$zsec",
- //"$zsin", "$zsqr", "$ztan", "$ztime", "$ztimeh", "$zboolean",
- //"$zconvert", "$zcrc", "$zcyc", "$zdascii", "$zdchar", "$zf",
- //"$ziswide", "$zlascii", "$zlchar", "$zname", "$zposition", "$zqascii",
- //"$zqchar", "$zsearch", "$zseek", "$zstrip", "$zwascii", "$zwchar",
- //"$zwidth", "$zwpack", "$zwbpack", "$zwunpack", "$zwbunpack", "$zzenkaku",
- //"$change", "$mv", "$mvat", "$mvfmt", "$mvfmts", "$mviconv",
- //"$mviconvs", "$mvinmat", "$mvlover", "$mvoconv", "$mvoconvs", "$mvraise",
- //"$mvtrans", "$mvv", "$mvname", "$zbitand", "$zbitcount", "$zbitfind",
- //"$zbitget", "$zbitlen", "$zbitnot", "$zbitor", "$zbitset", "$zbitstr",
- //"$zbitxor", "$zincrement", "$znext", "$zorder", "$zprevious", "$zsort",
- //"device", "$ecode", "$estack", "$etrap", "$halt", "$horolog",
- //"$io", "$job", "$key", "$namespace", "$principal", "$quit", "$roles",
- //"$storage", "$system", "$test", "$this", "$tlevel", "$username",
- //"$x", "$y", "$za", "$zb", "$zchild", "$zeof", "$zeos", "$zerror",
- //"$zhorolog", "$zio", "$zjob", "$zmode", "$znspace", "$zparent", "$zpi",
- //"$zpos", "$zreference", "$zstorage", "$ztimestamp", "$ztimezone",
- //"$ztrap", "$zversion"
-
- return {
- case_insensitive: true,
- aliases: ["cos", "cls"],
- keywords: COS_KEYWORDS,
- contains: [
- NUMBERS,
- STRINGS,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: "comment",
- begin: /;/, end: "$",
- relevance: 0
- },
- { // Functions and user-defined functions: write $ztime(60*60*3), $$myFunc(10), $$^Val(1)
- className: "built_in",
- begin: /(?:\$\$?|\.\.)\^?[a-zA-Z]+/
- },
- { // Macro command: quit $$$OK
- className: "built_in",
- begin: /\$\$\$[a-zA-Z]+/
- },
- { // Special (global) variables: write %request.Content; Built-in classes: %Library.Integer
- className: "built_in",
- begin: /%[a-z]+(?:\.[a-z]+)*/
- },
- { // Global variable: set ^globalName = 12 write ^globalName
- className: "symbol",
- begin: /\^%?[a-zA-Z][\w]*/
- },
- { // Some control constructions: do ##class(Package.ClassName).Method(), ##super()
- className: "keyword",
- begin: /##class|##super|#define|#dim/
- },
-
- // sub-languages: are not fully supported by hljs by 11/15/2015
- // left for the future implementation.
- {
- begin: /&sql\(/, end: /\)/,
- excludeBegin: true, excludeEnd: true,
- subLanguage: "sql"
- },
- {
- begin: /&(js|jscript|javascript), end: />/,
- excludeBegin: true, excludeEnd: true,
- subLanguage: "javascript"
- },
- {
- // this brakes first and last tag, but this is the only way to embed a valid html
- begin: /&html<\s*, end: />\s*>/,
- subLanguage: "xml"
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/cpp.js b/swh/web/static/jssources/highlight.js/lib/languages/cpp.js
deleted file mode 100644
index 56abd8e7..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/cpp.js
+++ /dev/null
@@ -1,185 +0,0 @@
-module.exports = function(hljs) {
- var CPP_PRIMITIVE_TYPES = {
- className: 'keyword',
- begin: '\\b[a-z\\d_]*_t\\b'
- };
-
- var STRINGS = {
- className: 'string',
- variants: [
- {
- begin: '(u8?|U|L)?"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- { begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\((?:.|\n)*?\)\1"/ },
- {
- begin: '\'\\\\?.', end: '\'',
- illegal: '.'
- }
- ]
- };
-
- var NUMBERS = {
- className: 'number',
- variants: [
- { begin: '\\b(0b[01\']+)' },
- { begin: '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)(u|U|l|L|ul|UL|f|F|b|B)' },
- { begin: '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)' }
- ],
- relevance: 0
- };
-
- var PREPROCESSOR = {
- className: 'meta',
- begin: /#\s*[a-z]+\b/, end: /$/,
- keywords: {
- 'meta-keyword':
- 'if else elif endif define undef warning error line ' +
- 'pragma ifdef ifndef include'
- },
- contains: [
- {
- begin: /\\\n/, relevance: 0
- },
- hljs.inherit(STRINGS, {className: 'meta-string'}),
- {
- className: 'meta-string',
- begin: /<[^\n>]*>/, end: /$/,
- illegal: '\\n',
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-
- var FUNCTION_TITLE = hljs.IDENT_RE + '\\s*\\(';
-
- var CPP_KEYWORDS = {
- keyword: 'int float while private char catch import module export virtual operator sizeof ' +
- 'dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace ' +
- 'unsigned long volatile static protected bool template mutable if public friend ' +
- 'do goto auto void enum else break extern using asm case typeid ' +
- 'short reinterpret_cast|10 default double register explicit signed typename try this ' +
- 'switch continue inline delete alignof constexpr decltype ' +
- 'noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary ' +
- 'atomic_bool atomic_char atomic_schar ' +
- 'atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong ' +
- 'atomic_ullong new throw return ' +
- 'and or not',
- built_in: 'std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream ' +
- 'auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set ' +
- 'unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos ' +
- 'asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp ' +
- 'fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ' +
- 'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow ' +
- 'printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp ' +
- 'strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan ' +
- 'vfprintf vprintf vsprintf endl initializer_list unique_ptr',
- literal: 'true false nullptr NULL'
- };
-
- var EXPRESSION_CONTAINS = [
- CPP_PRIMITIVE_TYPES,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMBERS,
- STRINGS
- ];
-
- return {
- aliases: ['c', 'cc', 'h', 'c++', 'h++', 'hpp'],
- keywords: CPP_KEYWORDS,
- illegal: '',
- contains: EXPRESSION_CONTAINS.concat([
- PREPROCESSOR,
- {
- begin: '\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>',
- keywords: CPP_KEYWORDS,
- contains: ['self', CPP_PRIMITIVE_TYPES]
- },
- {
- begin: hljs.IDENT_RE + '::',
- keywords: CPP_KEYWORDS
- },
- {
- // This mode covers expression context where we can't expect a function
- // definition and shouldn't highlight anything that looks like one:
- // `return some()`, `else if()`, `(x*sum(1, 2))`
- variants: [
- {begin: /=/, end: /;/},
- {begin: /\(/, end: /\)/},
- {beginKeywords: 'new throw return else', end: /;/}
- ],
- keywords: CPP_KEYWORDS,
- contains: EXPRESSION_CONTAINS.concat([
- {
- begin: /\(/, end: /\)/,
- keywords: CPP_KEYWORDS,
- contains: EXPRESSION_CONTAINS.concat(['self']),
- relevance: 0
- }
- ]),
- relevance: 0
- },
- {
- className: 'function',
- begin: '(' + hljs.IDENT_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE,
- returnBegin: true, end: /[{;=]/,
- excludeEnd: true,
- keywords: CPP_KEYWORDS,
- illegal: /[^\w\s\*&]/,
- contains: [
- {
- begin: FUNCTION_TITLE, returnBegin: true,
- contains: [hljs.TITLE_MODE],
- relevance: 0
- },
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- keywords: CPP_KEYWORDS,
- relevance: 0,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRINGS,
- NUMBERS,
- CPP_PRIMITIVE_TYPES,
- // Count matching parentheses.
- {
- begin: /\(/, end: /\)/,
- keywords: CPP_KEYWORDS,
- relevance: 0,
- contains: [
- 'self',
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRINGS,
- NUMBERS,
- CPP_PRIMITIVE_TYPES
- ]
- }
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- PREPROCESSOR
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class struct', end: /[{;:]/,
- contains: [
- {begin: /, end: />/, contains: ['self']}, // skip generic stuff
- hljs.TITLE_MODE
- ]
- }
- ]),
- exports: {
- preprocessor: PREPROCESSOR,
- strings: STRINGS,
- keywords: CPP_KEYWORDS
- }
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/crmsh.js b/swh/web/static/jssources/highlight.js/lib/languages/crmsh.js
deleted file mode 100644
index 47aac2da..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/crmsh.js
+++ /dev/null
@@ -1,93 +0,0 @@
-module.exports = function(hljs) {
- var RESOURCES = 'primitive rsc_template';
-
- var COMMANDS = 'group clone ms master location colocation order fencing_topology ' +
- 'rsc_ticket acl_target acl_group user role ' +
- 'tag xml';
-
- var PROPERTY_SETS = 'property rsc_defaults op_defaults';
-
- var KEYWORDS = 'params meta operations op rule attributes utilization';
-
- var OPERATORS = 'read write deny defined not_defined in_range date spec in ' +
- 'ref reference attribute type xpath version and or lt gt tag ' +
- 'lte gte eq ne \\';
-
- var TYPES = 'number string';
-
- var LITERALS = 'Master Started Slave Stopped start promote demote stop monitor true false';
-
- return {
- aliases: ['crm', 'pcmk'],
- case_insensitive: true,
- keywords: {
- keyword: KEYWORDS + ' ' + OPERATORS + ' ' + TYPES,
- literal: LITERALS
- },
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- beginKeywords: 'node',
- starts: {
- end: '\\s*([\\w_-]+:)?',
- starts: {
- className: 'title',
- end: '\\s*[\\$\\w_][\\w_-]*'
- }
- }
- },
- {
- beginKeywords: RESOURCES,
- starts: {
- className: 'title',
- end: '\\s*[\\$\\w_][\\w_-]*',
- starts: {
- end: '\\s*@?[\\w_][\\w_\\.:-]*'
- }
- }
- },
- {
- begin: '\\b(' + COMMANDS.split(' ').join('|') + ')\\s+',
- keywords: COMMANDS,
- starts: {
- className: 'title',
- end: '[\\$\\w_][\\w_-]*'
- }
- },
- {
- beginKeywords: PROPERTY_SETS,
- starts: {
- className: 'title',
- end: '\\s*([\\w_-]+:)?'
- }
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'meta',
- begin: '(ocf|systemd|service|lsb):[\\w_:-]+',
- relevance: 0
- },
- {
- className: 'number',
- begin: '\\b\\d+(\\.\\d+)?(ms|s|h|m)?',
- relevance: 0
- },
- {
- className: 'literal',
- begin: '[-]?(infinity|inf)',
- relevance: 0
- },
- {
- className: 'attr',
- begin: /([A-Za-z\$_\#][\w_-]+)=/,
- relevance: 0
- },
- {
- className: 'tag',
- begin: '?',
- end: '/?>',
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/crystal.js b/swh/web/static/jssources/highlight.js/lib/languages/crystal.js
deleted file mode 100644
index c090aba6..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/crystal.js
+++ /dev/null
@@ -1,187 +0,0 @@
-module.exports = function(hljs) {
- var INT_SUFFIX = '(_*[ui](8|16|32|64|128))?';
- var FLOAT_SUFFIX = '(_*f(32|64))?';
- var CRYSTAL_IDENT_RE = '[a-zA-Z_]\\w*[!?=]?';
- var CRYSTAL_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?';
- var CRYSTAL_PATH_RE = '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?';
- var CRYSTAL_KEYWORDS = {
- keyword:
- 'abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if ' +
- 'include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? ' +
- 'return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield ' +
- '__DIR__ __END_LINE__ __FILE__ __LINE__',
- literal: 'false nil true'
- };
- var SUBST = {
- className: 'subst',
- begin: '#{', end: '}',
- keywords: CRYSTAL_KEYWORDS
- };
- var EXPANSION = {
- className: 'template-variable',
- variants: [
- {begin: '\\{\\{', end: '\\}\\}'},
- {begin: '\\{%', end: '%\\}'}
- ],
- keywords: CRYSTAL_KEYWORDS
- };
-
- function recursiveParen(begin, end) {
- var
- contains = [{begin: begin, end: end}];
- contains[0].contains = contains;
- return contains;
- }
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {begin: /'/, end: /'/},
- {begin: /"/, end: /"/},
- {begin: /`/, end: /`/},
- {begin: '%[Qwi]?\\(', end: '\\)', contains: recursiveParen('\\(', '\\)')},
- {begin: '%[Qwi]?\\[', end: '\\]', contains: recursiveParen('\\[', '\\]')},
- {begin: '%[Qwi]?{', end: '}', contains: recursiveParen('{', '}')},
- {begin: '%[Qwi]?<', end: '>', contains: recursiveParen('<', '>')},
- {begin: '%[Qwi]?\\|', end: '\\|'},
- {begin: /<<-\w+$/, end: /^\s*\w+$/},
- ],
- relevance: 0,
- };
- var Q_STRING = {
- className: 'string',
- variants: [
- {begin: '%q\\(', end: '\\)', contains: recursiveParen('\\(', '\\)')},
- {begin: '%q\\[', end: '\\]', contains: recursiveParen('\\[', '\\]')},
- {begin: '%q{', end: '}', contains: recursiveParen('{', '}')},
- {begin: '%q<', end: '>', contains: recursiveParen('<', '>')},
- {begin: '%q\\|', end: '\\|'},
- {begin: /<<-'\w+'$/, end: /^\s*\w+$/},
- ],
- relevance: 0,
- };
- var REGEXP = {
- begin: '(?!%})(' + hljs.RE_STARTERS_RE + '|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*',
- keywords: 'case if select unless until when while',
- contains: [
- {
- className: 'regexp',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {begin: '//[a-z]*', relevance: 0},
- {begin: '/(?!\\/)', end: '/[a-z]*'},
- ]
- }
- ],
- relevance: 0
- };
- var REGEXP2 = {
- className: 'regexp',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {begin: '%r\\(', end: '\\)', contains: recursiveParen('\\(', '\\)')},
- {begin: '%r\\[', end: '\\]', contains: recursiveParen('\\[', '\\]')},
- {begin: '%r{', end: '}', contains: recursiveParen('{', '}')},
- {begin: '%r<', end: '>', contains: recursiveParen('<', '>')},
- {begin: '%r\\|', end: '\\|'},
- ],
- relevance: 0
- };
- var ATTRIBUTE = {
- className: 'meta',
- begin: '@\\[', end: '\\]',
- contains: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, {className: 'meta-string'})
- ]
- };
- var CRYSTAL_DEFAULT_CONTAINS = [
- EXPANSION,
- STRING,
- Q_STRING,
- REGEXP2,
- REGEXP,
- ATTRIBUTE,
- hljs.HASH_COMMENT_MODE,
- {
- className: 'class',
- beginKeywords: 'class module struct', end: '$|;',
- illegal: /=/,
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.inherit(hljs.TITLE_MODE, {begin: CRYSTAL_PATH_RE}),
- {begin: '<'} // relevance booster for inheritance
- ]
- },
- {
- className: 'class',
- beginKeywords: 'lib enum union', end: '$|;',
- illegal: /=/,
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.inherit(hljs.TITLE_MODE, {begin: CRYSTAL_PATH_RE}),
- ],
- relevance: 10
- },
- {
- beginKeywords: 'annotation', end: '$|;',
- illegal: /=/,
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.inherit(hljs.TITLE_MODE, {begin: CRYSTAL_PATH_RE}),
- ],
- relevance: 10
- },
- {
- className: 'function',
- beginKeywords: 'def', end: /\B\b/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- begin: CRYSTAL_METHOD_RE,
- endsParent: true
- })
- ]
- },
- {
- className: 'function',
- beginKeywords: 'fun macro', end: /\B\b/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- begin: CRYSTAL_METHOD_RE,
- endsParent: true
- })
- ],
- relevance: 5
- },
- {
- className: 'symbol',
- begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:',
- relevance: 0
- },
- {
- className: 'symbol',
- begin: ':',
- contains: [STRING, {begin: CRYSTAL_METHOD_RE}],
- relevance: 0
- },
- {
- className: 'number',
- variants: [
- { begin: '\\b0b([01_]+)' + INT_SUFFIX },
- { begin: '\\b0o([0-7_]+)' + INT_SUFFIX },
- { begin: '\\b0x([A-Fa-f0-9_]+)' + INT_SUFFIX },
- { begin: '\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_*[-+]?[0-9_]*)?' + FLOAT_SUFFIX + '(?!_)' },
- { begin: '\\b([1-9][0-9_]*|0)' + INT_SUFFIX }
- ],
- relevance: 0
- }
- ];
- SUBST.contains = CRYSTAL_DEFAULT_CONTAINS;
- EXPANSION.contains = CRYSTAL_DEFAULT_CONTAINS.slice(1); // without EXPANSION
-
- return {
- aliases: ['cr'],
- lexemes: CRYSTAL_IDENT_RE,
- keywords: CRYSTAL_KEYWORDS,
- contains: CRYSTAL_DEFAULT_CONTAINS
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/cs.js b/swh/web/static/jssources/highlight.js/lib/languages/cs.js
deleted file mode 100644
index 95c38d43..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/cs.js
+++ /dev/null
@@ -1,184 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- // Normal keywords.
- 'abstract as base bool break byte case catch char checked const continue decimal ' +
- 'default delegate do double enum event explicit extern finally fixed float ' +
- 'for foreach goto if implicit in int interface internal is lock long nameof ' +
- 'object operator out override params private protected public readonly ref sbyte ' +
- 'sealed short sizeof stackalloc static string struct switch this try typeof ' +
- 'uint ulong unchecked unsafe ushort using virtual void volatile while ' +
- // Contextual keywords.
- 'add alias ascending async await by descending dynamic equals from get global group into join ' +
- 'let on orderby partial remove select set value var where yield',
- literal:
- 'null false true'
- };
- var NUMBERS = {
- className: 'number',
- variants: [
- { begin: '\\b(0b[01\']+)' },
- { begin: '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)(u|U|l|L|ul|UL|f|F|b|B)' },
- { begin: '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)' }
- ],
- relevance: 0
- };
- var VERBATIM_STRING = {
- className: 'string',
- begin: '@"', end: '"',
- contains: [{begin: '""'}]
- };
- var VERBATIM_STRING_NO_LF = hljs.inherit(VERBATIM_STRING, {illegal: /\n/});
- var SUBST = {
- className: 'subst',
- begin: '{', end: '}',
- keywords: KEYWORDS
- };
- var SUBST_NO_LF = hljs.inherit(SUBST, {illegal: /\n/});
- var INTERPOLATED_STRING = {
- className: 'string',
- begin: /\$"/, end: '"',
- illegal: /\n/,
- contains: [{begin: '{{'}, {begin: '}}'}, hljs.BACKSLASH_ESCAPE, SUBST_NO_LF]
- };
- var INTERPOLATED_VERBATIM_STRING = {
- className: 'string',
- begin: /\$@"/, end: '"',
- contains: [{begin: '{{'}, {begin: '}}'}, {begin: '""'}, SUBST]
- };
- var INTERPOLATED_VERBATIM_STRING_NO_LF = hljs.inherit(INTERPOLATED_VERBATIM_STRING, {
- illegal: /\n/,
- contains: [{begin: '{{'}, {begin: '}}'}, {begin: '""'}, SUBST_NO_LF]
- });
- SUBST.contains = [
- INTERPOLATED_VERBATIM_STRING,
- INTERPOLATED_STRING,
- VERBATIM_STRING,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- NUMBERS,
- hljs.C_BLOCK_COMMENT_MODE
- ];
- SUBST_NO_LF.contains = [
- INTERPOLATED_VERBATIM_STRING_NO_LF,
- INTERPOLATED_STRING,
- VERBATIM_STRING_NO_LF,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- NUMBERS,
- hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, {illegal: /\n/})
- ];
- var STRING = {
- variants: [
- INTERPOLATED_VERBATIM_STRING,
- INTERPOLATED_STRING,
- VERBATIM_STRING,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- };
-
- var TYPE_IDENT_RE = hljs.IDENT_RE + '(<' + hljs.IDENT_RE + '(\\s*,\\s*' + hljs.IDENT_RE + ')*>)?(\\[\\])?';
-
- return {
- aliases: ['csharp', 'c#'],
- keywords: KEYWORDS,
- illegal: /::/,
- contains: [
- hljs.COMMENT(
- '///',
- '$',
- {
- returnBegin: true,
- contains: [
- {
- className: 'doctag',
- variants: [
- {
- begin: '///', relevance: 0
- },
- {
- begin: ''
- },
- {
- begin: '?', end: '>'
- }
- ]
- }
- ]
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'meta',
- begin: '#', end: '$',
- keywords: {
- 'meta-keyword': 'if else elif endif define undef warning error line region endregion pragma checksum'
- }
- },
- STRING,
- NUMBERS,
- {
- beginKeywords: 'class interface', end: /[{;=]/,
- illegal: /[^\s:,]/,
- contains: [
- hljs.TITLE_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- {
- beginKeywords: 'namespace', end: /[{;=]/,
- illegal: /[^\s:]/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: '[a-zA-Z](\\.?\\w)*'}),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- {
- // [Attributes("")]
- className: 'meta',
- begin: '^\\s*\\[', excludeBegin: true, end: '\\]', excludeEnd: true,
- contains: [
- {className: 'meta-string', begin: /"/, end: /"/}
- ]
- },
- {
- // Expression keywords prevent 'keyword Name(...)' from being
- // recognized as a function definition
- beginKeywords: 'new return throw await else',
- relevance: 0
- },
- {
- className: 'function',
- begin: '(' + TYPE_IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*\\(', returnBegin: true,
- end: /\s*[{;=]/, excludeEnd: true,
- keywords: KEYWORDS,
- contains: [
- {
- begin: hljs.IDENT_RE + '\\s*\\(', returnBegin: true,
- contains: [hljs.TITLE_MODE],
- relevance: 0
- },
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- keywords: KEYWORDS,
- relevance: 0,
- contains: [
- STRING,
- NUMBERS,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/csp.js b/swh/web/static/jssources/highlight.js/lib/languages/csp.js
deleted file mode 100644
index 807f593c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/csp.js
+++ /dev/null
@@ -1,21 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: false,
- lexemes: '[a-zA-Z][a-zA-Z0-9_-]*',
- keywords: {
- keyword: 'base-uri child-src connect-src default-src font-src form-action' +
- ' frame-ancestors frame-src img-src media-src object-src plugin-types' +
- ' report-uri sandbox script-src style-src',
- },
- contains: [
- {
- className: 'string',
- begin: "'", end: "'"
- },
- {
- className: 'attribute',
- begin: '^Content', end: ':', excludeEnd: true,
- },
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/css.js b/swh/web/static/jssources/highlight.js/lib/languages/css.js
deleted file mode 100644
index 280b8994..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/css.js
+++ /dev/null
@@ -1,104 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';
- var RULE = {
- begin: /[A-Z\_\.\-]+\s*:/, returnBegin: true, end: ';', endsWithParent: true,
- contains: [
- {
- className: 'attribute',
- begin: /\S/, end: ':', excludeEnd: true,
- starts: {
- endsWithParent: true, excludeEnd: true,
- contains: [
- {
- begin: /[\w-]+\(/, returnBegin: true,
- contains: [
- {
- className: 'built_in',
- begin: /[\w-]+/
- },
- {
- begin: /\(/, end: /\)/,
- contains: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- }
- ]
- },
- hljs.CSS_NUMBER_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'number', begin: '#[0-9A-Fa-f]+'
- },
- {
- className: 'meta', begin: '!important'
- }
- ]
- }
- }
- ]
- };
-
- return {
- case_insensitive: true,
- illegal: /[=\/|'\$]/,
- contains: [
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'selector-id', begin: /#[A-Za-z0-9_-]+/
- },
- {
- className: 'selector-class', begin: /\.[A-Za-z0-9_-]+/
- },
- {
- className: 'selector-attr',
- begin: /\[/, end: /\]/,
- illegal: '$'
- },
- {
- className: 'selector-pseudo',
- begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/
- },
- {
- begin: '@(font-face|page)',
- lexemes: '[a-z-]+',
- keywords: 'font-face page'
- },
- {
- begin: '@', end: '[{;]', // at_rule eating first "{" is a good thing
- // because it doesn’t let it to be parsed as
- // a rule set but instead drops parser into
- // the default mode which is how it should be.
- illegal: /:/, // break on Less variables @var: ...
- contains: [
- {
- className: 'keyword',
- begin: /\w+/
- },
- {
- begin: /\s/, endsWithParent: true, excludeEnd: true,
- relevance: 0,
- contains: [
- hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE,
- hljs.CSS_NUMBER_MODE
- ]
- }
- ]
- },
- {
- className: 'selector-tag', begin: IDENT_RE,
- relevance: 0
- },
- {
- begin: '{', end: '}',
- illegal: /\S/,
- contains: [
- hljs.C_BLOCK_COMMENT_MODE,
- RULE,
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/d.js b/swh/web/static/jssources/highlight.js/lib/languages/d.js
deleted file mode 100644
index 1ca5a18d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/d.js
+++ /dev/null
@@ -1,257 +0,0 @@
-module.exports = /**
- * Known issues:
- *
- * - invalid hex string literals will be recognized as a double quoted strings
- * but 'x' at the beginning of string will not be matched
- *
- * - delimited string literals are not checked for matching end delimiter
- * (not possible to do with js regexp)
- *
- * - content of token string is colored as a string (i.e. no keyword coloring inside a token string)
- * also, content of token string is not validated to contain only valid D tokens
- *
- * - special token sequence rule is not strictly following D grammar (anything following #line
- * up to the end of line is matched as special token sequence)
- */
-
-function(hljs) {
- /**
- * Language keywords
- *
- * @type {Object}
- */
- var D_KEYWORDS = {
- keyword:
- 'abstract alias align asm assert auto body break byte case cast catch class ' +
- 'const continue debug default delete deprecated do else enum export extern final ' +
- 'finally for foreach foreach_reverse|10 goto if immutable import in inout int ' +
- 'interface invariant is lazy macro mixin module new nothrow out override package ' +
- 'pragma private protected public pure ref return scope shared static struct ' +
- 'super switch synchronized template this throw try typedef typeid typeof union ' +
- 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 ' +
- '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__',
- built_in:
- 'bool cdouble cent cfloat char creal dchar delegate double dstring float function ' +
- 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar ' +
- 'wstring',
- literal:
- 'false null true'
- };
-
- /**
- * Number literal regexps
- *
- * @type {String}
- */
- var decimal_integer_re = '(0|[1-9][\\d_]*)',
- decimal_integer_nosus_re = '(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)',
- binary_integer_re = '0[bB][01_]+',
- hexadecimal_digits_re = '([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)',
- hexadecimal_integer_re = '0[xX]' + hexadecimal_digits_re,
-
- decimal_exponent_re = '([eE][+-]?' + decimal_integer_nosus_re + ')',
- decimal_float_re = '(' + decimal_integer_nosus_re + '(\\.\\d*|' + decimal_exponent_re + ')|' +
- '\\d+\\.' + decimal_integer_nosus_re + decimal_integer_nosus_re + '|' +
- '\\.' + decimal_integer_re + decimal_exponent_re + '?' +
- ')',
- hexadecimal_float_re = '(0[xX](' +
- hexadecimal_digits_re + '\\.' + hexadecimal_digits_re + '|'+
- '\\.?' + hexadecimal_digits_re +
- ')[pP][+-]?' + decimal_integer_nosus_re + ')',
-
- integer_re = '(' +
- decimal_integer_re + '|' +
- binary_integer_re + '|' +
- hexadecimal_integer_re +
- ')',
-
- float_re = '(' +
- hexadecimal_float_re + '|' +
- decimal_float_re +
- ')';
-
- /**
- * Escape sequence supported in D string and character literals
- *
- * @type {String}
- */
- var escape_sequence_re = '\\\\(' +
- '[\'"\\?\\\\abfnrtv]|' + // common escapes
- 'u[\\dA-Fa-f]{4}|' + // four hex digit unicode codepoint
- '[0-7]{1,3}|' + // one to three octal digit ascii char code
- 'x[\\dA-Fa-f]{2}|' + // two hex digit ascii char code
- 'U[\\dA-Fa-f]{8}' + // eight hex digit unicode codepoint
- ')|' +
- '&[a-zA-Z\\d]{2,};'; // named character entity
-
- /**
- * D integer number literals
- *
- * @type {Object}
- */
- var D_INTEGER_MODE = {
- className: 'number',
- begin: '\\b' + integer_re + '(L|u|U|Lu|LU|uL|UL)?',
- relevance: 0
- };
-
- /**
- * [D_FLOAT_MODE description]
- * @type {Object}
- */
- var D_FLOAT_MODE = {
- className: 'number',
- begin: '\\b(' +
- float_re + '([fF]|L|i|[fF]i|Li)?|' +
- integer_re + '(i|[fF]i|Li)' +
- ')',
- relevance: 0
- };
-
- /**
- * D character literal
- *
- * @type {Object}
- */
- var D_CHARACTER_MODE = {
- className: 'string',
- begin: '\'(' + escape_sequence_re + '|.)', end: '\'',
- illegal: '.'
- };
-
- /**
- * D string escape sequence
- *
- * @type {Object}
- */
- var D_ESCAPE_SEQUENCE = {
- begin: escape_sequence_re,
- relevance: 0
- };
-
- /**
- * D double quoted string literal
- *
- * @type {Object}
- */
- var D_STRING_MODE = {
- className: 'string',
- begin: '"',
- contains: [D_ESCAPE_SEQUENCE],
- end: '"[cwd]?'
- };
-
- /**
- * D wysiwyg and delimited string literals
- *
- * @type {Object}
- */
- var D_WYSIWYG_DELIMITED_STRING_MODE = {
- className: 'string',
- begin: '[rq]"',
- end: '"[cwd]?',
- relevance: 5
- };
-
- /**
- * D alternate wysiwyg string literal
- *
- * @type {Object}
- */
- var D_ALTERNATE_WYSIWYG_STRING_MODE = {
- className: 'string',
- begin: '`',
- end: '`[cwd]?'
- };
-
- /**
- * D hexadecimal string literal
- *
- * @type {Object}
- */
- var D_HEX_STRING_MODE = {
- className: 'string',
- begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',
- relevance: 10
- };
-
- /**
- * D delimited string literal
- *
- * @type {Object}
- */
- var D_TOKEN_STRING_MODE = {
- className: 'string',
- begin: 'q"\\{',
- end: '\\}"'
- };
-
- /**
- * Hashbang support
- *
- * @type {Object}
- */
- var D_HASHBANG_MODE = {
- className: 'meta',
- begin: '^#!',
- end: '$',
- relevance: 5
- };
-
- /**
- * D special token sequence
- *
- * @type {Object}
- */
- var D_SPECIAL_TOKEN_SEQUENCE_MODE = {
- className: 'meta',
- begin: '#(line)',
- end: '$',
- relevance: 5
- };
-
- /**
- * D attributes
- *
- * @type {Object}
- */
- var D_ATTRIBUTE_MODE = {
- className: 'keyword',
- begin: '@[a-zA-Z_][a-zA-Z_\\d]*'
- };
-
- /**
- * D nesting comment
- *
- * @type {Object}
- */
- var D_NESTING_COMMENT_MODE = hljs.COMMENT(
- '\\/\\+',
- '\\+\\/',
- {
- contains: ['self'],
- relevance: 10
- }
- );
-
- return {
- lexemes: hljs.UNDERSCORE_IDENT_RE,
- keywords: D_KEYWORDS,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- D_NESTING_COMMENT_MODE,
- D_HEX_STRING_MODE,
- D_STRING_MODE,
- D_WYSIWYG_DELIMITED_STRING_MODE,
- D_ALTERNATE_WYSIWYG_STRING_MODE,
- D_TOKEN_STRING_MODE,
- D_FLOAT_MODE,
- D_INTEGER_MODE,
- D_CHARACTER_MODE,
- D_HASHBANG_MODE,
- D_SPECIAL_TOKEN_SEQUENCE_MODE,
- D_ATTRIBUTE_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dart.js b/swh/web/static/jssources/highlight.js/lib/languages/dart.js
deleted file mode 100644
index 2773be92..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dart.js
+++ /dev/null
@@ -1,109 +0,0 @@
-module.exports = function (hljs) {
- var SUBST = {
- className: 'subst',
- variants: [
- {begin: '\\$[A-Za-z0-9_]+'}
- ],
- };
-
- var BRACED_SUBST = {
- className: 'subst',
- variants: [
- {begin: '\\${', end: '}'},
- ],
- keywords: 'true false null this is new super',
- };
-
- var STRING = {
- className: 'string',
- variants: [
- {
- begin: 'r\'\'\'', end: '\'\'\''
- },
- {
- begin: 'r"""', end: '"""'
- },
- {
- begin: 'r\'', end: '\'',
- illegal: '\\n'
- },
- {
- begin: 'r"', end: '"',
- illegal: '\\n'
- },
- {
- begin: '\'\'\'', end: '\'\'\'',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, BRACED_SUBST]
- },
- {
- begin: '"""', end: '"""',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, BRACED_SUBST]
- },
- {
- begin: '\'', end: '\'',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, BRACED_SUBST]
- },
- {
- begin: '"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, BRACED_SUBST]
- }
- ]
- };
- BRACED_SUBST.contains = [
- hljs.C_NUMBER_MODE, STRING
- ];
-
- var KEYWORDS = {
- keyword: 'assert async await break case catch class const continue default do else enum extends false final ' +
- 'finally for if in is new null rethrow return super switch sync this throw true try var void while with yield ' +
- 'abstract as dynamic export external factory get implements import library operator part set static typedef',
- built_in:
- // dart:core
- 'print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set ' +
- 'Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num ' +
- // dart:html
- 'document window querySelector querySelectorAll Element ElementList'
- };
-
- return {
- keywords: KEYWORDS,
- contains: [
- STRING,
- hljs.COMMENT(
- '/\\*\\*',
- '\\*/',
- {
- subLanguage: 'markdown'
- }
- ),
- hljs.COMMENT(
- '///',
- '$',
- {
- subLanguage: 'markdown'
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'class',
- beginKeywords: 'class interface', end: '{', excludeEnd: true,
- contains: [
- {
- beginKeywords: 'extends implements'
- },
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- hljs.C_NUMBER_MODE,
- {
- className: 'meta', begin: '@[A-Za-z]+'
- },
- {
- begin: '=>' // No markup, just a relevance booster
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/delphi.js b/swh/web/static/jssources/highlight.js/lib/languages/delphi.js
deleted file mode 100644
index 31bf6a8e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/delphi.js
+++ /dev/null
@@ -1,68 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS =
- 'exports register file shl array record property for mod while set ally label uses raise not ' +
- 'stored class safecall var interface or private static exit index inherited to else stdcall ' +
- 'override shr asm far resourcestring finalization packed virtual out and protected library do ' +
- 'xorwrite goto near function end div overload object unit begin string on inline repeat until ' +
- 'destructor write message program with read initialization except default nil if case cdecl in ' +
- 'downto threadvar of try pascal const external constructor type public then implementation ' +
- 'finally published procedure absolute reintroduce operator as is abstract alias assembler ' +
- 'bitpacked break continue cppdecl cvar enumerator experimental platform deprecated ' +
- 'unimplemented dynamic export far16 forward generic helper implements interrupt iochecks ' +
- 'local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat ' +
- 'specialize strict unaligned varargs ';
- var COMMENT_MODES = [
- hljs.C_LINE_COMMENT_MODE,
- hljs.COMMENT(/\{/, /\}/, {relevance: 0}),
- hljs.COMMENT(/\(\*/, /\*\)/, {relevance: 10})
- ];
- var DIRECTIVE = {
- className: 'meta',
- variants: [
- {begin: /\{\$/, end: /\}/},
- {begin: /\(\*\$/, end: /\*\)/}
- ]
- };
- var STRING = {
- className: 'string',
- begin: /'/, end: /'/,
- contains: [{begin: /''/}]
- };
- var CHAR_STRING = {
- className: 'string', begin: /(#\d+)+/
- };
- var CLASS = {
- begin: hljs.IDENT_RE + '\\s*=\\s*class\\s*\\(', returnBegin: true,
- contains: [
- hljs.TITLE_MODE
- ]
- };
- var FUNCTION = {
- className: 'function',
- beginKeywords: 'function constructor destructor procedure', end: /[:;]/,
- keywords: 'function constructor|10 destructor|10 procedure|10',
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- contains: [STRING, CHAR_STRING, DIRECTIVE].concat(COMMENT_MODES)
- },
- DIRECTIVE
- ].concat(COMMENT_MODES)
- };
- return {
- aliases: ['dpr', 'dfm', 'pas', 'pascal', 'freepascal', 'lazarus', 'lpr', 'lfm'],
- case_insensitive: true,
- keywords: KEYWORDS,
- illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/,
- contains: [
- STRING, CHAR_STRING,
- hljs.NUMBER_MODE,
- CLASS,
- FUNCTION,
- DIRECTIVE
- ].concat(COMMENT_MODES)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/diff.js b/swh/web/static/jssources/highlight.js/lib/languages/diff.js
deleted file mode 100644
index f6b64e29..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/diff.js
+++ /dev/null
@@ -1,39 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['patch'],
- contains: [
- {
- className: 'meta',
- relevance: 10,
- variants: [
- {begin: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},
- {begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/},
- {begin: /^\-\-\- +\d+,\d+ +\-\-\-\-$/}
- ]
- },
- {
- className: 'comment',
- variants: [
- {begin: /Index: /, end: /$/},
- {begin: /={3,}/, end: /$/},
- {begin: /^\-{3}/, end: /$/},
- {begin: /^\*{3} /, end: /$/},
- {begin: /^\+{3}/, end: /$/},
- {begin: /\*{5}/, end: /\*{5}$/}
- ]
- },
- {
- className: 'addition',
- begin: '^\\+', end: '$'
- },
- {
- className: 'deletion',
- begin: '^\\-', end: '$'
- },
- {
- className: 'addition',
- begin: '^\\!', end: '$'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/django.js b/swh/web/static/jssources/highlight.js/lib/languages/django.js
deleted file mode 100644
index 45cc0d31..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/django.js
+++ /dev/null
@@ -1,63 +0,0 @@
-module.exports = function(hljs) {
- var FILTER = {
- begin: /\|[A-Za-z]+:?/,
- keywords: {
- name:
- 'truncatewords removetags linebreaksbr yesno get_digit timesince random striptags ' +
- 'filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands ' +
- 'title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode ' +
- 'timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort ' +
- 'dictsortreversed default_if_none pluralize lower join center default ' +
- 'truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first ' +
- 'escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize ' +
- 'localtime utc timezone'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE
- ]
- };
-
- return {
- aliases: ['jinja'],
- case_insensitive: true,
- subLanguage: 'xml',
- contains: [
- hljs.COMMENT(/\{%\s*comment\s*%}/, /\{%\s*endcomment\s*%}/),
- hljs.COMMENT(/\{#/, /#}/),
- {
- className: 'template-tag',
- begin: /\{%/, end: /%}/,
- contains: [
- {
- className: 'name',
- begin: /\w+/,
- keywords: {
- name:
- 'comment endcomment load templatetag ifchanged endifchanged if endif firstof for ' +
- 'endfor ifnotequal endifnotequal widthratio extends include spaceless ' +
- 'endspaceless regroup ifequal endifequal ssi now with cycle url filter ' +
- 'endfilter debug block endblock else autoescape endautoescape csrf_token empty elif ' +
- 'endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix ' +
- 'plural get_current_language language get_available_languages ' +
- 'get_current_language_bidi get_language_info get_language_info_list localize ' +
- 'endlocalize localtime endlocaltime timezone endtimezone get_current_timezone ' +
- 'verbatim'
- },
- starts: {
- endsWithParent: true,
- keywords: 'in by as',
- contains: [FILTER],
- relevance: 0
- }
- }
- ]
- },
- {
- className: 'template-variable',
- begin: /\{\{/, end: /}}/,
- contains: [FILTER]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dns.js b/swh/web/static/jssources/highlight.js/lib/languages/dns.js
deleted file mode 100644
index 36b98a3e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dns.js
+++ /dev/null
@@ -1,28 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['bind', 'zone'],
- keywords: {
- keyword:
- 'IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX ' +
- 'LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT'
- },
- contains: [
- hljs.COMMENT(';', '$', {relevance: 0}),
- {
- className: 'meta',
- begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
- },
- // IPv6
- {
- className: 'number',
- begin: '((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b'
- },
- // IPv4
- {
- className: 'number',
- begin: '((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b'
- },
- hljs.inherit(hljs.NUMBER_MODE, {begin: /\b\d+[dhwm]?/})
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dockerfile.js b/swh/web/static/jssources/highlight.js/lib/languages/dockerfile.js
deleted file mode 100644
index f4bb17d0..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dockerfile.js
+++ /dev/null
@@ -1,21 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['docker'],
- case_insensitive: true,
- keywords: 'from maintainer expose env arg user onbuild stopsignal',
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE,
- {
- beginKeywords: 'run cmd entrypoint volume add copy workdir label healthcheck shell',
- starts: {
- end: /[^\\]$/,
- subLanguage: 'bash'
- }
- }
- ],
- illegal: ''
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dos.js b/swh/web/static/jssources/highlight.js/lib/languages/dos.js
deleted file mode 100644
index e2245f02..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dos.js
+++ /dev/null
@@ -1,51 +0,0 @@
-module.exports = function(hljs) {
- var COMMENT = hljs.COMMENT(
- /^\s*@?rem\b/, /$/,
- {
- relevance: 10
- }
- );
- var LABEL = {
- className: 'symbol',
- begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)',
- relevance: 0
- };
- return {
- aliases: ['bat', 'cmd'],
- case_insensitive: true,
- illegal: /\/\*/,
- keywords: {
- keyword:
- 'if else goto for in do call exit not exist errorlevel defined ' +
- 'equ neq lss leq gtr geq',
- built_in:
- 'prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux ' +
- 'shift cd dir echo setlocal endlocal set pause copy ' +
- 'append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color ' +
- 'comp compact convert date dir diskcomp diskcopy doskey erase fs ' +
- 'find findstr format ftype graftabl help keyb label md mkdir mode more move path ' +
- 'pause print popd pushd promt rd recover rem rename replace restore rmdir shift' +
- 'sort start subst time title tree type ver verify vol ' +
- // winutils
- 'ping net ipconfig taskkill xcopy ren del'
- },
- contains: [
- {
- className: 'variable', begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/
- },
- {
- className: 'function',
- begin: LABEL.begin, end: 'goto:eof',
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*'}),
- COMMENT
- ]
- },
- {
- className: 'number', begin: '\\b\\d+',
- relevance: 0
- },
- COMMENT
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dsconfig.js b/swh/web/static/jssources/highlight.js/lib/languages/dsconfig.js
deleted file mode 100644
index ad81dda5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dsconfig.js
+++ /dev/null
@@ -1,46 +0,0 @@
-module.exports = function(hljs) {
- var QUOTED_PROPERTY = {
- className: 'string',
- begin: /"/, end: /"/
- };
- var APOS_PROPERTY = {
- className: 'string',
- begin: /'/, end: /'/
- };
- var UNQUOTED_PROPERTY = {
- className: 'string',
- begin: '[\\w-?]+:\\w+', end: '\\W',
- relevance: 0
- };
- var VALUELESS_PROPERTY = {
- className: 'string',
- begin: '\\w+-?\\w+', end: '\\W',
- relevance: 0
- };
-
- return {
- keywords: 'dsconfig',
- contains: [
- {
- className: 'keyword',
- begin: '^dsconfig', end: '\\s', excludeEnd: true,
- relevance: 10
- },
- {
- className: 'built_in',
- begin: '(list|create|get|set|delete)-(\\w+)', end: '\\s', excludeEnd: true,
- illegal: '!@#$%^&*()',
- relevance: 10
- },
- {
- className: 'built_in',
- begin: '--(\\w+)', end: '\\s', excludeEnd: true
- },
- QUOTED_PROPERTY,
- APOS_PROPERTY,
- UNQUOTED_PROPERTY,
- VALUELESS_PROPERTY,
- hljs.HASH_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dts.js b/swh/web/static/jssources/highlight.js/lib/languages/dts.js
deleted file mode 100644
index 5773076f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dts.js
+++ /dev/null
@@ -1,123 +0,0 @@
-module.exports = function(hljs) {
- var STRINGS = {
- className: 'string',
- variants: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, { begin: '((u8?|U)|L)?"' }),
- {
- begin: '(u8?|U)?R"', end: '"',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '\'\\\\?.', end: '\'',
- illegal: '.'
- }
- ]
- };
-
- var NUMBERS = {
- className: 'number',
- variants: [
- { begin: '\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)' },
- { begin: hljs.C_NUMBER_RE }
- ],
- relevance: 0
- };
-
- var PREPROCESSOR = {
- className: 'meta',
- begin: '#', end: '$',
- keywords: {'meta-keyword': 'if else elif endif define undef ifdef ifndef'},
- contains: [
- {
- begin: /\\\n/, relevance: 0
- },
- {
- beginKeywords: 'include', end: '$',
- keywords: {'meta-keyword': 'include'},
- contains: [
- hljs.inherit(STRINGS, {className: 'meta-string'}),
- {
- className: 'meta-string',
- begin: '<', end: '>',
- illegal: '\\n'
- }
- ]
- },
- STRINGS,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-
- var DTS_REFERENCE = {
- className: 'variable',
- begin: '\\&[a-z\\d_]*\\b'
- };
-
- var DTS_KEYWORD = {
- className: 'meta-keyword',
- begin: '/[a-z][a-z\\d-]*/'
- };
-
- var DTS_LABEL = {
- className: 'symbol',
- begin: '^\\s*[a-zA-Z_][a-zA-Z\\d_]*:'
- };
-
- var DTS_CELL_PROPERTY = {
- className: 'params',
- begin: '<',
- end: '>',
- contains: [
- NUMBERS,
- DTS_REFERENCE
- ]
- };
-
- var DTS_NODE = {
- className: 'class',
- begin: /[a-zA-Z_][a-zA-Z\d_@]*\s{/,
- end: /[{;=]/,
- returnBegin: true,
- excludeEnd: true
- };
-
- var DTS_ROOT_NODE = {
- className: 'class',
- begin: '/\\s*{',
- end: '};',
- relevance: 10,
- contains: [
- DTS_REFERENCE,
- DTS_KEYWORD,
- DTS_LABEL,
- DTS_NODE,
- DTS_CELL_PROPERTY,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMBERS,
- STRINGS
- ]
- };
-
- return {
- keywords: "",
- contains: [
- DTS_ROOT_NODE,
- DTS_REFERENCE,
- DTS_KEYWORD,
- DTS_LABEL,
- DTS_NODE,
- DTS_CELL_PROPERTY,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMBERS,
- STRINGS,
- PREPROCESSOR,
- {
- begin: hljs.IDENT_RE + '::',
- keywords: ""
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/dust.js b/swh/web/static/jssources/highlight.js/lib/languages/dust.js
deleted file mode 100644
index bb6373b1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/dust.js
+++ /dev/null
@@ -1,31 +0,0 @@
-module.exports = function(hljs) {
- var EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep';
- return {
- aliases: ['dst'],
- case_insensitive: true,
- subLanguage: 'xml',
- contains: [
- {
- className: 'template-tag',
- begin: /\{[#\/]/, end: /\}/, illegal: /;/,
- contains: [
- {
- className: 'name',
- begin: /[a-zA-Z\.-]+/,
- starts: {
- endsWithParent: true, relevance: 0,
- contains: [
- hljs.QUOTE_STRING_MODE
- ]
- }
- }
- ]
- },
- {
- className: 'template-variable',
- begin: /\{/, end: /\}/, illegal: /;/,
- keywords: EXPRESSION_KEYWORDS
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ebnf.js b/swh/web/static/jssources/highlight.js/lib/languages/ebnf.js
deleted file mode 100644
index eccc3cc4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ebnf.js
+++ /dev/null
@@ -1,32 +0,0 @@
-module.exports = function(hljs) {
- var commentMode = hljs.COMMENT(/\(\*/, /\*\)/);
-
- var nonTerminalMode = {
- className: "attribute",
- begin: /^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/
- };
-
- var specialSequenceMode = {
- className: "meta",
- begin: /\?.*\?/
- };
-
- var ruleBodyMode = {
- begin: /=/, end: /;/,
- contains: [
- commentMode,
- specialSequenceMode,
- // terminals
- hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE
- ]
- };
-
- return {
- illegal: /\S/,
- contains: [
- commentMode,
- nonTerminalMode,
- ruleBodyMode
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/elixir.js b/swh/web/static/jssources/highlight.js/lib/languages/elixir.js
deleted file mode 100644
index 62c2778d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/elixir.js
+++ /dev/null
@@ -1,99 +0,0 @@
-module.exports = function(hljs) {
- var ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?';
- var ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?';
- var ELIXIR_KEYWORDS =
- 'and false then defined module in return redo retry end for true self when ' +
- 'next until do begin unless nil break not case cond alias while ensure or ' +
- 'include use alias fn quote require import with|0';
- var SUBST = {
- className: 'subst',
- begin: '#\\{', end: '}',
- lexemes: ELIXIR_IDENT_RE,
- keywords: ELIXIR_KEYWORDS
- };
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {
- begin: /'/, end: /'/
- },
- {
- begin: /"/, end: /"/
- }
- ]
- };
- var FUNCTION = {
- className: 'function',
- beginKeywords: 'def defp defmacro', end: /\B\b/, // the mode is ended by the title
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- begin: ELIXIR_IDENT_RE,
- endsParent: true
- })
- ]
- };
- var CLASS = hljs.inherit(FUNCTION, {
- className: 'class',
- beginKeywords: 'defimpl defmodule defprotocol defrecord', end: /\bdo\b|$|;/
- });
- var ELIXIR_DEFAULT_CONTAINS = [
- STRING,
- hljs.HASH_COMMENT_MODE,
- CLASS,
- FUNCTION,
- {
- begin: '::'
- },
- {
- className: 'symbol',
- begin: ':(?![\\s:])',
- contains: [STRING, {begin: ELIXIR_METHOD_RE}],
- relevance: 0
- },
- {
- className: 'symbol',
- begin: ELIXIR_IDENT_RE + ':(?!:)',
- relevance: 0
- },
- {
- className: 'number',
- begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
- relevance: 0
- },
- {
- className: 'variable',
- begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))'
- },
- {
- begin: '->'
- },
- { // regexp container
- begin: '(' + hljs.RE_STARTERS_RE + ')\\s*',
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- className: 'regexp',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {
- begin: '/', end: '/[a-z]*'
- },
- {
- begin: '%r\\[', end: '\\][a-z]*'
- }
- ]
- }
- ],
- relevance: 0
- }
- ];
- SUBST.contains = ELIXIR_DEFAULT_CONTAINS;
-
- return {
- lexemes: ELIXIR_IDENT_RE,
- keywords: ELIXIR_KEYWORDS,
- contains: ELIXIR_DEFAULT_CONTAINS
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/elm.js b/swh/web/static/jssources/highlight.js/lib/languages/elm.js
deleted file mode 100644
index ff44eb12..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/elm.js
+++ /dev/null
@@ -1,89 +0,0 @@
-module.exports = function(hljs) {
- var COMMENT = {
- variants: [
- hljs.COMMENT('--', '$'),
- hljs.COMMENT(
- '{-',
- '-}',
- {
- contains: ['self']
- }
- )
- ]
- };
-
- var CONSTRUCTOR = {
- className: 'type',
- begin: '\\b[A-Z][\\w\']*', // TODO: other constructors (built-in, infix).
- relevance: 0
- };
-
- var LIST = {
- begin: '\\(', end: '\\)',
- illegal: '"',
- contains: [
- {className: 'type', begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?'},
- COMMENT
- ]
- };
-
- var RECORD = {
- begin: '{', end: '}',
- contains: LIST.contains
- };
-
- var CHARACTER = {
- className: 'string',
- begin: '\'\\\\?.', end: '\'',
- illegal: '.'
- };
-
- return {
- keywords:
- 'let in if then else case of where module import exposing ' +
- 'type alias as infix infixl infixr port effect command subscription',
- contains: [
-
- // Top-level constructions.
-
- {
- beginKeywords: 'port effect module', end: 'exposing',
- keywords: 'port effect module where command subscription exposing',
- contains: [LIST, COMMENT],
- illegal: '\\W\\.|;'
- },
- {
- begin: 'import', end: '$',
- keywords: 'import as exposing',
- contains: [LIST, COMMENT],
- illegal: '\\W\\.|;'
- },
- {
- begin: 'type', end: '$',
- keywords: 'type alias',
- contains: [CONSTRUCTOR, LIST, RECORD, COMMENT]
- },
- {
- beginKeywords: 'infix infixl infixr', end: '$',
- contains: [hljs.C_NUMBER_MODE, COMMENT]
- },
- {
- begin: 'port', end: '$',
- keywords: 'port',
- contains: [COMMENT]
- },
-
- // Literals and names.
-
- CHARACTER,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- CONSTRUCTOR,
- hljs.inherit(hljs.TITLE_MODE, {begin: '^[_a-z][\\w\']*'}),
- COMMENT,
-
- {begin: '->|<-'} // No markup, relevance booster
- ],
- illegal: /;/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/erb.js b/swh/web/static/jssources/highlight.js/lib/languages/erb.js
deleted file mode 100644
index 9a22fd03..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/erb.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = function(hljs) {
- return {
- subLanguage: 'xml',
- contains: [
- hljs.COMMENT('<%#', '%>'),
- {
- begin: '<%[%=-]?', end: '[%-]?%>',
- subLanguage: 'ruby',
- excludeBegin: true,
- excludeEnd: true
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/erlang-repl.js b/swh/web/static/jssources/highlight.js/lib/languages/erlang-repl.js
deleted file mode 100644
index 9d4ea79a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/erlang-repl.js
+++ /dev/null
@@ -1,45 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- built_in:
- 'spawn spawn_link self',
- keyword:
- 'after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if ' +
- 'let not of or orelse|10 query receive rem try when xor'
- },
- contains: [
- {
- className: 'meta', begin: '^[0-9]+> ',
- relevance: 10
- },
- hljs.COMMENT('%', '$'),
- {
- className: 'number',
- begin: '\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)',
- relevance: 0
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- begin: '\\?(::)?([A-Z]\\w*(::)?)+'
- },
- {
- begin: '->'
- },
- {
- begin: 'ok'
- },
- {
- begin: '!'
- },
- {
- begin: '(\\b[a-z\'][a-zA-Z0-9_\']*:[a-z\'][a-zA-Z0-9_\']*)|(\\b[a-z\'][a-zA-Z0-9_\']*)',
- relevance: 0
- },
- {
- begin: '[A-Z][a-zA-Z0-9_\']*',
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/erlang.js b/swh/web/static/jssources/highlight.js/lib/languages/erlang.js
deleted file mode 100644
index 5be78939..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/erlang.js
+++ /dev/null
@@ -1,145 +0,0 @@
-module.exports = function(hljs) {
- var BASIC_ATOM_RE = '[a-z\'][a-zA-Z0-9_\']*';
- var FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')';
- var ERLANG_RESERVED = {
- keyword:
- 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if ' +
- 'let not of orelse|10 query receive rem try when xor',
- literal:
- 'false true'
- };
-
- var COMMENT = hljs.COMMENT('%', '$');
- var NUMBER = {
- className: 'number',
- begin: '\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)',
- relevance: 0
- };
- var NAMED_FUN = {
- begin: 'fun\\s+' + BASIC_ATOM_RE + '/\\d+'
- };
- var FUNCTION_CALL = {
- begin: FUNCTION_NAME_RE + '\\(', end: '\\)',
- returnBegin: true,
- relevance: 0,
- contains: [
- {
- begin: FUNCTION_NAME_RE, relevance: 0
- },
- {
- begin: '\\(', end: '\\)', endsWithParent: true,
- returnEnd: true,
- relevance: 0
- // "contains" defined later
- }
- ]
- };
- var TUPLE = {
- begin: '{', end: '}',
- relevance: 0
- // "contains" defined later
- };
- var VAR1 = {
- begin: '\\b_([A-Z][A-Za-z0-9_]*)?',
- relevance: 0
- };
- var VAR2 = {
- begin: '[A-Z][a-zA-Z0-9_]*',
- relevance: 0
- };
- var RECORD_ACCESS = {
- begin: '#' + hljs.UNDERSCORE_IDENT_RE,
- relevance: 0,
- returnBegin: true,
- contains: [
- {
- begin: '#' + hljs.UNDERSCORE_IDENT_RE,
- relevance: 0
- },
- {
- begin: '{', end: '}',
- relevance: 0
- // "contains" defined later
- }
- ]
- };
-
- var BLOCK_STATEMENTS = {
- beginKeywords: 'fun receive if try case', end: 'end',
- keywords: ERLANG_RESERVED
- };
- BLOCK_STATEMENTS.contains = [
- COMMENT,
- NAMED_FUN,
- hljs.inherit(hljs.APOS_STRING_MODE, {className: ''}),
- BLOCK_STATEMENTS,
- FUNCTION_CALL,
- hljs.QUOTE_STRING_MODE,
- NUMBER,
- TUPLE,
- VAR1, VAR2,
- RECORD_ACCESS
- ];
-
- var BASIC_MODES = [
- COMMENT,
- NAMED_FUN,
- BLOCK_STATEMENTS,
- FUNCTION_CALL,
- hljs.QUOTE_STRING_MODE,
- NUMBER,
- TUPLE,
- VAR1, VAR2,
- RECORD_ACCESS
- ];
- FUNCTION_CALL.contains[1].contains = BASIC_MODES;
- TUPLE.contains = BASIC_MODES;
- RECORD_ACCESS.contains[1].contains = BASIC_MODES;
-
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)',
- contains: BASIC_MODES
- };
- return {
- aliases: ['erl'],
- keywords: ERLANG_RESERVED,
- illegal: '(|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))',
- contains: [
- {
- className: 'function',
- begin: '^' + BASIC_ATOM_RE + '\\s*\\(', end: '->',
- returnBegin: true,
- illegal: '\\(|#|//|/\\*|\\\\|:|;',
- contains: [
- PARAMS,
- hljs.inherit(hljs.TITLE_MODE, {begin: BASIC_ATOM_RE})
- ],
- starts: {
- end: ';|\\.',
- keywords: ERLANG_RESERVED,
- contains: BASIC_MODES
- }
- },
- COMMENT,
- {
- begin: '^-', end: '\\.',
- relevance: 0,
- excludeEnd: true,
- returnBegin: true,
- lexemes: '-' + hljs.IDENT_RE,
- keywords:
- '-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn ' +
- '-import -include -include_lib -compile -define -else -endif -file -behaviour ' +
- '-behavior -spec',
- contains: [PARAMS]
- },
- NUMBER,
- hljs.QUOTE_STRING_MODE,
- RECORD_ACCESS,
- VAR1, VAR2,
- TUPLE,
- {begin: /\.$/} // relevance booster
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/excel.js b/swh/web/static/jssources/highlight.js/lib/languages/excel.js
deleted file mode 100644
index 134f50bf..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/excel.js
+++ /dev/null
@@ -1,47 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['xlsx', 'xls'],
- case_insensitive: true,
- lexemes: /[a-zA-Z][\w\.]*/,
- // built-in functions imported from https://web.archive.org/web/20160513042710/https://support.office.com/en-us/article/Excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188
- keywords: {
- built_in: 'ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF|0 IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST'
- },
- contains: [
- {
- /* matches a beginning equal sign found in Excel formula examples */
- begin: /^=/,
- end: /[^=]/, returnEnd: true, illegal: /=/, /* only allow single equal sign at front of line */
- relevance: 10
- },
- /* technically, there can be more than 2 letters in column names, but this prevents conflict with some keywords */
- {
- /* matches a reference to a single cell */
- className: 'symbol',
- begin: /\b[A-Z]{1,2}\d+\b/,
- end: /[^\d]/, excludeEnd: true,
- relevance: 0
- },
- {
- /* matches a reference to a range of cells */
- className: 'symbol',
- begin: /[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,
- relevance: 0
- },
- hljs.BACKSLASH_ESCAPE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'number',
- begin: hljs.NUMBER_RE + '(%)?',
- relevance: 0
- },
- /* Excel formula comments are done by putting the comment in a function call to N() */
- hljs.COMMENT(/\bN\(/,/\)/,
- {
- excludeBegin: true,
- excludeEnd: true,
- illegal: /\n/
- })
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/fix.js b/swh/web/static/jssources/highlight.js/lib/languages/fix.js
deleted file mode 100644
index a6c65771..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/fix.js
+++ /dev/null
@@ -1,28 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- {
- begin: /[^\u2401\u0001]+/,
- end: /[\u2401\u0001]/,
- excludeEnd: true,
- returnBegin: true,
- returnEnd: false,
- contains: [
- {
- begin: /([^\u2401\u0001=]+)/,
- end: /=([^\u2401\u0001=]+)/,
- returnEnd: true,
- returnBegin: false,
- className: 'attr'
- },
- {
- begin: /=/,
- end: /([\u2401\u0001])/,
- excludeEnd: true,
- excludeBegin: true,
- className: 'string'
- }]
- }],
- case_insensitive: true
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/flix.js b/swh/web/static/jssources/highlight.js/lib/languages/flix.js
deleted file mode 100644
index ccaeab9d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/flix.js
+++ /dev/null
@@ -1,44 +0,0 @@
-module.exports = function (hljs) {
-
- var CHAR = {
- className: 'string',
- begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/
- };
-
- var STRING = {
- className: 'string',
- variants: [
- {
- begin: '"', end: '"'
- }
- ]
- };
-
- var NAME = {
- className: 'title',
- begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/
- };
-
- var METHOD = {
- className: 'function',
- beginKeywords: 'def',
- end: /[:={\[(\n;]/,
- excludeEnd: true,
- contains: [NAME]
- };
-
- return {
- keywords: {
- literal: 'true false',
- keyword: 'case class def else enum if impl import in lat rel index let match namespace switch type yield with'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- CHAR,
- STRING,
- METHOD,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/fortran.js b/swh/web/static/jssources/highlight.js/lib/languages/fortran.js
deleted file mode 100644
index 8ebf1ff6..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/fortran.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = function(hljs) {
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)'
- };
-
- var F_KEYWORDS = {
- literal: '.False. .True.',
- keyword: 'kind do while private call intrinsic where elsewhere ' +
- 'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' +
- 'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' +
- 'goto save else use module select case ' +
- 'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' +
- 'continue format pause cycle exit ' +
- 'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' +
- 'synchronous nopass non_overridable pass protected volatile abstract extends import ' +
- 'non_intrinsic value deferred generic final enumerator class associate bind enum ' +
- 'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' +
- 'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' +
- 'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' +
- 'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' +
- 'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' +
- 'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' +
- 'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' +
- 'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ' +
- 'integer real character complex logical dimension allocatable|10 parameter ' +
- 'external implicit|10 none double precision assign intent optional pointer ' +
- 'target in out common equivalence data',
- built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' +
- 'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' +
- 'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' +
- 'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' +
- 'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' +
- 'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' +
- 'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' +
- 'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' +
- 'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' +
- 'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' +
- 'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' +
- 'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' +
- 'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' +
- 'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of' +
- 'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' +
- 'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' +
- 'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' +
- 'num_images parity popcnt poppar shifta shiftl shiftr this_image'
- };
- return {
- case_insensitive: true,
- aliases: ['f90', 'f95'],
- keywords: F_KEYWORDS,
- illegal: /\/\*/,
- contains: [
- hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {className: 'string', relevance: 0}),
- {
- className: 'function',
- beginKeywords: 'subroutine function program',
- illegal: '[${=\\n]',
- contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
- },
- hljs.COMMENT('!', '$', {relevance: 0}),
- {
- className: 'number',
- begin: '(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?',
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/fsharp.js b/swh/web/static/jssources/highlight.js/lib/languages/fsharp.js
deleted file mode 100644
index 3251a291..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/fsharp.js
+++ /dev/null
@@ -1,58 +0,0 @@
-module.exports = function(hljs) {
- var TYPEPARAM = {
- begin: '<', end: '>',
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: /'[a-zA-Z0-9_]+/})
- ]
- };
-
- return {
- aliases: ['fs'],
- keywords:
- 'abstract and as assert base begin class default delegate do done ' +
- 'downcast downto elif else end exception extern false finally for ' +
- 'fun function global if in inherit inline interface internal lazy let ' +
- 'match member module mutable namespace new null of open or ' +
- 'override private public rec return sig static struct then to ' +
- 'true try type upcast use val void when while with yield',
- illegal: /\/\*/,
- contains: [
- {
- // monad builder keywords (matches before non-bang kws)
- className: 'keyword',
- begin: /\b(yield|return|let|do)!/
- },
- {
- className: 'string',
- begin: '@"', end: '"',
- contains: [{begin: '""'}]
- },
- {
- className: 'string',
- begin: '"""', end: '"""'
- },
- hljs.COMMENT('\\(\\*', '\\*\\)'),
- {
- className: 'class',
- beginKeywords: 'type', end: '\\(|=|$', excludeEnd: true,
- contains: [
- hljs.UNDERSCORE_TITLE_MODE,
- TYPEPARAM
- ]
- },
- {
- className: 'meta',
- begin: '\\[<', end: '>\\]',
- relevance: 10
- },
- {
- className: 'symbol',
- begin: '\\B(\'[A-Za-z])\\b',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gams.js b/swh/web/static/jssources/highlight.js/lib/languages/gams.js
deleted file mode 100644
index dc398927..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gams.js
+++ /dev/null
@@ -1,153 +0,0 @@
-module.exports = function (hljs) {
- var KEYWORDS = {
- 'keyword':
- 'abort acronym acronyms alias all and assign binary card diag display ' +
- 'else eq file files for free ge gt if integer le loop lt maximizing ' +
- 'minimizing model models ne negative no not option options or ord ' +
- 'positive prod put putpage puttl repeat sameas semicont semiint smax ' +
- 'smin solve sos1 sos2 sum system table then until using while xor yes',
- 'literal': 'eps inf na',
- 'built-in':
- 'abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy ' +
- 'cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact ' +
- 'floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max ' +
- 'min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power ' +
- 'randBinomial randLinear randTriangle round rPower sigmoid sign ' +
- 'signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt ' +
- 'tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp ' +
- 'bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt ' +
- 'rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear ' +
- 'jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion ' +
- 'handleCollect handleDelete handleStatus handleSubmit heapFree ' +
- 'heapLimit heapSize jobHandle jobKill jobStatus jobTerminate ' +
- 'licenseLevel licenseStatus maxExecError sleep timeClose timeComp ' +
- 'timeElapsed timeExec timeStart'
- };
- var PARAMS = {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- };
- var SYMBOLS = {
- className: 'symbol',
- variants: [
- {begin: /\=[lgenxc]=/},
- {begin: /\$/},
- ]
- };
- var QSTR = { // One-line quoted comment string
- className: 'comment',
- variants: [
- {begin: '\'', end: '\''},
- {begin: '"', end: '"'},
- ],
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- };
- var ASSIGNMENT = {
- begin: '/',
- end: '/',
- keywords: KEYWORDS,
- contains: [
- QSTR,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.C_NUMBER_MODE,
- ],
- };
- var DESCTEXT = { // Parameter/set/variable description text
- begin: /[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,
- excludeBegin: true,
- end: '$',
- endsWithParent: true,
- contains: [
- QSTR,
- ASSIGNMENT,
- {
- className: 'comment',
- begin: /([ ]*[a-z0-9*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,
- relevance: 0
- },
- ],
- };
-
- return {
- aliases: ['gms'],
- case_insensitive: true,
- keywords: KEYWORDS,
- contains: [
- hljs.COMMENT(/^\$ontext/, /^\$offtext/),
- {
- className: 'meta',
- begin: '^\\$[a-z0-9]+',
- end: '$',
- returnBegin: true,
- contains: [
- {
- className: 'meta-keyword',
- begin: '^\\$[a-z0-9]+',
- }
- ]
- },
- hljs.COMMENT('^\\*', '$'),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- // Declarations
- {
- beginKeywords:
- 'set sets parameter parameters variable variables ' +
- 'scalar scalars equation equations',
- end: ';',
- contains: [
- hljs.COMMENT('^\\*', '$'),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- ASSIGNMENT,
- DESCTEXT,
- ]
- },
- { // table environment
- beginKeywords: 'table',
- end: ';',
- returnBegin: true,
- contains: [
- { // table header row
- beginKeywords: 'table',
- end: '$',
- contains: [DESCTEXT],
- },
- hljs.COMMENT('^\\*', '$'),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.C_NUMBER_MODE,
- // Table does not contain DESCTEXT or ASSIGNMENT
- ]
- },
- // Function definitions
- {
- className: 'function',
- begin: /^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,
- returnBegin: true,
- contains: [
- { // Function title
- className: 'title',
- begin: /^[a-z0-9_]+/,
- },
- PARAMS,
- SYMBOLS,
- ],
- },
- hljs.C_NUMBER_MODE,
- SYMBOLS,
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gauss.js b/swh/web/static/jssources/highlight.js/lib/languages/gauss.js
deleted file mode 100644
index 38b7b3df..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gauss.js
+++ /dev/null
@@ -1,290 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword: 'bool break call callexe checkinterrupt clear clearg closeall cls comlog compile ' +
- 'continue create debug declare delete disable dlibrary dllcall do dos ed edit else ' +
- 'elseif enable end endfor endif endp endo errorlog errorlogat expr external fn ' +
- 'for format goto gosub graph if keyword let lib library line load loadarray loadexe ' +
- 'loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow ' +
- 'matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print ' +
- 'printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen ' +
- 'scroll setarray show sparse stop string struct system trace trap threadfor ' +
- 'threadendfor threadbegin threadjoin threadstat threadend until use while winprint ' +
- 'ne ge le gt lt and xor or not eq eqv',
- built_in: 'abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol ' +
- 'AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks ' +
- 'AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults ' +
- 'annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness ' +
- 'annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd ' +
- 'astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar ' +
- 'base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 ' +
- 'cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv ' +
- 'cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn ' +
- 'cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi ' +
- 'cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ' +
- 'ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated ' +
- 'complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs ' +
- 'cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos ' +
- 'datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd ' +
- 'dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName ' +
- 'dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy ' +
- 'dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen ' +
- 'dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA ' +
- 'dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField ' +
- 'dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition ' +
- 'dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows ' +
- 'dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly ' +
- 'dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy ' +
- 'dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl ' +
- 'dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt ' +
- 'dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday ' +
- 'dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays ' +
- 'endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error ' +
- 'etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut ' +
- 'EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol ' +
- 'EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq ' +
- 'feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt ' +
- 'floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC ' +
- 'gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders ' +
- 'gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse ' +
- 'gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray ' +
- 'getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders ' +
- 'getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT ' +
- 'gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm ' +
- 'hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 ' +
- 'indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 ' +
- 'inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf ' +
- 'isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv ' +
- 'lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn ' +
- 'lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind ' +
- 'loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars ' +
- 'makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli ' +
- 'mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave ' +
- 'movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate ' +
- 'olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto ' +
- 'pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox ' +
- 'plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea ' +
- 'plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout ' +
- 'plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill ' +
- 'plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol ' +
- 'plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange ' +
- 'plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel ' +
- 'plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot ' +
- 'pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames ' +
- 'pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector ' +
- 'pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate ' +
- 'qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr ' +
- 'real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn ' +
- 'rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel ' +
- 'rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn ' +
- 'rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh ' +
- 'rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind ' +
- 'scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa ' +
- 'setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind ' +
- 'sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL ' +
- 'spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense ' +
- 'spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet ' +
- 'sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt ' +
- 'strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr ' +
- 'surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname ' +
- 'time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk ' +
- 'trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt ' +
- 'utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs ' +
- 'vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window ' +
- 'writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM ' +
- 'xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute ' +
- 'h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels ' +
- 'plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester ' +
- 'strtrim',
- literal: 'DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS ' +
- 'DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 ' +
- 'DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS ' +
- 'DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES ' +
- 'DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR'
- };
-
-
- var AT_COMMENT_MODE = hljs.COMMENT('@', '@');
-
- var PREPROCESSOR =
- {
- className: 'meta',
- begin: '#', end: '$',
- keywords: {'meta-keyword': 'define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline'},
- contains: [
- {
- begin: /\\\n/, relevance: 0
- },
- {
- beginKeywords: 'include', end: '$',
- keywords: {'meta-keyword': 'include'},
- contains: [
- {
- className: 'meta-string',
- begin: '"', end: '"',
- illegal: '\\n'
- }
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AT_COMMENT_MODE,
- ]
- };
-
- var STRUCT_TYPE =
- {
- begin: /\bstruct\s+/,
- end: /\s/,
- keywords: "struct",
- contains: [
- {
- className: "type",
- begin: hljs.UNDERSCORE_IDENT_RE,
- relevance: 0,
- },
- ],
- };
-
- // only for definitions
- var PARSE_PARAMS = [
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- endsWithParent: true,
- relevance: 0,
- contains: [
- { // dots
- className: 'literal',
- begin: /\.\.\./,
- },
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AT_COMMENT_MODE,
- STRUCT_TYPE,
- ]
- }
- ];
-
- var FUNCTION_DEF =
- {
- className: "title",
- begin: hljs.UNDERSCORE_IDENT_RE,
- relevance: 0,
- };
-
- var DEFINITION = function (beginKeywords, end, inherits) {
- var mode = hljs.inherit(
- {
- className: "function",
- beginKeywords: beginKeywords,
- end: end,
- excludeEnd: true,
- contains: [].concat(PARSE_PARAMS),
- },
- inherits || {}
- );
- mode.contains.push(FUNCTION_DEF);
- mode.contains.push(hljs.C_NUMBER_MODE);
- mode.contains.push(hljs.C_BLOCK_COMMENT_MODE);
- mode.contains.push(AT_COMMENT_MODE);
- return mode;
- };
-
- var BUILT_IN_REF =
- { // these are explicitly named internal function calls
- className: 'built_in',
- begin: '\\b(' + KEYWORDS.built_in.split(' ').join('|') + ')\\b',
- };
-
- var STRING_REF =
- {
- className: 'string',
- begin: '"', end: '"',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 0,
- };
-
- var FUNCTION_REF =
- {
- //className: "fn_ref",
- begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(',
- returnBegin: true,
- keywords: KEYWORDS,
- relevance: 0,
- contains: [
- {
- beginKeywords: KEYWORDS.keyword,
- },
- BUILT_IN_REF,
- { // ambiguously named function calls get a relevance of 0
- className: 'built_in',
- begin: hljs.UNDERSCORE_IDENT_RE,
- relevance: 0,
- },
- ],
- };
-
- var FUNCTION_REF_PARAMS =
- {
- //className: "fn_ref_params",
- begin: /\(/,
- end: /\)/,
- relevance: 0,
- keywords: { built_in: KEYWORDS.built_in, literal: KEYWORDS.literal },
- contains: [
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AT_COMMENT_MODE,
- BUILT_IN_REF,
- FUNCTION_REF,
- STRING_REF,
- 'self',
- ],
- };
-
- FUNCTION_REF.contains.push(FUNCTION_REF_PARAMS);
-
- return {
- aliases: ['gss'],
- case_insensitive: true, // language is case-insensitive
- keywords: KEYWORDS,
- illegal: /(\{[%#]|[%#]\}| <- )/,
- contains: [
- hljs.C_NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AT_COMMENT_MODE,
- STRING_REF,
- PREPROCESSOR,
- {
- className: 'keyword',
- begin: /\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/,
- },
- DEFINITION('proc keyword', ';'),
- DEFINITION('fn', '='),
- {
- beginKeywords: 'for threadfor',
- end: /;/,
- //end: /\(/,
- relevance: 0,
- contains: [
- hljs.C_BLOCK_COMMENT_MODE,
- AT_COMMENT_MODE,
- FUNCTION_REF_PARAMS,
- ],
- },
- { // custom method guard
- // excludes method names from keyword processing
- variants: [
- { begin: hljs.UNDERSCORE_IDENT_RE + '\\.' + hljs.UNDERSCORE_IDENT_RE, },
- { begin: hljs.UNDERSCORE_IDENT_RE + '\\s*=', },
- ],
- relevance: 0,
- },
- FUNCTION_REF,
- STRUCT_TYPE,
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gcode.js b/swh/web/static/jssources/highlight.js/lib/languages/gcode.js
deleted file mode 100644
index 2aea8470..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gcode.js
+++ /dev/null
@@ -1,66 +0,0 @@
-module.exports = function(hljs) {
- var GCODE_IDENT_RE = '[A-Z_][A-Z0-9_.]*';
- var GCODE_CLOSE_RE = '\\%';
- var GCODE_KEYWORDS =
- 'IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT ' +
- 'EQ LT GT NE GE LE OR XOR';
- var GCODE_START = {
- className: 'meta',
- begin: '([O])([0-9]+)'
- };
- var GCODE_CODE = [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.COMMENT(/\(/, /\)/),
- hljs.inherit(hljs.C_NUMBER_MODE, {begin: '([-+]?([0-9]*\\.?[0-9]+\\.?))|' + hljs.C_NUMBER_RE}),
- hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- {
- className: 'name',
- begin: '([G])([0-9]+\\.?[0-9]?)'
- },
- {
- className: 'name',
- begin: '([M])([0-9]+\\.?[0-9]?)'
- },
- {
- className: 'attr',
- begin: '(VC|VS|#)',
- end: '(\\d+)'
- },
- {
- className: 'attr',
- begin: '(VZOFX|VZOFY|VZOFZ)'
- },
- {
- className: 'built_in',
- begin: '(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)',
- end: '([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])'
- },
- {
- className: 'symbol',
- variants: [
- {
- begin: 'N', end: '\\d+',
- illegal: '\\W'
- }
- ]
- }
- ];
-
- return {
- aliases: ['nc'],
- // Some implementations (CNC controls) of G-code are interoperable with uppercase and lowercase letters seamlessly.
- // However, most prefer all uppercase and uppercase is customary.
- case_insensitive: true,
- lexemes: GCODE_IDENT_RE,
- keywords: GCODE_KEYWORDS,
- contains: [
- {
- className: 'meta',
- begin: GCODE_CLOSE_RE
- },
- GCODE_START
- ].concat(GCODE_CODE)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gherkin.js b/swh/web/static/jssources/highlight.js/lib/languages/gherkin.js
deleted file mode 100644
index 30af97f1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gherkin.js
+++ /dev/null
@@ -1,36 +0,0 @@
-module.exports = function (hljs) {
- return {
- aliases: ['feature'],
- keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When',
- contains: [
- {
- className: 'symbol',
- begin: '\\*',
- relevance: 0
- },
- {
- className: 'meta',
- begin: '@[^@\\s]+'
- },
- {
- begin: '\\|', end: '\\|\\w*$',
- contains: [
- {
- className: 'string',
- begin: '[^|]+'
- }
- ]
- },
- {
- className: 'variable',
- begin: '<', end: '>'
- },
- hljs.HASH_COMMENT_MODE,
- {
- className: 'string',
- begin: '"""', end: '"""'
- },
- hljs.QUOTE_STRING_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/glsl.js b/swh/web/static/jssources/highlight.js/lib/languages/glsl.js
deleted file mode 100644
index 4a275a98..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/glsl.js
+++ /dev/null
@@ -1,116 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword:
- // Statements
- 'break continue discard do else for if return while switch case default ' +
- // Qualifiers
- 'attribute binding buffer ccw centroid centroid varying coherent column_major const cw ' +
- 'depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing ' +
- 'flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant ' +
- 'invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y ' +
- 'local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left ' +
- 'out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f '+
- 'r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict ' +
- 'rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 ' +
- 'rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 ' +
- 'rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip ' +
- 'triangles triangles_adjacency uniform varying vertices volatile writeonly',
- type:
- 'atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 ' +
- 'dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray ' +
- 'iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer' +
- 'iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray ' +
- 'image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray ' +
- 'isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D ' +
- 'isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 ' +
- 'mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray ' +
- 'sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow ' +
- 'sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D ' +
- 'samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow ' +
- 'image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect ' +
- 'uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray ' +
- 'usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D ' +
- 'samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void',
- built_in:
- // Constants
- 'gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes ' +
- 'gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms ' +
- 'gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers ' +
- 'gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits ' +
- 'gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize ' +
- 'gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters ' +
- 'gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors ' +
- 'gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers ' +
- 'gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents ' +
- 'gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits ' +
- 'gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents ' +
- 'gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset ' +
- 'gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms ' +
- 'gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits ' +
- 'gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents ' +
- 'gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters ' +
- 'gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents ' +
- 'gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents ' +
- 'gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits ' +
- 'gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors ' +
- 'gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms ' +
- 'gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits ' +
- 'gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset ' +
- // Variables
- 'gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial ' +
- 'gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color ' +
- 'gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord ' +
- 'gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor ' +
- 'gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial ' +
- 'gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel ' +
- 'gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix ' +
- 'gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose ' +
- 'gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose ' +
- 'gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 ' +
- 'gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' +
- 'gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ ' +
- 'gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord ' +
- 'gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse ' +
- 'gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask ' +
- 'gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter ' +
- 'gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose ' +
- 'gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out ' +
- // Functions
- 'EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin ' +
- 'asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement ' +
- 'atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier ' +
- 'bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross ' +
- 'dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB ' +
- 'floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan ' +
- 'greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap ' +
- 'imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad ' +
- 'imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset ' +
- 'interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log ' +
- 'log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer ' +
- 'memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 ' +
- 'normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 ' +
- 'packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod ' +
- 'shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh ' +
- 'smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod ' +
- 'texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod ' +
- 'texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod ' +
- 'textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset ' +
- 'textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset ' +
- 'textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod ' +
- 'textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 ' +
- 'unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow',
- literal: 'true false'
- },
- illegal: '"',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'meta',
- begin: '#', end: '$'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gml.js b/swh/web/static/jssources/highlight.js/lib/languages/gml.js
deleted file mode 100644
index 2a6b4c08..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gml.js
+++ /dev/null
@@ -1,872 +0,0 @@
-module.exports = function(hljs) {
- var GML_KEYWORDS = {
- keywords: 'begin end if then else while do for break continue with until ' +
- 'repeat exit and or xor not return mod div switch case default var ' +
- 'globalvar enum #macro #region #endregion',
- built_in: 'is_real is_string is_array is_undefined is_int32 is_int64 ' +
- 'is_ptr is_vec3 is_vec4 is_matrix is_bool typeof ' +
- 'variable_global_exists variable_global_get variable_global_set ' +
- 'variable_instance_exists variable_instance_get variable_instance_set ' +
- 'variable_instance_get_names array_length_1d array_length_2d ' +
- 'array_height_2d array_equals array_create array_copy random ' +
- 'random_range irandom irandom_range random_set_seed random_get_seed ' +
- 'randomize randomise choose abs round floor ceil sign frac sqrt sqr ' +
- 'exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos ' +
- 'dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn ' +
- 'min max mean median clamp lerp dot_product dot_product_3d ' +
- 'dot_product_normalised dot_product_3d_normalised ' +
- 'dot_product_normalized dot_product_3d_normalized math_set_epsilon ' +
- 'math_get_epsilon angle_difference point_distance_3d point_distance ' +
- 'point_direction lengthdir_x lengthdir_y real string int64 ptr ' +
- 'string_format chr ansi_char ord string_length string_byte_length ' +
- 'string_pos string_copy string_char_at string_ord_at string_byte_at ' +
- 'string_set_byte_at string_delete string_insert string_lower ' +
- 'string_upper string_repeat string_letters string_digits ' +
- 'string_lettersdigits string_replace string_replace_all string_count ' +
- 'string_hash_to_newline clipboard_has_text clipboard_set_text ' +
- 'clipboard_get_text date_current_datetime date_create_datetime ' +
- 'date_valid_datetime date_inc_year date_inc_month date_inc_week ' +
- 'date_inc_day date_inc_hour date_inc_minute date_inc_second ' +
- 'date_get_year date_get_month date_get_week date_get_day ' +
- 'date_get_hour date_get_minute date_get_second date_get_weekday ' +
- 'date_get_day_of_year date_get_hour_of_year date_get_minute_of_year ' +
- 'date_get_second_of_year date_year_span date_month_span ' +
- 'date_week_span date_day_span date_hour_span date_minute_span ' +
- 'date_second_span date_compare_datetime date_compare_date ' +
- 'date_compare_time date_date_of date_time_of date_datetime_string ' +
- 'date_date_string date_time_string date_days_in_month ' +
- 'date_days_in_year date_leap_year date_is_today date_set_timezone ' +
- 'date_get_timezone game_set_speed game_get_speed motion_set ' +
- 'motion_add place_free place_empty place_meeting place_snapped ' +
- 'move_random move_snap move_towards_point move_contact_solid ' +
- 'move_contact_all move_outside_solid move_outside_all ' +
- 'move_bounce_solid move_bounce_all move_wrap distance_to_point ' +
- 'distance_to_object position_empty position_meeting path_start ' +
- 'path_end mp_linear_step mp_potential_step mp_linear_step_object ' +
- 'mp_potential_step_object mp_potential_settings mp_linear_path ' +
- 'mp_potential_path mp_linear_path_object mp_potential_path_object ' +
- 'mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell ' +
- 'mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell ' +
- 'mp_grid_add_rectangle mp_grid_add_instances mp_grid_path ' +
- 'mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle ' +
- 'collision_circle collision_ellipse collision_line ' +
- 'collision_point_list collision_rectangle_list collision_circle_list ' +
- 'collision_ellipse_list collision_line_list instance_position_list ' +
- 'instance_place_list point_in_rectangle ' +
- 'point_in_triangle point_in_circle rectangle_in_rectangle ' +
- 'rectangle_in_triangle rectangle_in_circle instance_find ' +
- 'instance_exists instance_number instance_position instance_nearest ' +
- 'instance_furthest instance_place instance_create_depth ' +
- 'instance_create_layer instance_copy instance_change instance_destroy ' +
- 'position_destroy position_change instance_id_get ' +
- 'instance_deactivate_all instance_deactivate_object ' +
- 'instance_deactivate_region instance_activate_all ' +
- 'instance_activate_object instance_activate_region room_goto ' +
- 'room_goto_previous room_goto_next room_previous room_next ' +
- 'room_restart game_end game_restart game_load game_save ' +
- 'game_save_buffer game_load_buffer event_perform event_user ' +
- 'event_perform_object event_inherited show_debug_message ' +
- 'show_debug_overlay debug_event debug_get_callstack alarm_get ' +
- 'alarm_set font_texture_page_size keyboard_set_map keyboard_get_map ' +
- 'keyboard_unset_map keyboard_check keyboard_check_pressed ' +
- 'keyboard_check_released keyboard_check_direct keyboard_get_numlock ' +
- 'keyboard_set_numlock keyboard_key_press keyboard_key_release ' +
- 'keyboard_clear io_clear mouse_check_button ' +
- 'mouse_check_button_pressed mouse_check_button_released ' +
- 'mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite ' +
- 'draw_sprite_pos draw_sprite_ext draw_sprite_stretched ' +
- 'draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext ' +
- 'draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear ' +
- 'draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle ' +
- 'draw_roundrect draw_roundrect_ext draw_triangle draw_circle ' +
- 'draw_ellipse draw_set_circle_precision draw_arrow draw_button ' +
- 'draw_path draw_healthbar draw_getpixel draw_getpixel_ext ' +
- 'draw_set_colour draw_set_color draw_set_alpha draw_get_colour ' +
- 'draw_get_color draw_get_alpha merge_colour make_colour_rgb ' +
- 'make_colour_hsv colour_get_red colour_get_green colour_get_blue ' +
- 'colour_get_hue colour_get_saturation colour_get_value merge_color ' +
- 'make_color_rgb make_color_hsv color_get_red color_get_green ' +
- 'color_get_blue color_get_hue color_get_saturation color_get_value ' +
- 'merge_color screen_save screen_save_part draw_set_font ' +
- 'draw_set_halign draw_set_valign draw_text draw_text_ext string_width ' +
- 'string_height string_width_ext string_height_ext ' +
- 'draw_text_transformed draw_text_ext_transformed draw_text_colour ' +
- 'draw_text_ext_colour draw_text_transformed_colour ' +
- 'draw_text_ext_transformed_colour draw_text_color draw_text_ext_color ' +
- 'draw_text_transformed_color draw_text_ext_transformed_color ' +
- 'draw_point_colour draw_line_colour draw_line_width_colour ' +
- 'draw_rectangle_colour draw_roundrect_colour ' +
- 'draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour ' +
- 'draw_ellipse_colour draw_point_color draw_line_color ' +
- 'draw_line_width_color draw_rectangle_color draw_roundrect_color ' +
- 'draw_roundrect_color_ext draw_triangle_color draw_circle_color ' +
- 'draw_ellipse_color draw_primitive_begin draw_vertex ' +
- 'draw_vertex_colour draw_vertex_color draw_primitive_end ' +
- 'sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture ' +
- 'texture_get_width texture_get_height texture_get_uvs ' +
- 'draw_primitive_begin_texture draw_vertex_texture ' +
- 'draw_vertex_texture_colour draw_vertex_texture_color ' +
- 'texture_global_scale surface_create surface_create_ext ' +
- 'surface_resize surface_free surface_exists surface_get_width ' +
- 'surface_get_height surface_get_texture surface_set_target ' +
- 'surface_set_target_ext surface_reset_target surface_depth_disable ' +
- 'surface_get_depth_disable draw_surface draw_surface_stretched ' +
- 'draw_surface_tiled draw_surface_part draw_surface_ext ' +
- 'draw_surface_stretched_ext draw_surface_tiled_ext ' +
- 'draw_surface_part_ext draw_surface_general surface_getpixel ' +
- 'surface_getpixel_ext surface_save surface_save_part surface_copy ' +
- 'surface_copy_part application_surface_draw_enable ' +
- 'application_get_position application_surface_enable ' +
- 'application_surface_is_enabled display_get_width display_get_height ' +
- 'display_get_orientation display_get_gui_width display_get_gui_height ' +
- 'display_reset display_mouse_get_x display_mouse_get_y ' +
- 'display_mouse_set display_set_ui_visibility ' +
- 'window_set_fullscreen window_get_fullscreen ' +
- 'window_set_caption window_set_min_width window_set_max_width ' +
- 'window_set_min_height window_set_max_height window_get_visible_rects ' +
- 'window_get_caption window_set_cursor window_get_cursor ' +
- 'window_set_colour window_get_colour window_set_color ' +
- 'window_get_color window_set_position window_set_size ' +
- 'window_set_rectangle window_center window_get_x window_get_y ' +
- 'window_get_width window_get_height window_mouse_get_x ' +
- 'window_mouse_get_y window_mouse_set window_view_mouse_get_x ' +
- 'window_view_mouse_get_y window_views_mouse_get_x ' +
- 'window_views_mouse_get_y audio_listener_position ' +
- 'audio_listener_velocity audio_listener_orientation ' +
- 'audio_emitter_position audio_emitter_create audio_emitter_free ' +
- 'audio_emitter_exists audio_emitter_pitch audio_emitter_velocity ' +
- 'audio_emitter_falloff audio_emitter_gain audio_play_sound ' +
- 'audio_play_sound_on audio_play_sound_at audio_stop_sound ' +
- 'audio_resume_music audio_music_is_playing audio_resume_sound ' +
- 'audio_pause_sound audio_pause_music audio_channel_num ' +
- 'audio_sound_length audio_get_type audio_falloff_set_model ' +
- 'audio_play_music audio_stop_music audio_master_gain audio_music_gain ' +
- 'audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all ' +
- 'audio_pause_all audio_is_playing audio_is_paused audio_exists ' +
- 'audio_sound_set_track_position audio_sound_get_track_position ' +
- 'audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x ' +
- 'audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx ' +
- 'audio_emitter_get_vy audio_emitter_get_vz ' +
- 'audio_listener_set_position audio_listener_set_velocity ' +
- 'audio_listener_set_orientation audio_listener_get_data ' +
- 'audio_set_master_gain audio_get_master_gain audio_sound_get_gain ' +
- 'audio_sound_get_pitch audio_get_name audio_sound_set_track_position ' +
- 'audio_sound_get_track_position audio_create_stream ' +
- 'audio_destroy_stream audio_create_sync_group ' +
- 'audio_destroy_sync_group audio_play_in_sync_group ' +
- 'audio_start_sync_group audio_stop_sync_group audio_pause_sync_group ' +
- 'audio_resume_sync_group audio_sync_group_get_track_pos ' +
- 'audio_sync_group_debug audio_sync_group_is_playing audio_debug ' +
- 'audio_group_load audio_group_unload audio_group_is_loaded ' +
- 'audio_group_load_progress audio_group_name audio_group_stop_all ' +
- 'audio_group_set_gain audio_create_buffer_sound ' +
- 'audio_free_buffer_sound audio_create_play_queue ' +
- 'audio_free_play_queue audio_queue_sound audio_get_recorder_count ' +
- 'audio_get_recorder_info audio_start_recording audio_stop_recording ' +
- 'audio_sound_get_listener_mask audio_emitter_get_listener_mask ' +
- 'audio_get_listener_mask audio_sound_set_listener_mask ' +
- 'audio_emitter_set_listener_mask audio_set_listener_mask ' +
- 'audio_get_listener_count audio_get_listener_info audio_system ' +
- 'show_message show_message_async clickable_add clickable_add_ext ' +
- 'clickable_change clickable_change_ext clickable_delete ' +
- 'clickable_exists clickable_set_style show_question ' +
- 'show_question_async get_integer get_string get_integer_async ' +
- 'get_string_async get_login_async get_open_filename get_save_filename ' +
- 'get_open_filename_ext get_save_filename_ext show_error ' +
- 'highscore_clear highscore_add highscore_value highscore_name ' +
- 'draw_highscore sprite_exists sprite_get_name sprite_get_number ' +
- 'sprite_get_width sprite_get_height sprite_get_xoffset ' +
- 'sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right ' +
- 'sprite_get_bbox_top sprite_get_bbox_bottom sprite_save ' +
- 'sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext ' +
- 'sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush ' +
- 'sprite_flush_multi sprite_set_speed sprite_get_speed_type ' +
- 'sprite_get_speed font_exists font_get_name font_get_fontname ' +
- 'font_get_bold font_get_italic font_get_first font_get_last ' +
- 'font_get_size font_set_cache_size path_exists path_get_name ' +
- 'path_get_length path_get_time path_get_kind path_get_closed ' +
- 'path_get_precision path_get_number path_get_point_x path_get_point_y ' +
- 'path_get_point_speed path_get_x path_get_y path_get_speed ' +
- 'script_exists script_get_name timeline_add timeline_delete ' +
- 'timeline_clear timeline_exists timeline_get_name ' +
- 'timeline_moment_clear timeline_moment_add_script timeline_size ' +
- 'timeline_max_moment object_exists object_get_name object_get_sprite ' +
- 'object_get_solid object_get_visible object_get_persistent ' +
- 'object_get_mask object_get_parent object_get_physics ' +
- 'object_is_ancestor room_exists room_get_name sprite_set_offset ' +
- 'sprite_duplicate sprite_assign sprite_merge sprite_add ' +
- 'sprite_replace sprite_create_from_surface sprite_add_from_surface ' +
- 'sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask ' +
- 'font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite ' +
- 'font_add_sprite_ext font_replace font_replace_sprite ' +
- 'font_replace_sprite_ext font_delete path_set_kind path_set_closed ' +
- 'path_set_precision path_add path_assign path_duplicate path_append ' +
- 'path_delete path_add_point path_insert_point path_change_point ' +
- 'path_delete_point path_clear_points path_reverse path_mirror ' +
- 'path_flip path_rotate path_rescale path_shift script_execute ' +
- 'object_set_sprite object_set_solid object_set_visible ' +
- 'object_set_persistent object_set_mask room_set_width room_set_height ' +
- 'room_set_persistent room_set_background_colour ' +
- 'room_set_background_color room_set_view room_set_viewport ' +
- 'room_get_viewport room_set_view_enabled room_add room_duplicate ' +
- 'room_assign room_instance_add room_instance_clear room_get_camera ' +
- 'room_set_camera asset_get_index asset_get_type ' +
- 'file_text_open_from_string file_text_open_read file_text_open_write ' +
- 'file_text_open_append file_text_close file_text_write_string ' +
- 'file_text_write_real file_text_writeln file_text_read_string ' +
- 'file_text_read_real file_text_readln file_text_eof file_text_eoln ' +
- 'file_exists file_delete file_rename file_copy directory_exists ' +
- 'directory_create directory_destroy file_find_first file_find_next ' +
- 'file_find_close file_attributes filename_name filename_path ' +
- 'filename_dir filename_drive filename_ext filename_change_ext ' +
- 'file_bin_open file_bin_rewrite file_bin_close file_bin_position ' +
- 'file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte ' +
- 'parameter_count parameter_string environment_get_variable ' +
- 'ini_open_from_string ini_open ini_close ini_read_string ' +
- 'ini_read_real ini_write_string ini_write_real ini_key_exists ' +
- 'ini_section_exists ini_key_delete ini_section_delete ' +
- 'ds_set_precision ds_exists ds_stack_create ds_stack_destroy ' +
- 'ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ' +
- 'ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ' +
- 'ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ' +
- 'ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ' +
- 'ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ' +
- 'ds_list_create ds_list_destroy ds_list_clear ds_list_copy ' +
- 'ds_list_size ds_list_empty ds_list_add ds_list_insert ' +
- 'ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ' +
- 'ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ' +
- 'ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ' +
- 'ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ' +
- 'ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ' +
- 'ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ' +
- 'ds_map_find_value ds_map_find_previous ds_map_find_next ' +
- 'ds_map_find_first ds_map_find_last ds_map_write ds_map_read ' +
- 'ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ' +
- 'ds_map_secure_save_buffer ds_map_set ds_priority_create ' +
- 'ds_priority_destroy ds_priority_clear ds_priority_copy ' +
- 'ds_priority_size ds_priority_empty ds_priority_add ' +
- 'ds_priority_change_priority ds_priority_find_priority ' +
- 'ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ' +
- 'ds_priority_delete_max ds_priority_find_max ds_priority_write ' +
- 'ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ' +
- 'ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ' +
- 'ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ' +
- 'ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ' +
- 'ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ' +
- 'ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ' +
- 'ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ' +
- 'ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ' +
- 'ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ' +
- 'ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ' +
- 'ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ' +
- 'ds_grid_sort ds_grid_set ds_grid_get effect_create_below ' +
- 'effect_create_above effect_clear part_type_create part_type_destroy ' +
- 'part_type_exists part_type_clear part_type_shape part_type_sprite ' +
- 'part_type_size part_type_scale part_type_orientation part_type_life ' +
- 'part_type_step part_type_death part_type_speed part_type_direction ' +
- 'part_type_gravity part_type_colour1 part_type_colour2 ' +
- 'part_type_colour3 part_type_colour_mix part_type_colour_rgb ' +
- 'part_type_colour_hsv part_type_color1 part_type_color2 ' +
- 'part_type_color3 part_type_color_mix part_type_color_rgb ' +
- 'part_type_color_hsv part_type_alpha1 part_type_alpha2 ' +
- 'part_type_alpha3 part_type_blend part_system_create ' +
- 'part_system_create_layer part_system_destroy part_system_exists ' +
- 'part_system_clear part_system_draw_order part_system_depth ' +
- 'part_system_position part_system_automatic_update ' +
- 'part_system_automatic_draw part_system_update part_system_drawit ' +
- 'part_system_get_layer part_system_layer part_particles_create ' +
- 'part_particles_create_colour part_particles_create_color ' +
- 'part_particles_clear part_particles_count part_emitter_create ' +
- 'part_emitter_destroy part_emitter_destroy_all part_emitter_exists ' +
- 'part_emitter_clear part_emitter_region part_emitter_burst ' +
- 'part_emitter_stream external_call external_define external_free ' +
- 'window_handle window_device matrix_get matrix_set ' +
- 'matrix_build_identity matrix_build matrix_build_lookat ' +
- 'matrix_build_projection_ortho matrix_build_projection_perspective ' +
- 'matrix_build_projection_perspective_fov matrix_multiply ' +
- 'matrix_transform_vertex matrix_stack_push matrix_stack_pop ' +
- 'matrix_stack_multiply matrix_stack_set matrix_stack_clear ' +
- 'matrix_stack_top matrix_stack_is_empty browser_input_capture ' +
- 'os_get_config os_get_info os_get_language os_get_region ' +
- 'os_lock_orientation display_get_dpi_x display_get_dpi_y ' +
- 'display_set_gui_size display_set_gui_maximise ' +
- 'display_set_gui_maximize device_mouse_dbclick_enable ' +
- 'display_set_timing_method display_get_timing_method ' +
- 'display_set_sleep_margin display_get_sleep_margin virtual_key_add ' +
- 'virtual_key_hide virtual_key_delete virtual_key_show ' +
- 'draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level ' +
- 'draw_get_swf_aa_level draw_texture_flush draw_flush ' +
- 'gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc ' +
- 'gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog ' +
- 'gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext ' +
- 'gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable ' +
- 'gpu_set_colourwriteenable gpu_set_alphatestenable ' +
- 'gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter ' +
- 'gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext ' +
- 'gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat ' +
- 'gpu_set_tex_repeat_ext gpu_set_tex_mip_filter ' +
- 'gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias ' +
- 'gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext ' +
- 'gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso ' +
- 'gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable ' +
- 'gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable ' +
- 'gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable ' +
- 'gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext ' +
- 'gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src ' +
- 'gpu_get_blendmode_dest gpu_get_blendmode_srcalpha ' +
- 'gpu_get_blendmode_destalpha gpu_get_colorwriteenable ' +
- 'gpu_get_colourwriteenable gpu_get_alphatestenable ' +
- 'gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter ' +
- 'gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext ' +
- 'gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat ' +
- 'gpu_get_tex_repeat_ext gpu_get_tex_mip_filter ' +
- 'gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias ' +
- 'gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext ' +
- 'gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso ' +
- 'gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable ' +
- 'gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state ' +
- 'gpu_get_state gpu_set_state draw_light_define_ambient ' +
- 'draw_light_define_direction draw_light_define_point ' +
- 'draw_light_enable draw_set_lighting draw_light_get_ambient ' +
- 'draw_light_get draw_get_lighting shop_leave_rating url_get_domain ' +
- 'url_open url_open_ext url_open_full get_timer achievement_login ' +
- 'achievement_logout achievement_post achievement_increment ' +
- 'achievement_post_score achievement_available ' +
- 'achievement_show_achievements achievement_show_leaderboards ' +
- 'achievement_load_friends achievement_load_leaderboard ' +
- 'achievement_send_challenge achievement_load_progress ' +
- 'achievement_reset achievement_login_status achievement_get_pic ' +
- 'achievement_show_challenge_notifications achievement_get_challenges ' +
- 'achievement_event achievement_show achievement_get_info ' +
- 'cloud_file_save cloud_string_save cloud_synchronise ads_enable ' +
- 'ads_disable ads_setup ads_engagement_launch ads_engagement_available ' +
- 'ads_engagement_active ads_event ads_event_preload ' +
- 'ads_set_reward_callback ads_get_display_height ads_get_display_width ' +
- 'ads_move ads_interstitial_available ads_interstitial_display ' +
- 'device_get_tilt_x device_get_tilt_y device_get_tilt_z ' +
- 'device_is_keypad_open device_mouse_check_button ' +
- 'device_mouse_check_button_pressed device_mouse_check_button_released ' +
- 'device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y ' +
- 'device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status ' +
- 'iap_enumerate_products iap_restore_all iap_acquire iap_consume ' +
- 'iap_product_details iap_purchase_details facebook_init ' +
- 'facebook_login facebook_status facebook_graph_request ' +
- 'facebook_dialog facebook_logout facebook_launch_offerwall ' +
- 'facebook_post_message facebook_send_invite facebook_user_id ' +
- 'facebook_accesstoken facebook_check_permission ' +
- 'facebook_request_read_permissions ' +
- 'facebook_request_publish_permissions gamepad_is_supported ' +
- 'gamepad_get_device_count gamepad_is_connected ' +
- 'gamepad_get_description gamepad_get_button_threshold ' +
- 'gamepad_set_button_threshold gamepad_get_axis_deadzone ' +
- 'gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check ' +
- 'gamepad_button_check_pressed gamepad_button_check_released ' +
- 'gamepad_button_value gamepad_axis_count gamepad_axis_value ' +
- 'gamepad_set_vibration gamepad_set_colour gamepad_set_color ' +
- 'os_is_paused window_has_focus code_is_compiled http_get ' +
- 'http_get_file http_post_string http_request json_encode json_decode ' +
- 'zip_unzip load_csv base64_encode base64_decode md5_string_unicode ' +
- 'md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode ' +
- 'sha1_string_utf8 sha1_file os_powersave_enable analytics_event ' +
- 'analytics_event_ext win8_livetile_tile_notification ' +
- 'win8_livetile_tile_clear win8_livetile_badge_notification ' +
- 'win8_livetile_badge_clear win8_livetile_queue_enable ' +
- 'win8_secondarytile_pin win8_secondarytile_badge_notification ' +
- 'win8_secondarytile_delete win8_livetile_notification_begin ' +
- 'win8_livetile_notification_secondary_begin ' +
- 'win8_livetile_notification_expiry win8_livetile_notification_tag ' +
- 'win8_livetile_notification_text_add ' +
- 'win8_livetile_notification_image_add win8_livetile_notification_end ' +
- 'win8_appbar_enable win8_appbar_add_element ' +
- 'win8_appbar_remove_element win8_settingscharm_add_entry ' +
- 'win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry ' +
- 'win8_settingscharm_set_xaml_property ' +
- 'win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry ' +
- 'win8_share_image win8_share_screenshot win8_share_file ' +
- 'win8_share_url win8_share_text win8_search_enable ' +
- 'win8_search_disable win8_search_add_suggestions ' +
- 'win8_device_touchscreen_available win8_license_initialize_sandbox ' +
- 'win8_license_trial_version winphone_license_trial_version ' +
- 'winphone_tile_title winphone_tile_count winphone_tile_back_title ' +
- 'winphone_tile_back_content winphone_tile_back_content_wide ' +
- 'winphone_tile_front_image winphone_tile_front_image_small ' +
- 'winphone_tile_front_image_wide winphone_tile_back_image ' +
- 'winphone_tile_back_image_wide winphone_tile_background_colour ' +
- 'winphone_tile_background_color winphone_tile_icon_image ' +
- 'winphone_tile_small_icon_image winphone_tile_wide_content ' +
- 'winphone_tile_cycle_images winphone_tile_small_background_image ' +
- 'physics_world_create physics_world_gravity ' +
- 'physics_world_update_speed physics_world_update_iterations ' +
- 'physics_world_draw_debug physics_pause_enable physics_fixture_create ' +
- 'physics_fixture_set_kinematic physics_fixture_set_density ' +
- 'physics_fixture_set_awake physics_fixture_set_restitution ' +
- 'physics_fixture_set_friction physics_fixture_set_collision_group ' +
- 'physics_fixture_set_sensor physics_fixture_set_linear_damping ' +
- 'physics_fixture_set_angular_damping physics_fixture_set_circle_shape ' +
- 'physics_fixture_set_box_shape physics_fixture_set_edge_shape ' +
- 'physics_fixture_set_polygon_shape physics_fixture_set_chain_shape ' +
- 'physics_fixture_add_point physics_fixture_bind ' +
- 'physics_fixture_bind_ext physics_fixture_delete physics_apply_force ' +
- 'physics_apply_impulse physics_apply_angular_impulse ' +
- 'physics_apply_local_force physics_apply_local_impulse ' +
- 'physics_apply_torque physics_mass_properties physics_draw_debug ' +
- 'physics_test_overlap physics_remove_fixture physics_set_friction ' +
- 'physics_set_density physics_set_restitution physics_get_friction ' +
- 'physics_get_density physics_get_restitution ' +
- 'physics_joint_distance_create physics_joint_rope_create ' +
- 'physics_joint_revolute_create physics_joint_prismatic_create ' +
- 'physics_joint_pulley_create physics_joint_wheel_create ' +
- 'physics_joint_weld_create physics_joint_friction_create ' +
- 'physics_joint_gear_create physics_joint_enable_motor ' +
- 'physics_joint_get_value physics_joint_set_value physics_joint_delete ' +
- 'physics_particle_create physics_particle_delete ' +
- 'physics_particle_delete_region_circle ' +
- 'physics_particle_delete_region_box ' +
- 'physics_particle_delete_region_poly physics_particle_set_flags ' +
- 'physics_particle_set_category_flags physics_particle_draw ' +
- 'physics_particle_draw_ext physics_particle_count ' +
- 'physics_particle_get_data physics_particle_get_data_particle ' +
- 'physics_particle_group_begin physics_particle_group_circle ' +
- 'physics_particle_group_box physics_particle_group_polygon ' +
- 'physics_particle_group_add_point physics_particle_group_end ' +
- 'physics_particle_group_join physics_particle_group_delete ' +
- 'physics_particle_group_count physics_particle_group_get_data ' +
- 'physics_particle_group_get_mass physics_particle_group_get_inertia ' +
- 'physics_particle_group_get_centre_x ' +
- 'physics_particle_group_get_centre_y physics_particle_group_get_vel_x ' +
- 'physics_particle_group_get_vel_y physics_particle_group_get_ang_vel ' +
- 'physics_particle_group_get_x physics_particle_group_get_y ' +
- 'physics_particle_group_get_angle physics_particle_set_group_flags ' +
- 'physics_particle_get_group_flags physics_particle_get_max_count ' +
- 'physics_particle_get_radius physics_particle_get_density ' +
- 'physics_particle_get_damping physics_particle_get_gravity_scale ' +
- 'physics_particle_set_max_count physics_particle_set_radius ' +
- 'physics_particle_set_density physics_particle_set_damping ' +
- 'physics_particle_set_gravity_scale network_create_socket ' +
- 'network_create_socket_ext network_create_server ' +
- 'network_create_server_raw network_connect network_connect_raw ' +
- 'network_send_packet network_send_raw network_send_broadcast ' +
- 'network_send_udp network_send_udp_raw network_set_timeout ' +
- 'network_set_config network_resolve network_destroy buffer_create ' +
- 'buffer_write buffer_read buffer_seek buffer_get_surface ' +
- 'buffer_set_surface buffer_delete buffer_exists buffer_get_type ' +
- 'buffer_get_alignment buffer_poke buffer_peek buffer_save ' +
- 'buffer_save_ext buffer_load buffer_load_ext buffer_load_partial ' +
- 'buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize ' +
- 'buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode ' +
- 'buffer_base64_decode_ext buffer_sizeof buffer_get_address ' +
- 'buffer_create_from_vertex_buffer ' +
- 'buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer ' +
- 'buffer_async_group_begin buffer_async_group_option ' +
- 'buffer_async_group_end buffer_load_async buffer_save_async ' +
- 'gml_release_mode gml_pragma steam_activate_overlay ' +
- 'steam_is_overlay_enabled steam_is_overlay_activated ' +
- 'steam_get_persona_name steam_initialised ' +
- 'steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account ' +
- 'steam_file_persisted steam_get_quota_total steam_get_quota_free ' +
- 'steam_file_write steam_file_write_file steam_file_read ' +
- 'steam_file_delete steam_file_exists steam_file_size steam_file_share ' +
- 'steam_is_screenshot_requested steam_send_screenshot ' +
- 'steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc ' +
- 'steam_user_installed_dlc steam_set_achievement steam_get_achievement ' +
- 'steam_clear_achievement steam_set_stat_int steam_set_stat_float ' +
- 'steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float ' +
- 'steam_get_stat_avg_rate steam_reset_all_stats ' +
- 'steam_reset_all_stats_achievements steam_stats_ready ' +
- 'steam_create_leaderboard steam_upload_score steam_upload_score_ext ' +
- 'steam_download_scores_around_user steam_download_scores ' +
- 'steam_download_friends_scores steam_upload_score_buffer ' +
- 'steam_upload_score_buffer_ext steam_current_game_language ' +
- 'steam_available_languages steam_activate_overlay_browser ' +
- 'steam_activate_overlay_user steam_activate_overlay_store ' +
- 'steam_get_user_persona_name steam_get_app_id ' +
- 'steam_get_user_account_id steam_ugc_download steam_ugc_create_item ' +
- 'steam_ugc_start_item_update steam_ugc_set_item_title ' +
- 'steam_ugc_set_item_description steam_ugc_set_item_visibility ' +
- 'steam_ugc_set_item_tags steam_ugc_set_item_content ' +
- 'steam_ugc_set_item_preview steam_ugc_submit_item_update ' +
- 'steam_ugc_get_item_update_progress steam_ugc_subscribe_item ' +
- 'steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items ' +
- 'steam_ugc_get_subscribed_items steam_ugc_get_item_install_info ' +
- 'steam_ugc_get_item_update_info steam_ugc_request_item_details ' +
- 'steam_ugc_create_query_user steam_ugc_create_query_user_ex ' +
- 'steam_ugc_create_query_all steam_ugc_create_query_all_ex ' +
- 'steam_ugc_query_set_cloud_filename_filter ' +
- 'steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text ' +
- 'steam_ugc_query_set_ranked_by_trend_days ' +
- 'steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag ' +
- 'steam_ugc_query_set_return_long_description ' +
- 'steam_ugc_query_set_return_total_only ' +
- 'steam_ugc_query_set_allow_cached_response steam_ugc_send_query ' +
- 'shader_set shader_get_name shader_reset shader_current ' +
- 'shader_is_compiled shader_get_sampler_index shader_get_uniform ' +
- 'shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f ' +
- 'shader_set_uniform_f_array shader_set_uniform_matrix ' +
- 'shader_set_uniform_matrix_array shader_enable_corner_id ' +
- 'texture_set_stage texture_get_texel_width texture_get_texel_height ' +
- 'shaders_are_supported vertex_format_begin vertex_format_end ' +
- 'vertex_format_delete vertex_format_add_position ' +
- 'vertex_format_add_position_3d vertex_format_add_colour ' +
- 'vertex_format_add_color vertex_format_add_normal ' +
- 'vertex_format_add_texcoord vertex_format_add_textcoord ' +
- 'vertex_format_add_custom vertex_create_buffer ' +
- 'vertex_create_buffer_ext vertex_delete_buffer vertex_begin ' +
- 'vertex_end vertex_position vertex_position_3d vertex_colour ' +
- 'vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 ' +
- 'vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 ' +
- 'vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size ' +
- 'vertex_create_buffer_from_buffer ' +
- 'vertex_create_buffer_from_buffer_ext push_local_notification ' +
- 'push_get_first_local_notification push_get_next_local_notification ' +
- 'push_cancel_local_notification skeleton_animation_set ' +
- 'skeleton_animation_get skeleton_animation_mix ' +
- 'skeleton_animation_set_ext skeleton_animation_get_ext ' +
- 'skeleton_animation_get_duration skeleton_animation_get_frames ' +
- 'skeleton_animation_clear skeleton_skin_set skeleton_skin_get ' +
- 'skeleton_attachment_set skeleton_attachment_get ' +
- 'skeleton_attachment_create skeleton_collision_draw_set ' +
- 'skeleton_bone_data_get skeleton_bone_data_set ' +
- 'skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax ' +
- 'skeleton_get_num_bounds skeleton_get_bounds ' +
- 'skeleton_animation_get_frame skeleton_animation_set_frame ' +
- 'draw_skeleton draw_skeleton_time draw_skeleton_instance ' +
- 'draw_skeleton_collision skeleton_animation_list skeleton_skin_list ' +
- 'skeleton_slot_data layer_get_id layer_get_id_at_depth ' +
- 'layer_get_depth layer_create layer_destroy layer_destroy_instances ' +
- 'layer_add_instance layer_has_instance layer_set_visible ' +
- 'layer_get_visible layer_exists layer_x layer_y layer_get_x ' +
- 'layer_get_y layer_hspeed layer_vspeed layer_get_hspeed ' +
- 'layer_get_vspeed layer_script_begin layer_script_end layer_shader ' +
- 'layer_get_script_begin layer_get_script_end layer_get_shader ' +
- 'layer_set_target_room layer_get_target_room layer_reset_target_room ' +
- 'layer_get_all layer_get_all_elements layer_get_name layer_depth ' +
- 'layer_get_element_layer layer_get_element_type layer_element_move ' +
- 'layer_force_draw_depth layer_is_draw_depth_forced ' +
- 'layer_get_forced_depth layer_background_get_id ' +
- 'layer_background_exists layer_background_create ' +
- 'layer_background_destroy layer_background_visible ' +
- 'layer_background_change layer_background_sprite ' +
- 'layer_background_htiled layer_background_vtiled ' +
- 'layer_background_stretch layer_background_yscale ' +
- 'layer_background_xscale layer_background_blend ' +
- 'layer_background_alpha layer_background_index layer_background_speed ' +
- 'layer_background_get_visible layer_background_get_sprite ' +
- 'layer_background_get_htiled layer_background_get_vtiled ' +
- 'layer_background_get_stretch layer_background_get_yscale ' +
- 'layer_background_get_xscale layer_background_get_blend ' +
- 'layer_background_get_alpha layer_background_get_index ' +
- 'layer_background_get_speed layer_sprite_get_id layer_sprite_exists ' +
- 'layer_sprite_create layer_sprite_destroy layer_sprite_change ' +
- 'layer_sprite_index layer_sprite_speed layer_sprite_xscale ' +
- 'layer_sprite_yscale layer_sprite_angle layer_sprite_blend ' +
- 'layer_sprite_alpha layer_sprite_x layer_sprite_y ' +
- 'layer_sprite_get_sprite layer_sprite_get_index ' +
- 'layer_sprite_get_speed layer_sprite_get_xscale ' +
- 'layer_sprite_get_yscale layer_sprite_get_angle ' +
- 'layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x ' +
- 'layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists ' +
- 'layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x ' +
- 'tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset ' +
- 'tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width ' +
- 'tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get ' +
- 'tilemap_get_at_pixel tilemap_get_cell_x_at_pixel ' +
- 'tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile ' +
- 'tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask ' +
- 'tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index ' +
- 'tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty ' +
- 'tile_get_index tile_get_flip tile_get_mirror tile_get_rotate ' +
- 'layer_tile_exists layer_tile_create layer_tile_destroy ' +
- 'layer_tile_change layer_tile_xscale layer_tile_yscale ' +
- 'layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y ' +
- 'layer_tile_region layer_tile_visible layer_tile_get_sprite ' +
- 'layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend ' +
- 'layer_tile_get_alpha layer_tile_get_x layer_tile_get_y ' +
- 'layer_tile_get_region layer_tile_get_visible ' +
- 'layer_instance_get_instance instance_activate_layer ' +
- 'instance_deactivate_layer camera_create camera_create_view ' +
- 'camera_destroy camera_apply camera_get_active camera_get_default ' +
- 'camera_set_default camera_set_view_mat camera_set_proj_mat ' +
- 'camera_set_update_script camera_set_begin_script ' +
- 'camera_set_end_script camera_set_view_pos camera_set_view_size ' +
- 'camera_set_view_speed camera_set_view_border camera_set_view_angle ' +
- 'camera_set_view_target camera_get_view_mat camera_get_proj_mat ' +
- 'camera_get_update_script camera_get_begin_script ' +
- 'camera_get_end_script camera_get_view_x camera_get_view_y ' +
- 'camera_get_view_width camera_get_view_height camera_get_view_speed_x ' +
- 'camera_get_view_speed_y camera_get_view_border_x ' +
- 'camera_get_view_border_y camera_get_view_angle ' +
- 'camera_get_view_target view_get_camera view_get_visible ' +
- 'view_get_xport view_get_yport view_get_wport view_get_hport ' +
- 'view_get_surface_id view_set_camera view_set_visible view_set_xport ' +
- 'view_set_yport view_set_wport view_set_hport view_set_surface_id ' +
- 'gesture_drag_time gesture_drag_distance gesture_flick_speed ' +
- 'gesture_double_tap_time gesture_double_tap_distance ' +
- 'gesture_pinch_distance gesture_pinch_angle_towards ' +
- 'gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle ' +
- 'gesture_tap_count gesture_get_drag_time gesture_get_drag_distance ' +
- 'gesture_get_flick_speed gesture_get_double_tap_time ' +
- 'gesture_get_double_tap_distance gesture_get_pinch_distance ' +
- 'gesture_get_pinch_angle_towards gesture_get_pinch_angle_away ' +
- 'gesture_get_rotate_time gesture_get_rotate_angle ' +
- 'gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide ' +
- 'keyboard_virtual_status keyboard_virtual_height',
- literal: 'self other all noone global local undefined pointer_invalid ' +
- 'pointer_null path_action_stop path_action_restart ' +
- 'path_action_continue path_action_reverse true false pi GM_build_date ' +
- 'GM_version GM_runtime_version timezone_local timezone_utc ' +
- 'gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ' +
- 'ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ' +
- 'ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ' +
- 'ev_keyrelease ev_trigger ev_left_button ev_right_button ' +
- 'ev_middle_button ev_no_button ev_left_press ev_right_press ' +
- 'ev_middle_press ev_left_release ev_right_release ev_middle_release ' +
- 'ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ' +
- 'ev_global_left_button ev_global_right_button ev_global_middle_button ' +
- 'ev_global_left_press ev_global_right_press ev_global_middle_press ' +
- 'ev_global_left_release ev_global_right_release ' +
- 'ev_global_middle_release ev_joystick1_left ev_joystick1_right ' +
- 'ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ' +
- 'ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ' +
- 'ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ' +
- 'ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ' +
- 'ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ' +
- 'ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ' +
- 'ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ' +
- 'ev_joystick2_button8 ev_outside ev_boundary ev_game_start ' +
- 'ev_game_end ev_room_start ev_room_end ev_no_more_lives ' +
- 'ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ' +
- 'ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ' +
- 'ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ' +
- 'ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ' +
- 'ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ' +
- 'ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ' +
- 'ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ' +
- 'ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ' +
- 'ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ' +
- 'ev_global_gesture_tap ev_global_gesture_double_tap ' +
- 'ev_global_gesture_drag_start ev_global_gesture_dragging ' +
- 'ev_global_gesture_drag_end ev_global_gesture_flick ' +
- 'ev_global_gesture_pinch_start ev_global_gesture_pinch_in ' +
- 'ev_global_gesture_pinch_out ev_global_gesture_pinch_end ' +
- 'ev_global_gesture_rotate_start ev_global_gesture_rotating ' +
- 'ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return ' +
- 'vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab ' +
- 'vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home ' +
- 'vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 ' +
- 'vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 ' +
- 'vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 ' +
- 'vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract ' +
- 'vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift ' +
- 'vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle ' +
- 'c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime ' +
- 'c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal ' +
- 'c_white c_yellow c_orange fa_left fa_center fa_right fa_top ' +
- 'fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip ' +
- 'pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal ' +
- 'bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour ' +
- 'bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha ' +
- 'bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour ' +
- 'bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat ' +
- 'tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly ' +
- 'audio_falloff_none audio_falloff_inverse_distance ' +
- 'audio_falloff_inverse_distance_clamped audio_falloff_linear_distance ' +
- 'audio_falloff_linear_distance_clamped ' +
- 'audio_falloff_exponent_distance ' +
- 'audio_falloff_exponent_distance_clamped audio_old_system ' +
- 'audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none ' +
- 'cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse ' +
- 'cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint ' +
- 'cr_size_all spritespeed_framespersecond ' +
- 'spritespeed_framespergameframe asset_object asset_unknown ' +
- 'asset_sprite asset_sound asset_room asset_path asset_script ' +
- 'asset_font asset_timeline asset_tiles asset_shader fa_readonly ' +
- 'fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ' +
- 'ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ' +
- 'ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ' +
- 'ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ' +
- 'ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line ' +
- 'pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere ' +
- 'pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud ' +
- 'pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ' +
- 'ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ' +
- 'ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl ' +
- 'dll_stdcall matrix_view matrix_projection matrix_world os_win32 ' +
- 'os_windows os_macosx os_ios os_android os_symbian os_linux ' +
- 'os_unknown os_winphone os_tizen os_win8native ' +
- 'os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone ' +
- 'os_ps3 os_xbox360 os_uwp os_tvos os_switch ' +
- 'browser_not_a_browser browser_unknown browser_ie browser_firefox ' +
- 'browser_chrome browser_safari browser_safari_mobile browser_opera ' +
- 'browser_tizen browser_edge browser_windows_store browser_ie_mobile ' +
- 'device_ios_unknown device_ios_iphone device_ios_iphone_retina ' +
- 'device_ios_ipad device_ios_ipad_retina device_ios_iphone5 ' +
- 'device_ios_iphone6 device_ios_iphone6plus device_emulator ' +
- 'device_tablet display_landscape display_landscape_flipped ' +
- 'display_portrait display_portrait_flipped tm_sleep tm_countvsyncs ' +
- 'of_challenge_win of_challen ge_lose of_challenge_tie ' +
- 'leaderboard_type_number leaderboard_type_time_mins_secs ' +
- 'cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal ' +
- 'cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always ' +
- 'cull_noculling cull_clockwise cull_counterclockwise lighttype_dir ' +
- 'lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase ' +
- 'iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed ' +
- 'iap_status_uninitialised iap_status_unavailable iap_status_loading ' +
- 'iap_status_available iap_status_processing iap_status_restoring ' +
- 'iap_failed iap_unavailable iap_available iap_purchased iap_canceled ' +
- 'iap_refunded fb_login_default fb_login_fallback_to_webview ' +
- 'fb_login_no_fallback_to_webview fb_login_forcing_webview ' +
- 'fb_login_use_system_account fb_login_forcing_safari ' +
- 'phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x ' +
- 'phy_joint_anchor_2_y phy_joint_reaction_force_x ' +
- 'phy_joint_reaction_force_y phy_joint_reaction_torque ' +
- 'phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque ' +
- 'phy_joint_max_motor_torque phy_joint_translation phy_joint_speed ' +
- 'phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 ' +
- 'phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency ' +
- 'phy_joint_lower_angle_limit phy_joint_upper_angle_limit ' +
- 'phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque ' +
- 'phy_joint_max_force phy_debug_render_aabb ' +
- 'phy_debug_render_collision_pairs phy_debug_render_coms ' +
- 'phy_debug_render_core_shapes phy_debug_render_joints ' +
- 'phy_debug_render_obb phy_debug_render_shapes ' +
- 'phy_particle_flag_water phy_particle_flag_zombie ' +
- 'phy_particle_flag_wall phy_particle_flag_spring ' +
- 'phy_particle_flag_elastic phy_particle_flag_viscous ' +
- 'phy_particle_flag_powder phy_particle_flag_tensile ' +
- 'phy_particle_flag_colourmixing phy_particle_flag_colormixing ' +
- 'phy_particle_group_flag_solid phy_particle_group_flag_rigid ' +
- 'phy_particle_data_flag_typeflags phy_particle_data_flag_position ' +
- 'phy_particle_data_flag_velocity phy_particle_data_flag_colour ' +
- 'phy_particle_data_flag_color phy_particle_data_flag_category ' +
- 'achievement_our_info achievement_friends_info ' +
- 'achievement_leaderboard_info achievement_achievement_info ' +
- 'achievement_filter_all_players achievement_filter_friends_only ' +
- 'achievement_filter_favorites_only ' +
- 'achievement_type_achievement_challenge ' +
- 'achievement_type_score_challenge achievement_pic_loaded ' +
- 'achievement_show_ui achievement_show_profile ' +
- 'achievement_show_leaderboard achievement_show_achievement ' +
- 'achievement_show_bank achievement_show_friend_picker ' +
- 'achievement_show_purchase_prompt network_socket_tcp ' +
- 'network_socket_udp network_socket_bluetooth network_type_connect ' +
- 'network_type_disconnect network_type_data ' +
- 'network_type_non_blocking_connect network_config_connect_timeout ' +
- 'network_config_use_non_blocking_socket ' +
- 'network_config_enable_reliable_udp ' +
- 'network_config_disable_reliable_udp buffer_fixed buffer_grow ' +
- 'buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 ' +
- 'buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 ' +
- 'buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text ' +
- 'buffer_string buffer_surface_copy buffer_seek_start ' +
- 'buffer_seek_relative buffer_seek_end ' +
- 'buffer_generalerror buffer_outofspace buffer_outofbounds ' +
- 'buffer_invalidtype text_type button_type input_type ANSI_CHARSET ' +
- 'DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET ' +
- 'SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET ' +
- 'JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET ' +
- 'TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET ' +
- 'BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 ' +
- 'gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select ' +
- 'gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr ' +
- 'gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ' +
- 'ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none ' +
- 'lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric ' +
- 'lb_disp_time_sec lb_disp_time_ms ugc_result_success ' +
- 'ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ' +
- 'ugc_visibility_friends_only ugc_visibility_private ' +
- 'ugc_query_RankedByVote ugc_query_RankedByPublicationDate ' +
- 'ugc_query_AcceptedForGameRankedByAcceptanceDate ' +
- 'ugc_query_RankedByTrend ' +
- 'ugc_query_FavoritedByFriendsRankedByPublicationDate ' +
- 'ugc_query_CreatedByFriendsRankedByPublicationDate ' +
- 'ugc_query_RankedByNumTimesReported ' +
- 'ugc_query_CreatedByFollowedUsersRankedByPublicationDate ' +
- 'ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ' +
- 'ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ' +
- 'ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ' +
- 'ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ' +
- 'ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ' +
- 'ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ' +
- 'ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ' +
- 'ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ' +
- 'ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ' +
- 'ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ' +
- 'ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ' +
- 'ugc_match_WebGuides ugc_match_IntegratedGuides ' +
- 'ugc_match_UsableInGame ugc_match_ControllerBindings ' +
- 'vertex_usage_position vertex_usage_colour vertex_usage_color ' +
- 'vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord ' +
- 'vertex_usage_blendweight vertex_usage_blendindices ' +
- 'vertex_usage_psize vertex_usage_tangent vertex_usage_binormal ' +
- 'vertex_usage_fog vertex_usage_depth vertex_usage_sample ' +
- 'vertex_type_float1 vertex_type_float2 vertex_type_float3 ' +
- 'vertex_type_float4 vertex_type_colour vertex_type_color ' +
- 'vertex_type_ubyte4 layerelementtype_undefined ' +
- 'layerelementtype_background layerelementtype_instance ' +
- 'layerelementtype_oldtilemap layerelementtype_sprite ' +
- 'layerelementtype_tilemap layerelementtype_particlesystem ' +
- 'layerelementtype_tile tile_rotate tile_flip tile_mirror ' +
- 'tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url ' +
- 'kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name ' +
- 'kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google ' +
- 'kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route ' +
- 'kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo ' +
- 'kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency ' +
- 'kbv_autocapitalize_none kbv_autocapitalize_words ' +
- 'kbv_autocapitalize_sentences kbv_autocapitalize_characters',
- symbol: 'argument_relative argument argument0 argument1 argument2 ' +
- 'argument3 argument4 argument5 argument6 argument7 argument8 ' +
- 'argument9 argument10 argument11 argument12 argument13 argument14 ' +
- 'argument15 argument_count x y xprevious yprevious xstart ystart ' +
- 'hspeed vspeed direction speed friction gravity gravity_direction ' +
- 'path_index path_position path_positionprevious path_speed ' +
- 'path_scale path_orientation path_endaction object_index id solid ' +
- 'persistent mask_index instance_count instance_id room_speed fps ' +
- 'fps_real current_time current_year current_month current_day ' +
- 'current_weekday current_hour current_minute current_second alarm ' +
- 'timeline_index timeline_position timeline_speed timeline_running ' +
- 'timeline_loop room room_first room_last room_width room_height ' +
- 'room_caption room_persistent score lives health show_score ' +
- 'show_lives show_health caption_score caption_lives caption_health ' +
- 'event_type event_number event_object event_action ' +
- 'application_surface gamemaker_pro gamemaker_registered ' +
- 'gamemaker_version error_occurred error_last debug_mode ' +
- 'keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string ' +
- 'mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite ' +
- 'visible sprite_index sprite_width sprite_height sprite_xoffset ' +
- 'sprite_yoffset image_number image_index image_speed depth ' +
- 'image_xscale image_yscale image_angle image_alpha image_blend ' +
- 'bbox_left bbox_right bbox_top bbox_bottom layer background_colour ' +
- 'background_showcolour background_color background_showcolor ' +
- 'view_enabled view_current view_visible view_xview view_yview ' +
- 'view_wview view_hview view_xport view_yport view_wport view_hport ' +
- 'view_angle view_hborder view_vborder view_hspeed view_vspeed ' +
- 'view_object view_surface_id view_camera game_id game_display_name ' +
- 'game_project_name game_save_id working_directory temp_directory ' +
- 'program_directory browser_width browser_height os_type os_device ' +
- 'os_browser os_version display_aa async_load delta_time ' +
- 'webgl_enabled event_data iap_data phy_rotation phy_position_x ' +
- 'phy_position_y phy_angular_velocity phy_linear_velocity_x ' +
- 'phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed ' +
- 'phy_angular_damping phy_linear_damping phy_bullet ' +
- 'phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x ' +
- 'phy_com_y phy_dynamic phy_kinematic phy_sleeping ' +
- 'phy_collision_points phy_collision_x phy_collision_y ' +
- 'phy_col_normal_x phy_col_normal_y phy_position_xprevious ' +
- 'phy_position_yprevious'
- };
-
- return {
- aliases: ['gml', 'GML'],
- case_insensitive: false, // language is case-insensitive
- keywords: GML_KEYWORDS,
-
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/go.js b/swh/web/static/jssources/highlight.js/lib/languages/go.js
deleted file mode 100644
index 2a5a8649..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/go.js
+++ /dev/null
@@ -1,53 +0,0 @@
-module.exports = function(hljs) {
- var GO_KEYWORDS = {
- keyword:
- 'break default func interface select case map struct chan else goto package switch ' +
- 'const fallthrough if range type continue for import return var go defer ' +
- 'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' +
- 'uint16 uint32 uint64 int uint uintptr rune',
- literal:
- 'true false iota nil',
- built_in:
- 'append cap close complex copy imag len make new panic print println real recover delete'
- };
- return {
- aliases: ['golang'],
- keywords: GO_KEYWORDS,
- illegal: '',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'string',
- variants: [
- hljs.QUOTE_STRING_MODE,
- {begin: '\'', end: '[^\\\\]\''},
- {begin: '`', end: '`'},
- ]
- },
- {
- className: 'number',
- variants: [
- {begin: hljs.C_NUMBER_RE + '[dflsi]', relevance: 1},
- hljs.C_NUMBER_MODE
- ]
- },
- {
- begin: /:=/ // relevance booster
- },
- {
- className: 'function',
- beginKeywords: 'func', end: /\s*\{/, excludeEnd: true,
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- keywords: GO_KEYWORDS,
- illegal: /["']/
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/golo.js b/swh/web/static/jssources/highlight.js/lib/languages/golo.js
deleted file mode 100644
index c8cfcbef..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/golo.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword:
- 'println readln print import module function local return let var ' +
- 'while for foreach times in case when match with break continue ' +
- 'augment augmentation each find filter reduce ' +
- 'if then else otherwise try catch finally raise throw orIfNull ' +
- 'DynamicObject|10 DynamicVariable struct Observable map set vector list array',
- literal:
- 'true false null'
- },
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'meta', begin: '@[A-Za-z]+'
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/gradle.js b/swh/web/static/jssources/highlight.js/lib/languages/gradle.js
deleted file mode 100644
index 35140400..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/gradle.js
+++ /dev/null
@@ -1,34 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- keywords: {
- keyword:
- 'task project allprojects subprojects artifacts buildscript configurations ' +
- 'dependencies repositories sourceSets description delete from into include ' +
- 'exclude source classpath destinationDir includes options sourceCompatibility ' +
- 'targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant ' +
- 'def abstract break case catch continue default do else extends final finally ' +
- 'for if implements instanceof native new private protected public return static ' +
- 'switch synchronized throw throws transient try volatile while strictfp package ' +
- 'import false null super this true antlrtask checkstyle codenarc copy boolean ' +
- 'byte char class double float int interface long short void compile runTime ' +
- 'file fileTree abs any append asList asWritable call collect compareTo count ' +
- 'div dump each eachByte eachFile eachLine every find findAll flatten getAt ' +
- 'getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods ' +
- 'isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter ' +
- 'newReader newWriter next plus pop power previous print println push putAt read ' +
- 'readBytes readLines reverse reverseEach round size sort splitEachLine step subMap ' +
- 'times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader ' +
- 'withStream withWriter withWriterAppend write writeLine'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE,
- hljs.REGEXP_MODE
-
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/groovy.js b/swh/web/static/jssources/highlight.js/lib/languages/groovy.js
deleted file mode 100644
index 02f7d5b5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/groovy.js
+++ /dev/null
@@ -1,93 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- literal : 'true false null',
- keyword:
- 'byte short char int long boolean float double void ' +
- // groovy specific keywords
- 'def as in assert trait ' +
- // common keywords with Java
- 'super this abstract static volatile transient public private protected synchronized final ' +
- 'class interface enum if else for while switch case break default continue ' +
- 'throw throws try catch finally implements extends new import package return instanceof'
- },
-
- contains: [
- hljs.COMMENT(
- '/\\*\\*',
- '\\*/',
- {
- relevance : 0,
- contains : [
- {
- // eat up @'s in emails to prevent them to be recognized as doctags
- begin: /\w+@/, relevance: 0
- },
- {
- className : 'doctag',
- begin : '@[A-Za-z]+'
- }
- ]
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'string',
- begin: '"""', end: '"""'
- },
- {
- className: 'string',
- begin: "'''", end: "'''"
- },
- {
- className: 'string',
- begin: "\\$/", end: "/\\$",
- relevance: 10
- },
- hljs.APOS_STRING_MODE,
- {
- className: 'regexp',
- begin: /~?\/[^\/\n]+\//,
- contains: [
- hljs.BACKSLASH_ESCAPE
- ]
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'meta',
- begin: "^#!/usr/bin/env", end: '$',
- illegal: '\n'
- },
- hljs.BINARY_NUMBER_MODE,
- {
- className: 'class',
- beginKeywords: 'class interface trait enum', end: '{',
- illegal: ':',
- contains: [
- {beginKeywords: 'extends implements'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- hljs.C_NUMBER_MODE,
- {
- className: 'meta', begin: '@[A-Za-z]+'
- },
- {
- // highlight map keys and named parameters as strings
- className: 'string', begin: /[^\?]{0}[A-Za-z0-9_$]+ *:/
- },
- {
- // catch middle element of the ternary operator
- // to avoid highlight it as a label, named parameter, or map key
- begin: /\?/, end: /\:/
- },
- {
- // highlight labeled statements
- className: 'symbol', begin: '^\\s*[A-Za-z0-9_$]+:',
- relevance: 0
- }
- ],
- illegal: /#|<\//
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/haml.js b/swh/web/static/jssources/highlight.js/lib/languages/haml.js
deleted file mode 100644
index c8d0b6d8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/haml.js
+++ /dev/null
@@ -1,106 +0,0 @@
-module.exports = // TODO support filter tags like :javascript, support inline HTML
-function(hljs) {
- return {
- case_insensitive: true,
- contains: [
- {
- className: 'meta',
- begin: '^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$',
- relevance: 10
- },
- // FIXME these comments should be allowed to span indented lines
- hljs.COMMENT(
- '^\\s*(!=#|=#|-#|/).*$',
- false,
- {
- relevance: 0
- }
- ),
- {
- begin: '^\\s*(-|=|!=)(?!#)',
- starts: {
- end: '\\n',
- subLanguage: 'ruby'
- }
- },
- {
- className: 'tag',
- begin: '^\\s*%',
- contains: [
- {
- className: 'selector-tag',
- begin: '\\w+'
- },
- {
- className: 'selector-id',
- begin: '#[\\w-]+'
- },
- {
- className: 'selector-class',
- begin: '\\.[\\w-]+'
- },
- {
- begin: '{\\s*',
- end: '\\s*}',
- contains: [
- {
- begin: ':\\w+\\s*=>',
- end: ',\\s+',
- returnBegin: true,
- endsWithParent: true,
- contains: [
- {
- className: 'attr',
- begin: ':\\w+'
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- begin: '\\w+',
- relevance: 0
- }
- ]
- }
- ]
- },
- {
- begin: '\\(\\s*',
- end: '\\s*\\)',
- excludeEnd: true,
- contains: [
- {
- begin: '\\w+\\s*=',
- end: '\\s+',
- returnBegin: true,
- endsWithParent: true,
- contains: [
- {
- className: 'attr',
- begin: '\\w+',
- relevance: 0
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- begin: '\\w+',
- relevance: 0
- }
- ]
- }
- ]
- }
- ]
- },
- {
- begin: '^\\s*[=~]\\s*'
- },
- {
- begin: '#{',
- starts: {
- end: '}',
- subLanguage: 'ruby'
- }
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/handlebars.js b/swh/web/static/jssources/highlight.js/lib/languages/handlebars.js
deleted file mode 100644
index 87c16f30..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/handlebars.js
+++ /dev/null
@@ -1,33 +0,0 @@
-module.exports = function(hljs) {
- var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'};
- return {
- aliases: ['hbs', 'html.hbs', 'html.handlebars'],
- case_insensitive: true,
- subLanguage: 'xml',
- contains: [
- hljs.COMMENT('{{!(--)?', '(--)?}}'),
- {
- className: 'template-tag',
- begin: /\{\{[#\/]/, end: /\}\}/,
- contains: [
- {
- className: 'name',
- begin: /[a-zA-Z\.-]+/,
- keywords: BUILT_INS,
- starts: {
- endsWithParent: true, relevance: 0,
- contains: [
- hljs.QUOTE_STRING_MODE
- ]
- }
- }
- ]
- },
- {
- className: 'template-variable',
- begin: /\{\{/, end: /\}\}/,
- keywords: BUILT_INS
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/haskell.js b/swh/web/static/jssources/highlight.js/lib/languages/haskell.js
deleted file mode 100644
index 86673873..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/haskell.js
+++ /dev/null
@@ -1,121 +0,0 @@
-module.exports = function(hljs) {
- var COMMENT = {
- variants: [
- hljs.COMMENT('--', '$'),
- hljs.COMMENT(
- '{-',
- '-}',
- {
- contains: ['self']
- }
- )
- ]
- };
-
- var PRAGMA = {
- className: 'meta',
- begin: '{-#', end: '#-}'
- };
-
- var PREPROCESSOR = {
- className: 'meta',
- begin: '^#', end: '$'
- };
-
- var CONSTRUCTOR = {
- className: 'type',
- begin: '\\b[A-Z][\\w\']*', // TODO: other constructors (build-in, infix).
- relevance: 0
- };
-
- var LIST = {
- begin: '\\(', end: '\\)',
- illegal: '"',
- contains: [
- PRAGMA,
- PREPROCESSOR,
- {className: 'type', begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?'},
- hljs.inherit(hljs.TITLE_MODE, {begin: '[_a-z][\\w\']*'}),
- COMMENT
- ]
- };
-
- var RECORD = {
- begin: '{', end: '}',
- contains: LIST.contains
- };
-
- return {
- aliases: ['hs'],
- keywords:
- 'let in if then else case of where do module import hiding ' +
- 'qualified type data newtype deriving class instance as default ' +
- 'infix infixl infixr foreign export ccall stdcall cplusplus ' +
- 'jvm dotnet safe unsafe family forall mdo proc rec',
- contains: [
-
- // Top-level constructions.
-
- {
- beginKeywords: 'module', end: 'where',
- keywords: 'module where',
- contains: [LIST, COMMENT],
- illegal: '\\W\\.|;'
- },
- {
- begin: '\\bimport\\b', end: '$',
- keywords: 'import qualified as hiding',
- contains: [LIST, COMMENT],
- illegal: '\\W\\.|;'
- },
-
- {
- className: 'class',
- begin: '^(\\s*)?(class|instance)\\b', end: 'where',
- keywords: 'class family instance where',
- contains: [CONSTRUCTOR, LIST, COMMENT]
- },
- {
- className: 'class',
- begin: '\\b(data|(new)?type)\\b', end: '$',
- keywords: 'data family type newtype deriving',
- contains: [PRAGMA, CONSTRUCTOR, LIST, RECORD, COMMENT]
- },
- {
- beginKeywords: 'default', end: '$',
- contains: [CONSTRUCTOR, LIST, COMMENT]
- },
- {
- beginKeywords: 'infix infixl infixr', end: '$',
- contains: [hljs.C_NUMBER_MODE, COMMENT]
- },
- {
- begin: '\\bforeign\\b', end: '$',
- keywords: 'foreign import export ccall stdcall cplusplus jvm ' +
- 'dotnet safe unsafe',
- contains: [CONSTRUCTOR, hljs.QUOTE_STRING_MODE, COMMENT]
- },
- {
- className: 'meta',
- begin: '#!\\/usr\\/bin\\/env\ runhaskell', end: '$'
- },
-
- // "Whitespaces".
-
- PRAGMA,
- PREPROCESSOR,
-
- // Literals and names.
-
- // TODO: characters.
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- CONSTRUCTOR,
- hljs.inherit(hljs.TITLE_MODE, {begin: '^[_a-z][\\w\']*'}),
-
- COMMENT,
-
- {begin: '->|<-'} // No markup, relevance booster
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/haxe.js b/swh/web/static/jssources/highlight.js/lib/languages/haxe.js
deleted file mode 100644
index ca817029..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/haxe.js
+++ /dev/null
@@ -1,111 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
- var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
-
- var HAXE_BASIC_TYPES = 'Int Float String Bool Dynamic Void Array ';
-
- return {
- aliases: ['hx'],
- keywords: {
- keyword: 'break case cast catch continue default do dynamic else enum extern ' +
- 'for function here if import in inline never new override package private get set ' +
- 'public return static super switch this throw trace try typedef untyped using var while ' +
- HAXE_BASIC_TYPES,
- built_in:
- 'trace this',
- literal:
- 'true false null _'
- },
- contains: [
- { className: 'string', // interpolate-able strings
- begin: '\'', end: '\'',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- { className: 'subst', // interpolation
- begin: '\\$\\{', end: '\\}'
- },
- { className: 'subst', // interpolation
- begin: '\\$', end: '\\W}'
- }
- ]
- },
- hljs.QUOTE_STRING_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_NUMBER_MODE,
- { className: 'meta', // compiler meta
- begin: '@:', end: '$'
- },
- { className: 'meta', // compiler conditionals
- begin: '#', end: '$',
- keywords: {'meta-keyword': 'if else elseif end error'}
- },
- { className: 'type', // function types
- begin: ':[ \t]*', end: '[^A-Za-z0-9_ \t\\->]',
- excludeBegin: true, excludeEnd: true,
- relevance: 0
- },
- { className: 'type', // types
- begin: ':[ \t]*', end: '\\W',
- excludeBegin: true, excludeEnd: true
- },
- { className: 'type', // instantiation
- begin: 'new *', end: '\\W',
- excludeBegin: true, excludeEnd: true
- },
- { className: 'class', // enums
- beginKeywords: 'enum', end: '\\{',
- contains: [
- hljs.TITLE_MODE
- ]
- },
- { className: 'class', // abstracts
- beginKeywords: 'abstract', end: '[\\{$]',
- contains: [
- { className: 'type',
- begin: '\\(', end: '\\)',
- excludeBegin: true, excludeEnd: true
- },
- { className: 'type',
- begin: 'from +', end: '\\W',
- excludeBegin: true, excludeEnd: true
- },
- { className: 'type',
- begin: 'to +', end: '\\W',
- excludeBegin: true, excludeEnd: true
- },
- hljs.TITLE_MODE
- ],
- keywords: {
- keyword: 'abstract from to'
- }
- },
- { className: 'class', // classes
- begin: '\\b(class|interface) +', end: '[\\{$]', excludeEnd: true,
- keywords: 'class interface',
- contains: [
- { className: 'keyword',
- begin: '\\b(extends|implements) +',
- keywords: 'extends implements',
- contains: [
- {
- className: 'type',
- begin: hljs.IDENT_RE,
- relevance: 0
- }
- ]
- },
- hljs.TITLE_MODE
- ]
- },
- { className: 'function',
- beginKeywords: 'function', end: '\\(', excludeEnd: true,
- illegal: '\\S',
- contains: [
- hljs.TITLE_MODE
- ]
- }
- ],
- illegal: /<\//
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/hsp.js b/swh/web/static/jssources/highlight.js/lib/languages/hsp.js
deleted file mode 100644
index 6f5daa06..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/hsp.js
+++ /dev/null
@@ -1,45 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- lexemes: /[\w\._]+/,
- keywords: 'goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
-
- {
- // multi-line string
- className: 'string',
- begin: '{"', end: '"}',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
-
- hljs.COMMENT(';', '$', {relevance: 0}),
-
- {
- // pre-processor
- className: 'meta',
- begin: '#', end: '$',
- keywords: {'meta-keyword': 'addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib'},
- contains: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, {className: 'meta-string'}),
- hljs.NUMBER_MODE,
- hljs.C_NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
-
- {
- // label
- className: 'symbol',
- begin: '^\\*(\\w+|@)'
- },
-
- hljs.NUMBER_MODE,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/htmlbars.js b/swh/web/static/jssources/highlight.js/lib/languages/htmlbars.js
deleted file mode 100644
index 0c13380f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/htmlbars.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = function(hljs) {
- var BUILT_INS = 'action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view';
-
- var ATTR_ASSIGNMENT = {
- illegal: /\}\}/,
- begin: /[a-zA-Z0-9_]+=/,
- returnBegin: true,
- relevance: 0,
- contains: [
- {
- className: 'attr', begin: /[a-zA-Z0-9_]+/
- }
- ]
- };
-
- var SUB_EXPR = {
- illegal: /\}\}/,
- begin: /\)/, end: /\)/,
- contains: [
- {
- begin: /[a-zA-Z\.\-]+/,
- keywords: {built_in: BUILT_INS},
- starts: {
- endsWithParent: true, relevance: 0,
- contains: [
- hljs.QUOTE_STRING_MODE,
- ]
- }
- }
- ]
- };
-
- var TAG_INNARDS = {
- endsWithParent: true, relevance: 0,
- keywords: {keyword: 'as', built_in: BUILT_INS},
- contains: [
- hljs.QUOTE_STRING_MODE,
- ATTR_ASSIGNMENT,
- hljs.NUMBER_MODE
- ]
- };
-
- return {
- case_insensitive: true,
- subLanguage: 'xml',
- contains: [
- hljs.COMMENT('{{!(--)?', '(--)?}}'),
- {
- className: 'template-tag',
- begin: /\{\{[#\/]/, end: /\}\}/,
- contains: [
- {
- className: 'name',
- begin: /[a-zA-Z\.\-]+/,
- keywords: {'builtin-name': BUILT_INS},
- starts: TAG_INNARDS
- }
- ]
- },
- {
- className: 'template-variable',
- begin: /\{\{[a-zA-Z][a-zA-Z\-]+/, end: /\}\}/,
- keywords: {keyword: 'as', built_in: BUILT_INS},
- contains: [
- hljs.QUOTE_STRING_MODE
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/http.js b/swh/web/static/jssources/highlight.js/lib/languages/http.js
deleted file mode 100644
index e85fe0b7..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/http.js
+++ /dev/null
@@ -1,40 +0,0 @@
-module.exports = function(hljs) {
- var VERSION = 'HTTP/[0-9\\.]+';
- return {
- aliases: ['https'],
- illegal: '\\S',
- contains: [
- {
- begin: '^' + VERSION, end: '$',
- contains: [{className: 'number', begin: '\\b\\d{3}\\b'}]
- },
- {
- begin: '^[A-Z]+ (.*?) ' + VERSION + '$', returnBegin: true, end: '$',
- contains: [
- {
- className: 'string',
- begin: ' ', end: ' ',
- excludeBegin: true, excludeEnd: true
- },
- {
- begin: VERSION
- },
- {
- className: 'keyword',
- begin: '[A-Z]+'
- }
- ]
- },
- {
- className: 'attribute',
- begin: '^\\w', end: ': ', excludeEnd: true,
- illegal: '\\n|\\s|=',
- starts: {end: '$', relevance: 0}
- },
- {
- begin: '\\n\\n',
- starts: {subLanguage: [], endsWithParent: true}
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/hy.js b/swh/web/static/jssources/highlight.js/lib/languages/hy.js
deleted file mode 100644
index 9beb36a4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/hy.js
+++ /dev/null
@@ -1,101 +0,0 @@
-module.exports = function(hljs) {
- var keywords = {
- 'builtin-name':
- // keywords
- '!= % %= & &= * ** **= *= *map ' +
- '+ += , --build-class-- --import-- -= . / // //= ' +
- '/= < << <<= <= = > >= >> >>= ' +
- '@ @= ^ ^= abs accumulate all and any ap-compose ' +
- 'ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ' +
- 'ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast ' +
- 'callable calling-module-name car case cdr chain chr coll? combinations compile ' +
- 'compress cond cons cons? continue count curry cut cycle dec ' +
- 'def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn ' +
- 'defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir ' +
- 'disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? ' +
- 'end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first ' +
- 'flatten float? fn fnc fnr for for* format fraction genexpr ' +
- 'gensym get getattr global globals group-by hasattr hash hex id ' +
- 'identity if if* if-not if-python2 import in inc input instance? ' +
- 'integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even ' +
- 'is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none ' +
- 'is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass ' +
- 'iter iterable? iterate iterator? keyword keyword? lambda last len let ' +
- 'lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all ' +
- 'map max merge-with method-decorator min multi-decorator multicombinations name neg? next ' +
- 'none? nonlocal not not-in not? nth numeric? oct odd? open ' +
- 'or ord partition permutations pos? post-route postwalk pow prewalk print ' +
- 'product profile/calls profile/cpu put-route quasiquote quote raise range read read-str ' +
- 'recursive-replace reduce remove repeat repeatedly repr require rest round route ' +
- 'route-with-methods rwm second seq set-comp setattr setv some sorted string ' +
- 'string? sum switch symbol? take take-nth take-while tee try unless ' +
- 'unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms ' +
- 'xi xor yield yield-from zero? zip zip-longest | |= ~'
- };
-
- var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>\'';
- var SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
- var SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?';
-
- var SHEBANG = {
- className: 'meta',
- begin: '^#!', end: '$'
- };
-
- var SYMBOL = {
- begin: SYMBOL_RE,
- relevance: 0
- };
- var NUMBER = {
- className: 'number', begin: SIMPLE_NUMBER_RE,
- relevance: 0
- };
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null});
- var COMMENT = hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- );
- var LITERAL = {
- className: 'literal',
- begin: /\b([Tt]rue|[Ff]alse|nil|None)\b/
- };
- var COLLECTION = {
- begin: '[\\[\\{]', end: '[\\]\\}]'
- };
- var HINT = {
- className: 'comment',
- begin: '\\^' + SYMBOL_RE
- };
- var HINT_COL = hljs.COMMENT('\\^\\{', '\\}');
- var KEY = {
- className: 'symbol',
- begin: '[:]{1,2}' + SYMBOL_RE
- };
- var LIST = {
- begin: '\\(', end: '\\)'
- };
- var BODY = {
- endsWithParent: true,
- relevance: 0
- };
- var NAME = {
- keywords: keywords,
- lexemes: SYMBOL_RE,
- className: 'name', begin: SYMBOL_RE,
- starts: BODY
- };
- var DEFAULT_CONTAINS = [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL, SYMBOL];
-
- LIST.contains = [hljs.COMMENT('comment', ''), NAME, BODY];
- BODY.contains = DEFAULT_CONTAINS;
- COLLECTION.contains = DEFAULT_CONTAINS;
-
- return {
- aliases: ['hylang'],
- illegal: /\S/,
- contains: [SHEBANG, LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/inform7.js b/swh/web/static/jssources/highlight.js/lib/languages/inform7.js
deleted file mode 100644
index 4e3724a6..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/inform7.js
+++ /dev/null
@@ -1,56 +0,0 @@
-module.exports = function(hljs) {
- var START_BRACKET = '\\[';
- var END_BRACKET = '\\]';
- return {
- aliases: ['i7'],
- case_insensitive: true,
- keywords: {
- // Some keywords more or less unique to I7, for relevance.
- keyword:
- // kind:
- 'thing room person man woman animal container ' +
- 'supporter backdrop door ' +
- // characteristic:
- 'scenery open closed locked inside gender ' +
- // verb:
- 'is are say understand ' +
- // misc keyword:
- 'kind of rule'
- },
- contains: [
- {
- className: 'string',
- begin: '"', end: '"',
- relevance: 0,
- contains: [
- {
- className: 'subst',
- begin: START_BRACKET, end: END_BRACKET
- }
- ]
- },
- {
- className: 'section',
- begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/,
- end: '$'
- },
- {
- // Rule definition
- // This is here for relevance.
- begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,
- end: ':',
- contains: [
- {
- //Rule name
- begin: '\\(This', end: '\\)'
- }
- ]
- },
- {
- className: 'comment',
- begin: START_BRACKET, end: END_BRACKET,
- contains: ['self']
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ini.js b/swh/web/static/jssources/highlight.js/lib/languages/ini.js
deleted file mode 100644
index 0c24d1a5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ini.js
+++ /dev/null
@@ -1,65 +0,0 @@
-module.exports = function(hljs) {
- var STRING = {
- className: "string",
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- {
- begin: "'''", end: "'''",
- relevance: 10
- }, {
- begin: '"""', end: '"""',
- relevance: 10
- }, {
- begin: '"', end: '"'
- }, {
- begin: "'", end: "'"
- }
- ]
- };
- return {
- aliases: ['toml'],
- case_insensitive: true,
- illegal: /\S/,
- contains: [
- hljs.COMMENT(';', '$'),
- hljs.HASH_COMMENT_MODE,
- {
- className: 'section',
- begin: /^\s*\[+/, end: /\]+/
- },
- {
- begin: /^[a-z0-9\[\]_\.-]+\s*=\s*/, end: '$',
- returnBegin: true,
- contains: [
- {
- className: 'attr',
- begin: /[a-z0-9\[\]_\.-]+/
- },
- {
- begin: /=/, endsWithParent: true,
- relevance: 0,
- contains: [
- {
- className: 'literal',
- begin: /\bon|off|true|false|yes|no\b/
- },
- {
- className: 'variable',
- variants: [
- {begin: /\$[\w\d"][\w\d_]*/},
- {begin: /\$\{(.*?)}/}
- ]
- },
- STRING,
- {
- className: 'number',
- begin: /([\+\-]+)?[\d]+_[\d_]+/
- },
- hljs.NUMBER_MODE
- ]
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/irpf90.js b/swh/web/static/jssources/highlight.js/lib/languages/irpf90.js
deleted file mode 100644
index eb780946..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/irpf90.js
+++ /dev/null
@@ -1,75 +0,0 @@
-module.exports = function(hljs) {
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)'
- };
-
- var F_KEYWORDS = {
- literal: '.False. .True.',
- keyword: 'kind do while private call intrinsic where elsewhere ' +
- 'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' +
- 'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' +
- 'goto save else use module select case ' +
- 'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' +
- 'continue format pause cycle exit ' +
- 'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' +
- 'synchronous nopass non_overridable pass protected volatile abstract extends import ' +
- 'non_intrinsic value deferred generic final enumerator class associate bind enum ' +
- 'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' +
- 'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' +
- 'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' +
- 'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' +
- 'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' +
- 'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' +
- 'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' +
- 'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ' +
- 'integer real character complex logical dimension allocatable|10 parameter ' +
- 'external implicit|10 none double precision assign intent optional pointer ' +
- 'target in out common equivalence data ' +
- // IRPF90 special keywords
- 'begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch ' +
- 'soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read',
- built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' +
- 'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' +
- 'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' +
- 'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' +
- 'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' +
- 'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' +
- 'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' +
- 'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' +
- 'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' +
- 'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' +
- 'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' +
- 'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' +
- 'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' +
- 'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of' +
- 'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' +
- 'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' +
- 'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' +
- 'num_images parity popcnt poppar shifta shiftl shiftr this_image ' +
- // IRPF90 special built_ins
- 'IRP_ALIGN irp_here'
- };
- return {
- case_insensitive: true,
- keywords: F_KEYWORDS,
- illegal: /\/\*/,
- contains: [
- hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {className: 'string', relevance: 0}),
- {
- className: 'function',
- beginKeywords: 'subroutine function program',
- illegal: '[${=\\n]',
- contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
- },
- hljs.COMMENT('!', '$', {relevance: 0}),
- hljs.COMMENT('begin_doc', 'end_doc', {relevance: 10}),
- {
- className: 'number',
- begin: '(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?',
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/isbl.js b/swh/web/static/jssources/highlight.js/lib/languages/isbl.js
deleted file mode 100644
index 117ba36a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/isbl.js
+++ /dev/null
@@ -1,3172 +0,0 @@
-module.exports = function(hljs) {
- // Определение идентификаторов
- var UNDERSCORE_IDENT_RE = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*";
-
- // Определение имен функций
- var FUNCTION_NAME_IDENT_RE = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*";
-
- // keyword : ключевые слова
- var KEYWORD =
- "and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока " +
- "except exitfor finally foreach все if если in в not не or или try while пока ";
-
- // SYSRES Constants
- var sysres_constants =
- "SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT " +
- "SYSRES_CONST_ACCES_RIGHT_TYPE_FULL " +
- "SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW " +
- "SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_NO_ACCESS_VIEW " +
- "SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_VIEW " +
- "SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE " +
- "SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE " +
- "SYSRES_CONST_ACCESS_TYPE_CHANGE " +
- "SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE " +
- "SYSRES_CONST_ACCESS_TYPE_EXISTS " +
- "SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE " +
- "SYSRES_CONST_ACCESS_TYPE_FULL " +
- "SYSRES_CONST_ACCESS_TYPE_FULL_CODE " +
- "SYSRES_CONST_ACCESS_TYPE_VIEW " +
- "SYSRES_CONST_ACCESS_TYPE_VIEW_CODE " +
- "SYSRES_CONST_ACTION_TYPE_ABORT " +
- "SYSRES_CONST_ACTION_TYPE_ACCEPT " +
- "SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS " +
- "SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT " +
- "SYSRES_CONST_ACTION_TYPE_CHANGE_CARD " +
- "SYSRES_CONST_ACTION_TYPE_CHANGE_KIND " +
- "SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE " +
- "SYSRES_CONST_ACTION_TYPE_CONTINUE " +
- "SYSRES_CONST_ACTION_TYPE_COPY " +
- "SYSRES_CONST_ACTION_TYPE_CREATE " +
- "SYSRES_CONST_ACTION_TYPE_CREATE_VERSION " +
- "SYSRES_CONST_ACTION_TYPE_DELETE " +
- "SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT " +
- "SYSRES_CONST_ACTION_TYPE_DELETE_VERSION " +
- "SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS " +
- "SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS " +
- "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE " +
- "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD " +
- "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD " +
- "SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK " +
- "SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK " +
- "SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK " +
- "SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK " +
- "SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE " +
- "SYSRES_CONST_ACTION_TYPE_LOCK " +
- "SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER " +
- "SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY " +
- "SYSRES_CONST_ACTION_TYPE_MARK_AS_READED " +
- "SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED " +
- "SYSRES_CONST_ACTION_TYPE_MODIFY " +
- "SYSRES_CONST_ACTION_TYPE_MODIFY_CARD " +
- "SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE " +
- "SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION " +
- "SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE " +
- "SYSRES_CONST_ACTION_TYPE_PERFORM " +
- "SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY " +
- "SYSRES_CONST_ACTION_TYPE_RESTART " +
- "SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE " +
- "SYSRES_CONST_ACTION_TYPE_REVISION " +
- "SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL " +
- "SYSRES_CONST_ACTION_TYPE_SIGN " +
- "SYSRES_CONST_ACTION_TYPE_START " +
- "SYSRES_CONST_ACTION_TYPE_UNLOCK " +
- "SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER " +
- "SYSRES_CONST_ACTION_TYPE_VERSION_STATE " +
- "SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY " +
- "SYSRES_CONST_ACTION_TYPE_VIEW " +
- "SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY " +
- "SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY " +
- "SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY " +
- "SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE " +
- "SYSRES_CONST_ADD_REFERENCE_MODE_NAME " +
- "SYSRES_CONST_ADDITION_REQUISITE_CODE " +
- "SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE " +
- "SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME " +
- "SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME " +
- "SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME " +
- "SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE " +
- "SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION " +
- "SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS " +
- "SYSRES_CONST_ALL_USERS_GROUP " +
- "SYSRES_CONST_ALL_USERS_GROUP_NAME " +
- "SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME " +
- "SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE " +
- "SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME " +
- "SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_APPROVING_SIGNATURE_NAME " +
- "SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE " +
- "SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE " +
- "SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE " +
- "SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN " +
- "SYSRES_CONST_ATTACH_TYPE_DOC " +
- "SYSRES_CONST_ATTACH_TYPE_EDOC " +
- "SYSRES_CONST_ATTACH_TYPE_FOLDER " +
- "SYSRES_CONST_ATTACH_TYPE_JOB " +
- "SYSRES_CONST_ATTACH_TYPE_REFERENCE " +
- "SYSRES_CONST_ATTACH_TYPE_TASK " +
- "SYSRES_CONST_AUTH_ENCODED_PASSWORD " +
- "SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE " +
- "SYSRES_CONST_AUTH_NOVELL " +
- "SYSRES_CONST_AUTH_PASSWORD " +
- "SYSRES_CONST_AUTH_PASSWORD_CODE " +
- "SYSRES_CONST_AUTH_WINDOWS " +
- "SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME " +
- "SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE " +
- "SYSRES_CONST_AUTO_ENUM_METHOD_FLAG " +
- "SYSRES_CONST_AUTO_NUMERATION_CODE " +
- "SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG " +
- "SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE " +
- "SYSRES_CONST_AUTOTEXT_USAGE_ALL " +
- "SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE " +
- "SYSRES_CONST_AUTOTEXT_USAGE_SIGN " +
- "SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE " +
- "SYSRES_CONST_AUTOTEXT_USAGE_WORK " +
- "SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE " +
- "SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE " +
- "SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE " +
- "SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE " +
- "SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE " +
- "SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_BTN_PART " +
- "SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE " +
- "SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE " +
- "SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE " +
- "SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT " +
- "SYSRES_CONST_CARD_PART " +
- "SYSRES_CONST_CARD_REFERENCE_MODE_NAME " +
- "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE " +
- "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE " +
- "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE " +
- "SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE " +
- "SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE " +
- "SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE " +
- "SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE " +
- "SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE " +
- "SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE " +
- "SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT " +
- "SYSRES_CONST_CODE_COMPONENT_TYPE_URL " +
- "SYSRES_CONST_CODE_REQUISITE_ACCESS " +
- "SYSRES_CONST_CODE_REQUISITE_CODE " +
- "SYSRES_CONST_CODE_REQUISITE_COMPONENT " +
- "SYSRES_CONST_CODE_REQUISITE_DESCRIPTION " +
- "SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT " +
- "SYSRES_CONST_CODE_REQUISITE_RECORD " +
- "SYSRES_CONST_COMMENT_REQ_CODE " +
- "SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE " +
- "SYSRES_CONST_COMP_CODE_GRD " +
- "SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS " +
- "SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS " +
- "SYSRES_CONST_COMPONENT_TYPE_DOCS " +
- "SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS " +
- "SYSRES_CONST_COMPONENT_TYPE_EDOCS " +
- "SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE " +
- "SYSRES_CONST_COMPONENT_TYPE_OTHER " +
- "SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES " +
- "SYSRES_CONST_COMPONENT_TYPE_REFERENCES " +
- "SYSRES_CONST_COMPONENT_TYPE_REPORTS " +
- "SYSRES_CONST_COMPONENT_TYPE_SCRIPTS " +
- "SYSRES_CONST_COMPONENT_TYPE_URL " +
- "SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE " +
- "SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_CONST_FIRM_STATUS_COMMON " +
- "SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL " +
- "SYSRES_CONST_CONST_NEGATIVE_VALUE " +
- "SYSRES_CONST_CONST_POSITIVE_VALUE " +
- "SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE " +
- "SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE " +
- "SYSRES_CONST_CONTENTS_REQUISITE_CODE " +
- "SYSRES_CONST_DATA_TYPE_BOOLEAN " +
- "SYSRES_CONST_DATA_TYPE_DATE " +
- "SYSRES_CONST_DATA_TYPE_FLOAT " +
- "SYSRES_CONST_DATA_TYPE_INTEGER " +
- "SYSRES_CONST_DATA_TYPE_PICK " +
- "SYSRES_CONST_DATA_TYPE_REFERENCE " +
- "SYSRES_CONST_DATA_TYPE_STRING " +
- "SYSRES_CONST_DATA_TYPE_TEXT " +
- "SYSRES_CONST_DATA_TYPE_VARIANT " +
- "SYSRES_CONST_DATE_CLOSE_REQ_CODE " +
- "SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR " +
- "SYSRES_CONST_DATE_OPEN_REQ_CODE " +
- "SYSRES_CONST_DATE_REQUISITE " +
- "SYSRES_CONST_DATE_REQUISITE_CODE " +
- "SYSRES_CONST_DATE_REQUISITE_NAME " +
- "SYSRES_CONST_DATE_REQUISITE_TYPE " +
- "SYSRES_CONST_DATE_TYPE_CHAR " +
- "SYSRES_CONST_DATETIME_FORMAT_VALUE " +
- "SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE " +
- "SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE " +
- "SYSRES_CONST_DESCRIPTION_REQUISITE_CODE " +
- "SYSRES_CONST_DET1_PART " +
- "SYSRES_CONST_DET2_PART " +
- "SYSRES_CONST_DET3_PART " +
- "SYSRES_CONST_DET4_PART " +
- "SYSRES_CONST_DET5_PART " +
- "SYSRES_CONST_DET6_PART " +
- "SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE " +
- "SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE " +
- "SYSRES_CONST_DETAIL_REQ_CODE " +
- "SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE " +
- "SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME " +
- "SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE " +
- "SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME " +
- "SYSRES_CONST_DOCUMENT_STORAGES_CODE " +
- "SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME " +
- "SYSRES_CONST_DOUBLE_REQUISITE_CODE " +
- "SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE " +
- "SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE " +
- "SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE " +
- "SYSRES_CONST_EDITORS_REFERENCE_CODE " +
- "SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE " +
- "SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE " +
- "SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE " +
- "SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE " +
- "SYSRES_CONST_EDOC_DATE_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_KIND_REFERENCE_CODE " +
- "SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE " +
- "SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE " +
- "SYSRES_CONST_EDOC_NONE_ENCODE_CODE " +
- "SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE " +
- "SYSRES_CONST_EDOC_READONLY_ACCESS_CODE " +
- "SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE " +
- "SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE " +
- "SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE " +
- "SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE " +
- "SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE " +
- "SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE " +
- "SYSRES_CONST_EDOC_WRITE_ACCES_CODE " +
- "SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE " +
- "SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE " +
- "SYSRES_CONST_END_DATE_REQUISITE_CODE " +
- "SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE " +
- "SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE " +
- "SYSRES_CONST_EXIST_CONST " +
- "SYSRES_CONST_EXIST_VALUE " +
- "SYSRES_CONST_EXPORT_LOCK_TYPE_ASK " +
- "SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK " +
- "SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK " +
- "SYSRES_CONST_EXPORT_VERSION_TYPE_ASK " +
- "SYSRES_CONST_EXPORT_VERSION_TYPE_LAST " +
- "SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE " +
- "SYSRES_CONST_EXTENSION_REQUISITE_CODE " +
- "SYSRES_CONST_FILTER_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_FILTER_REQUISITE_CODE " +
- "SYSRES_CONST_FILTER_TYPE_COMMON_CODE " +
- "SYSRES_CONST_FILTER_TYPE_COMMON_NAME " +
- "SYSRES_CONST_FILTER_TYPE_USER_CODE " +
- "SYSRES_CONST_FILTER_TYPE_USER_NAME " +
- "SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME " +
- "SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR " +
- "SYSRES_CONST_FLOAT_REQUISITE_TYPE " +
- "SYSRES_CONST_FOLDER_AUTHOR_VALUE " +
- "SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS " +
- "SYSRES_CONST_FOLDER_KIND_COMPONENTS " +
- "SYSRES_CONST_FOLDER_KIND_EDOCS " +
- "SYSRES_CONST_FOLDER_KIND_JOBS " +
- "SYSRES_CONST_FOLDER_KIND_TASKS " +
- "SYSRES_CONST_FOLDER_TYPE_COMMON " +
- "SYSRES_CONST_FOLDER_TYPE_COMPONENT " +
- "SYSRES_CONST_FOLDER_TYPE_FAVORITES " +
- "SYSRES_CONST_FOLDER_TYPE_INBOX " +
- "SYSRES_CONST_FOLDER_TYPE_OUTBOX " +
- "SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH " +
- "SYSRES_CONST_FOLDER_TYPE_SEARCH " +
- "SYSRES_CONST_FOLDER_TYPE_SHORTCUTS " +
- "SYSRES_CONST_FOLDER_TYPE_USER " +
- "SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG " +
- "SYSRES_CONST_FULL_SUBSTITUTE_TYPE " +
- "SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE " +
- "SYSRES_CONST_FUNCTION_CANCEL_RESULT " +
- "SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM " +
- "SYSRES_CONST_FUNCTION_CATEGORY_USER " +
- "SYSRES_CONST_FUNCTION_FAILURE_RESULT " +
- "SYSRES_CONST_FUNCTION_SAVE_RESULT " +
- "SYSRES_CONST_GENERATED_REQUISITE " +
- "SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE " +
- "SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE " +
- "SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME " +
- "SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE " +
- "SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME " +
- "SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE " +
- "SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_GROUP_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE " +
- "SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE " +
- "SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE " +
- "SYSRES_CONST_GROUP_USER_REQUISITE_CODE " +
- "SYSRES_CONST_GROUPS_REFERENCE_CODE " +
- "SYSRES_CONST_GROUPS_REQUISITE_CODE " +
- "SYSRES_CONST_HIDDEN_MODE_NAME " +
- "SYSRES_CONST_HIGH_LVL_REQUISITE_CODE " +
- "SYSRES_CONST_HISTORY_ACTION_CREATE_CODE " +
- "SYSRES_CONST_HISTORY_ACTION_DELETE_CODE " +
- "SYSRES_CONST_HISTORY_ACTION_EDIT_CODE " +
- "SYSRES_CONST_HOUR_CHAR " +
- "SYSRES_CONST_ID_REQUISITE_CODE " +
- "SYSRES_CONST_IDSPS_REQUISITE_CODE " +
- "SYSRES_CONST_IMAGE_MODE_COLOR " +
- "SYSRES_CONST_IMAGE_MODE_GREYSCALE " +
- "SYSRES_CONST_IMAGE_MODE_MONOCHROME " +
- "SYSRES_CONST_IMPORTANCE_HIGH " +
- "SYSRES_CONST_IMPORTANCE_LOW " +
- "SYSRES_CONST_IMPORTANCE_NORMAL " +
- "SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE " +
- "SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE " +
- "SYSRES_CONST_INT_REQUISITE " +
- "SYSRES_CONST_INT_REQUISITE_TYPE " +
- "SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR " +
- "SYSRES_CONST_INTEGER_TYPE_CHAR " +
- "SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE " +
- "SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE " +
- "SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE " +
- "SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE " +
- "SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE " +
- "SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE " +
- "SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE " +
- "SYSRES_CONST_JOB_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_JOB_KIND_CONTROL_JOB " +
- "SYSRES_CONST_JOB_KIND_JOB " +
- "SYSRES_CONST_JOB_KIND_NOTICE " +
- "SYSRES_CONST_JOB_STATE_ABORTED " +
- "SYSRES_CONST_JOB_STATE_COMPLETE " +
- "SYSRES_CONST_JOB_STATE_WORKING " +
- "SYSRES_CONST_KIND_REQUISITE_CODE " +
- "SYSRES_CONST_KIND_REQUISITE_NAME " +
- "SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE " +
- "SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE " +
- "SYSRES_CONST_KOD_INPUT_TYPE " +
- "SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE " +
- "SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE " +
- "SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT " +
- "SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT " +
- "SYSRES_CONST_LINK_OBJECT_KIND_EDOC " +
- "SYSRES_CONST_LINK_OBJECT_KIND_FOLDER " +
- "SYSRES_CONST_LINK_OBJECT_KIND_JOB " +
- "SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE " +
- "SYSRES_CONST_LINK_OBJECT_KIND_TASK " +
- "SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_LIST_REFERENCE_MODE_NAME " +
- "SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE " +
- "SYSRES_CONST_MAIN_VIEW_CODE " +
- "SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG " +
- "SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE " +
- "SYSRES_CONST_MAXIMIZED_MODE_NAME " +
- "SYSRES_CONST_ME_VALUE " +
- "SYSRES_CONST_MESSAGE_ATTENTION_CAPTION " +
- "SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION " +
- "SYSRES_CONST_MESSAGE_ERROR_CAPTION " +
- "SYSRES_CONST_MESSAGE_INFORMATION_CAPTION " +
- "SYSRES_CONST_MINIMIZED_MODE_NAME " +
- "SYSRES_CONST_MINUTE_CHAR " +
- "SYSRES_CONST_MODULE_REQUISITE_CODE " +
- "SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_MONTH_FORMAT_VALUE " +
- "SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE " +
- "SYSRES_CONST_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE " +
- "SYSRES_CONST_NAMEAN_INPUT_TYPE " +
- "SYSRES_CONST_NEGATIVE_PICK_VALUE " +
- "SYSRES_CONST_NEGATIVE_VALUE " +
- "SYSRES_CONST_NO " +
- "SYSRES_CONST_NO_PICK_VALUE " +
- "SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE " +
- "SYSRES_CONST_NO_VALUE " +
- "SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE " +
- "SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE " +
- "SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE " +
- "SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE " +
- "SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE " +
- "SYSRES_CONST_NORMAL_MODE_NAME " +
- "SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE " +
- "SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME " +
- "SYSRES_CONST_NOTE_REQUISITE_CODE " +
- "SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_NUM_REQUISITE " +
- "SYSRES_CONST_NUM_STR_REQUISITE_CODE " +
- "SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG " +
- "SYSRES_CONST_NUMERATION_AUTO_STRONG " +
- "SYSRES_CONST_NUMERATION_FROM_DICTONARY " +
- "SYSRES_CONST_NUMERATION_MANUAL " +
- "SYSRES_CONST_NUMERIC_TYPE_CHAR " +
- "SYSRES_CONST_NUMREQ_REQUISITE_CODE " +
- "SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE " +
- "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE " +
- "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE " +
- "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE " +
- "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE " +
- "SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX " +
- "SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_ORIGINALREF_REQUISITE_CODE " +
- "SYSRES_CONST_OURFIRM_REF_CODE " +
- "SYSRES_CONST_OURFIRM_REQUISITE_CODE " +
- "SYSRES_CONST_OURFIRM_VAR " +
- "SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE " +
- "SYSRES_CONST_PICK_NEGATIVE_RESULT " +
- "SYSRES_CONST_PICK_POSITIVE_RESULT " +
- "SYSRES_CONST_PICK_REQUISITE " +
- "SYSRES_CONST_PICK_REQUISITE_TYPE " +
- "SYSRES_CONST_PICK_TYPE_CHAR " +
- "SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE " +
- "SYSRES_CONST_PLATFORM_VERSION_COMMENT " +
- "SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE " +
- "SYSRES_CONST_POSITIVE_PICK_VALUE " +
- "SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE " +
- "SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE " +
- "SYSRES_CONST_PRIORITY_REQUISITE_CODE " +
- "SYSRES_CONST_QUALIFIED_TASK_TYPE " +
- "SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE " +
- "SYSRES_CONST_RECSTAT_REQUISITE_CODE " +
- "SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_REF_REQUISITE " +
- "SYSRES_CONST_REF_REQUISITE_TYPE " +
- "SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE " +
- "SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE " +
- "SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE " +
- "SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE " +
- "SYSRES_CONST_REFERENCE_TYPE_CHAR " +
- "SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME " +
- "SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE " +
- "SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE " +
- "SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING " +
- "SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN " +
- "SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY " +
- "SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE " +
- "SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL " +
- "SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE " +
- "SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE " +
- "SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE " +
- "SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE " +
- "SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE " +
- "SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE " +
- "SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE " +
- "SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE " +
- "SYSRES_CONST_REQ_MODE_AVAILABLE_CODE " +
- "SYSRES_CONST_REQ_MODE_EDIT_CODE " +
- "SYSRES_CONST_REQ_MODE_HIDDEN_CODE " +
- "SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE " +
- "SYSRES_CONST_REQ_MODE_VIEW_CODE " +
- "SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE " +
- "SYSRES_CONST_REQ_SECTION_VALUE " +
- "SYSRES_CONST_REQ_TYPE_VALUE " +
- "SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT " +
- "SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL " +
- "SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME " +
- "SYSRES_CONST_REQUISITE_FORMAT_LEFT " +
- "SYSRES_CONST_REQUISITE_FORMAT_RIGHT " +
- "SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT " +
- "SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE " +
- "SYSRES_CONST_REQUISITE_SECTION_ACTIONS " +
- "SYSRES_CONST_REQUISITE_SECTION_BUTTON " +
- "SYSRES_CONST_REQUISITE_SECTION_BUTTONS " +
- "SYSRES_CONST_REQUISITE_SECTION_CARD " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE10 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE11 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE12 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE13 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE14 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE15 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE16 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE17 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE18 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE19 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE2 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE20 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE21 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE22 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE23 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE24 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE3 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE4 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE5 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE6 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE7 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE8 " +
- "SYSRES_CONST_REQUISITE_SECTION_TABLE9 " +
- "SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE " +
- "SYSRES_CONST_RIGHT_ALIGNMENT_CODE " +
- "SYSRES_CONST_ROLES_REFERENCE_CODE " +
- "SYSRES_CONST_ROUTE_STEP_AFTER_RUS " +
- "SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS " +
- "SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS " +
- "SYSRES_CONST_ROUTE_TYPE_COMPLEX " +
- "SYSRES_CONST_ROUTE_TYPE_PARALLEL " +
- "SYSRES_CONST_ROUTE_TYPE_SERIAL " +
- "SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE " +
- "SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE " +
- "SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE " +
- "SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE " +
- "SYSRES_CONST_SEARCHES_COMPONENT_CONTENT " +
- "SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME " +
- "SYSRES_CONST_SEARCHES_EDOC_CONTENT " +
- "SYSRES_CONST_SEARCHES_FOLDER_CONTENT " +
- "SYSRES_CONST_SEARCHES_JOB_CONTENT " +
- "SYSRES_CONST_SEARCHES_REFERENCE_CODE " +
- "SYSRES_CONST_SEARCHES_TASK_CONTENT " +
- "SYSRES_CONST_SECOND_CHAR " +
- "SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_CODE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE " +
- "SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE " +
- "SYSRES_CONST_SELECT_REFERENCE_MODE_NAME " +
- "SYSRES_CONST_SELECT_TYPE_SELECTABLE " +
- "SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD " +
- "SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD " +
- "SYSRES_CONST_SELECT_TYPE_UNSLECTABLE " +
- "SYSRES_CONST_SERVER_TYPE_MAIN " +
- "SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE " +
- "SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE " +
- "SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE " +
- "SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE " +
- "SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE " +
- "SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE " +
- "SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE " +
- "SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE " +
- "SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE " +
- "SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE " +
- "SYSRES_CONST_STATE_REQ_NAME " +
- "SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE " +
- "SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE " +
- "SYSRES_CONST_STATE_REQUISITE_CODE " +
- "SYSRES_CONST_STATIC_ROLE_TYPE_CODE " +
- "SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE " +
- "SYSRES_CONST_STATUS_VALUE_AUTOCLEANING " +
- "SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE " +
- "SYSRES_CONST_STATUS_VALUE_COMPLETE " +
- "SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE " +
- "SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE " +
- "SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE " +
- "SYSRES_CONST_STATUS_VALUE_RED_SQUARE " +
- "SYSRES_CONST_STATUS_VALUE_SUSPEND " +
- "SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE " +
- "SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE " +
- "SYSRES_CONST_STORAGE_TYPE_FILE " +
- "SYSRES_CONST_STORAGE_TYPE_SQL_SERVER " +
- "SYSRES_CONST_STR_REQUISITE " +
- "SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE " +
- "SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR " +
- "SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR " +
- "SYSRES_CONST_STRING_REQUISITE_CODE " +
- "SYSRES_CONST_STRING_REQUISITE_TYPE " +
- "SYSRES_CONST_STRING_TYPE_CHAR " +
- "SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE " +
- "SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE " +
- "SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE " +
- "SYSRES_CONST_SYSTEM_VERSION_COMMENT " +
- "SYSRES_CONST_TASK_ACCESS_TYPE_ALL " +
- "SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS " +
- "SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL " +
- "SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION " +
- "SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD " +
- "SYSRES_CONST_TASK_ENCODE_TYPE_NONE " +
- "SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD " +
- "SYSRES_CONST_TASK_ROUTE_ALL_CONDITION " +
- "SYSRES_CONST_TASK_ROUTE_AND_CONDITION " +
- "SYSRES_CONST_TASK_ROUTE_OR_CONDITION " +
- "SYSRES_CONST_TASK_STATE_ABORTED " +
- "SYSRES_CONST_TASK_STATE_COMPLETE " +
- "SYSRES_CONST_TASK_STATE_CONTINUED " +
- "SYSRES_CONST_TASK_STATE_CONTROL " +
- "SYSRES_CONST_TASK_STATE_INIT " +
- "SYSRES_CONST_TASK_STATE_WORKING " +
- "SYSRES_CONST_TASK_TITLE " +
- "SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE " +
- "SYSRES_CONST_TASK_TYPES_REFERENCE_CODE " +
- "SYSRES_CONST_TEMPLATES_REFERENCE_CODE " +
- "SYSRES_CONST_TEST_DATE_REQUISITE_NAME " +
- "SYSRES_CONST_TEST_DEV_DATABASE_NAME " +
- "SYSRES_CONST_TEST_DEV_SYSTEM_CODE " +
- "SYSRES_CONST_TEST_EDMS_DATABASE_NAME " +
- "SYSRES_CONST_TEST_EDMS_MAIN_CODE " +
- "SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME " +
- "SYSRES_CONST_TEST_EDMS_SECOND_CODE " +
- "SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME " +
- "SYSRES_CONST_TEST_EDMS_SYSTEM_CODE " +
- "SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME " +
- "SYSRES_CONST_TEXT_REQUISITE " +
- "SYSRES_CONST_TEXT_REQUISITE_CODE " +
- "SYSRES_CONST_TEXT_REQUISITE_TYPE " +
- "SYSRES_CONST_TEXT_TYPE_CHAR " +
- "SYSRES_CONST_TYPE_CODE_REQUISITE_CODE " +
- "SYSRES_CONST_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR " +
- "SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE " +
- "SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE " +
- "SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE " +
- "SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE " +
- "SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME " +
- "SYSRES_CONST_USE_ACCESS_TYPE_CODE " +
- "SYSRES_CONST_USE_ACCESS_TYPE_NAME " +
- "SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE " +
- "SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE " +
- "SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE " +
- "SYSRES_CONST_USER_CATEGORY_NORMAL " +
- "SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE " +
- "SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE " +
- "SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE " +
- "SYSRES_CONST_USER_COMMON_CATEGORY " +
- "SYSRES_CONST_USER_COMMON_CATEGORY_CODE " +
- "SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_USER_LOGIN_REQUISITE_CODE " +
- "SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE " +
- "SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE " +
- "SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE " +
- "SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE " +
- "SYSRES_CONST_USER_SERVICE_CATEGORY " +
- "SYSRES_CONST_USER_SERVICE_CATEGORY_CODE " +
- "SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE " +
- "SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME " +
- "SYSRES_CONST_USER_STATUS_DEVELOPER_CODE " +
- "SYSRES_CONST_USER_STATUS_DEVELOPER_NAME " +
- "SYSRES_CONST_USER_STATUS_DISABLED_CODE " +
- "SYSRES_CONST_USER_STATUS_DISABLED_NAME " +
- "SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE " +
- "SYSRES_CONST_USER_STATUS_USER_CODE " +
- "SYSRES_CONST_USER_STATUS_USER_NAME " +
- "SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED " +
- "SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER " +
- "SYSRES_CONST_USER_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_REFERENCE_CODE " +
- "SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME " +
- "SYSRES_CONST_USERS_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE " +
- "SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME " +
- "SYSRES_CONST_VIEW_DEFAULT_CODE " +
- "SYSRES_CONST_VIEW_DEFAULT_NAME " +
- "SYSRES_CONST_VIEWER_REQUISITE_CODE " +
- "SYSRES_CONST_WAITING_BLOCK_DESCRIPTION " +
- "SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING " +
- "SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING " +
- "SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE " +
- "SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE " +
- "SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE " +
- "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE " +
- "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE " +
- "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS " +
- "SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS " +
- "SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD " +
- "SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT " +
- "SYSRES_CONST_XML_ENCODING " +
- "SYSRES_CONST_XREC_STAT_REQUISITE_CODE " +
- "SYSRES_CONST_XRECID_FIELD_NAME " +
- "SYSRES_CONST_YES " +
- "SYSRES_CONST_YES_NO_2_REQUISITE_CODE " +
- "SYSRES_CONST_YES_NO_REQUISITE_CODE " +
- "SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE " +
- "SYSRES_CONST_YES_PICK_VALUE " +
- "SYSRES_CONST_YES_VALUE ";
-
- // Base constant
- var base_constants = "CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ";
-
- // Base group name
- var base_group_name_constants =
- "ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ";
-
- // Decision block properties
- var decision_block_properties_constants =
- "DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY " +
- "DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ";
-
- // File extension
- var file_extension_constants =
- "ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION " +
- "SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ";
-
- // Job block properties
- var job_block_properties_constants =
- "JOB_BLOCK_ABORT_DEADLINE_PROPERTY " +
- "JOB_BLOCK_AFTER_FINISH_EVENT " +
- "JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT " +
- "JOB_BLOCK_ATTACHMENT_PROPERTY " +
- "JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " +
- "JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " +
- "JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT " +
- "JOB_BLOCK_BEFORE_START_EVENT " +
- "JOB_BLOCK_CREATED_JOBS_PROPERTY " +
- "JOB_BLOCK_DEADLINE_PROPERTY " +
- "JOB_BLOCK_EXECUTION_RESULTS_PROPERTY " +
- "JOB_BLOCK_IS_PARALLEL_PROPERTY " +
- "JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY " +
- "JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " +
- "JOB_BLOCK_JOB_TEXT_PROPERTY " +
- "JOB_BLOCK_NAME_PROPERTY " +
- "JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY " +
- "JOB_BLOCK_PERFORMER_PROPERTY " +
- "JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY " +
- "JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " +
- "JOB_BLOCK_SUBJECT_PROPERTY ";
-
- // Language code
- var language_code_constants = "ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ";
-
- // Launching external applications
- var launching_external_applications_constants =
- "smHidden smMaximized smMinimized smNormal wmNo wmYes ";
-
- // Link kind
- var link_kind_constants =
- "COMPONENT_TOKEN_LINK_KIND " +
- "DOCUMENT_LINK_KIND " +
- "EDOCUMENT_LINK_KIND " +
- "FOLDER_LINK_KIND " +
- "JOB_LINK_KIND " +
- "REFERENCE_LINK_KIND " +
- "TASK_LINK_KIND ";
-
- // Lock type
- var lock_type_constants =
- "COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ";
-
- // Monitor block properties
- var monitor_block_properties_constants =
- "MONITOR_BLOCK_AFTER_FINISH_EVENT " +
- "MONITOR_BLOCK_BEFORE_START_EVENT " +
- "MONITOR_BLOCK_DEADLINE_PROPERTY " +
- "MONITOR_BLOCK_INTERVAL_PROPERTY " +
- "MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY " +
- "MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " +
- "MONITOR_BLOCK_NAME_PROPERTY " +
- "MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " +
- "MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ";
-
- // Notice block properties
- var notice_block_properties_constants =
- "NOTICE_BLOCK_AFTER_FINISH_EVENT " +
- "NOTICE_BLOCK_ATTACHMENT_PROPERTY " +
- "NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " +
- "NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " +
- "NOTICE_BLOCK_BEFORE_START_EVENT " +
- "NOTICE_BLOCK_CREATED_NOTICES_PROPERTY " +
- "NOTICE_BLOCK_DEADLINE_PROPERTY " +
- "NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " +
- "NOTICE_BLOCK_NAME_PROPERTY " +
- "NOTICE_BLOCK_NOTICE_TEXT_PROPERTY " +
- "NOTICE_BLOCK_PERFORMER_PROPERTY " +
- "NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " +
- "NOTICE_BLOCK_SUBJECT_PROPERTY ";
-
- // Object events
- var object_events_constants =
- "dseAfterCancel " +
- "dseAfterClose " +
- "dseAfterDelete " +
- "dseAfterDeleteOutOfTransaction " +
- "dseAfterInsert " +
- "dseAfterOpen " +
- "dseAfterScroll " +
- "dseAfterUpdate " +
- "dseAfterUpdateOutOfTransaction " +
- "dseBeforeCancel " +
- "dseBeforeClose " +
- "dseBeforeDelete " +
- "dseBeforeDetailUpdate " +
- "dseBeforeInsert " +
- "dseBeforeOpen " +
- "dseBeforeUpdate " +
- "dseOnAnyRequisiteChange " +
- "dseOnCloseRecord " +
- "dseOnDeleteError " +
- "dseOnOpenRecord " +
- "dseOnPrepareUpdate " +
- "dseOnUpdateError " +
- "dseOnUpdateRatifiedRecord " +
- "dseOnValidDelete " +
- "dseOnValidUpdate " +
- "reOnChange " +
- "reOnChangeValues " +
- "SELECTION_BEGIN_ROUTE_EVENT " +
- "SELECTION_END_ROUTE_EVENT ";
-
- // Object params
- var object_params_constants =
- "CURRENT_PERIOD_IS_REQUIRED " +
- "PREVIOUS_CARD_TYPE_NAME " +
- "SHOW_RECORD_PROPERTIES_FORM ";
-
- // Other
- var other_constants =
- "ACCESS_RIGHTS_SETTING_DIALOG_CODE " +
- "ADMINISTRATOR_USER_CODE " +
- "ANALYTIC_REPORT_TYPE " +
- "asrtHideLocal " +
- "asrtHideRemote " +
- "CALCULATED_ROLE_TYPE_CODE " +
- "COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE " +
- "DCTS_TEST_PROTOCOLS_FOLDER_PATH " +
- "E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED " +
- "E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER " +
- "E_EDOC_VERSION_ALREDY_SIGNED " +
- "E_EDOC_VERSION_ALREDY_SIGNED_BY_USER " +
- "EDOC_TYPES_CODE_REQUISITE_FIELD_NAME " +
- "EDOCUMENTS_ALIAS_NAME " +
- "FILES_FOLDER_PATH " +
- "FILTER_OPERANDS_DELIMITER " +
- "FILTER_OPERATIONS_DELIMITER " +
- "FORMCARD_NAME " +
- "FORMLIST_NAME " +
- "GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE " +
- "GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE " +
- "INTEGRATED_REPORT_TYPE " +
- "IS_BUILDER_APPLICATION_ROLE " +
- "IS_BUILDER_APPLICATION_ROLE2 " +
- "IS_BUILDER_USERS " +
- "ISBSYSDEV " +
- "LOG_FOLDER_PATH " +
- "mbCancel " +
- "mbNo " +
- "mbNoToAll " +
- "mbOK " +
- "mbYes " +
- "mbYesToAll " +
- "MEMORY_DATASET_DESRIPTIONS_FILENAME " +
- "mrNo " +
- "mrNoToAll " +
- "mrYes " +
- "mrYesToAll " +
- "MULTIPLE_SELECT_DIALOG_CODE " +
- "NONOPERATING_RECORD_FLAG_FEMININE " +
- "NONOPERATING_RECORD_FLAG_MASCULINE " +
- "OPERATING_RECORD_FLAG_FEMININE " +
- "OPERATING_RECORD_FLAG_MASCULINE " +
- "PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE " +
- "PROGRAM_INITIATED_LOOKUP_ACTION " +
- "ratDelete " +
- "ratEdit " +
- "ratInsert " +
- "REPORT_TYPE " +
- "REQUIRED_PICK_VALUES_VARIABLE " +
- "rmCard " +
- "rmList " +
- "SBRTE_PROGID_DEV " +
- "SBRTE_PROGID_RELEASE " +
- "STATIC_ROLE_TYPE_CODE " +
- "SUPPRESS_EMPTY_TEMPLATE_CREATION " +
- "SYSTEM_USER_CODE " +
- "UPDATE_DIALOG_DATASET " +
- "USED_IN_OBJECT_HINT_PARAM " +
- "USER_INITIATED_LOOKUP_ACTION " +
- "USER_NAME_FORMAT " +
- "USER_SELECTION_RESTRICTIONS " +
- "WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH " +
- "ELS_SUBTYPE_CONTROL_NAME " +
- "ELS_FOLDER_KIND_CONTROL_NAME " +
- "REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ";
-
- // Privileges
- var privileges_constants =
- "PRIVILEGE_COMPONENT_FULL_ACCESS " +
- "PRIVILEGE_DEVELOPMENT_EXPORT " +
- "PRIVILEGE_DEVELOPMENT_IMPORT " +
- "PRIVILEGE_DOCUMENT_DELETE " +
- "PRIVILEGE_ESD " +
- "PRIVILEGE_FOLDER_DELETE " +
- "PRIVILEGE_MANAGE_ACCESS_RIGHTS " +
- "PRIVILEGE_MANAGE_REPLICATION " +
- "PRIVILEGE_MANAGE_SESSION_SERVER " +
- "PRIVILEGE_OBJECT_FULL_ACCESS " +
- "PRIVILEGE_OBJECT_VIEW " +
- "PRIVILEGE_RESERVE_LICENSE " +
- "PRIVILEGE_SYSTEM_CUSTOMIZE " +
- "PRIVILEGE_SYSTEM_DEVELOP " +
- "PRIVILEGE_SYSTEM_INSTALL " +
- "PRIVILEGE_TASK_DELETE " +
- "PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE " +
- "PRIVILEGES_PSEUDOREFERENCE_CODE ";
-
- // Pseudoreference code
- var pseudoreference_code_constants =
- "ACCESS_TYPES_PSEUDOREFERENCE_CODE " +
- "ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE " +
- "ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE " +
- "ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE " +
- "AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE " +
- "COMPONENTS_PSEUDOREFERENCE_CODE " +
- "FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE " +
- "GROUPS_PSEUDOREFERENCE_CODE " +
- "RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE " +
- "REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE " +
- "REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE " +
- "REFTYPES_PSEUDOREFERENCE_CODE " +
- "REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE " +
- "SEND_PROTOCOL_PSEUDOREFERENCE_CODE " +
- "SUBSTITUTES_PSEUDOREFERENCE_CODE " +
- "SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE " +
- "UNITS_PSEUDOREFERENCE_CODE " +
- "USERS_PSEUDOREFERENCE_CODE " +
- "VIEWERS_PSEUDOREFERENCE_CODE ";
-
- // Requisite ISBCertificateType values
- var requisite_ISBCertificateType_values_constants =
- "CERTIFICATE_TYPE_ENCRYPT " +
- "CERTIFICATE_TYPE_SIGN " +
- "CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ";
-
- // Requisite ISBEDocStorageType values
- var requisite_ISBEDocStorageType_values_constants =
- "STORAGE_TYPE_FILE " +
- "STORAGE_TYPE_NAS_CIFS " +
- "STORAGE_TYPE_SAPERION " +
- "STORAGE_TYPE_SQL_SERVER ";
-
- // Requisite CompType2 values
- var requisite_compType2_values_constants =
- "COMPTYPE2_REQUISITE_DOCUMENTS_VALUE " +
- "COMPTYPE2_REQUISITE_TASKS_VALUE " +
- "COMPTYPE2_REQUISITE_FOLDERS_VALUE " +
- "COMPTYPE2_REQUISITE_REFERENCES_VALUE ";
-
- // Requisite name
- var requisite_name_constants =
- "SYSREQ_CODE " +
- "SYSREQ_COMPTYPE2 " +
- "SYSREQ_CONST_AVAILABLE_FOR_WEB " +
- "SYSREQ_CONST_COMMON_CODE " +
- "SYSREQ_CONST_COMMON_VALUE " +
- "SYSREQ_CONST_FIRM_CODE " +
- "SYSREQ_CONST_FIRM_STATUS " +
- "SYSREQ_CONST_FIRM_VALUE " +
- "SYSREQ_CONST_SERVER_STATUS " +
- "SYSREQ_CONTENTS " +
- "SYSREQ_DATE_OPEN " +
- "SYSREQ_DATE_CLOSE " +
- "SYSREQ_DESCRIPTION " +
- "SYSREQ_DESCRIPTION_LOCALIZE_ID " +
- "SYSREQ_DOUBLE " +
- "SYSREQ_EDOC_ACCESS_TYPE " +
- "SYSREQ_EDOC_AUTHOR " +
- "SYSREQ_EDOC_CREATED " +
- "SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE " +
- "SYSREQ_EDOC_EDITOR " +
- "SYSREQ_EDOC_ENCODE_TYPE " +
- "SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME " +
- "SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION " +
- "SYSREQ_EDOC_EXPORT_DATE " +
- "SYSREQ_EDOC_EXPORTER " +
- "SYSREQ_EDOC_KIND " +
- "SYSREQ_EDOC_LIFE_STAGE_NAME " +
- "SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE " +
- "SYSREQ_EDOC_MODIFIED " +
- "SYSREQ_EDOC_NAME " +
- "SYSREQ_EDOC_NOTE " +
- "SYSREQ_EDOC_QUALIFIED_ID " +
- "SYSREQ_EDOC_SESSION_KEY " +
- "SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME " +
- "SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION " +
- "SYSREQ_EDOC_SIGNATURE_TYPE " +
- "SYSREQ_EDOC_SIGNED " +
- "SYSREQ_EDOC_STORAGE " +
- "SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE " +
- "SYSREQ_EDOC_STORAGES_CHECK_RIGHTS " +
- "SYSREQ_EDOC_STORAGES_COMPUTER_NAME " +
- "SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE " +
- "SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE " +
- "SYSREQ_EDOC_STORAGES_FUNCTION " +
- "SYSREQ_EDOC_STORAGES_INITIALIZED " +
- "SYSREQ_EDOC_STORAGES_LOCAL_PATH " +
- "SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME " +
- "SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT " +
- "SYSREQ_EDOC_STORAGES_SERVER_NAME " +
- "SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME " +
- "SYSREQ_EDOC_STORAGES_TYPE " +
- "SYSREQ_EDOC_TEXT_MODIFIED " +
- "SYSREQ_EDOC_TYPE_ACT_CODE " +
- "SYSREQ_EDOC_TYPE_ACT_DESCRIPTION " +
- "SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID " +
- "SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE " +
- "SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS " +
- "SYSREQ_EDOC_TYPE_ACT_SECTION " +
- "SYSREQ_EDOC_TYPE_ADD_PARAMS " +
- "SYSREQ_EDOC_TYPE_COMMENT " +
- "SYSREQ_EDOC_TYPE_EVENT_TEXT " +
- "SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR " +
- "SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID " +
- "SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID " +
- "SYSREQ_EDOC_TYPE_NUMERATION_METHOD " +
- "SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE " +
- "SYSREQ_EDOC_TYPE_REQ_CODE " +
- "SYSREQ_EDOC_TYPE_REQ_DESCRIPTION " +
- "SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID " +
- "SYSREQ_EDOC_TYPE_REQ_IS_LEADING " +
- "SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED " +
- "SYSREQ_EDOC_TYPE_REQ_NUMBER " +
- "SYSREQ_EDOC_TYPE_REQ_ON_CHANGE " +
- "SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS " +
- "SYSREQ_EDOC_TYPE_REQ_ON_SELECT " +
- "SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND " +
- "SYSREQ_EDOC_TYPE_REQ_SECTION " +
- "SYSREQ_EDOC_TYPE_VIEW_CARD " +
- "SYSREQ_EDOC_TYPE_VIEW_CODE " +
- "SYSREQ_EDOC_TYPE_VIEW_COMMENT " +
- "SYSREQ_EDOC_TYPE_VIEW_IS_MAIN " +
- "SYSREQ_EDOC_TYPE_VIEW_NAME " +
- "SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID " +
- "SYSREQ_EDOC_VERSION_AUTHOR " +
- "SYSREQ_EDOC_VERSION_CRC " +
- "SYSREQ_EDOC_VERSION_DATA " +
- "SYSREQ_EDOC_VERSION_EDITOR " +
- "SYSREQ_EDOC_VERSION_EXPORT_DATE " +
- "SYSREQ_EDOC_VERSION_EXPORTER " +
- "SYSREQ_EDOC_VERSION_HIDDEN " +
- "SYSREQ_EDOC_VERSION_LIFE_STAGE " +
- "SYSREQ_EDOC_VERSION_MODIFIED " +
- "SYSREQ_EDOC_VERSION_NOTE " +
- "SYSREQ_EDOC_VERSION_SIGNATURE_TYPE " +
- "SYSREQ_EDOC_VERSION_SIGNED " +
- "SYSREQ_EDOC_VERSION_SIZE " +
- "SYSREQ_EDOC_VERSION_SOURCE " +
- "SYSREQ_EDOC_VERSION_TEXT_MODIFIED " +
- "SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE " +
- "SYSREQ_FOLDER_KIND " +
- "SYSREQ_FUNC_CATEGORY " +
- "SYSREQ_FUNC_COMMENT " +
- "SYSREQ_FUNC_GROUP " +
- "SYSREQ_FUNC_GROUP_COMMENT " +
- "SYSREQ_FUNC_GROUP_NUMBER " +
- "SYSREQ_FUNC_HELP " +
- "SYSREQ_FUNC_PARAM_DEF_VALUE " +
- "SYSREQ_FUNC_PARAM_IDENT " +
- "SYSREQ_FUNC_PARAM_NUMBER " +
- "SYSREQ_FUNC_PARAM_TYPE " +
- "SYSREQ_FUNC_TEXT " +
- "SYSREQ_GROUP_CATEGORY " +
- "SYSREQ_ID " +
- "SYSREQ_LAST_UPDATE " +
- "SYSREQ_LEADER_REFERENCE " +
- "SYSREQ_LINE_NUMBER " +
- "SYSREQ_MAIN_RECORD_ID " +
- "SYSREQ_NAME " +
- "SYSREQ_NAME_LOCALIZE_ID " +
- "SYSREQ_NOTE " +
- "SYSREQ_ORIGINAL_RECORD " +
- "SYSREQ_OUR_FIRM " +
- "SYSREQ_PROFILING_SETTINGS_BATCH_LOGING " +
- "SYSREQ_PROFILING_SETTINGS_BATCH_SIZE " +
- "SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED " +
- "SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED " +
- "SYSREQ_PROFILING_SETTINGS_START_LOGGED " +
- "SYSREQ_RECORD_STATUS " +
- "SYSREQ_REF_REQ_FIELD_NAME " +
- "SYSREQ_REF_REQ_FORMAT " +
- "SYSREQ_REF_REQ_GENERATED " +
- "SYSREQ_REF_REQ_LENGTH " +
- "SYSREQ_REF_REQ_PRECISION " +
- "SYSREQ_REF_REQ_REFERENCE " +
- "SYSREQ_REF_REQ_SECTION " +
- "SYSREQ_REF_REQ_STORED " +
- "SYSREQ_REF_REQ_TOKENS " +
- "SYSREQ_REF_REQ_TYPE " +
- "SYSREQ_REF_REQ_VIEW " +
- "SYSREQ_REF_TYPE_ACT_CODE " +
- "SYSREQ_REF_TYPE_ACT_DESCRIPTION " +
- "SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID " +
- "SYSREQ_REF_TYPE_ACT_ON_EXECUTE " +
- "SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS " +
- "SYSREQ_REF_TYPE_ACT_SECTION " +
- "SYSREQ_REF_TYPE_ADD_PARAMS " +
- "SYSREQ_REF_TYPE_COMMENT " +
- "SYSREQ_REF_TYPE_COMMON_SETTINGS " +
- "SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME " +
- "SYSREQ_REF_TYPE_EVENT_TEXT " +
- "SYSREQ_REF_TYPE_MAIN_LEADING_REF " +
- "SYSREQ_REF_TYPE_NAME_IN_SINGULAR " +
- "SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID " +
- "SYSREQ_REF_TYPE_NAME_LOCALIZE_ID " +
- "SYSREQ_REF_TYPE_NUMERATION_METHOD " +
- "SYSREQ_REF_TYPE_REQ_CODE " +
- "SYSREQ_REF_TYPE_REQ_DESCRIPTION " +
- "SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID " +
- "SYSREQ_REF_TYPE_REQ_IS_CONTROL " +
- "SYSREQ_REF_TYPE_REQ_IS_FILTER " +
- "SYSREQ_REF_TYPE_REQ_IS_LEADING " +
- "SYSREQ_REF_TYPE_REQ_IS_REQUIRED " +
- "SYSREQ_REF_TYPE_REQ_NUMBER " +
- "SYSREQ_REF_TYPE_REQ_ON_CHANGE " +
- "SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS " +
- "SYSREQ_REF_TYPE_REQ_ON_SELECT " +
- "SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND " +
- "SYSREQ_REF_TYPE_REQ_SECTION " +
- "SYSREQ_REF_TYPE_VIEW_CARD " +
- "SYSREQ_REF_TYPE_VIEW_CODE " +
- "SYSREQ_REF_TYPE_VIEW_COMMENT " +
- "SYSREQ_REF_TYPE_VIEW_IS_MAIN " +
- "SYSREQ_REF_TYPE_VIEW_NAME " +
- "SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID " +
- "SYSREQ_REFERENCE_TYPE_ID " +
- "SYSREQ_STATE " +
- "SYSREQ_STATЕ " +
- "SYSREQ_SYSTEM_SETTINGS_VALUE " +
- "SYSREQ_TYPE " +
- "SYSREQ_UNIT " +
- "SYSREQ_UNIT_ID " +
- "SYSREQ_USER_GROUPS_GROUP_FULL_NAME " +
- "SYSREQ_USER_GROUPS_GROUP_NAME " +
- "SYSREQ_USER_GROUPS_GROUP_SERVER_NAME " +
- "SYSREQ_USERS_ACCESS_RIGHTS " +
- "SYSREQ_USERS_AUTHENTICATION " +
- "SYSREQ_USERS_CATEGORY " +
- "SYSREQ_USERS_COMPONENT " +
- "SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC " +
- "SYSREQ_USERS_DOMAIN " +
- "SYSREQ_USERS_FULL_USER_NAME " +
- "SYSREQ_USERS_GROUP " +
- "SYSREQ_USERS_IS_MAIN_SERVER " +
- "SYSREQ_USERS_LOGIN " +
- "SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC " +
- "SYSREQ_USERS_STATUS " +
- "SYSREQ_USERS_USER_CERTIFICATE " +
- "SYSREQ_USERS_USER_CERTIFICATE_INFO " +
- "SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME " +
- "SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION " +
- "SYSREQ_USERS_USER_CERTIFICATE_STATE " +
- "SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME " +
- "SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT " +
- "SYSREQ_USERS_USER_DEFAULT_CERTIFICATE " +
- "SYSREQ_USERS_USER_DESCRIPTION " +
- "SYSREQ_USERS_USER_GLOBAL_NAME " +
- "SYSREQ_USERS_USER_LOGIN " +
- "SYSREQ_USERS_USER_MAIN_SERVER " +
- "SYSREQ_USERS_USER_TYPE " +
- "SYSREQ_WORK_RULES_FOLDER_ID ";
-
- // Result
- var result_constants = "RESULT_VAR_NAME RESULT_VAR_NAME_ENG ";
-
- // Rule identification
- var rule_identification_constants =
- "AUTO_NUMERATION_RULE_ID " +
- "CANT_CHANGE_ID_REQUISITE_RULE_ID " +
- "CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID " +
- "CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID " +
- "CHECK_CODE_REQUISITE_RULE_ID " +
- "CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID " +
- "CHECK_FILTRATER_CHANGES_RULE_ID " +
- "CHECK_RECORD_INTERVAL_RULE_ID " +
- "CHECK_REFERENCE_INTERVAL_RULE_ID " +
- "CHECK_REQUIRED_DATA_FULLNESS_RULE_ID " +
- "CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID " +
- "MAKE_RECORD_UNRATIFIED_RULE_ID " +
- "RESTORE_AUTO_NUMERATION_RULE_ID " +
- "SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID " +
- "SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID " +
- "SET_IDSPS_VALUE_RULE_ID " +
- "SET_NEXT_CODE_VALUE_RULE_ID " +
- "SET_OURFIRM_BOUNDS_RULE_ID " +
- "SET_OURFIRM_REQUISITE_RULE_ID ";
-
- // Script block properties
- var script_block_properties_constants =
- "SCRIPT_BLOCK_AFTER_FINISH_EVENT " +
- "SCRIPT_BLOCK_BEFORE_START_EVENT " +
- "SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY " +
- "SCRIPT_BLOCK_NAME_PROPERTY " +
- "SCRIPT_BLOCK_SCRIPT_PROPERTY ";
-
- // Subtask block properties
- var subtask_block_properties_constants =
- "SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY " +
- "SUBTASK_BLOCK_AFTER_FINISH_EVENT " +
- "SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT " +
- "SUBTASK_BLOCK_ATTACHMENTS_PROPERTY " +
- "SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " +
- "SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " +
- "SUBTASK_BLOCK_BEFORE_START_EVENT " +
- "SUBTASK_BLOCK_CREATED_TASK_PROPERTY " +
- "SUBTASK_BLOCK_CREATION_EVENT " +
- "SUBTASK_BLOCK_DEADLINE_PROPERTY " +
- "SUBTASK_BLOCK_IMPORTANCE_PROPERTY " +
- "SUBTASK_BLOCK_INITIATOR_PROPERTY " +
- "SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY " +
- "SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " +
- "SUBTASK_BLOCK_JOBS_TYPE_PROPERTY " +
- "SUBTASK_BLOCK_NAME_PROPERTY " +
- "SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY " +
- "SUBTASK_BLOCK_PERFORMERS_PROPERTY " +
- "SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY " +
- "SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " +
- "SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY " +
- "SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY " +
- "SUBTASK_BLOCK_START_EVENT " +
- "SUBTASK_BLOCK_STEP_CONTROL_PROPERTY " +
- "SUBTASK_BLOCK_SUBJECT_PROPERTY " +
- "SUBTASK_BLOCK_TASK_CONTROL_PROPERTY " +
- "SUBTASK_BLOCK_TEXT_PROPERTY " +
- "SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY " +
- "SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY " +
- "SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ";
-
- // System component
- var system_component_constants =
- "SYSCOMP_CONTROL_JOBS " +
- "SYSCOMP_FOLDERS " +
- "SYSCOMP_JOBS " +
- "SYSCOMP_NOTICES " +
- "SYSCOMP_TASKS ";
-
- // System dialogs
- var system_dialogs_constants =
- "SYSDLG_CREATE_EDOCUMENT " +
- "SYSDLG_CREATE_EDOCUMENT_VERSION " +
- "SYSDLG_CURRENT_PERIOD " +
- "SYSDLG_EDIT_FUNCTION_HELP " +
- "SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE " +
- "SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS " +
- "SYSDLG_EXPORT_SINGLE_EDOCUMENT " +
- "SYSDLG_IMPORT_EDOCUMENT " +
- "SYSDLG_MULTIPLE_SELECT " +
- "SYSDLG_SETUP_ACCESS_RIGHTS " +
- "SYSDLG_SETUP_DEFAULT_RIGHTS " +
- "SYSDLG_SETUP_FILTER_CONDITION " +
- "SYSDLG_SETUP_SIGN_RIGHTS " +
- "SYSDLG_SETUP_TASK_OBSERVERS " +
- "SYSDLG_SETUP_TASK_ROUTE " +
- "SYSDLG_SETUP_USERS_LIST " +
- "SYSDLG_SIGN_EDOCUMENT " +
- "SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ";
-
- // System reference names
- var system_reference_names_constants =
- "SYSREF_ACCESS_RIGHTS_TYPES " +
- "SYSREF_ADMINISTRATION_HISTORY " +
- "SYSREF_ALL_AVAILABLE_COMPONENTS " +
- "SYSREF_ALL_AVAILABLE_PRIVILEGES " +
- "SYSREF_ALL_REPLICATING_COMPONENTS " +
- "SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS " +
- "SYSREF_CALENDAR_EVENTS " +
- "SYSREF_COMPONENT_TOKEN_HISTORY " +
- "SYSREF_COMPONENT_TOKENS " +
- "SYSREF_COMPONENTS " +
- "SYSREF_CONSTANTS " +
- "SYSREF_DATA_RECEIVE_PROTOCOL " +
- "SYSREF_DATA_SEND_PROTOCOL " +
- "SYSREF_DIALOGS " +
- "SYSREF_DIALOGS_REQUISITES " +
- "SYSREF_EDITORS " +
- "SYSREF_EDOC_CARDS " +
- "SYSREF_EDOC_TYPES " +
- "SYSREF_EDOCUMENT_CARD_REQUISITES " +
- "SYSREF_EDOCUMENT_CARD_TYPES " +
- "SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE " +
- "SYSREF_EDOCUMENT_CARDS " +
- "SYSREF_EDOCUMENT_HISTORY " +
- "SYSREF_EDOCUMENT_KINDS " +
- "SYSREF_EDOCUMENT_REQUISITES " +
- "SYSREF_EDOCUMENT_SIGNATURES " +
- "SYSREF_EDOCUMENT_TEMPLATES " +
- "SYSREF_EDOCUMENT_TEXT_STORAGES " +
- "SYSREF_EDOCUMENT_VIEWS " +
- "SYSREF_FILTERER_SETUP_CONFLICTS " +
- "SYSREF_FILTRATER_SETTING_CONFLICTS " +
- "SYSREF_FOLDER_HISTORY " +
- "SYSREF_FOLDERS " +
- "SYSREF_FUNCTION_GROUPS " +
- "SYSREF_FUNCTION_PARAMS " +
- "SYSREF_FUNCTIONS " +
- "SYSREF_JOB_HISTORY " +
- "SYSREF_LINKS " +
- "SYSREF_LOCALIZATION_DICTIONARY " +
- "SYSREF_LOCALIZATION_LANGUAGES " +
- "SYSREF_MODULES " +
- "SYSREF_PRIVILEGES " +
- "SYSREF_RECORD_HISTORY " +
- "SYSREF_REFERENCE_REQUISITES " +
- "SYSREF_REFERENCE_TYPE_VIEWS " +
- "SYSREF_REFERENCE_TYPES " +
- "SYSREF_REFERENCES " +
- "SYSREF_REFERENCES_REQUISITES " +
- "SYSREF_REMOTE_SERVERS " +
- "SYSREF_REPLICATION_SESSIONS_LOG " +
- "SYSREF_REPLICATION_SESSIONS_PROTOCOL " +
- "SYSREF_REPORTS " +
- "SYSREF_ROLES " +
- "SYSREF_ROUTE_BLOCK_GROUPS " +
- "SYSREF_ROUTE_BLOCKS " +
- "SYSREF_SCRIPTS " +
- "SYSREF_SEARCHES " +
- "SYSREF_SERVER_EVENTS " +
- "SYSREF_SERVER_EVENTS_HISTORY " +
- "SYSREF_STANDARD_ROUTE_GROUPS " +
- "SYSREF_STANDARD_ROUTES " +
- "SYSREF_STATUSES " +
- "SYSREF_SYSTEM_SETTINGS " +
- "SYSREF_TASK_HISTORY " +
- "SYSREF_TASK_KIND_GROUPS " +
- "SYSREF_TASK_KINDS " +
- "SYSREF_TASK_RIGHTS " +
- "SYSREF_TASK_SIGNATURES " +
- "SYSREF_TASKS " +
- "SYSREF_UNITS " +
- "SYSREF_USER_GROUPS " +
- "SYSREF_USER_GROUPS_REFERENCE " +
- "SYSREF_USER_SUBSTITUTION " +
- "SYSREF_USERS " +
- "SYSREF_USERS_REFERENCE " +
- "SYSREF_VIEWERS " +
- "SYSREF_WORKING_TIME_CALENDARS ";
-
- // Table name
- var table_name_constants =
- "ACCESS_RIGHTS_TABLE_NAME " +
- "EDMS_ACCESS_TABLE_NAME " +
- "EDOC_TYPES_TABLE_NAME ";
-
- // Test
- var test_constants =
- "TEST_DEV_DB_NAME " +
- "TEST_DEV_SYSTEM_CODE " +
- "TEST_EDMS_DB_NAME " +
- "TEST_EDMS_MAIN_CODE " +
- "TEST_EDMS_MAIN_DB_NAME " +
- "TEST_EDMS_SECOND_CODE " +
- "TEST_EDMS_SECOND_DB_NAME " +
- "TEST_EDMS_SYSTEM_CODE " +
- "TEST_ISB5_MAIN_CODE " +
- "TEST_ISB5_SECOND_CODE " +
- "TEST_SQL_SERVER_2005_NAME " +
- "TEST_SQL_SERVER_NAME ";
-
- // Using the dialog windows
- var using_the_dialog_windows_constants =
- "ATTENTION_CAPTION " +
- "cbsCommandLinks " +
- "cbsDefault " +
- "CONFIRMATION_CAPTION " +
- "ERROR_CAPTION " +
- "INFORMATION_CAPTION " +
- "mrCancel " +
- "mrOk ";
-
- // Using the document
- var using_the_document_constants =
- "EDOC_VERSION_ACTIVE_STAGE_CODE " +
- "EDOC_VERSION_DESIGN_STAGE_CODE " +
- "EDOC_VERSION_OBSOLETE_STAGE_CODE ";
-
- // Using the EA and encryption
- var using_the_EA_and_encryption_constants =
- "cpDataEnciphermentEnabled " +
- "cpDigitalSignatureEnabled " +
- "cpID " +
- "cpIssuer " +
- "cpPluginVersion " +
- "cpSerial " +
- "cpSubjectName " +
- "cpSubjSimpleName " +
- "cpValidFromDate " +
- "cpValidToDate ";
-
- // Using the ISBL-editor
- var using_the_ISBL_editor_constants =
- "ISBL_SYNTAX " + "NO_SYNTAX " + "XML_SYNTAX ";
-
- // Wait block properties
- var wait_block_properties_constants =
- "WAIT_BLOCK_AFTER_FINISH_EVENT " +
- "WAIT_BLOCK_BEFORE_START_EVENT " +
- "WAIT_BLOCK_DEADLINE_PROPERTY " +
- "WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " +
- "WAIT_BLOCK_NAME_PROPERTY " +
- "WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ";
-
- // SYSRES Common
- var sysres_common_constants =
- "SYSRES_COMMON " +
- "SYSRES_CONST " +
- "SYSRES_MBFUNC " +
- "SYSRES_SBDATA " +
- "SYSRES_SBGUI " +
- "SYSRES_SBINTF " +
- "SYSRES_SBREFDSC " +
- "SYSRES_SQLERRORS " +
- "SYSRES_SYSCOMP ";
-
- // Константы ==> built_in
- var CONSTANTS =
- sysres_constants +
- base_constants +
- base_group_name_constants +
- decision_block_properties_constants +
- file_extension_constants +
- job_block_properties_constants +
- language_code_constants +
- launching_external_applications_constants +
- link_kind_constants +
- lock_type_constants +
- monitor_block_properties_constants +
- notice_block_properties_constants +
- object_events_constants +
- object_params_constants +
- other_constants +
- privileges_constants +
- pseudoreference_code_constants +
- requisite_ISBCertificateType_values_constants +
- requisite_ISBEDocStorageType_values_constants +
- requisite_compType2_values_constants +
- requisite_name_constants +
- result_constants +
- rule_identification_constants +
- script_block_properties_constants +
- subtask_block_properties_constants +
- system_component_constants +
- system_dialogs_constants +
- system_reference_names_constants +
- table_name_constants +
- test_constants +
- using_the_dialog_windows_constants +
- using_the_document_constants +
- using_the_EA_and_encryption_constants +
- using_the_ISBL_editor_constants +
- wait_block_properties_constants +
- sysres_common_constants;
-
- // enum TAccountType
- var TAccountType = "atUser atGroup atRole ";
-
- // enum TActionEnabledMode
- var TActionEnabledMode =
- "aemEnabledAlways " +
- "aemDisabledAlways " +
- "aemEnabledOnBrowse " +
- "aemEnabledOnEdit " +
- "aemDisabledOnBrowseEmpty ";
-
- // enum TAddPosition
- var TAddPosition = "apBegin apEnd ";
-
- // enum TAlignment
- var TAlignment = "alLeft alRight ";
-
- // enum TAreaShowMode
- var TAreaShowMode =
- "asmNever " +
- "asmNoButCustomize " +
- "asmAsLastTime " +
- "asmYesButCustomize " +
- "asmAlways ";
-
- // enum TCertificateInvalidationReason
- var TCertificateInvalidationReason = "cirCommon cirRevoked ";
-
- // enum TCertificateType
- var TCertificateType = "ctSignature ctEncode ctSignatureEncode ";
-
- // enum TCheckListBoxItemState
- var TCheckListBoxItemState = "clbUnchecked clbChecked clbGrayed ";
-
- // enum TCloseOnEsc
- var TCloseOnEsc = "ceISB ceAlways ceNever ";
-
- // enum TCompType
- var TCompType =
- "ctDocument " +
- "ctReference " +
- "ctScript " +
- "ctUnknown " +
- "ctReport " +
- "ctDialog " +
- "ctFunction " +
- "ctFolder " +
- "ctEDocument " +
- "ctTask " +
- "ctJob " +
- "ctNotice " +
- "ctControlJob ";
-
- // enum TConditionFormat
- var TConditionFormat = "cfInternal cfDisplay ";
-
- // enum TConnectionIntent
- var TConnectionIntent = "ciUnspecified ciWrite ciRead ";
-
- // enum TContentKind
- var TContentKind =
- "ckFolder " +
- "ckEDocument " +
- "ckTask " +
- "ckJob " +
- "ckComponentToken " +
- "ckAny " +
- "ckReference " +
- "ckScript " +
- "ckReport " +
- "ckDialog ";
-
- // enum TControlType
- var TControlType =
- "ctISBLEditor " +
- "ctBevel " +
- "ctButton " +
- "ctCheckListBox " +
- "ctComboBox " +
- "ctComboEdit " +
- "ctGrid " +
- "ctDBCheckBox " +
- "ctDBComboBox " +
- "ctDBEdit " +
- "ctDBEllipsis " +
- "ctDBMemo " +
- "ctDBNavigator " +
- "ctDBRadioGroup " +
- "ctDBStatusLabel " +
- "ctEdit " +
- "ctGroupBox " +
- "ctInplaceHint " +
- "ctMemo " +
- "ctPanel " +
- "ctListBox " +
- "ctRadioButton " +
- "ctRichEdit " +
- "ctTabSheet " +
- "ctWebBrowser " +
- "ctImage " +
- "ctHyperLink " +
- "ctLabel " +
- "ctDBMultiEllipsis " +
- "ctRibbon " +
- "ctRichView " +
- "ctInnerPanel " +
- "ctPanelGroup " +
- "ctBitButton ";
-
- // enum TCriterionContentType
- var TCriterionContentType =
- "cctDate " +
- "cctInteger " +
- "cctNumeric " +
- "cctPick " +
- "cctReference " +
- "cctString " +
- "cctText ";
-
- // enum TCultureType
- var TCultureType = "cltInternal cltPrimary cltGUI ";
-
- // enum TDataSetEventType
- var TDataSetEventType =
- "dseBeforeOpen " +
- "dseAfterOpen " +
- "dseBeforeClose " +
- "dseAfterClose " +
- "dseOnValidDelete " +
- "dseBeforeDelete " +
- "dseAfterDelete " +
- "dseAfterDeleteOutOfTransaction " +
- "dseOnDeleteError " +
- "dseBeforeInsert " +
- "dseAfterInsert " +
- "dseOnValidUpdate " +
- "dseBeforeUpdate " +
- "dseOnUpdateRatifiedRecord " +
- "dseAfterUpdate " +
- "dseAfterUpdateOutOfTransaction " +
- "dseOnUpdateError " +
- "dseAfterScroll " +
- "dseOnOpenRecord " +
- "dseOnCloseRecord " +
- "dseBeforeCancel " +
- "dseAfterCancel " +
- "dseOnUpdateDeadlockError " +
- "dseBeforeDetailUpdate " +
- "dseOnPrepareUpdate " +
- "dseOnAnyRequisiteChange ";
-
- // enum TDataSetState
- var TDataSetState = "dssEdit dssInsert dssBrowse dssInActive ";
-
- // enum TDateFormatType
- var TDateFormatType = "dftDate dftShortDate dftDateTime dftTimeStamp ";
-
- // enum TDateOffsetType
- var TDateOffsetType = "dotDays dotHours dotMinutes dotSeconds ";
-
- // enum TDateTimeKind
- var TDateTimeKind = "dtkndLocal dtkndUTC ";
-
- // enum TDeaAccessRights
- var TDeaAccessRights = "arNone arView arEdit arFull ";
-
- // enum TDocumentDefaultAction
- var TDocumentDefaultAction = "ddaView ddaEdit ";
-
- // enum TEditMode
- var TEditMode =
- "emLock " +
- "emEdit " +
- "emSign " +
- "emExportWithLock " +
- "emImportWithUnlock " +
- "emChangeVersionNote " +
- "emOpenForModify " +
- "emChangeLifeStage " +
- "emDelete " +
- "emCreateVersion " +
- "emImport " +
- "emUnlockExportedWithLock " +
- "emStart " +
- "emAbort " +
- "emReInit " +
- "emMarkAsReaded " +
- "emMarkAsUnreaded " +
- "emPerform " +
- "emAccept " +
- "emResume " +
- "emChangeRights " +
- "emEditRoute " +
- "emEditObserver " +
- "emRecoveryFromLocalCopy " +
- "emChangeWorkAccessType " +
- "emChangeEncodeTypeToCertificate " +
- "emChangeEncodeTypeToPassword " +
- "emChangeEncodeTypeToNone " +
- "emChangeEncodeTypeToCertificatePassword " +
- "emChangeStandardRoute " +
- "emGetText " +
- "emOpenForView " +
- "emMoveToStorage " +
- "emCreateObject " +
- "emChangeVersionHidden " +
- "emDeleteVersion " +
- "emChangeLifeCycleStage " +
- "emApprovingSign " +
- "emExport " +
- "emContinue " +
- "emLockFromEdit " +
- "emUnLockForEdit " +
- "emLockForServer " +
- "emUnlockFromServer " +
- "emDelegateAccessRights " +
- "emReEncode ";
-
- // enum TEditorCloseObservType
- var TEditorCloseObservType = "ecotFile ecotProcess ";
-
- // enum TEdmsApplicationAction
- var TEdmsApplicationAction = "eaGet eaCopy eaCreate eaCreateStandardRoute ";
-
- // enum TEDocumentLockType
- var TEDocumentLockType = "edltAll edltNothing edltQuery ";
-
- // enum TEDocumentStepShowMode
- var TEDocumentStepShowMode = "essmText essmCard ";
-
- // enum TEDocumentStepVersionType
- var TEDocumentStepVersionType = "esvtLast esvtLastActive esvtSpecified ";
-
- // enum TEDocumentStorageFunction
- var TEDocumentStorageFunction = "edsfExecutive edsfArchive ";
-
- // enum TEDocumentStorageType
- var TEDocumentStorageType = "edstSQLServer edstFile ";
-
- // enum TEDocumentVersionSourceType
- var TEDocumentVersionSourceType =
- "edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ";
-
- // enum TEDocumentVersionState
- var TEDocumentVersionState = "vsDefault vsDesign vsActive vsObsolete ";
-
- // enum TEncodeType
- var TEncodeType = "etNone etCertificate etPassword etCertificatePassword ";
-
- // enum TExceptionCategory
- var TExceptionCategory = "ecException ecWarning ecInformation ";
-
- // enum TExportedSignaturesType
- var TExportedSignaturesType = "estAll estApprovingOnly ";
-
- // enum TExportedVersionType
- var TExportedVersionType = "evtLast evtLastActive evtQuery ";
-
- // enum TFieldDataType
- var TFieldDataType =
- "fdtString " +
- "fdtNumeric " +
- "fdtInteger " +
- "fdtDate " +
- "fdtText " +
- "fdtUnknown " +
- "fdtWideString " +
- "fdtLargeInteger ";
-
- // enum TFolderType
- var TFolderType =
- "ftInbox " +
- "ftOutbox " +
- "ftFavorites " +
- "ftCommonFolder " +
- "ftUserFolder " +
- "ftComponents " +
- "ftQuickLaunch " +
- "ftShortcuts " +
- "ftSearch ";
-
- // enum TGridRowHeight
- var TGridRowHeight = "grhAuto " + "grhX1 " + "grhX2 " + "grhX3 ";
-
- // enum THyperlinkType
- var THyperlinkType = "hltText " + "hltRTF " + "hltHTML ";
-
- // enum TImageFileFormat
- var TImageFileFormat =
- "iffBMP " +
- "iffJPEG " +
- "iffMultiPageTIFF " +
- "iffSinglePageTIFF " +
- "iffTIFF " +
- "iffPNG ";
-
- // enum TImageMode
- var TImageMode = "im8bGrayscale " + "im24bRGB " + "im1bMonochrome ";
-
- // enum TImageType
- var TImageType = "itBMP " + "itJPEG " + "itWMF " + "itPNG ";
-
- // enum TInplaceHintKind
- var TInplaceHintKind =
- "ikhInformation " + "ikhWarning " + "ikhError " + "ikhNoIcon ";
-
- // enum TISBLContext
- var TISBLContext =
- "icUnknown " +
- "icScript " +
- "icFunction " +
- "icIntegratedReport " +
- "icAnalyticReport " +
- "icDataSetEventHandler " +
- "icActionHandler " +
- "icFormEventHandler " +
- "icLookUpEventHandler " +
- "icRequisiteChangeEventHandler " +
- "icBeforeSearchEventHandler " +
- "icRoleCalculation " +
- "icSelectRouteEventHandler " +
- "icBlockPropertyCalculation " +
- "icBlockQueryParamsEventHandler " +
- "icChangeSearchResultEventHandler " +
- "icBlockEventHandler " +
- "icSubTaskInitEventHandler " +
- "icEDocDataSetEventHandler " +
- "icEDocLookUpEventHandler " +
- "icEDocActionHandler " +
- "icEDocFormEventHandler " +
- "icEDocRequisiteChangeEventHandler " +
- "icStructuredConversionRule " +
- "icStructuredConversionEventBefore " +
- "icStructuredConversionEventAfter " +
- "icWizardEventHandler " +
- "icWizardFinishEventHandler " +
- "icWizardStepEventHandler " +
- "icWizardStepFinishEventHandler " +
- "icWizardActionEnableEventHandler " +
- "icWizardActionExecuteEventHandler " +
- "icCreateJobsHandler " +
- "icCreateNoticesHandler " +
- "icBeforeLookUpEventHandler " +
- "icAfterLookUpEventHandler " +
- "icTaskAbortEventHandler " +
- "icWorkflowBlockActionHandler " +
- "icDialogDataSetEventHandler " +
- "icDialogActionHandler " +
- "icDialogLookUpEventHandler " +
- "icDialogRequisiteChangeEventHandler " +
- "icDialogFormEventHandler " +
- "icDialogValidCloseEventHandler " +
- "icBlockFormEventHandler " +
- "icTaskFormEventHandler " +
- "icReferenceMethod " +
- "icEDocMethod " +
- "icDialogMethod " +
- "icProcessMessageHandler ";
-
- // enum TItemShow
- var TItemShow = "isShow " + "isHide " + "isByUserSettings ";
-
- // enum TJobKind
- var TJobKind = "jkJob " + "jkNotice " + "jkControlJob ";
-
- // enum TJoinType
- var TJoinType = "jtInner " + "jtLeft " + "jtRight " + "jtFull " + "jtCross ";
-
- // enum TLabelPos
- var TLabelPos = "lbpAbove " + "lbpBelow " + "lbpLeft " + "lbpRight ";
-
- // enum TLicensingType
- var TLicensingType = "eltPerConnection " + "eltPerUser ";
-
- // enum TLifeCycleStageFontColor
- var TLifeCycleStageFontColor =
- "sfcUndefined " +
- "sfcBlack " +
- "sfcGreen " +
- "sfcRed " +
- "sfcBlue " +
- "sfcOrange " +
- "sfcLilac ";
-
- // enum TLifeCycleStageFontStyle
- var TLifeCycleStageFontStyle = "sfsItalic " + "sfsStrikeout " + "sfsNormal ";
-
- // enum TLockableDevelopmentComponentType
- var TLockableDevelopmentComponentType =
- "ldctStandardRoute " +
- "ldctWizard " +
- "ldctScript " +
- "ldctFunction " +
- "ldctRouteBlock " +
- "ldctIntegratedReport " +
- "ldctAnalyticReport " +
- "ldctReferenceType " +
- "ldctEDocumentType " +
- "ldctDialog " +
- "ldctServerEvents ";
-
- // enum TMaxRecordCountRestrictionType
- var TMaxRecordCountRestrictionType =
- "mrcrtNone " + "mrcrtUser " + "mrcrtMaximal " + "mrcrtCustom ";
-
- // enum TRangeValueType
- var TRangeValueType =
- "vtEqual " + "vtGreaterOrEqual " + "vtLessOrEqual " + "vtRange ";
-
- // enum TRelativeDate
- var TRelativeDate =
- "rdYesterday " +
- "rdToday " +
- "rdTomorrow " +
- "rdThisWeek " +
- "rdThisMonth " +
- "rdThisYear " +
- "rdNextMonth " +
- "rdNextWeek " +
- "rdLastWeek " +
- "rdLastMonth ";
-
- // enum TReportDestination
- var TReportDestination = "rdWindow " + "rdFile " + "rdPrinter ";
-
- // enum TReqDataType
- var TReqDataType =
- "rdtString " +
- "rdtNumeric " +
- "rdtInteger " +
- "rdtDate " +
- "rdtReference " +
- "rdtAccount " +
- "rdtText " +
- "rdtPick " +
- "rdtUnknown " +
- "rdtLargeInteger " +
- "rdtDocument ";
-
- // enum TRequisiteEventType
- var TRequisiteEventType = "reOnChange " + "reOnChangeValues ";
-
- // enum TSBTimeType
- var TSBTimeType = "ttGlobal " + "ttLocal " + "ttUser " + "ttSystem ";
-
- // enum TSearchShowMode
- var TSearchShowMode =
- "ssmBrowse " + "ssmSelect " + "ssmMultiSelect " + "ssmBrowseModal ";
-
- // enum TSelectMode
- var TSelectMode = "smSelect " + "smLike " + "smCard ";
-
- // enum TSignatureType
- var TSignatureType = "stNone " + "stAuthenticating " + "stApproving ";
-
- // enum TSignerContentType
- var TSignerContentType = "sctString " + "sctStream ";
-
- // enum TStringsSortType
- var TStringsSortType = "sstAnsiSort " + "sstNaturalSort ";
-
- // enum TStringValueType
- var TStringValueType = "svtEqual " + "svtContain ";
-
- // enum TStructuredObjectAttributeType
- var TStructuredObjectAttributeType =
- "soatString " +
- "soatNumeric " +
- "soatInteger " +
- "soatDatetime " +
- "soatReferenceRecord " +
- "soatText " +
- "soatPick " +
- "soatBoolean " +
- "soatEDocument " +
- "soatAccount " +
- "soatIntegerCollection " +
- "soatNumericCollection " +
- "soatStringCollection " +
- "soatPickCollection " +
- "soatDatetimeCollection " +
- "soatBooleanCollection " +
- "soatReferenceRecordCollection " +
- "soatEDocumentCollection " +
- "soatAccountCollection " +
- "soatContents " +
- "soatUnknown ";
-
- // enum TTaskAbortReason
- var TTaskAbortReason = "tarAbortByUser " + "tarAbortByWorkflowException ";
-
- // enum TTextValueType
- var TTextValueType = "tvtAllWords " + "tvtExactPhrase " + "tvtAnyWord ";
-
- // enum TUserObjectStatus
- var TUserObjectStatus =
- "usNone " +
- "usCompleted " +
- "usRedSquare " +
- "usBlueSquare " +
- "usYellowSquare " +
- "usGreenSquare " +
- "usOrangeSquare " +
- "usPurpleSquare " +
- "usFollowUp ";
-
- // enum TUserType
- var TUserType =
- "utUnknown " +
- "utUser " +
- "utDeveloper " +
- "utAdministrator " +
- "utSystemDeveloper " +
- "utDisconnected ";
-
- // enum TValuesBuildType
- var TValuesBuildType =
- "btAnd " + "btDetailAnd " + "btOr " + "btNotOr " + "btOnly ";
-
- // enum TViewMode
- var TViewMode = "vmView " + "vmSelect " + "vmNavigation ";
-
- // enum TViewSelectionMode
- var TViewSelectionMode =
- "vsmSingle " + "vsmMultiple " + "vsmMultipleCheck " + "vsmNoSelection ";
-
- // enum TWizardActionType
- var TWizardActionType =
- "wfatPrevious " + "wfatNext " + "wfatCancel " + "wfatFinish ";
-
- // enum TWizardFormElementProperty
- var TWizardFormElementProperty =
- "wfepUndefined " +
- "wfepText3 " +
- "wfepText6 " +
- "wfepText9 " +
- "wfepSpinEdit " +
- "wfepDropDown " +
- "wfepRadioGroup " +
- "wfepFlag " +
- "wfepText12 " +
- "wfepText15 " +
- "wfepText18 " +
- "wfepText21 " +
- "wfepText24 " +
- "wfepText27 " +
- "wfepText30 " +
- "wfepRadioGroupColumn1 " +
- "wfepRadioGroupColumn2 " +
- "wfepRadioGroupColumn3 ";
-
- // enum TWizardFormElementType
- var TWizardFormElementType =
- "wfetQueryParameter " + "wfetText " + "wfetDelimiter " + "wfetLabel ";
-
- // enum TWizardParamType
- var TWizardParamType =
- "wptString " +
- "wptInteger " +
- "wptNumeric " +
- "wptBoolean " +
- "wptDateTime " +
- "wptPick " +
- "wptText " +
- "wptUser " +
- "wptUserList " +
- "wptEDocumentInfo " +
- "wptEDocumentInfoList " +
- "wptReferenceRecordInfo " +
- "wptReferenceRecordInfoList " +
- "wptFolderInfo " +
- "wptTaskInfo " +
- "wptContents " +
- "wptFileName " +
- "wptDate ";
-
- // enum TWizardStepResult
- var TWizardStepResult =
- "wsrComplete " +
- "wsrGoNext " +
- "wsrGoPrevious " +
- "wsrCustom " +
- "wsrCancel " +
- "wsrGoFinal ";
-
- // enum TWizardStepType
- var TWizardStepType =
- "wstForm " +
- "wstEDocument " +
- "wstTaskCard " +
- "wstReferenceRecordCard " +
- "wstFinal ";
-
- // enum TWorkAccessType
- var TWorkAccessType = "waAll " + "waPerformers " + "waManual ";
-
- // enum TWorkflowBlockType
- var TWorkflowBlockType =
- "wsbStart " +
- "wsbFinish " +
- "wsbNotice " +
- "wsbStep " +
- "wsbDecision " +
- "wsbWait " +
- "wsbMonitor " +
- "wsbScript " +
- "wsbConnector " +
- "wsbSubTask " +
- "wsbLifeCycleStage " +
- "wsbPause ";
-
- // enum TWorkflowDataType
- var TWorkflowDataType =
- "wdtInteger " +
- "wdtFloat " +
- "wdtString " +
- "wdtPick " +
- "wdtDateTime " +
- "wdtBoolean " +
- "wdtTask " +
- "wdtJob " +
- "wdtFolder " +
- "wdtEDocument " +
- "wdtReferenceRecord " +
- "wdtUser " +
- "wdtGroup " +
- "wdtRole " +
- "wdtIntegerCollection " +
- "wdtFloatCollection " +
- "wdtStringCollection " +
- "wdtPickCollection " +
- "wdtDateTimeCollection " +
- "wdtBooleanCollection " +
- "wdtTaskCollection " +
- "wdtJobCollection " +
- "wdtFolderCollection " +
- "wdtEDocumentCollection " +
- "wdtReferenceRecordCollection " +
- "wdtUserCollection " +
- "wdtGroupCollection " +
- "wdtRoleCollection " +
- "wdtContents " +
- "wdtUserList " +
- "wdtSearchDescription " +
- "wdtDeadLine " +
- "wdtPickSet " +
- "wdtAccountCollection ";
-
- // enum TWorkImportance
- var TWorkImportance = "wiLow " + "wiNormal " + "wiHigh ";
-
- // enum TWorkRouteType
- var TWorkRouteType = "wrtSoft " + "wrtHard ";
-
- // enum TWorkState
- var TWorkState =
- "wsInit " +
- "wsRunning " +
- "wsDone " +
- "wsControlled " +
- "wsAborted " +
- "wsContinued ";
-
- // enum TWorkTextBuildingMode
- var TWorkTextBuildingMode =
- "wtmFull " + "wtmFromCurrent " + "wtmOnlyCurrent ";
-
- // Перечисления
- var ENUMS =
- TAccountType +
- TActionEnabledMode +
- TAddPosition +
- TAlignment +
- TAreaShowMode +
- TCertificateInvalidationReason +
- TCertificateType +
- TCheckListBoxItemState +
- TCloseOnEsc +
- TCompType +
- TConditionFormat +
- TConnectionIntent +
- TContentKind +
- TControlType +
- TCriterionContentType +
- TCultureType +
- TDataSetEventType +
- TDataSetState +
- TDateFormatType +
- TDateOffsetType +
- TDateTimeKind +
- TDeaAccessRights +
- TDocumentDefaultAction +
- TEditMode +
- TEditorCloseObservType +
- TEdmsApplicationAction +
- TEDocumentLockType +
- TEDocumentStepShowMode +
- TEDocumentStepVersionType +
- TEDocumentStorageFunction +
- TEDocumentStorageType +
- TEDocumentVersionSourceType +
- TEDocumentVersionState +
- TEncodeType +
- TExceptionCategory +
- TExportedSignaturesType +
- TExportedVersionType +
- TFieldDataType +
- TFolderType +
- TGridRowHeight +
- THyperlinkType +
- TImageFileFormat +
- TImageMode +
- TImageType +
- TInplaceHintKind +
- TISBLContext +
- TItemShow +
- TJobKind +
- TJoinType +
- TLabelPos +
- TLicensingType +
- TLifeCycleStageFontColor +
- TLifeCycleStageFontStyle +
- TLockableDevelopmentComponentType +
- TMaxRecordCountRestrictionType +
- TRangeValueType +
- TRelativeDate +
- TReportDestination +
- TReqDataType +
- TRequisiteEventType +
- TSBTimeType +
- TSearchShowMode +
- TSelectMode +
- TSignatureType +
- TSignerContentType +
- TStringsSortType +
- TStringValueType +
- TStructuredObjectAttributeType +
- TTaskAbortReason +
- TTextValueType +
- TUserObjectStatus +
- TUserType +
- TValuesBuildType +
- TViewMode +
- TViewSelectionMode +
- TWizardActionType +
- TWizardFormElementProperty +
- TWizardFormElementType +
- TWizardParamType +
- TWizardStepResult +
- TWizardStepType +
- TWorkAccessType +
- TWorkflowBlockType +
- TWorkflowDataType +
- TWorkImportance +
- TWorkRouteType +
- TWorkState +
- TWorkTextBuildingMode;
-
- // Системные функции ==> SYSFUNCTIONS
- var system_functions =
- "AddSubString " +
- "AdjustLineBreaks " +
- "AmountInWords " +
- "Analysis " +
- "ArrayDimCount " +
- "ArrayHighBound " +
- "ArrayLowBound " +
- "ArrayOf " +
- "ArrayReDim " +
- "Assert " +
- "Assigned " +
- "BeginOfMonth " +
- "BeginOfPeriod " +
- "BuildProfilingOperationAnalysis " +
- "CallProcedure " +
- "CanReadFile " +
- "CArrayElement " +
- "CDataSetRequisite " +
- "ChangeDate " +
- "ChangeReferenceDataset " +
- "Char " +
- "CharPos " +
- "CheckParam " +
- "CheckParamValue " +
- "CompareStrings " +
- "ConstantExists " +
- "ControlState " +
- "ConvertDateStr " +
- "Copy " +
- "CopyFile " +
- "CreateArray " +
- "CreateCachedReference " +
- "CreateConnection " +
- "CreateDialog " +
- "CreateDualListDialog " +
- "CreateEditor " +
- "CreateException " +
- "CreateFile " +
- "CreateFolderDialog " +
- "CreateInputDialog " +
- "CreateLinkFile " +
- "CreateList " +
- "CreateLock " +
- "CreateMemoryDataSet " +
- "CreateObject " +
- "CreateOpenDialog " +
- "CreateProgress " +
- "CreateQuery " +
- "CreateReference " +
- "CreateReport " +
- "CreateSaveDialog " +
- "CreateScript " +
- "CreateSQLPivotFunction " +
- "CreateStringList " +
- "CreateTreeListSelectDialog " +
- "CSelectSQL " +
- "CSQL " +
- "CSubString " +
- "CurrentUserID " +
- "CurrentUserName " +
- "CurrentVersion " +
- "DataSetLocateEx " +
- "DateDiff " +
- "DateTimeDiff " +
- "DateToStr " +
- "DayOfWeek " +
- "DeleteFile " +
- "DirectoryExists " +
- "DisableCheckAccessRights " +
- "DisableCheckFullShowingRestriction " +
- "DisableMassTaskSendingRestrictions " +
- "DropTable " +
- "DupeString " +
- "EditText " +
- "EnableCheckAccessRights " +
- "EnableCheckFullShowingRestriction " +
- "EnableMassTaskSendingRestrictions " +
- "EndOfMonth " +
- "EndOfPeriod " +
- "ExceptionExists " +
- "ExceptionsOff " +
- "ExceptionsOn " +
- "Execute " +
- "ExecuteProcess " +
- "Exit " +
- "ExpandEnvironmentVariables " +
- "ExtractFileDrive " +
- "ExtractFileExt " +
- "ExtractFileName " +
- "ExtractFilePath " +
- "ExtractParams " +
- "FileExists " +
- "FileSize " +
- "FindFile " +
- "FindSubString " +
- "FirmContext " +
- "ForceDirectories " +
- "Format " +
- "FormatDate " +
- "FormatNumeric " +
- "FormatSQLDate " +
- "FormatString " +
- "FreeException " +
- "GetComponent " +
- "GetComponentLaunchParam " +
- "GetConstant " +
- "GetLastException " +
- "GetReferenceRecord " +
- "GetRefTypeByRefID " +
- "GetTableID " +
- "GetTempFolder " +
- "IfThen " +
- "In " +
- "IndexOf " +
- "InputDialog " +
- "InputDialogEx " +
- "InteractiveMode " +
- "IsFileLocked " +
- "IsGraphicFile " +
- "IsNumeric " +
- "Length " +
- "LoadString " +
- "LoadStringFmt " +
- "LocalTimeToUTC " +
- "LowerCase " +
- "Max " +
- "MessageBox " +
- "MessageBoxEx " +
- "MimeDecodeBinary " +
- "MimeDecodeString " +
- "MimeEncodeBinary " +
- "MimeEncodeString " +
- "Min " +
- "MoneyInWords " +
- "MoveFile " +
- "NewID " +
- "Now " +
- "OpenFile " +
- "Ord " +
- "Precision " +
- "Raise " +
- "ReadCertificateFromFile " +
- "ReadFile " +
- "ReferenceCodeByID " +
- "ReferenceNumber " +
- "ReferenceRequisiteMode " +
- "ReferenceRequisiteValue " +
- "RegionDateSettings " +
- "RegionNumberSettings " +
- "RegionTimeSettings " +
- "RegRead " +
- "RegWrite " +
- "RenameFile " +
- "Replace " +
- "Round " +
- "SelectServerCode " +
- "SelectSQL " +
- "ServerDateTime " +
- "SetConstant " +
- "SetManagedFolderFieldsState " +
- "ShowConstantsInputDialog " +
- "ShowMessage " +
- "Sleep " +
- "Split " +
- "SQL " +
- "SQL2XLSTAB " +
- "SQLProfilingSendReport " +
- "StrToDate " +
- "SubString " +
- "SubStringCount " +
- "SystemSetting " +
- "Time " +
- "TimeDiff " +
- "Today " +
- "Transliterate " +
- "Trim " +
- "UpperCase " +
- "UserStatus " +
- "UTCToLocalTime " +
- "ValidateXML " +
- "VarIsClear " +
- "VarIsEmpty " +
- "VarIsNull " +
- "WorkTimeDiff " +
- "WriteFile " +
- "WriteFileEx " +
- "WriteObjectHistory " +
- "Анализ " +
- "БазаДанных " +
- "БлокЕсть " +
- "БлокЕстьРасш " +
- "БлокИнфо " +
- "БлокСнять " +
- "БлокСнятьРасш " +
- "БлокУстановить " +
- "Ввод " +
- "ВводМеню " +
- "ВедС " +
- "ВедСпр " +
- "ВерхняяГраницаМассива " +
- "ВнешПрогр " +
- "Восст " +
- "ВременнаяПапка " +
- "Время " +
- "ВыборSQL " +
- "ВыбратьЗапись " +
- "ВыделитьСтр " +
- "Вызвать " +
- "Выполнить " +
- "ВыпПрогр " +
- "ГрафическийФайл " +
- "ГруппаДополнительно " +
- "ДатаВремяСерв " +
- "ДеньНедели " +
- "ДиалогДаНет " +
- "ДлинаСтр " +
- "ДобПодстр " +
- "ЕПусто " +
- "ЕслиТо " +
- "ЕЧисло " +
- "ЗамПодстр " +
- "ЗаписьСправочника " +
- "ЗначПоляСпр " +
- "ИДТипСпр " +
- "ИзвлечьДиск " +
- "ИзвлечьИмяФайла " +
- "ИзвлечьПуть " +
- "ИзвлечьРасширение " +
- "ИзмДат " +
- "ИзменитьРазмерМассива " +
- "ИзмеренийМассива " +
- "ИмяОрг " +
- "ИмяПоляСпр " +
- "Индекс " +
- "ИндикаторЗакрыть " +
- "ИндикаторОткрыть " +
- "ИндикаторШаг " +
- "ИнтерактивныйРежим " +
- "ИтогТблСпр " +
- "КодВидВедСпр " +
- "КодВидСпрПоИД " +
- "КодПоAnalit " +
- "КодСимвола " +
- "КодСпр " +
- "КолПодстр " +
- "КолПроп " +
- "КонМес " +
- "Конст " +
- "КонстЕсть " +
- "КонстЗнач " +
- "КонТран " +
- "КопироватьФайл " +
- "КопияСтр " +
- "КПериод " +
- "КСтрТблСпр " +
- "Макс " +
- "МаксСтрТблСпр " +
- "Массив " +
- "Меню " +
- "МенюРасш " +
- "Мин " +
- "НаборДанныхНайтиРасш " +
- "НаимВидСпр " +
- "НаимПоAnalit " +
- "НаимСпр " +
- "НастроитьПереводыСтрок " +
- "НачМес " +
- "НачТран " +
- "НижняяГраницаМассива " +
- "НомерСпр " +
- "НПериод " +
- "Окно " +
- "Окр " +
- "Окружение " +
- "ОтлИнфДобавить " +
- "ОтлИнфУдалить " +
- "Отчет " +
- "ОтчетАнал " +
- "ОтчетИнт " +
- "ПапкаСуществует " +
- "Пауза " +
- "ПВыборSQL " +
- "ПереименоватьФайл " +
- "Переменные " +
- "ПереместитьФайл " +
- "Подстр " +
- "ПоискПодстр " +
- "ПоискСтр " +
- "ПолучитьИДТаблицы " +
- "ПользовательДополнительно " +
- "ПользовательИД " +
- "ПользовательИмя " +
- "ПользовательСтатус " +
- "Прервать " +
- "ПроверитьПараметр " +
- "ПроверитьПараметрЗнач " +
- "ПроверитьУсловие " +
- "РазбСтр " +
- "РазнВремя " +
- "РазнДат " +
- "РазнДатаВремя " +
- "РазнРабВремя " +
- "РегУстВрем " +
- "РегУстДат " +
- "РегУстЧсл " +
- "РедТекст " +
- "РеестрЗапись " +
- "РеестрСписокИменПарам " +
- "РеестрЧтение " +
- "РеквСпр " +
- "РеквСпрПр " +
- "Сегодня " +
- "Сейчас " +
- "Сервер " +
- "СерверПроцессИД " +
- "СертификатФайлСчитать " +
- "СжПроб " +
- "Символ " +
- "СистемаДиректумКод " +
- "СистемаИнформация " +
- "СистемаКод " +
- "Содержит " +
- "СоединениеЗакрыть " +
- "СоединениеОткрыть " +
- "СоздатьДиалог " +
- "СоздатьДиалогВыбораИзДвухСписков " +
- "СоздатьДиалогВыбораПапки " +
- "СоздатьДиалогОткрытияФайла " +
- "СоздатьДиалогСохраненияФайла " +
- "СоздатьЗапрос " +
- "СоздатьИндикатор " +
- "СоздатьИсключение " +
- "СоздатьКэшированныйСправочник " +
- "СоздатьМассив " +
- "СоздатьНаборДанных " +
- "СоздатьОбъект " +
- "СоздатьОтчет " +
- "СоздатьПапку " +
- "СоздатьРедактор " +
- "СоздатьСоединение " +
- "СоздатьСписок " +
- "СоздатьСписокСтрок " +
- "СоздатьСправочник " +
- "СоздатьСценарий " +
- "СоздСпр " +
- "СостСпр " +
- "Сохр " +
- "СохрСпр " +
- "СписокСистем " +
- "Спр " +
- "Справочник " +
- "СпрБлокЕсть " +
- "СпрБлокСнять " +
- "СпрБлокСнятьРасш " +
- "СпрБлокУстановить " +
- "СпрИзмНабДан " +
- "СпрКод " +
- "СпрНомер " +
- "СпрОбновить " +
- "СпрОткрыть " +
- "СпрОтменить " +
- "СпрПарам " +
- "СпрПолеЗнач " +
- "СпрПолеИмя " +
- "СпрРекв " +
- "СпрРеквВведЗн " +
- "СпрРеквНовые " +
- "СпрРеквПр " +
- "СпрРеквПредЗн " +
- "СпрРеквРежим " +
- "СпрРеквТипТекст " +
- "СпрСоздать " +
- "СпрСост " +
- "СпрСохранить " +
- "СпрТблИтог " +
- "СпрТблСтр " +
- "СпрТблСтрКол " +
- "СпрТблСтрМакс " +
- "СпрТблСтрМин " +
- "СпрТблСтрПред " +
- "СпрТблСтрСлед " +
- "СпрТблСтрСозд " +
- "СпрТблСтрУд " +
- "СпрТекПредст " +
- "СпрУдалить " +
- "СравнитьСтр " +
- "СтрВерхРегистр " +
- "СтрНижнРегистр " +
- "СтрТблСпр " +
- "СумПроп " +
- "Сценарий " +
- "СценарийПарам " +
- "ТекВерсия " +
- "ТекОрг " +
- "Точн " +
- "Тран " +
- "Транслитерация " +
- "УдалитьТаблицу " +
- "УдалитьФайл " +
- "УдСпр " +
- "УдСтрТблСпр " +
- "Уст " +
- "УстановкиКонстант " +
- "ФайлАтрибутСчитать " +
- "ФайлАтрибутУстановить " +
- "ФайлВремя " +
- "ФайлВремяУстановить " +
- "ФайлВыбрать " +
- "ФайлЗанят " +
- "ФайлЗаписать " +
- "ФайлИскать " +
- "ФайлКопировать " +
- "ФайлМожноЧитать " +
- "ФайлОткрыть " +
- "ФайлПереименовать " +
- "ФайлПерекодировать " +
- "ФайлПереместить " +
- "ФайлПросмотреть " +
- "ФайлРазмер " +
- "ФайлСоздать " +
- "ФайлСсылкаСоздать " +
- "ФайлСуществует " +
- "ФайлСчитать " +
- "ФайлУдалить " +
- "ФмтSQLДат " +
- "ФмтДат " +
- "ФмтСтр " +
- "ФмтЧсл " +
- "Формат " +
- "ЦМассивЭлемент " +
- "ЦНаборДанныхРеквизит " +
- "ЦПодстр ";
-
- // Предопределенные переменные ==> built_in
- var predefined_variables =
- "AltState " +
- "Application " +
- "CallType " +
- "ComponentTokens " +
- "CreatedJobs " +
- "CreatedNotices " +
- "ControlState " +
- "DialogResult " +
- "Dialogs " +
- "EDocuments " +
- "EDocumentVersionSource " +
- "Folders " +
- "GlobalIDs " +
- "Job " +
- "Jobs " +
- "InputValue " +
- "LookUpReference " +
- "LookUpRequisiteNames " +
- "LookUpSearch " +
- "Object " +
- "ParentComponent " +
- "Processes " +
- "References " +
- "Requisite " +
- "ReportName " +
- "Reports " +
- "Result " +
- "Scripts " +
- "Searches " +
- "SelectedAttachments " +
- "SelectedItems " +
- "SelectMode " +
- "Sender " +
- "ServerEvents " +
- "ServiceFactory " +
- "ShiftState " +
- "SubTask " +
- "SystemDialogs " +
- "Tasks " +
- "Wizard " +
- "Wizards " +
- "Work " +
- "ВызовСпособ " +
- "ИмяОтчета " +
- "РеквЗнач ";
-
- // Интерфейсы ==> type
- var interfaces =
- "IApplication " +
- "IAccessRights " +
- "IAccountRepository " +
- "IAccountSelectionRestrictions " +
- "IAction " +
- "IActionList " +
- "IAdministrationHistoryDescription " +
- "IAnchors " +
- "IApplication " +
- "IArchiveInfo " +
- "IAttachment " +
- "IAttachmentList " +
- "ICheckListBox " +
- "ICheckPointedList " +
- "IColumn " +
- "IComponent " +
- "IComponentDescription " +
- "IComponentToken " +
- "IComponentTokenFactory " +
- "IComponentTokenInfo " +
- "ICompRecordInfo " +
- "IConnection " +
- "IContents " +
- "IControl " +
- "IControlJob " +
- "IControlJobInfo " +
- "IControlList " +
- "ICrypto " +
- "ICrypto2 " +
- "ICustomJob " +
- "ICustomJobInfo " +
- "ICustomListBox " +
- "ICustomObjectWizardStep " +
- "ICustomWork " +
- "ICustomWorkInfo " +
- "IDataSet " +
- "IDataSetAccessInfo " +
- "IDataSigner " +
- "IDateCriterion " +
- "IDateRequisite " +
- "IDateRequisiteDescription " +
- "IDateValue " +
- "IDeaAccessRights " +
- "IDeaObjectInfo " +
- "IDevelopmentComponentLock " +
- "IDialog " +
- "IDialogFactory " +
- "IDialogPickRequisiteItems " +
- "IDialogsFactory " +
- "IDICSFactory " +
- "IDocRequisite " +
- "IDocumentInfo " +
- "IDualListDialog " +
- "IECertificate " +
- "IECertificateInfo " +
- "IECertificates " +
- "IEditControl " +
- "IEditorForm " +
- "IEdmsExplorer " +
- "IEdmsObject " +
- "IEdmsObjectDescription " +
- "IEdmsObjectFactory " +
- "IEdmsObjectInfo " +
- "IEDocument " +
- "IEDocumentAccessRights " +
- "IEDocumentDescription " +
- "IEDocumentEditor " +
- "IEDocumentFactory " +
- "IEDocumentInfo " +
- "IEDocumentStorage " +
- "IEDocumentVersion " +
- "IEDocumentVersionListDialog " +
- "IEDocumentVersionSource " +
- "IEDocumentWizardStep " +
- "IEDocVerSignature " +
- "IEDocVersionState " +
- "IEnabledMode " +
- "IEncodeProvider " +
- "IEncrypter " +
- "IEvent " +
- "IEventList " +
- "IException " +
- "IExternalEvents " +
- "IExternalHandler " +
- "IFactory " +
- "IField " +
- "IFileDialog " +
- "IFolder " +
- "IFolderDescription " +
- "IFolderDialog " +
- "IFolderFactory " +
- "IFolderInfo " +
- "IForEach " +
- "IForm " +
- "IFormTitle " +
- "IFormWizardStep " +
- "IGlobalIDFactory " +
- "IGlobalIDInfo " +
- "IGrid " +
- "IHasher " +
- "IHistoryDescription " +
- "IHyperLinkControl " +
- "IImageButton " +
- "IImageControl " +
- "IInnerPanel " +
- "IInplaceHint " +
- "IIntegerCriterion " +
- "IIntegerList " +
- "IIntegerRequisite " +
- "IIntegerValue " +
- "IISBLEditorForm " +
- "IJob " +
- "IJobDescription " +
- "IJobFactory " +
- "IJobForm " +
- "IJobInfo " +
- "ILabelControl " +
- "ILargeIntegerCriterion " +
- "ILargeIntegerRequisite " +
- "ILargeIntegerValue " +
- "ILicenseInfo " +
- "ILifeCycleStage " +
- "IList " +
- "IListBox " +
- "ILocalIDInfo " +
- "ILocalization " +
- "ILock " +
- "IMemoryDataSet " +
- "IMessagingFactory " +
- "IMetadataRepository " +
- "INotice " +
- "INoticeInfo " +
- "INumericCriterion " +
- "INumericRequisite " +
- "INumericValue " +
- "IObject " +
- "IObjectDescription " +
- "IObjectImporter " +
- "IObjectInfo " +
- "IObserver " +
- "IPanelGroup " +
- "IPickCriterion " +
- "IPickProperty " +
- "IPickRequisite " +
- "IPickRequisiteDescription " +
- "IPickRequisiteItem " +
- "IPickRequisiteItems " +
- "IPickValue " +
- "IPrivilege " +
- "IPrivilegeList " +
- "IProcess " +
- "IProcessFactory " +
- "IProcessMessage " +
- "IProgress " +
- "IProperty " +
- "IPropertyChangeEvent " +
- "IQuery " +
- "IReference " +
- "IReferenceCriterion " +
- "IReferenceEnabledMode " +
- "IReferenceFactory " +
- "IReferenceHistoryDescription " +
- "IReferenceInfo " +
- "IReferenceRecordCardWizardStep " +
- "IReferenceRequisiteDescription " +
- "IReferencesFactory " +
- "IReferenceValue " +
- "IRefRequisite " +
- "IReport " +
- "IReportFactory " +
- "IRequisite " +
- "IRequisiteDescription " +
- "IRequisiteDescriptionList " +
- "IRequisiteFactory " +
- "IRichEdit " +
- "IRouteStep " +
- "IRule " +
- "IRuleList " +
- "ISchemeBlock " +
- "IScript " +
- "IScriptFactory " +
- "ISearchCriteria " +
- "ISearchCriterion " +
- "ISearchDescription " +
- "ISearchFactory " +
- "ISearchFolderInfo " +
- "ISearchForObjectDescription " +
- "ISearchResultRestrictions " +
- "ISecuredContext " +
- "ISelectDialog " +
- "IServerEvent " +
- "IServerEventFactory " +
- "IServiceDialog " +
- "IServiceFactory " +
- "ISignature " +
- "ISignProvider " +
- "ISignProvider2 " +
- "ISignProvider3 " +
- "ISimpleCriterion " +
- "IStringCriterion " +
- "IStringList " +
- "IStringRequisite " +
- "IStringRequisiteDescription " +
- "IStringValue " +
- "ISystemDialogsFactory " +
- "ISystemInfo " +
- "ITabSheet " +
- "ITask " +
- "ITaskAbortReasonInfo " +
- "ITaskCardWizardStep " +
- "ITaskDescription " +
- "ITaskFactory " +
- "ITaskInfo " +
- "ITaskRoute " +
- "ITextCriterion " +
- "ITextRequisite " +
- "ITextValue " +
- "ITreeListSelectDialog " +
- "IUser " +
- "IUserList " +
- "IValue " +
- "IView " +
- "IWebBrowserControl " +
- "IWizard " +
- "IWizardAction " +
- "IWizardFactory " +
- "IWizardFormElement " +
- "IWizardParam " +
- "IWizardPickParam " +
- "IWizardReferenceParam " +
- "IWizardStep " +
- "IWorkAccessRights " +
- "IWorkDescription " +
- "IWorkflowAskableParam " +
- "IWorkflowAskableParams " +
- "IWorkflowBlock " +
- "IWorkflowBlockResult " +
- "IWorkflowEnabledMode " +
- "IWorkflowParam " +
- "IWorkflowPickParam " +
- "IWorkflowReferenceParam " +
- "IWorkState " +
- "IWorkTreeCustomNode " +
- "IWorkTreeJobNode " +
- "IWorkTreeTaskNode " +
- "IXMLEditorForm " +
- "SBCrypto ";
-
- // built_in : встроенные или библиотечные объекты (константы, перечисления)
- var BUILTIN = CONSTANTS + ENUMS;
-
- // class: встроенные наборы значений, системные объекты, фабрики
- var CLASS = predefined_variables;
-
- // literal : примитивные типы
- var LITERAL = "null true false nil ";
-
- // number : числа
- var NUMBERS = {
- className: "number",
- begin: hljs.NUMBER_RE,
- relevance: 0,
- };
-
- // string : строки
- var STRINGS = {
- className: "string",
- variants: [{ begin: '"', end: '"' }, { begin: "'", end: "'" }],
- };
-
- // Токены
- var DOCTAGS = {
- className: "doctag",
- begin: "\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",
- relevance: 0,
- };
-
- // Однострочный комментарий
- var ISBL_LINE_COMMENT_MODE = {
- className: "comment",
- begin: "//",
- end: "$",
- relevance: 0,
- contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS],
- };
-
- // Многострочный комментарий
- var ISBL_BLOCK_COMMENT_MODE = {
- className: "comment",
- begin: "/\\*",
- end: "\\*/",
- relevance: 0,
- contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS],
- };
-
- // comment : комментарии
- var COMMENTS = {
- variants: [ISBL_LINE_COMMENT_MODE, ISBL_BLOCK_COMMENT_MODE],
- };
-
- // keywords : ключевые слова
- var KEYWORDS = {
- keyword: KEYWORD,
- built_in: BUILTIN,
- class: CLASS,
- literal: LITERAL,
- };
-
- // methods : методы
- var METHODS = {
- begin: "\\.\\s*" + hljs.UNDERSCORE_IDENT_RE,
- keywords: KEYWORDS,
- relevance: 0,
- };
-
- // type : встроенные типы
- var TYPES = {
- className: "type",
- begin: ":[ \\t]*(" + interfaces.trim().replace(/\s/g, "|") + ")",
- end: "[ \\t]*=",
- excludeEnd: true,
- };
-
- // variables : переменные
- var VARIABLES = {
- className: "variable",
- lexemes: UNDERSCORE_IDENT_RE,
- keywords: KEYWORDS,
- begin: UNDERSCORE_IDENT_RE,
- relevance: 0,
- containts: [TYPES, METHODS],
- };
-
- // Имена функций
- var FUNCTION_TITLE = FUNCTION_NAME_IDENT_RE + "\\(";
-
- var TITLE_MODE = {
- className: "title",
- lexemes: UNDERSCORE_IDENT_RE,
- keywords: {
- built_in: system_functions,
- },
- begin: FUNCTION_TITLE,
- end: "\\(",
- returnBegin: true,
- excludeEnd: true,
- };
-
- // function : функции
- var FUNCTIONS = {
- className: "function",
- begin: FUNCTION_TITLE,
- end: "\\)$",
- returnBegin: true,
- lexemes: UNDERSCORE_IDENT_RE,
- keywords: KEYWORDS,
- illegal: "[\\[\\]\\|\\$\\?%,~#@]",
- contains: [TITLE_MODE, METHODS, VARIABLES, STRINGS, NUMBERS, COMMENTS],
- };
-
- return {
- aliases: ["isbl"],
- case_insensitive: true,
- lexemes: UNDERSCORE_IDENT_RE,
- keywords: KEYWORDS,
- illegal: "\\$|\\?|%|,|;$|~|#|@|",
- contains: [
- FUNCTIONS,
- TYPES,
- METHODS,
- VARIABLES,
- STRINGS,
- NUMBERS,
- COMMENTS,
- ],
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/java.js b/swh/web/static/jssources/highlight.js/lib/languages/java.js
deleted file mode 100644
index 461e2eb4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/java.js
+++ /dev/null
@@ -1,107 +0,0 @@
-module.exports = function(hljs) {
- var JAVA_IDENT_RE = '[\u00C0-\u02B8a-zA-Z_$][\u00C0-\u02B8a-zA-Z_$0-9]*';
- var GENERIC_IDENT_RE = JAVA_IDENT_RE + '(<' + JAVA_IDENT_RE + '(\\s*,\\s*' + JAVA_IDENT_RE + ')*>)?';
- var KEYWORDS =
- 'false synchronized int abstract float private char boolean var static null if const ' +
- 'for true while long strictfp finally protected import native final void ' +
- 'enum else break transient catch instanceof byte super volatile case assert short ' +
- 'package default double public try this switch continue throws protected public private ' +
- 'module requires exports do';
-
- // https://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html
- var JAVA_NUMBER_RE = '\\b' +
- '(' +
- '0[bB]([01]+[01_]+[01]+|[01]+)' + // 0b...
- '|' +
- '0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)' + // 0x...
- '|' +
- '(' +
- '([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?' +
- '|' +
- '\\.([\\d]+[\\d_]+[\\d]+|[\\d]+)' +
- ')' +
- '([eE][-+]?\\d+)?' + // octal, decimal, float
- ')' +
- '[lLfF]?';
- var JAVA_NUMBER_MODE = {
- className: 'number',
- begin: JAVA_NUMBER_RE,
- relevance: 0
- };
-
- return {
- aliases: ['jsp'],
- keywords: KEYWORDS,
- illegal: /<\/|#/,
- contains: [
- hljs.COMMENT(
- '/\\*\\*',
- '\\*/',
- {
- relevance : 0,
- contains : [
- {
- // eat up @'s in emails to prevent them to be recognized as doctags
- begin: /\w+@/, relevance: 0
- },
- {
- className : 'doctag',
- begin : '@[A-Za-z]+'
- }
- ]
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'class',
- beginKeywords: 'class interface', end: /[{;=]/, excludeEnd: true,
- keywords: 'class interface',
- illegal: /[:"\[\]]/,
- contains: [
- {beginKeywords: 'extends implements'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- // Expression keywords prevent 'keyword Name(...)' from being
- // recognized as a function definition
- beginKeywords: 'new throw return else',
- relevance: 0
- },
- {
- className: 'function',
- begin: '(' + GENERIC_IDENT_RE + '\\s+)+' + hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', returnBegin: true, end: /[{;=]/,
- excludeEnd: true,
- keywords: KEYWORDS,
- contains: [
- {
- begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', returnBegin: true,
- relevance: 0,
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- relevance: 0,
- contains: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- JAVA_NUMBER_MODE,
- {
- className: 'meta', begin: '@[A-Za-z]+'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/javascript.js b/swh/web/static/jssources/highlight.js/lib/languages/javascript.js
deleted file mode 100644
index 558e8388..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/javascript.js
+++ /dev/null
@@ -1,169 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
- var KEYWORDS = {
- keyword:
- 'in of if for while finally var new function do return void else break catch ' +
- 'instanceof with throw case default try this switch continue typeof delete ' +
- 'let yield const export super debugger as async await static ' +
- // ECMAScript 6 modules import
- 'import from as'
- ,
- literal:
- 'true false null undefined NaN Infinity',
- built_in:
- 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +
- 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +
- 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +
- 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +
- 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' +
- 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' +
- 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' +
- 'Promise'
- };
- var NUMBER = {
- className: 'number',
- variants: [
- { begin: '\\b(0[bB][01]+)' },
- { begin: '\\b(0[oO][0-7]+)' },
- { begin: hljs.C_NUMBER_RE }
- ],
- relevance: 0
- };
- var SUBST = {
- className: 'subst',
- begin: '\\$\\{', end: '\\}',
- keywords: KEYWORDS,
- contains: [] // defined later
- };
- var TEMPLATE_STRING = {
- className: 'string',
- begin: '`', end: '`',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- SUBST
- ]
- };
- SUBST.contains = [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- TEMPLATE_STRING,
- NUMBER,
- hljs.REGEXP_MODE
- ]
- var PARAMS_CONTAINS = SUBST.contains.concat([
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_LINE_COMMENT_MODE
- ]);
-
- return {
- aliases: ['js', 'jsx'],
- keywords: KEYWORDS,
- contains: [
- {
- className: 'meta',
- relevance: 10,
- begin: /^\s*['"]use (strict|asm)['"]/
- },
- {
- className: 'meta',
- begin: /^#!/, end: /$/
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- TEMPLATE_STRING,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMBER,
- { // object attr container
- begin: /[{,]\s*/, relevance: 0,
- contains: [
- {
- begin: IDENT_RE + '\\s*:', returnBegin: true,
- relevance: 0,
- contains: [{className: 'attr', begin: IDENT_RE, relevance: 0}]
- }
- ]
- },
- { // "value" container
- begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
- keywords: 'return throw case',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.REGEXP_MODE,
- {
- className: 'function',
- begin: '(\\(.*?\\)|' + IDENT_RE + ')\\s*=>', returnBegin: true,
- end: '\\s*=>',
- contains: [
- {
- className: 'params',
- variants: [
- {
- begin: IDENT_RE
- },
- {
- begin: /\(\s*\)/,
- },
- {
- begin: /\(/, end: /\)/,
- excludeBegin: true, excludeEnd: true,
- keywords: KEYWORDS,
- contains: PARAMS_CONTAINS
- }
- ]
- }
- ]
- },
- { // E4X / JSX
- begin: /, end: /(\/\w+|\w+\/)>/,
- subLanguage: 'xml',
- contains: [
- {begin: /<\w+\s*\/>/, skip: true},
- {
- begin: /<\w+/, end: /(\/\w+|\w+\/)>/, skip: true,
- contains: [
- {begin: /<\w+\s*\/>/, skip: true},
- 'self'
- ]
- }
- ]
- }
- ],
- relevance: 0
- },
- {
- className: 'function',
- beginKeywords: 'function', end: /\{/, excludeEnd: true,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE}),
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- contains: PARAMS_CONTAINS
- }
- ],
- illegal: /\[|%/
- },
- {
- begin: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
- },
- hljs.METHOD_GUARD,
- { // ES6 class
- className: 'class',
- beginKeywords: 'class', end: /[{;=]/, excludeEnd: true,
- illegal: /[:"\[\]]/,
- contains: [
- {beginKeywords: 'extends'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- beginKeywords: 'constructor get set', end: /\{/, excludeEnd: true
- }
- ],
- illegal: /#(?!!)/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/jboss-cli.js b/swh/web/static/jssources/highlight.js/lib/languages/jboss-cli.js
deleted file mode 100644
index 68bb496e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/jboss-cli.js
+++ /dev/null
@@ -1,46 +0,0 @@
-module.exports = function (hljs) {
- var PARAM = {
- begin: /[\w-]+ *=/, returnBegin: true,
- relevance: 0,
- contains: [{className: 'attr', begin: /[\w-]+/}]
- };
- var PARAMSBLOCK = {
- className: 'params',
- begin: /\(/,
- end: /\)/,
- contains: [PARAM],
- relevance : 0
- };
- var OPERATION = {
- className: 'function',
- begin: /:[\w\-.]+/,
- relevance: 0
- };
- var PATH = {
- className: 'string',
- begin: /\B(([\/.])[\w\-.\/=]+)+/,
- };
- var COMMAND_PARAMS = {
- className: 'params',
- begin: /--[\w\-=\/]+/,
- };
- return {
- aliases: ['wildfly-cli'],
- lexemes: '[a-z\-]+',
- keywords: {
- keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy ' +
- 'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ' +
- 'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias ' +
- 'undeploy unset version xa-data-source', // module
- literal: 'true false'
- },
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- COMMAND_PARAMS,
- OPERATION,
- PATH,
- PARAMSBLOCK
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/json.js b/swh/web/static/jssources/highlight.js/lib/languages/json.js
deleted file mode 100644
index 6e5cb633..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/json.js
+++ /dev/null
@@ -1,36 +0,0 @@
-module.exports = function(hljs) {
- var LITERALS = {literal: 'true false null'};
- var TYPES = [
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE
- ];
- var VALUE_CONTAINER = {
- end: ',', endsWithParent: true, excludeEnd: true,
- contains: TYPES,
- keywords: LITERALS
- };
- var OBJECT = {
- begin: '{', end: '}',
- contains: [
- {
- className: 'attr',
- begin: /"/, end: /"/,
- contains: [hljs.BACKSLASH_ESCAPE],
- illegal: '\\n',
- },
- hljs.inherit(VALUE_CONTAINER, {begin: /:/})
- ],
- illegal: '\\S'
- };
- var ARRAY = {
- begin: '\\[', end: '\\]',
- contains: [hljs.inherit(VALUE_CONTAINER)], // inherit is a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents
- illegal: '\\S'
- };
- TYPES.splice(TYPES.length, 0, OBJECT, ARRAY);
- return {
- contains: TYPES,
- keywords: LITERALS,
- illegal: '\\S'
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/julia-repl.js b/swh/web/static/jssources/highlight.js/lib/languages/julia-repl.js
deleted file mode 100644
index fded81fd..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/julia-repl.js
+++ /dev/null
@@ -1,23 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- {
- className: 'meta',
- begin: /^julia>/,
- relevance: 10,
- starts: {
- // end the highlighting if we are on a new line and the line does not have at
- // least six spaces in the beginning
- end: /^(?![ ]{6})/,
- subLanguage: 'julia'
- },
- // jldoctest Markdown blocks are used in the Julia manual and package docs indicate
- // code snippets that should be verified when the documentation is built. They can be
- // either REPL-like or script-like, but are usually REPL-like and therefore we apply
- // julia-repl highlighting to them. More information can be found in Documenter's
- // manual: https://juliadocs.github.io/Documenter.jl/latest/man/doctests.html
- aliases: ['jldoctest']
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/julia.js b/swh/web/static/jssources/highlight.js/lib/languages/julia.js
deleted file mode 100644
index ea672980..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/julia.js
+++ /dev/null
@@ -1,161 +0,0 @@
-module.exports = function(hljs) {
- // Since there are numerous special names in Julia, it is too much trouble
- // to maintain them by hand. Hence these names (i.e. keywords, literals and
- // built-ins) are automatically generated from Julia v0.6 itself through
- // the following scripts for each.
-
- var KEYWORDS = {
- // # keyword generator, multi-word keywords handled manually below
- // foreach(println, ["in", "isa", "where"])
- // for kw in Base.REPLCompletions.complete_keyword("")
- // if !(contains(kw, " ") || kw == "struct")
- // println(kw)
- // end
- // end
- keyword:
- 'in isa where ' +
- 'baremodule begin break catch ccall const continue do else elseif end export false finally for function ' +
- 'global if import importall let local macro module quote return true try using while ' +
- // legacy, to be deprecated in the next release
- 'type immutable abstract bitstype typealias ',
-
- // # literal generator
- // println("true")
- // println("false")
- // for name in Base.REPLCompletions.completions("", 0)[1]
- // try
- // v = eval(Symbol(name))
- // if !(v isa Function || v isa Type || v isa TypeVar || v isa Module || v isa Colon)
- // println(name)
- // end
- // end
- // end
- literal:
- 'true false ' +
- 'ARGS C_NULL DevNull ENDIAN_BOM ENV I Inf Inf16 Inf32 Inf64 InsertionSort JULIA_HOME LOAD_PATH MergeSort ' +
- 'NaN NaN16 NaN32 NaN64 PROGRAM_FILE QuickSort RoundDown RoundFromZero RoundNearest RoundNearestTiesAway ' +
- 'RoundNearestTiesUp RoundToZero RoundUp STDERR STDIN STDOUT VERSION catalan e|0 eu|0 eulergamma golden im ' +
- 'nothing pi γ π φ ',
-
- // # built_in generator:
- // for name in Base.REPLCompletions.completions("", 0)[1]
- // try
- // v = eval(Symbol(name))
- // if v isa Type || v isa TypeVar
- // println(name)
- // end
- // end
- // end
- built_in:
- 'ANY AbstractArray AbstractChannel AbstractFloat AbstractMatrix AbstractRNG AbstractSerializer AbstractSet ' +
- 'AbstractSparseArray AbstractSparseMatrix AbstractSparseVector AbstractString AbstractUnitRange AbstractVecOrMat ' +
- 'AbstractVector Any ArgumentError Array AssertionError Associative Base64DecodePipe Base64EncodePipe Bidiagonal '+
- 'BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError BufferStream CachingPool CapturedException ' +
- 'CartesianIndex CartesianRange Cchar Cdouble Cfloat Channel Char Cint Cintmax_t Clong Clonglong ClusterManager ' +
- 'Cmd CodeInfo Colon Complex Complex128 Complex32 Complex64 CompositeException Condition ConjArray ConjMatrix ' +
- 'ConjVector Cptrdiff_t Cshort Csize_t Cssize_t Cstring Cuchar Cuint Cuintmax_t Culong Culonglong Cushort Cwchar_t ' +
- 'Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict ' +
- 'DimensionMismatch Dims DirectIndexString Display DivideError DomainError EOFError EachLine Enum Enumerate ' +
- 'ErrorException Exception ExponentialBackOff Expr Factorization FileMonitor Float16 Float32 Float64 Function ' +
- 'Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear ' +
- 'IndexStyle InexactError InitError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException ' +
- 'InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix ' +
- 'MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode NullException Nullable Number ObjectIdDict ' +
- 'OrdinalRange OutOfMemoryError OverflowError Pair ParseError PartialQuickSort PermutedDimsArray Pipe ' +
- 'PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ' +
- 'ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode ' +
- 'RowVector SSAValue SegmentationFault SerializationState Set SharedArray SharedMatrix SharedVector Signed ' +
- 'SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange ' +
- 'StepRangeLen StridedArray StridedMatrix StridedVecOrMat StridedVector String SubArray SubString SymTridiagonal ' +
- 'Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry ' +
- 'TypeMapLevel TypeName TypeVar TypedSlot UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UndefRefError UndefVarError ' +
- 'UnicodeError UniformScaling Union UnionAll UnitRange Unsigned UpperTriangular Val Vararg VecElement VecOrMat Vector ' +
- 'VersionNumber Void WeakKeyDict WeakRef WorkerConfig WorkerPool '
- };
-
- // ref: http://julia.readthedocs.org/en/latest/manual/variables/#allowed-variable-names
- var VARIABLE_NAME_RE = '[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*';
-
- // placeholder for recursive self-reference
- var DEFAULT = {
- lexemes: VARIABLE_NAME_RE, keywords: KEYWORDS, illegal: /<\//
- };
-
- // ref: http://julia.readthedocs.org/en/latest/manual/integers-and-floating-point-numbers/
- var NUMBER = {
- className: 'number',
- // supported numeric literals:
- // * binary literal (e.g. 0x10)
- // * octal literal (e.g. 0o76543210)
- // * hexadecimal literal (e.g. 0xfedcba876543210)
- // * hexadecimal floating point literal (e.g. 0x1p0, 0x1.2p2)
- // * decimal literal (e.g. 9876543210, 100_000_000)
- // * floating pointe literal (e.g. 1.2, 1.2f, .2, 1., 1.2e10, 1.2e-10)
- begin: /(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,
- relevance: 0
- };
-
- var CHAR = {
- className: 'string',
- begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/
- };
-
- var INTERPOLATION = {
- className: 'subst',
- begin: /\$\(/, end: /\)/,
- keywords: KEYWORDS
- };
-
- var INTERPOLATED_VARIABLE = {
- className: 'variable',
- begin: '\\$' + VARIABLE_NAME_RE
- };
-
- // TODO: neatly escape normal code in string literal
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, INTERPOLATION, INTERPOLATED_VARIABLE],
- variants: [
- { begin: /\w*"""/, end: /"""\w*/, relevance: 10 },
- { begin: /\w*"/, end: /"\w*/ }
- ]
- };
-
- var COMMAND = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, INTERPOLATION, INTERPOLATED_VARIABLE],
- begin: '`', end: '`'
- };
-
- var MACROCALL = {
- className: 'meta',
- begin: '@' + VARIABLE_NAME_RE
- };
-
- var COMMENT = {
- className: 'comment',
- variants: [
- { begin: '#=', end: '=#', relevance: 10 },
- { begin: '#', end: '$' }
- ]
- };
-
- DEFAULT.contains = [
- NUMBER,
- CHAR,
- STRING,
- COMMAND,
- MACROCALL,
- COMMENT,
- hljs.HASH_COMMENT_MODE,
- {
- className: 'keyword',
- begin:
- '\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b'
- },
- {begin: /<:/} // relevance booster
- ];
- INTERPOLATION.contains = DEFAULT.contains;
-
- return DEFAULT;
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/kotlin.js b/swh/web/static/jssources/highlight.js/lib/languages/kotlin.js
deleted file mode 100644
index 178d1af5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/kotlin.js
+++ /dev/null
@@ -1,198 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- 'abstract as val var vararg get set class object open private protected public noinline ' +
- 'crossinline dynamic final enum if else do while for when throw try catch finally ' +
- 'import package is in fun override companion reified inline lateinit init ' +
- 'interface annotation data sealed internal infix operator out by constructor super ' +
- 'tailrec where const inner suspend typealias external expect actual ' +
- // to be deleted soon
- 'trait volatile transient native default',
- built_in:
- 'Byte Short Char Int Long Boolean Float Double Void Unit Nothing',
- literal:
- 'true false null'
- };
- var KEYWORDS_WITH_LABEL = {
- className: 'keyword',
- begin: /\b(break|continue|return|this)\b/,
- starts: {
- contains: [
- {
- className: 'symbol',
- begin: /@\w+/
- }
- ]
- }
- };
- var LABEL = {
- className: 'symbol', begin: hljs.UNDERSCORE_IDENT_RE + '@'
- };
-
- // for string templates
- var SUBST = {
- className: 'subst',
- begin: '\\${', end: '}', contains: [hljs.APOS_STRING_MODE, hljs.C_NUMBER_MODE]
- };
- var VARIABLE = {
- className: 'variable', begin: '\\$' + hljs.UNDERSCORE_IDENT_RE
- };
- var STRING = {
- className: 'string',
- variants: [
- {
- begin: '"""', end: '"""',
- contains: [VARIABLE, SUBST]
- },
- // Can't use built-in modes easily, as we want to use STRING in the meta
- // context as 'meta-string' and there's no syntax to remove explicitly set
- // classNames in built-in modes.
- {
- begin: '\'', end: '\'',
- illegal: /\n/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '"', end: '"',
- illegal: /\n/,
- contains: [hljs.BACKSLASH_ESCAPE, VARIABLE, SUBST]
- }
- ]
- };
-
- var ANNOTATION_USE_SITE = {
- className: 'meta', begin: '@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*' + hljs.UNDERSCORE_IDENT_RE + ')?'
- };
- var ANNOTATION = {
- className: 'meta', begin: '@' + hljs.UNDERSCORE_IDENT_RE,
- contains: [
- {
- begin: /\(/, end: /\)/,
- contains: [
- hljs.inherit(STRING, {className: 'meta-string'})
- ]
- }
- ]
- };
-
- // https://kotlinlang.org/docs/reference/whatsnew11.html#underscores-in-numeric-literals
- // According to the doc above, the number mode of kotlin is the same as java 8,
- // so the code below is copied from java.js
- var KOTLIN_NUMBER_RE = '\\b' +
- '(' +
- '0[bB]([01]+[01_]+[01]+|[01]+)' + // 0b...
- '|' +
- '0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)' + // 0x...
- '|' +
- '(' +
- '([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?' +
- '|' +
- '\\.([\\d]+[\\d_]+[\\d]+|[\\d]+)' +
- ')' +
- '([eE][-+]?\\d+)?' + // octal, decimal, float
- ')' +
- '[lLfF]?';
- var KOTLIN_NUMBER_MODE = {
- className: 'number',
- begin: KOTLIN_NUMBER_RE,
- relevance: 0
- };
-
- return {
- aliases: ['kt'],
- keywords: KEYWORDS,
- contains : [
- hljs.COMMENT(
- '/\\*\\*',
- '\\*/',
- {
- relevance : 0,
- contains : [{
- className : 'doctag',
- begin : '@[A-Za-z]+'
- }]
- }
- ),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- KEYWORDS_WITH_LABEL,
- LABEL,
- ANNOTATION_USE_SITE,
- ANNOTATION,
- {
- className: 'function',
- beginKeywords: 'fun', end: '[(]|$',
- returnBegin: true,
- excludeEnd: true,
- keywords: KEYWORDS,
- illegal: /fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,
- relevance: 5,
- contains: [
- {
- begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', returnBegin: true,
- relevance: 0,
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- className: 'type',
- begin: /, end: />/, keywords: 'reified',
- relevance: 0
- },
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- endsParent: true,
- keywords: KEYWORDS,
- relevance: 0,
- contains: [
- {
- begin: /:/, end: /[=,\/]/, endsWithParent: true,
- contains: [
- {className: 'type', begin: hljs.UNDERSCORE_IDENT_RE},
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ],
- relevance: 0
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- ANNOTATION_USE_SITE,
- ANNOTATION,
- STRING,
- hljs.C_NUMBER_MODE
- ]
- },
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class interface trait', end: /[:\{(]|$/, // remove 'trait' when removed from KEYWORDS
- excludeEnd: true,
- illegal: 'extends implements',
- contains: [
- {beginKeywords: 'public protected internal private constructor'},
- hljs.UNDERSCORE_TITLE_MODE,
- {
- className: 'type',
- begin: /, end: />/, excludeBegin: true, excludeEnd: true,
- relevance: 0
- },
- {
- className: 'type',
- begin: /[,:]\s*/, end: /[<\(,]|$/, excludeBegin: true, returnEnd: true
- },
- ANNOTATION_USE_SITE,
- ANNOTATION
- ]
- },
- STRING,
- {
- className: 'meta',
- begin: "^#!/usr/bin/env", end: '$',
- illegal: '\n'
- },
- KOTLIN_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/lasso.js b/swh/web/static/jssources/highlight.js/lib/languages/lasso.js
deleted file mode 100644
index b72eee46..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/lasso.js
+++ /dev/null
@@ -1,162 +0,0 @@
-module.exports = function(hljs) {
- var LASSO_IDENT_RE = '[a-zA-Z_][\\w.]*';
- var LASSO_ANGLE_RE = '<\\?(lasso(script)?|=)';
- var LASSO_CLOSE_RE = '\\]|\\?>';
- var LASSO_KEYWORDS = {
- literal:
- 'true false none minimal full all void and or not ' +
- 'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft',
- built_in:
- 'array date decimal duration integer map pair string tag xml null ' +
- 'boolean bytes keyword list locale queue set stack staticarray ' +
- 'local var variable global data self inherited currentcapture givenblock',
- keyword:
- 'cache database_names database_schemanames database_tablenames ' +
- 'define_tag define_type email_batch encode_set html_comment handle ' +
- 'handle_error header if inline iterate ljax_target link ' +
- 'link_currentaction link_currentgroup link_currentrecord link_detail ' +
- 'link_firstgroup link_firstrecord link_lastgroup link_lastrecord ' +
- 'link_nextgroup link_nextrecord link_prevgroup link_prevrecord log ' +
- 'loop namespace_using output_none portal private protect records ' +
- 'referer referrer repeating resultset rows search_args ' +
- 'search_arguments select sort_args sort_arguments thread_atomic ' +
- 'value_list while abort case else fail_if fail_ifnot fail if_empty ' +
- 'if_false if_null if_true loop_abort loop_continue loop_count params ' +
- 'params_up return return_value run_children soap_definetag ' +
- 'soap_lastrequest soap_lastresponse tag_name ascending average by ' +
- 'define descending do equals frozen group handle_failure import in ' +
- 'into join let match max min on order parent protected provide public ' +
- 'require returnhome skip split_thread sum take thread to trait type ' +
- 'where with yield yieldhome'
- };
- var HTML_COMMENT = hljs.COMMENT(
- '',
- {
- relevance: 0
- }
- );
- var LASSO_NOPROCESS = {
- className: 'meta',
- begin: '\\[noprocess\\]',
- starts: {
- end: '\\[/noprocess\\]',
- returnEnd: true,
- contains: [HTML_COMMENT]
- }
- };
- var LASSO_START = {
- className: 'meta',
- begin: '\\[/noprocess|' + LASSO_ANGLE_RE
- };
- var LASSO_DATAMEMBER = {
- className: 'symbol',
- begin: '\'' + LASSO_IDENT_RE + '\''
- };
- var LASSO_CODE = [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.inherit(hljs.C_NUMBER_MODE, {begin: hljs.C_NUMBER_RE + '|(-?infinity|NaN)\\b'}),
- hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- {
- className: 'string',
- begin: '`', end: '`'
- },
- { // variables
- variants: [
- {
- begin: '[#$]' + LASSO_IDENT_RE
- },
- {
- begin: '#', end: '\\d+',
- illegal: '\\W'
- }
- ]
- },
- {
- className: 'type',
- begin: '::\\s*', end: LASSO_IDENT_RE,
- illegal: '\\W'
- },
- {
- className: 'params',
- variants: [
- {
- begin: '-(?!infinity)' + LASSO_IDENT_RE,
- relevance: 0
- },
- {
- begin: '(\\.\\.\\.)'
- }
- ]
- },
- {
- begin: /(->|\.)\s*/,
- relevance: 0,
- contains: [LASSO_DATAMEMBER]
- },
- {
- className: 'class',
- beginKeywords: 'define',
- returnEnd: true, end: '\\(|=>',
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: LASSO_IDENT_RE + '(=(?!>))?|[-+*/%](?!>)'})
- ]
- }
- ];
- return {
- aliases: ['ls', 'lassoscript'],
- case_insensitive: true,
- lexemes: LASSO_IDENT_RE + '|&[lg]t;',
- keywords: LASSO_KEYWORDS,
- contains: [
- {
- className: 'meta',
- begin: LASSO_CLOSE_RE,
- relevance: 0,
- starts: { // markup
- end: '\\[|' + LASSO_ANGLE_RE,
- returnEnd: true,
- relevance: 0,
- contains: [HTML_COMMENT]
- }
- },
- LASSO_NOPROCESS,
- LASSO_START,
- {
- className: 'meta',
- begin: '\\[no_square_brackets',
- starts: {
- end: '\\[/no_square_brackets\\]', // not implemented in the language
- lexemes: LASSO_IDENT_RE + '|&[lg]t;',
- keywords: LASSO_KEYWORDS,
- contains: [
- {
- className: 'meta',
- begin: LASSO_CLOSE_RE,
- relevance: 0,
- starts: {
- end: '\\[noprocess\\]|' + LASSO_ANGLE_RE,
- returnEnd: true,
- contains: [HTML_COMMENT]
- }
- },
- LASSO_NOPROCESS,
- LASSO_START
- ].concat(LASSO_CODE)
- }
- },
- {
- className: 'meta',
- begin: '\\[',
- relevance: 0
- },
- {
- className: 'meta',
- begin: '^#!', end:'lasso9$',
- relevance: 10
- }
- ].concat(LASSO_CODE)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ldif.js b/swh/web/static/jssources/highlight.js/lib/languages/ldif.js
deleted file mode 100644
index bec45cd8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ldif.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- {
- className: 'attribute',
- begin: '^dn', end: ': ', excludeEnd: true,
- starts: {end: '$', relevance: 0},
- relevance: 10
- },
- {
- className: 'attribute',
- begin: '^\\w', end: ': ', excludeEnd: true,
- starts: {end: '$', relevance: 0}
- },
- {
- className: 'literal',
- begin: '^-', end: '$'
- },
- hljs.HASH_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/leaf.js b/swh/web/static/jssources/highlight.js/lib/languages/leaf.js
deleted file mode 100644
index 2e51fcd1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/leaf.js
+++ /dev/null
@@ -1,39 +0,0 @@
-module.exports = function (hljs) {
- return {
- contains: [
- {
- className: 'function',
- begin: '#+' + '[A-Za-z_0-9]*' + '\\(',
- end:' {',
- returnBegin: true,
- excludeEnd: true,
- contains : [
- {
- className: 'keyword',
- begin: '#+'
- },
- {
- className: 'title',
- begin: '[A-Za-z_][A-Za-z_0-9]*'
- },
- {
- className: 'params',
- begin: '\\(', end: '\\)',
- endsParent: true,
- contains: [
- {
- className: 'string',
- begin: '"',
- end: '"'
- },
- {
- className: 'variable',
- begin: '[A-Za-z_][A-Za-z_0-9]*'
- }
- ]
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/less.js b/swh/web/static/jssources/highlight.js/lib/languages/less.js
deleted file mode 100644
index 29d77471..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/less.js
+++ /dev/null
@@ -1,139 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[\\w-]+'; // yes, Less identifiers may begin with a digit
- var INTERP_IDENT_RE = '(' + IDENT_RE + '|@{' + IDENT_RE + '})';
-
- /* Generic Modes */
-
- var RULES = [], VALUE = []; // forward def. for recursive modes
-
- var STRING_MODE = function(c) { return {
- // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
- className: 'string', begin: '~?' + c + '.*?' + c
- };};
-
- var IDENT_MODE = function(name, begin, relevance) { return {
- className: name, begin: begin, relevance: relevance
- };};
-
- var PARENS_MODE = {
- // used only to properly balance nested parens inside mixin call, def. arg list
- begin: '\\(', end: '\\)', contains: VALUE, relevance: 0
- };
-
- // generic Less highlighter (used almost everywhere except selectors):
- VALUE.push(
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRING_MODE("'"),
- STRING_MODE('"'),
- hljs.CSS_NUMBER_MODE, // fixme: it does not include dot for numbers like .5em :(
- {
- begin: '(url|data-uri)\\(',
- starts: {className: 'string', end: '[\\)\\n]', excludeEnd: true}
- },
- IDENT_MODE('number', '#[0-9A-Fa-f]+\\b'),
- PARENS_MODE,
- IDENT_MODE('variable', '@@?' + IDENT_RE, 10),
- IDENT_MODE('variable', '@{' + IDENT_RE + '}'),
- IDENT_MODE('built_in', '~?`[^`]*?`'), // inline javascript (or whatever host language) *multiline* string
- { // @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding):
- className: 'attribute', begin: IDENT_RE + '\\s*:', end: ':', returnBegin: true, excludeEnd: true
- },
- {
- className: 'meta',
- begin: '!important'
- }
- );
-
- var VALUE_WITH_RULESETS = VALUE.concat({
- begin: '{', end: '}', contains: RULES
- });
-
- var MIXIN_GUARD_MODE = {
- beginKeywords: 'when', endsWithParent: true,
- contains: [{beginKeywords: 'and not'}].concat(VALUE) // using this form to override VALUE’s 'function' match
- };
-
- /* Rule-Level Modes */
-
- var RULE_MODE = {
- begin: INTERP_IDENT_RE + '\\s*:', returnBegin: true, end: '[;}]',
- relevance: 0,
- contains: [
- {
- className: 'attribute',
- begin: INTERP_IDENT_RE, end: ':', excludeEnd: true,
- starts: {
- endsWithParent: true, illegal: '[<=$]',
- relevance: 0,
- contains: VALUE
- }
- }
- ]
- };
-
- var AT_RULE_MODE = {
- className: 'keyword',
- begin: '@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b',
- starts: {end: '[;{}]', returnEnd: true, contains: VALUE, relevance: 0}
- };
-
- // variable definitions and calls
- var VAR_RULE_MODE = {
- className: 'variable',
- variants: [
- // using more strict pattern for higher relevance to increase chances of Less detection.
- // this is *the only* Less specific statement used in most of the sources, so...
- // (we’ll still often loose to the css-parser unless there's '//' comment,
- // simply because 1 variable just can't beat 99 properties :)
- {begin: '@' + IDENT_RE + '\\s*:', relevance: 15},
- {begin: '@' + IDENT_RE}
- ],
- starts: {end: '[;}]', returnEnd: true, contains: VALUE_WITH_RULESETS}
- };
-
- var SELECTOR_MODE = {
- // first parse unambiguous selectors (i.e. those not starting with tag)
- // then fall into the scary lookahead-discriminator variant.
- // this mode also handles mixin definitions and calls
- variants: [{
- begin: '[\\.#:&\\[>]', end: '[;{}]' // mixin calls end with ';'
- }, {
- begin: INTERP_IDENT_RE, end: '{'
- }],
- returnBegin: true,
- returnEnd: true,
- illegal: '[<=\'$"]',
- relevance: 0,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- MIXIN_GUARD_MODE,
- IDENT_MODE('keyword', 'all\\b'),
- IDENT_MODE('variable', '@{' + IDENT_RE + '}'), // otherwise it’s identified as tag
- IDENT_MODE('selector-tag', INTERP_IDENT_RE + '%?', 0), // '%' for more consistent coloring of @keyframes "tags"
- IDENT_MODE('selector-id', '#' + INTERP_IDENT_RE),
- IDENT_MODE('selector-class', '\\.' + INTERP_IDENT_RE, 0),
- IDENT_MODE('selector-tag', '&', 0),
- {className: 'selector-attr', begin: '\\[', end: '\\]'},
- {className: 'selector-pseudo', begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},
- {begin: '\\(', end: '\\)', contains: VALUE_WITH_RULESETS}, // argument list of parametric mixins
- {begin: '!important'} // eat !important after mixin call or it will be colored as tag
- ]
- };
-
- RULES.push(
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- AT_RULE_MODE,
- VAR_RULE_MODE,
- RULE_MODE,
- SELECTOR_MODE
- );
-
- return {
- case_insensitive: true,
- illegal: '[=>\'/<($"]',
- contains: RULES
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/lisp.js b/swh/web/static/jssources/highlight.js/lib/languages/lisp.js
deleted file mode 100644
index d845263c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/lisp.js
+++ /dev/null
@@ -1,102 +0,0 @@
-module.exports = function(hljs) {
- var LISP_IDENT_RE = '[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*';
- var MEC_RE = '\\|[^]*?\\|';
- var LISP_SIMPLE_NUMBER_RE = '(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?';
- var SHEBANG = {
- className: 'meta',
- begin: '^#!', end: '$'
- };
- var LITERAL = {
- className: 'literal',
- begin: '\\b(t{1}|nil)\\b'
- };
- var NUMBER = {
- className: 'number',
- variants: [
- {begin: LISP_SIMPLE_NUMBER_RE, relevance: 0},
- {begin: '#(b|B)[0-1]+(/[0-1]+)?'},
- {begin: '#(o|O)[0-7]+(/[0-7]+)?'},
- {begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?'},
- {begin: '#(c|C)\\(' + LISP_SIMPLE_NUMBER_RE + ' +' + LISP_SIMPLE_NUMBER_RE, end: '\\)'}
- ]
- };
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null});
- var COMMENT = hljs.COMMENT(
- ';', '$',
- {
- relevance: 0
- }
- );
- var VARIABLE = {
- begin: '\\*', end: '\\*'
- };
- var KEYWORD = {
- className: 'symbol',
- begin: '[:&]' + LISP_IDENT_RE
- };
- var IDENT = {
- begin: LISP_IDENT_RE,
- relevance: 0
- };
- var MEC = {
- begin: MEC_RE
- };
- var QUOTED_LIST = {
- begin: '\\(', end: '\\)',
- contains: ['self', LITERAL, STRING, NUMBER, IDENT]
- };
- var QUOTED = {
- contains: [NUMBER, STRING, VARIABLE, KEYWORD, QUOTED_LIST, IDENT],
- variants: [
- {
- begin: '[\'`]\\(', end: '\\)'
- },
- {
- begin: '\\(quote ', end: '\\)',
- keywords: {name: 'quote'}
- },
- {
- begin: '\'' + MEC_RE
- }
- ]
- };
- var QUOTED_ATOM = {
- variants: [
- {begin: '\'' + LISP_IDENT_RE},
- {begin: '#\'' + LISP_IDENT_RE + '(::' + LISP_IDENT_RE + ')*'}
- ]
- };
- var LIST = {
- begin: '\\(\\s*', end: '\\)'
- };
- var BODY = {
- endsWithParent: true,
- relevance: 0
- };
- LIST.contains = [
- {
- className: 'name',
- variants: [
- {begin: LISP_IDENT_RE},
- {begin: MEC_RE}
- ]
- },
- BODY
- ];
- BODY.contains = [QUOTED, QUOTED_ATOM, LIST, LITERAL, NUMBER, STRING, COMMENT, VARIABLE, KEYWORD, MEC, IDENT];
-
- return {
- illegal: /\S/,
- contains: [
- NUMBER,
- SHEBANG,
- LITERAL,
- STRING,
- COMMENT,
- QUOTED,
- QUOTED_ATOM,
- LIST,
- IDENT
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/livecodeserver.js b/swh/web/static/jssources/highlight.js/lib/languages/livecodeserver.js
deleted file mode 100644
index 5b48a36e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/livecodeserver.js
+++ /dev/null
@@ -1,156 +0,0 @@
-module.exports = function(hljs) {
- var VARIABLE = {
- begin: '\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+',
- relevance: 0
- };
- var COMMENT_MODES = [
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.HASH_COMMENT_MODE,
- hljs.COMMENT('--', '$'),
- hljs.COMMENT('[^:]//', '$')
- ];
- var TITLE1 = hljs.inherit(hljs.TITLE_MODE, {
- variants: [
- {begin: '\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*'},
- {begin: '\\b_[a-z0-9\\-]+'}
- ]
- });
- var TITLE2 = hljs.inherit(hljs.TITLE_MODE, {begin: '\\b([A-Za-z0-9_\\-]+)\\b'});
- return {
- case_insensitive: false,
- keywords: {
- keyword:
- '$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER ' +
- 'codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph ' +
- 'after byte bytes english the until http forever descending using line real8 with seventh ' +
- 'for stdout finally element word words fourth before black ninth sixth characters chars stderr ' +
- 'uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid ' +
- 'at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 ' +
- 'int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat ' +
- 'end repeat URL in try into switch to words https token binfile each tenth as ticks tick ' +
- 'system real4 by dateItems without char character ascending eighth whole dateTime numeric short ' +
- 'first ftp integer abbreviated abbr abbrev private case while if ' +
- 'div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within ' +
- 'contains ends with begins the keys of keys',
- literal:
- 'SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE ' +
- 'QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO ' +
- 'six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five ' +
- 'quote empty one true return cr linefeed right backslash null seven tab three two ' +
- 'RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK ' +
- 'FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK',
- built_in:
- 'put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode ' +
- 'base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum ' +
- 'cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress ' +
- 'constantNames cos date dateFormat decompress directories ' +
- 'diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global ' +
- 'globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset ' +
- 'keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders ' +
- 'libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 ' +
- 'longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec ' +
- 'millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar ' +
- 'numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets ' +
- 'paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation ' +
- 'populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile ' +
- 'revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull ' +
- 'revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered ' +
- 'revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames ' +
- 'revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull ' +
- 'revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections ' +
- 'revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype ' +
- 'revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext ' +
- 'revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames ' +
- 'revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase ' +
- 'revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute ' +
- 'revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces ' +
- 'revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode ' +
- 'revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling ' +
- 'revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error ' +
- 'revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute ' +
- 'revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort ' +
- 'revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree ' +
- 'revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance ' +
- 'sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound ' +
- 'stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper ' +
- 'transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames ' +
- 'variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet ' +
- 'xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process ' +
- 'combine constant convert create new alias folder directory decrypt delete variable word line folder ' +
- 'directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile ' +
- 'libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback ' +
- 'libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime ' +
- 'libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename ' +
- 'replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase ' +
- 'revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees ' +
- 'revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord ' +
- 'revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase ' +
- 'revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD ' +
- 'revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost ' +
- 'revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData ' +
- 'revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel ' +
- 'revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback ' +
- 'revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop ' +
- 'subtract union unload wait write'
- },
- contains: [
- VARIABLE,
- {
- className: 'keyword',
- begin: '\\bend\\sif\\b'
- },
- {
- className: 'function',
- beginKeywords: 'function', end: '$',
- contains: [
- VARIABLE,
- TITLE2,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.BINARY_NUMBER_MODE,
- hljs.C_NUMBER_MODE,
- TITLE1
- ]
- },
- {
- className: 'function',
- begin: '\\bend\\s+', end: '$',
- keywords: 'end',
- contains: [
- TITLE2,
- TITLE1
- ],
- relevance: 0
- },
- {
- beginKeywords: 'command on', end: '$',
- contains: [
- VARIABLE,
- TITLE2,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.BINARY_NUMBER_MODE,
- hljs.C_NUMBER_MODE,
- TITLE1
- ]
- },
- {
- className: 'meta',
- variants: [
- {
- begin: '<\\?(rev|lc|livecode)',
- relevance: 10
- },
- { begin: '<\\?' },
- { begin: '\\?>' }
- ]
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.BINARY_NUMBER_MODE,
- hljs.C_NUMBER_MODE,
- TITLE1
- ].concat(COMMENT_MODES),
- illegal: ';$|^\\[|^=|&|{'
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/livescript.js b/swh/web/static/jssources/highlight.js/lib/languages/livescript.js
deleted file mode 100644
index fb8913ca..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/livescript.js
+++ /dev/null
@@ -1,148 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- // JS keywords
- 'in if for while finally new do return else break catch instanceof throw try this ' +
- 'switch continue typeof delete debugger case default function var with ' +
- // LiveScript keywords
- 'then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super ' +
- 'case default function var void const let enum export import native ' +
- '__hasProp __extends __slice __bind __indexOf',
- literal:
- // JS literals
- 'true false null undefined ' +
- // LiveScript literals
- 'yes no on off it that void',
- built_in:
- 'npm require console print module global window document'
- };
- var JS_IDENT_RE = '[A-Za-z$_](?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*';
- var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: JS_IDENT_RE});
- var SUBST = {
- className: 'subst',
- begin: /#\{/, end: /}/,
- keywords: KEYWORDS
- };
- var SUBST_SIMPLE = {
- className: 'subst',
- begin: /#[A-Za-z$_]/, end: /(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,
- keywords: KEYWORDS
- };
- var EXPRESSIONS = [
- hljs.BINARY_NUMBER_MODE,
- {
- className: 'number',
- begin: '(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)',
- relevance: 0,
- starts: {end: '(\\s*/)?', relevance: 0} // a number tries to eat the following slash to prevent treating it as a regexp
- },
- {
- className: 'string',
- variants: [
- {
- begin: /'''/, end: /'''/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: /'/, end: /'/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: /"""/, end: /"""/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE]
- },
- {
- begin: /"/, end: /"/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE]
- },
- {
- begin: /\\/, end: /(\s|$)/,
- excludeEnd: true
- }
- ]
- },
- {
- className: 'regexp',
- variants: [
- {
- begin: '//', end: '//[gim]*',
- contains: [SUBST, hljs.HASH_COMMENT_MODE]
- },
- {
- // regex can't start with space to parse x / 2 / 3 as two divisions
- // regex can't start with *, and it supports an "illegal" in the main mode
- begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/
- }
- ]
- },
- {
- begin: '@' + JS_IDENT_RE
- },
- {
- begin: '``', end: '``',
- excludeBegin: true, excludeEnd: true,
- subLanguage: 'javascript'
- }
- ];
- SUBST.contains = EXPRESSIONS;
-
- var PARAMS = {
- className: 'params',
- begin: '\\(', returnBegin: true,
- /* We need another contained nameless mode to not have every nested
- pair of parens to be called "params" */
- contains: [
- {
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- contains: ['self'].concat(EXPRESSIONS)
- }
- ]
- };
-
- return {
- aliases: ['ls'],
- keywords: KEYWORDS,
- illegal: /\/\*/,
- contains: EXPRESSIONS.concat([
- hljs.COMMENT('\\/\\*', '\\*\\/'),
- hljs.HASH_COMMENT_MODE,
- {
- className: 'function',
- contains: [TITLE, PARAMS],
- returnBegin: true,
- variants: [
- {
- begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?', end: '\\->\\*?'
- },
- {
- begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?', end: '[-~]{1,2}>\\*?'
- },
- {
- begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?', end: '!?[-~]{1,2}>\\*?'
- }
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class',
- end: '$',
- illegal: /[:="\[\]]/,
- contains: [
- {
- beginKeywords: 'extends',
- endsWithParent: true,
- illegal: /[:="\[\]]/,
- contains: [TITLE]
- },
- TITLE
- ]
- },
- {
- begin: JS_IDENT_RE + ':', end: ':',
- returnBegin: true, returnEnd: true,
- relevance: 0
- }
- ])
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/llvm.js b/swh/web/static/jssources/highlight.js/lib/languages/llvm.js
deleted file mode 100644
index 80be38b8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/llvm.js
+++ /dev/null
@@ -1,88 +0,0 @@
-module.exports = function(hljs) {
- var identifier = '([-a-zA-Z$._][\\w\\-$.]*)';
- return {
- //lexemes: '[.%]?' + hljs.IDENT_RE,
- keywords:
- 'begin end true false declare define global ' +
- 'constant private linker_private internal ' +
- 'available_externally linkonce linkonce_odr weak ' +
- 'weak_odr appending dllimport dllexport common ' +
- 'default hidden protected extern_weak external ' +
- 'thread_local zeroinitializer undef null to tail ' +
- 'target triple datalayout volatile nuw nsw nnan ' +
- 'ninf nsz arcp fast exact inbounds align ' +
- 'addrspace section alias module asm sideeffect ' +
- 'gc dbg linker_private_weak attributes blockaddress ' +
- 'initialexec localdynamic localexec prefix unnamed_addr ' +
- 'ccc fastcc coldcc x86_stdcallcc x86_fastcallcc ' +
- 'arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ' +
- 'ptx_kernel intel_ocl_bicc msp430_intrcc spir_func ' +
- 'spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc ' +
- 'cc c signext zeroext inreg sret nounwind ' +
- 'noreturn noalias nocapture byval nest readnone ' +
- 'readonly inlinehint noinline alwaysinline optsize ssp ' +
- 'sspreq noredzone noimplicitfloat naked builtin cold ' +
- 'nobuiltin noduplicate nonlazybind optnone returns_twice ' +
- 'sanitize_address sanitize_memory sanitize_thread sspstrong ' +
- 'uwtable returned type opaque eq ne slt sgt ' +
- 'sle sge ult ugt ule uge oeq one olt ogt ' +
- 'ole oge ord uno ueq une x acq_rel acquire ' +
- 'alignstack atomic catch cleanup filter inteldialect ' +
- 'max min monotonic nand personality release seq_cst ' +
- 'singlethread umax umin unordered xchg add fadd ' +
- 'sub fsub mul fmul udiv sdiv fdiv urem srem ' +
- 'frem shl lshr ashr and or xor icmp fcmp ' +
- 'phi call trunc zext sext fptrunc fpext uitofp ' +
- 'sitofp fptoui fptosi inttoptr ptrtoint bitcast ' +
- 'addrspacecast select va_arg ret br switch invoke ' +
- 'unwind unreachable indirectbr landingpad resume ' +
- 'malloc alloca free load store getelementptr ' +
- 'extractelement insertelement shufflevector getresult ' +
- 'extractvalue insertvalue atomicrmw cmpxchg fence ' +
- 'argmemonly double',
- contains: [
- {
- className: 'keyword',
- begin: 'i\\d+'
- },
- hljs.COMMENT(
- ';', '\\n', {relevance: 0}
- ),
- // Double quote string
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- variants: [
- // Double-quoted string
- { begin: '"', end: '[^\\\\]"' },
- ],
- relevance: 0
- },
- {
- className: 'title',
- variants: [
- { begin: '@' + identifier },
- { begin: '@\\d+' },
- { begin: '!' + identifier },
- { begin: '!\\d+' + identifier }
- ]
- },
- {
- className: 'symbol',
- variants: [
- { begin: '%' + identifier },
- { begin: '%\\d+' },
- { begin: '#\\d+' },
- ]
- },
- {
- className: 'number',
- variants: [
- { begin: '0[xX][a-fA-F0-9]+' },
- { begin: '-?\\d+(?:[.]\\d+)?(?:[eE][-+]?\\d+(?:[.]\\d+)?)?' }
- ],
- relevance: 0
- },
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/lsl.js b/swh/web/static/jssources/highlight.js/lib/languages/lsl.js
deleted file mode 100644
index 25b10b43..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/lsl.js
+++ /dev/null
@@ -1,82 +0,0 @@
-module.exports = function(hljs) {
-
- var LSL_STRING_ESCAPE_CHARS = {
- className: 'subst',
- begin: /\\[tn"\\]/
- };
-
- var LSL_STRINGS = {
- className: 'string',
- begin: '"',
- end: '"',
- contains: [
- LSL_STRING_ESCAPE_CHARS
- ]
- };
-
- var LSL_NUMBERS = {
- className: 'number',
- begin: hljs.C_NUMBER_RE
- };
-
- var LSL_CONSTANTS = {
- className: 'literal',
- variants: [
- {
- begin: '\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b'
- },
- {
- begin: '\\b(?:XP_ERROR_(?:EXPERIENCES_DISABLED|EXPERIENCE_(?:DISABLED|SUSPENDED)|INVALID_(?:EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(?:FOUND|PERMITTED(?:_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(?:IVE|_(?:ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_ON_REZ|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP|CREATOR|ATTACHED_POINT|RENDER_WEIGHT|(?:BODY_SHAPE|PATHFINDING)_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(?:BASE|TIP)|[LR]WING|FACE_(?:JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:ALPHA_MODE(?:_(?:BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[ABCD]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b'
- },
- {
- begin: '\\b(?:FALSE|TRUE)\\b'
- },
- {
- begin: '\\b(?:ZERO_ROTATION)\\b'
- },
- {
- begin: '\\b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\\b'
- },
- {
- begin: '\\b(?:ZERO_VECTOR|TOUCH_INVALID_(?:TEXCOORD|VECTOR))\\b'
- }
- ]
- };
-
- var LSL_FUNCTIONS = {
- className: 'built_in',
- begin: '\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b'
- };
-
- return {
- illegal: ':',
- contains: [
- LSL_STRINGS,
- {
- className: 'comment',
- variants: [
- hljs.COMMENT('//', '$'),
- hljs.COMMENT('/\\*', '\\*/')
- ]
- },
- LSL_NUMBERS,
- {
- className: 'section',
- variants: [
- {
- begin: '\\b(?:state|default)\\b'
- },
- {
- begin: '\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b'
- }
- ]
- },
- LSL_FUNCTIONS,
- LSL_CONSTANTS,
- {
- className: 'type',
- begin: '\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/lua.js b/swh/web/static/jssources/highlight.js/lib/languages/lua.js
deleted file mode 100644
index a0287f75..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/lua.js
+++ /dev/null
@@ -1,65 +0,0 @@
-module.exports = function(hljs) {
- var OPENING_LONG_BRACKET = '\\[=*\\[';
- var CLOSING_LONG_BRACKET = '\\]=*\\]';
- var LONG_BRACKETS = {
- begin: OPENING_LONG_BRACKET, end: CLOSING_LONG_BRACKET,
- contains: ['self']
- };
- var COMMENTS = [
- hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'),
- hljs.COMMENT(
- '--' + OPENING_LONG_BRACKET,
- CLOSING_LONG_BRACKET,
- {
- contains: [LONG_BRACKETS],
- relevance: 10
- }
- )
- ];
- return {
- lexemes: hljs.UNDERSCORE_IDENT_RE,
- keywords: {
- literal: "true false nil",
- keyword: "and break do else elseif end for goto if in local not or repeat return then until while",
- built_in:
- //Metatags and globals:
- '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len ' +
- '__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert ' +
- //Standard methods and properties:
- 'collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring' +
- 'module next pairs pcall print rawequal rawget rawset require select setfenv' +
- 'setmetatable tonumber tostring type unpack xpcall arg self' +
- //Library methods and properties (one line per library):
- 'coroutine resume yield status wrap create running debug getupvalue ' +
- 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv ' +
- 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile ' +
- 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan ' +
- 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall ' +
- 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower ' +
- 'table setn insert getn foreachi maxn foreach concat sort remove'
- },
- contains: COMMENTS.concat([
- {
- className: 'function',
- beginKeywords: 'function', end: '\\)',
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*'}),
- {
- className: 'params',
- begin: '\\(', endsWithParent: true,
- contains: COMMENTS
- }
- ].concat(COMMENTS)
- },
- hljs.C_NUMBER_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: OPENING_LONG_BRACKET, end: CLOSING_LONG_BRACKET,
- contains: [LONG_BRACKETS],
- relevance: 5
- }
- ])
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/makefile.js b/swh/web/static/jssources/highlight.js/lib/languages/makefile.js
deleted file mode 100644
index 300cf260..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/makefile.js
+++ /dev/null
@@ -1,80 +0,0 @@
-module.exports = function(hljs) {
- /* Variables: simple (eg $(var)) and special (eg $@) */
- var VARIABLE = {
- className: 'variable',
- variants: [
- {
- begin: '\\$\\(' + hljs.UNDERSCORE_IDENT_RE + '\\)',
- contains: [hljs.BACKSLASH_ESCAPE],
- },
- {
- begin: /\$[@%\^\+\*]/
- },
- ]
- };
- /* Quoted string with variables inside */
- var QUOTE_STRING = {
- className: 'string',
- begin: /"/, end: /"/,
- contains: [
- hljs.BACKSLASH_ESCAPE,
- VARIABLE,
- ]
- };
- /* Function: $(func arg,...) */
- var FUNC = {
- className: 'variable',
- begin: /\$\([\w-]+\s/, end: /\)/,
- keywords: {
- built_in:
- 'subst patsubst strip findstring filter filter-out sort ' +
- 'word wordlist firstword lastword dir notdir suffix basename ' +
- 'addsuffix addprefix join wildcard realpath abspath error warning ' +
- 'shell origin flavor foreach if or and call eval file value',
- },
- contains: [
- VARIABLE,
- ]
- };
- /* Variable assignment */
- var VAR_ASSIG = {
- begin: '^' + hljs.UNDERSCORE_IDENT_RE + '\\s*[:+?]?=',
- illegal: '\\n',
- returnBegin: true,
- contains: [
- {
- begin: '^' + hljs.UNDERSCORE_IDENT_RE, end: '[:+?]?=',
- excludeEnd: true,
- }
- ]
- };
- /* Meta targets (.PHONY) */
- var META = {
- className: 'meta',
- begin: /^\.PHONY:/, end: /$/,
- keywords: {'meta-keyword': '.PHONY'},
- lexemes: /[\.\w]+/
- };
- /* Targets */
- var TARGET = {
- className: 'section',
- begin: /^[^\s]+:/, end: /$/,
- contains: [VARIABLE,]
- };
- return {
- aliases: ['mk', 'mak'],
- keywords:
- 'define endef undefine ifdef ifndef ifeq ifneq else endif ' +
- 'include -include sinclude override export unexport private vpath',
- lexemes: /[\w-]+/,
- contains: [
- hljs.HASH_COMMENT_MODE,
- VARIABLE,
- QUOTE_STRING,
- FUNC,
- VAR_ASSIG,
- META,
- TARGET,
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/markdown.js b/swh/web/static/jssources/highlight.js/lib/languages/markdown.js
deleted file mode 100644
index 47552523..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/markdown.js
+++ /dev/null
@@ -1,107 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['md', 'mkdown', 'mkd'],
- contains: [
- // highlight headers
- {
- className: 'section',
- variants: [
- { begin: '^#{1,6}', end: '$' },
- { begin: '^.+?\\n[=-]{2,}$' }
- ]
- },
- // inline html
- {
- begin: '<', end: '>',
- subLanguage: 'xml',
- relevance: 0
- },
- // lists (indicators only)
- {
- className: 'bullet',
- begin: '^([*+-]|(\\d+\\.))\\s+'
- },
- // strong segments
- {
- className: 'strong',
- begin: '[*_]{2}.+?[*_]{2}'
- },
- // emphasis segments
- {
- className: 'emphasis',
- variants: [
- { begin: '\\*.+?\\*' },
- { begin: '_.+?_'
- , relevance: 0
- }
- ]
- },
- // blockquotes
- {
- className: 'quote',
- begin: '^>\\s+', end: '$'
- },
- // code snippets
- {
- className: 'code',
- variants: [
- {
- begin: '^```\w*\s*$', end: '^```\s*$'
- },
- {
- begin: '`.+?`'
- },
- {
- begin: '^( {4}|\t)', end: '$',
- relevance: 0
- }
- ]
- },
- // horizontal rules
- {
- begin: '^[-\\*]{3,}', end: '$'
- },
- // using links - title and link
- {
- begin: '\\[.+?\\][\\(\\[].*?[\\)\\]]',
- returnBegin: true,
- contains: [
- {
- className: 'string',
- begin: '\\[', end: '\\]',
- excludeBegin: true,
- returnEnd: true,
- relevance: 0
- },
- {
- className: 'link',
- begin: '\\]\\(', end: '\\)',
- excludeBegin: true, excludeEnd: true
- },
- {
- className: 'symbol',
- begin: '\\]\\[', end: '\\]',
- excludeBegin: true, excludeEnd: true
- }
- ],
- relevance: 10
- },
- {
- begin: /^\[[^\n]+\]:/,
- returnBegin: true,
- contains: [
- {
- className: 'symbol',
- begin: /\[/, end: /\]/,
- excludeBegin: true, excludeEnd: true
- },
- {
- className: 'link',
- begin: /:\s*/, end: /$/,
- excludeBegin: true
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mathematica.js b/swh/web/static/jssources/highlight.js/lib/languages/mathematica.js
deleted file mode 100644
index 73d2eaad..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mathematica.js
+++ /dev/null
@@ -1,57 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['mma'],
- lexemes: '(\\$|\\b)' + hljs.IDENT_RE + '\\b',
- keywords: 'AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis ' +
- 'BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering ' +
- 'C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ' +
- 'ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition ' +
- 'D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform ' +
- 'DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions ' +
- 'E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution ' +
- 'FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve ' +
- 'FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance ' +
- 'GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion ' +
- 'GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution ' +
- 'HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData ' +
- 'I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction ' +
- 'InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess ' +
- 'JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition ' +
- 'K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter ' +
- 'Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions ' +
- 'LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy ' +
- 'MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution ' +
- 'N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator ' +
- 'NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot ' +
- 'O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues ' +
- 'PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList ' +
- 'PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions ' +
- 'QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder ' +
- 'RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity ' +
- 'SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity ' +
- 'SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders ' +
- 'SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub ' +
- 'Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine ' +
- 'Transparent ' +
- 'UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd ' +
- 'V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution ' +
- 'WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian ' +
- 'XMLElement XMLObject Xnor Xor ' +
- 'Yellow YuleDissimilarity ' +
- 'ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform ' +
- '$Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber',
- contains: [
- {
- className: 'comment',
- begin: /\(\*/, end: /\*\)/
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- begin: /\{/, end: /\}/,
- illegal: /:/
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/matlab.js b/swh/web/static/jssources/highlight.js/lib/languages/matlab.js
deleted file mode 100644
index 14599d7b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/matlab.js
+++ /dev/null
@@ -1,95 +0,0 @@
-module.exports = /*
- Formal syntax is not published, helpful link:
- https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf
-*/
-function(hljs) {
-
- var TRANSPOSE_RE = '(\'|\\.\')+';
- var TRANSPOSE = {
- relevance: 0,
- contains: [
- { begin: TRANSPOSE_RE }
- ]
- };
-
- return {
- keywords: {
- keyword:
- 'break case catch classdef continue else elseif end enumerated events for function ' +
- 'global if methods otherwise parfor persistent properties return spmd switch try while',
- built_in:
- 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' +
- 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' +
- 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' +
- 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' +
- 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' +
- 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' +
- 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' +
- 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' +
- 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' +
- 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' +
- 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' +
- 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' +
- 'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' +
- 'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' +
- 'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' +
- 'legend intersect ismember procrustes hold num2cell '
- },
- illegal: '(//|"|#|/\\*|\\s+/\\w+)',
- contains: [
- {
- className: 'function',
- beginKeywords: 'function', end: '$',
- contains: [
- hljs.UNDERSCORE_TITLE_MODE,
- {
- className: 'params',
- variants: [
- {begin: '\\(', end: '\\)'},
- {begin: '\\[', end: '\\]'}
- ]
- }
- ]
- },
- {
- className: 'built_in',
- begin: /true|false/,
- relevance: 0,
- starts: TRANSPOSE
- },
- {
- begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE,
- relevance: 0
- },
- {
- className: 'number',
- begin: hljs.C_NUMBER_RE,
- relevance: 0,
- starts: TRANSPOSE
- },
- {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {begin: '\'\''}]
- },
- {
- begin: /\]|}|\)/,
- relevance: 0,
- starts: TRANSPOSE
- },
- {
- className: 'string',
- begin: '"', end: '"',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {begin: '""'}
- ],
- starts: TRANSPOSE
- },
- hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'),
- hljs.COMMENT('\\%', '$')
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/maxima.js b/swh/web/static/jssources/highlight.js/lib/languages/maxima.js
deleted file mode 100644
index 342e8aad..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/maxima.js
+++ /dev/null
@@ -1,405 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = 'if then else elseif for thru do while unless step in and or not';
- var LITERALS = 'true false unknown inf minf ind und %e %i %pi %phi %gamma';
- var BUILTIN_FUNCTIONS =
- ' abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate'
- + ' addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix'
- + ' adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type'
- + ' alias allroots alphacharp alphanumericp amortization %and annuity_fv'
- + ' annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2'
- + ' applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply'
- + ' arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger'
- + ' asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order'
- + ' asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method'
- + ' av average_degree backtrace bars barsplot barsplot_description base64 base64_decode'
- + ' bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx'
- + ' bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify'
- + ' bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized'
- + ' bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp'
- + ' bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition'
- + ' block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description'
- + ' break bug_report build_info|10 buildq build_sample burn cabs canform canten'
- + ' cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli'
- + ' cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform'
- + ' cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel'
- + ' cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial'
- + ' cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson'
- + ' cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay'
- + ' ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic'
- + ' cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2'
- + ' charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps'
- + ' chinese cholesky christof chromatic_index chromatic_number cint circulant_graph'
- + ' clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph'
- + ' clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse'
- + ' collectterms columnop columnspace columnswap columnvector combination combine'
- + ' comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph'
- + ' complete_graph complex_number_p components compose_functions concan concat'
- + ' conjugate conmetderiv connected_components connect_vertices cons constant'
- + ' constantp constituent constvalue cont2part content continuous_freq contortion'
- + ' contour_plot contract contract_edge contragrad contrib_ode convert coord'
- + ' copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1'
- + ' covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline'
- + ' ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph'
- + ' cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate'
- + ' declare declare_constvalue declare_dimensions declare_fundamental_dimensions'
- + ' declare_fundamental_units declare_qty declare_translated declare_unit_conversion'
- + ' declare_units declare_weights decsym defcon define define_alt_display define_variable'
- + ' defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten'
- + ' delta demo demoivre denom depends derivdegree derivlist describe desolve'
- + ' determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag'
- + ' diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export'
- + ' dimacs_import dimension dimensionless dimensions dimensions_as_list direct'
- + ' directory discrete_freq disjoin disjointp disolate disp dispcon dispform'
- + ' dispfun dispJordan display disprule dispterms distrib divide divisors divsum'
- + ' dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart'
- + ' draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring'
- + ' edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth'
- + ' einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome'
- + ' ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using'
- + ' ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi'
- + ' ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp'
- + ' equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors'
- + ' euler ev eval_string evenp every evolution evolution2d evundiff example exp'
- + ' expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci'
- + ' expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li'
- + ' expintegral_shi expintegral_si explicit explose exponentialize express expt'
- + ' exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum'
- + ' factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements'
- + ' fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge'
- + ' file_search file_type fillarray findde find_root find_root_abs find_root_error'
- + ' find_root_rel first fix flatten flength float floatnump floor flower_snark'
- + ' flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran'
- + ' fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp'
- + ' foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s'
- + ' from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp'
- + ' fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units'
- + ' fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized'
- + ' gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide'
- + ' gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym'
- + ' geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean'
- + ' geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string'
- + ' get_pixel get_plot_option get_tex_environment get_tex_environment_default'
- + ' get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close'
- + ' gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum'
- + ' gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import'
- + ' graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery'
- + ' graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph'
- + ' grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path'
- + ' hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite'
- + ' hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description'
- + ' hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph'
- + ' icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy'
- + ' ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart'
- + ' imetric implicit implicit_derivative implicit_plot indexed_tensor indices'
- + ' induced_subgraph inferencep inference_result infix info_display init_atensor'
- + ' init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions'
- + ' integrate intersect intersection intervalp intopois intosum invariant1 invariant2'
- + ' inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc'
- + ' inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns'
- + ' inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint'
- + ' invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph'
- + ' is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate'
- + ' isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph'
- + ' items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc'
- + ' jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd'
- + ' jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill'
- + ' killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis'
- + ' kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform'
- + ' kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete'
- + ' kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace'
- + ' kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2'
- + ' kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson'
- + ' kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange'
- + ' laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp'
- + ' lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length'
- + ' let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit'
- + ' Lindstedt linear linearinterpol linear_program linear_regression line_graph'
- + ' linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials'
- + ' listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry'
- + ' log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst'
- + ' lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact'
- + ' lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub'
- + ' lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma'
- + ' make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country'
- + ' make_polygon make_random_state make_rgb_picture makeset make_string_input_stream'
- + ' make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom'
- + ' maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display'
- + ' mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker'
- + ' max max_clique max_degree max_flow maximize_lp max_independent_set max_matching'
- + ' maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform'
- + ' mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete'
- + ' mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic'
- + ' mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t'
- + ' mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull'
- + ' median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree'
- + ' min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor'
- + ' minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton'
- + ' mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions'
- + ' multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff'
- + ' multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary'
- + ' natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext'
- + ' newdet new_graph newline newton new_variable next_prime nicedummies niceindices'
- + ' ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp'
- + ' nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst'
- + ' nthroot nullity nullspace num numbered_boundaries numberp number_to_octets'
- + ' num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai'
- + ' nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin'
- + ' oid_to_octets op opena opena_binary openr openr_binary openw openw_binary'
- + ' operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless'
- + ' orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap'
- + ' out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface'
- + ' parg parGosper parse_string parse_timedate part part2cont partfrac partition'
- + ' partition_set partpol path_digraph path_graph pathname_directory pathname_name'
- + ' pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform'
- + ' pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete'
- + ' pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal'
- + ' pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal'
- + ' pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t'
- + ' pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph'
- + ' petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding'
- + ' playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff'
- + ' poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar'
- + ' polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion'
- + ' poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal'
- + ' poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal'
- + ' poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation'
- + ' poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm'
- + ' poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form'
- + ' poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part'
- + ' poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension'
- + ' poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod'
- + ' powerseries powerset prefix prev_prime primep primes principal_components'
- + ' print printf printfile print_graph printpois printprops prodrac product properties'
- + ' propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct'
- + ' puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp'
- + ' quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile'
- + ' quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2'
- + ' quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f'
- + ' quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel'
- + ' quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal'
- + ' quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t'
- + ' quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t'
- + ' quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan'
- + ' radius random random_bernoulli random_beta random_binomial random_bipartite_graph'
- + ' random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform'
- + ' random_exp random_f random_gamma random_general_finite_discrete random_geometric'
- + ' random_graph random_graph1 random_gumbel random_hypergeometric random_laplace'
- + ' random_logistic random_lognormal random_negative_binomial random_network'
- + ' random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto'
- + ' random_permutation random_poisson random_rayleigh random_regular_graph random_student_t'
- + ' random_tournament random_tree random_weibull range rank rat ratcoef ratdenom'
- + ' ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump'
- + ' ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array'
- + ' read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline'
- + ' read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate'
- + ' realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar'
- + ' rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus'
- + ' rem remainder remarray rembox remcomps remcon remcoord remfun remfunction'
- + ' remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions'
- + ' remove_fundamental_units remove_plot_option remove_vertex rempart remrule'
- + ' remsym remvalue rename rename_file reset reset_displays residue resolvante'
- + ' resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein'
- + ' resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer'
- + ' rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann'
- + ' rinvariant risch rk rmdir rncombine romberg room rootscontract round row'
- + ' rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i'
- + ' scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description'
- + ' scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second'
- + ' sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight'
- + ' setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state'
- + ' set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications'
- + ' set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path'
- + ' show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform'
- + ' simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert'
- + ' sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial'
- + ' skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp'
- + ' skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric'
- + ' skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic'
- + ' skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t'
- + ' skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t'
- + ' skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph'
- + ' smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve'
- + ' solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export'
- + ' sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1'
- + ' spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition'
- + ' sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus'
- + ' ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot'
- + ' starplot_description status std std1 std_bernoulli std_beta std_binomial'
- + ' std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma'
- + ' std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace'
- + ' std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t'
- + ' std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull'
- + ' stemplot stirling stirling1 stirling2 strim striml strimr string stringout'
- + ' stringp strong_components struve_h struve_l sublis sublist sublist_indices'
- + ' submatrix subsample subset subsetp subst substinpart subst_parallel substpart'
- + ' substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext'
- + ' symbolp symmdifference symmetricp system take_channel take_inference tan'
- + ' tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract'
- + ' tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference'
- + ' test_normality test_proportion test_proportions_difference test_rank_sum'
- + ' test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display'
- + ' texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter'
- + ' toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep'
- + ' totalfourier totient tpartpol trace tracematrix trace_options transform_sample'
- + ' translate translate_file transpose treefale tree_reduce treillis treinat'
- + ' triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate'
- + ' truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph'
- + ' truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget'
- + ' ultraspherical underlying_graph undiff union unique uniteigenvectors unitp'
- + ' units unit_step unitvector unorder unsum untellrat untimer'
- + ' untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli'
- + ' var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform'
- + ' var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel'
- + ' var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial'
- + ' var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson'
- + ' var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp'
- + ' verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance'
- + ' vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle'
- + ' vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j'
- + ' wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian'
- + ' xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta'
- + ' zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors'
- + ' zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table'
- + ' absboxchar activecontexts adapt_depth additive adim aform algebraic'
- + ' algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic'
- + ' animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar'
- + ' asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top'
- + ' azimuth background background_color backsubst berlefact bernstein_explicit'
- + ' besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest'
- + ' border boundaries_array box boxchar breakup %c capping cauchysum cbrange'
- + ' cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics'
- + ' colorbox columns commutative complex cone context contexts contour contour_levels'
- + ' cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp'
- + ' cube current_let_rule_package cylinder data_file_name debugmode decreasing'
- + ' default_let_rule_package delay dependencies derivabbrev derivsubst detout'
- + ' diagmetric diff dim dimensions dispflag display2d|10 display_format_internal'
- + ' distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor'
- + ' doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules'
- + ' dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart'
- + ' edge_color edge_coloring edge_partition edge_type edge_width %edispflag'
- + ' elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer'
- + ' epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type'
- + ' %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand'
- + ' expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine'
- + ' factlim factorflag factorial_expand factors_only fb feature features'
- + ' file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10'
- + ' file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color'
- + ' fill_density filled_func fixed_vertices flipflag float2bf font font_size'
- + ' fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim'
- + ' gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command'
- + ' gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command'
- + ' gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command'
- + ' gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble'
- + ' gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args'
- + ' Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both'
- + ' head_length head_type height hypergeometric_representation %iargs ibase'
- + ' icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form'
- + ' ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval'
- + ' infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued'
- + ' integrate_use_rootsof integration_constant integration_constant_counter interpolate_color'
- + ' intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr'
- + ' julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment'
- + ' label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max'
- + ' leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear'
- + ' linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params'
- + ' linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname'
- + ' loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx'
- + ' logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros'
- + ' mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult'
- + ' matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10'
- + ' maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint'
- + ' maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp'
- + ' mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver'
- + ' modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag'
- + ' newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc'
- + ' noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np'
- + ' npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties'
- + ' opsubst optimprefix optionset orientation origin orthopoly_returns_intervals'
- + ' outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution'
- + ' %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart'
- + ' png_file pochhammer_max_index points pointsize point_size points_joined point_type'
- + ' poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm'
- + ' poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list'
- + ' poly_secondary_elimination_order poly_top_reduction_only posfun position'
- + ' powerdisp pred prederror primep_number_of_tests product_use_gamma program'
- + ' programmode promote_float_to_bigfloat prompt proportional_axes props psexpand'
- + ' ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof'
- + ' ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann'
- + ' ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw'
- + ' refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs'
- + ' rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy'
- + ' same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck'
- + ' setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width'
- + ' show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type'
- + ' show_vertices show_weight simp simplified_output simplify_products simpproduct'
- + ' simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn'
- + ' solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag'
- + ' stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda'
- + ' subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric'
- + ' tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials'
- + ' tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch'
- + ' tr track transcompile transform transform_xy translate_fast_arrays transparent'
- + ' transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex'
- + ' tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign'
- + ' trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars'
- + ' tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode'
- + ' tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes'
- + ' ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble'
- + ' usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition'
- + ' vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface'
- + ' wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel'
- + ' xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate'
- + ' xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel'
- + ' xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width'
- + ' ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis'
- + ' ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis'
- + ' yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob'
- + ' zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest';
- var SYMBOLS = '_ __ %|0 %%|0';
-
- return {
- lexemes: '[A-Za-z_%][0-9A-Za-z_%]*',
- keywords: {
- keyword: KEYWORDS,
- literal: LITERALS,
- built_in: BUILTIN_FUNCTIONS,
- symbol: SYMBOLS,
- },
- contains: [
- {
- className: 'comment',
- begin: '/\\*',
- end: '\\*/',
- contains: ['self']
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'number',
- relevance: 0,
- variants: [
- {
- // float number w/ exponent
- // hmm, I wonder if we ought to include other exponent markers?
- begin: '\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b',
- },
- {
- // bigfloat number
- begin: '\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b',
- relevance: 10
- },
- {
- // float number w/out exponent
- // Doesn't seem to recognize floats which start with '.'
- begin: '\\b(\\.\\d+|\\d+\\.\\d+)\\b',
- },
- {
- // integer in base up to 36
- // Doesn't seem to recognize integers which end with '.'
- begin: '\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b',
- }
- ]
- }
- ],
- illegal: /@/
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mel.js b/swh/web/static/jssources/highlight.js/lib/languages/mel.js
deleted file mode 100644
index 3dca1d5a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mel.js
+++ /dev/null
@@ -1,224 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords:
- 'int float string vector matrix if else switch case default while do for in break ' +
- 'continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic ' +
- 'addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey ' +
- 'affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve ' +
- 'alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor ' +
- 'animDisplay animView annotate appendStringArray applicationName applyAttrPreset ' +
- 'applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx ' +
- 'artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu ' +
- 'artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand ' +
- 'assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface ' +
- 'attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu ' +
- 'attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp ' +
- 'attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery ' +
- 'autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults ' +
- 'bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership ' +
- 'bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType ' +
- 'boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu ' +
- 'buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge ' +
- 'cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch ' +
- 'catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox ' +
- 'character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp ' +
- 'checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip ' +
- 'clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore ' +
- 'closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter ' +
- 'cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color ' +
- 'colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp ' +
- 'colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem ' +
- 'componentEditor compositingInterop computePolysetVolume condition cone confirmDialog ' +
- 'connectAttr connectControl connectDynamic connectJoint connectionInfo constrain ' +
- 'constrainValue constructionHistory container containsMultibyte contextInfo control ' +
- 'convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation ' +
- 'convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache ' +
- 'cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel ' +
- 'cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver ' +
- 'cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor ' +
- 'createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer ' +
- 'createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse ' +
- 'currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx ' +
- 'curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface ' +
- 'curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox ' +
- 'defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete ' +
- 'deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes ' +
- 'delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo ' +
- 'dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable ' +
- 'disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected ' +
- 'displayColor displayCull displayLevelOfDetail displayPref displayRGBColor ' +
- 'displaySmoothness displayStats displayString displaySurface distanceDimContext ' +
- 'distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct ' +
- 'doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator ' +
- 'duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression ' +
- 'dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor ' +
- 'dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers ' +
- 'editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor ' +
- 'editorTemplate effector emit emitter enableDevice encodeString endString endsWith env ' +
- 'equivalent equivalentTol erf error eval evalDeferred evalEcho event ' +
- 'exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp ' +
- 'expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof ' +
- 'fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo ' +
- 'filetest filletCurve filter filterCurve filterExpand filterStudioImport ' +
- 'findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster ' +
- 'finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar ' +
- 'floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo ' +
- 'fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint ' +
- 'frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss ' +
- 'geometryConstraint getApplicationVersionAsFloat getAttr getClassification ' +
- 'getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes ' +
- 'getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender ' +
- 'glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl ' +
- 'gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid ' +
- 'gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap ' +
- 'HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor ' +
- 'HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached ' +
- 'HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel ' +
- 'headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey ' +
- 'hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender ' +
- 'hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox ' +
- 'iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ' +
- 'ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ' +
- 'ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform ' +
- 'insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance ' +
- 'instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp ' +
- 'interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf ' +
- 'isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect ' +
- 'itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx ' +
- 'jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner ' +
- 'keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx ' +
- 'keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx ' +
- 'keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx ' +
- 'keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor ' +
- 'layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList ' +
- 'lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep ' +
- 'listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory ' +
- 'listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation ' +
- 'listNodeTypes listPanelCategories listRelatives listSets listTransforms ' +
- 'listUnselected listerEditor loadFluid loadNewShelf loadPlugin ' +
- 'loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log ' +
- 'longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive ' +
- 'makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext ' +
- 'manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx ' +
- 'manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout ' +
- 'menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp ' +
- 'mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move ' +
- 'moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute ' +
- 'nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast ' +
- 'nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint ' +
- 'normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect ' +
- 'nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref ' +
- 'nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType ' +
- 'objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface ' +
- 'offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit ' +
- 'orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier ' +
- 'paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration ' +
- 'panelHistory paramDimContext paramDimension paramLocator parent parentConstraint ' +
- 'particle particleExists particleInstancer particleRenderInfo partition pasteKey ' +
- 'pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture ' +
- 'pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo ' +
- 'pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult ' +
- 'pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend ' +
- 'polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal ' +
- 'polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge ' +
- 'polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge ' +
- 'polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet ' +
- 'polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet ' +
- 'polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection ' +
- 'polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge ' +
- 'polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet ' +
- 'polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix ' +
- 'polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut ' +
- 'polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet ' +
- 'polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge ' +
- 'polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex ' +
- 'polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection ' +
- 'polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection ' +
- 'polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint ' +
- 'polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate ' +
- 'polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge ' +
- 'polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing ' +
- 'polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet ' +
- 'polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace ' +
- 'popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer ' +
- 'projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx ' +
- 'propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd ' +
- 'python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection ' +
- 'radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl ' +
- 'readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference ' +
- 'referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE ' +
- 'registerPluginResource rehash reloadImage removeJoint removeMultiInstance ' +
- 'removePanelCategory rename renameAttr renameSelectionList renameUI render ' +
- 'renderGlobalsNode renderInfo renderLayerButton renderLayerParent ' +
- 'renderLayerPostProcess renderLayerUnparent renderManip renderPartition ' +
- 'renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor ' +
- 'renderWindowSelectContext renderer reorder reorderDeformers requires reroot ' +
- 'resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget ' +
- 'reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx ' +
- 'rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout ' +
- 'runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage ' +
- 'saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale ' +
- 'scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor ' +
- 'sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable ' +
- 'scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt ' +
- 'searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey ' +
- 'selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType ' +
- 'selectedNodes selectionConnection separator setAttr setAttrEnumResource ' +
- 'setAttrMapping setAttrNiceNameResource setConstraintRestPosition ' +
- 'setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr ' +
- 'setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe ' +
- 'setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag ' +
- 'setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject ' +
- 'setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets ' +
- 'shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare ' +
- 'shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField ' +
- 'shortNameOf showHelp showHidden showManipCtx showSelectionInTitle ' +
- 'showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface ' +
- 'size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep ' +
- 'snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound ' +
- 'soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort ' +
- 'spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString ' +
- 'startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp ' +
- 'stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex ' +
- 'stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex ' +
- 'stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString ' +
- 'stringToStringArray strip stripPrefixFromName stroke subdAutoProjection ' +
- 'subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV ' +
- 'subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror ' +
- 'subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease ' +
- 'subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring ' +
- 'surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton ' +
- 'symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext ' +
- 'texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext ' +
- 'texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text ' +
- 'textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList ' +
- 'textToShelf textureDisplacePlane textureHairColor texturePlacementContext ' +
- 'textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath ' +
- 'toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower ' +
- 'toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper ' +
- 'trace track trackCtx transferAttributes transformCompare transformLimits translator ' +
- 'trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence ' +
- 'twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit ' +
- 'unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink ' +
- 'uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane ' +
- 'viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex ' +
- 'waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire ' +
- 'wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform',
- illegal: '',
- contains: [
- hljs.C_NUMBER_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '`', end: '`',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- { // eats variables
- begin: '[\\$\\%\\@](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)'
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mercury.js b/swh/web/static/jssources/highlight.js/lib/languages/mercury.js
deleted file mode 100644
index 32568449..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mercury.js
+++ /dev/null
@@ -1,81 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- 'module use_module import_module include_module end_module initialise ' +
- 'mutable initialize finalize finalise interface implementation pred ' +
- 'mode func type inst solver any_pred any_func is semidet det nondet ' +
- 'multi erroneous failure cc_nondet cc_multi typeclass instance where ' +
- 'pragma promise external trace atomic or_else require_complete_switch ' +
- 'require_det require_semidet require_multi require_nondet ' +
- 'require_cc_multi require_cc_nondet require_erroneous require_failure',
- meta:
- // pragma
- 'inline no_inline type_spec source_file fact_table obsolete memo ' +
- 'loop_check minimal_model terminates does_not_terminate ' +
- 'check_termination promise_equivalent_clauses ' +
- // preprocessor
- 'foreign_proc foreign_decl foreign_code foreign_type ' +
- 'foreign_import_module foreign_export_enum foreign_export ' +
- 'foreign_enum may_call_mercury will_not_call_mercury thread_safe ' +
- 'not_thread_safe maybe_thread_safe promise_pure promise_semipure ' +
- 'tabled_for_io local untrailed trailed attach_to_io_state ' +
- 'can_pass_as_mercury_type stable will_not_throw_exception ' +
- 'may_modify_trail will_not_modify_trail may_duplicate ' +
- 'may_not_duplicate affects_liveness does_not_affect_liveness ' +
- 'doesnt_affect_liveness no_sharing unknown_sharing sharing',
- built_in:
- 'some all not if then else true fail false try catch catch_any ' +
- 'semidet_true semidet_false semidet_fail impure_true impure semipure'
- };
-
- var COMMENT = hljs.COMMENT('%', '$');
-
- var NUMCODE = {
- className: 'number',
- begin: "0'.\\|0[box][0-9a-fA-F]*"
- };
-
- var ATOM = hljs.inherit(hljs.APOS_STRING_MODE, {relevance: 0});
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {relevance: 0});
- var STRING_FMT = {
- className: 'subst',
- begin: '\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]',
- relevance: 0
- };
- STRING.contains.push(STRING_FMT);
-
- var IMPLICATION = {
- className: 'built_in',
- variants: [
- {begin: '<=>'},
- {begin: '<=', relevance: 0},
- {begin: '=>', relevance: 0},
- {begin: '/\\\\'},
- {begin: '\\\\/'}
- ]
- };
-
- var HEAD_BODY_CONJUNCTION = {
- className: 'built_in',
- variants: [
- {begin: ':-\\|-->'},
- {begin: '=', relevance: 0}
- ]
- };
-
- return {
- aliases: ['m', 'moo'],
- keywords: KEYWORDS,
- contains: [
- IMPLICATION,
- HEAD_BODY_CONJUNCTION,
- COMMENT,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMCODE,
- hljs.NUMBER_MODE,
- ATOM,
- STRING,
- {begin: /:-/} // relevance booster
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mipsasm.js b/swh/web/static/jssources/highlight.js/lib/languages/mipsasm.js
deleted file mode 100644
index d1f0404d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mipsasm.js
+++ /dev/null
@@ -1,85 +0,0 @@
-module.exports = function(hljs) {
- //local labels: %?[FB]?[AT]?\d{1,2}\w+
- return {
- case_insensitive: true,
- aliases: ['mips'],
- lexemes: '\\.?' + hljs.IDENT_RE,
- keywords: {
- meta:
- //GNU preprocs
- '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ',
- built_in:
- '$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 ' + // integer registers
- '$16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 ' + // integer registers
- 'zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 ' + // integer register aliases
- 't0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 ' + // integer register aliases
- 'k0 k1 gp sp fp ra ' + // integer register aliases
- '$f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 ' + // floating-point registers
- '$f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 ' + // floating-point registers
- 'Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi ' + // Coprocessor 0 registers
- 'HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId ' + // Coprocessor 0 registers
- 'EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ' + // Coprocessor 0 registers
- 'ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt ' // Coprocessor 0 registers
- },
- contains: [
- {
- className: 'keyword',
- begin: '\\b('+ //mnemonics
- // 32-bit integer instructions
- 'addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|' +
- 'bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\.hb)?|jr(\.hb)?|lbu?|lhu?|' +
- 'll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|' +
- 'multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|' +
- 'srlv?|subu?|sw[lr]?|xori?|wsbh|' +
- // floating-point instructions
- 'abs\.[sd]|add\.[sd]|alnv.ps|bc1[ft]l?|' +
- 'c\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\.[sd]|' +
- '(ceil|floor|round|trunc)\.[lw]\.[sd]|cfc1|cvt\.d\.[lsw]|' +
- 'cvt\.l\.[dsw]|cvt\.ps\.s|cvt\.s\.[dlw]|cvt\.s\.p[lu]|cvt\.w\.[dls]|' +
- 'div\.[ds]|ldx?c1|luxc1|lwx?c1|madd\.[sd]|mfc1|mov[fntz]?\.[ds]|' +
- 'msub\.[sd]|mth?c1|mul\.[ds]|neg\.[ds]|nmadd\.[ds]|nmsub\.[ds]|' +
- 'p[lu][lu]\.ps|recip\.fmt|r?sqrt\.[ds]|sdx?c1|sub\.[ds]|suxc1|' +
- 'swx?c1|' +
- // system control instructions
- 'break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|' +
- 'rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|' +
- 'tlti?u?|tnei?|wait|wrpgpr'+
- ')',
- end: '\\s'
- },
- hljs.COMMENT('[;#]', '$'),
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '\'',
- end: '[^\\\\]\'',
- relevance: 0
- },
- {
- className: 'title',
- begin: '\\|', end: '\\|',
- illegal: '\\n',
- relevance: 0
- },
- {
- className: 'number',
- variants: [
- {begin: '0x[0-9a-f]+'}, //hex
- {begin: '\\b-?\\d+'} //bare number
- ],
- relevance: 0
- },
- {
- className: 'symbol',
- variants: [
- {begin: '^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:'}, //GNU MIPS syntax
- {begin: '^\\s*[0-9]+:'}, // numbered local labels
- {begin: '[0-9]+[bf]' } // number local label reference (backwards, forwards)
- ],
- relevance: 0
- }
- ],
- illegal: '\/'
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mizar.js b/swh/web/static/jssources/highlight.js/lib/languages/mizar.js
deleted file mode 100644
index 467f2f2b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mizar.js
+++ /dev/null
@@ -1,18 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords:
- 'environ vocabularies notations constructors definitions ' +
- 'registrations theorems schemes requirements begin end definition ' +
- 'registration cluster existence pred func defpred deffunc theorem ' +
- 'proof let take assume then thus hence ex for st holds consider ' +
- 'reconsider such that and in provided of as from be being by means ' +
- 'equals implies iff redefine define now not or attr is mode ' +
- 'suppose per cases set thesis contradiction scheme reserve struct ' +
- 'correctness compatibility coherence symmetry assymetry ' +
- 'reflexivity irreflexivity connectedness uniqueness commutativity ' +
- 'idempotence involutiveness projectivity',
- contains: [
- hljs.COMMENT('::', '$')
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/mojolicious.js b/swh/web/static/jssources/highlight.js/lib/languages/mojolicious.js
deleted file mode 100644
index 6ad3e251..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/mojolicious.js
+++ /dev/null
@@ -1,24 +0,0 @@
-module.exports = function(hljs) {
- return {
- subLanguage: 'xml',
- contains: [
- {
- className: 'meta',
- begin: '^__(END|DATA)__$'
- },
- // mojolicious line
- {
- begin: "^\\s*%{1,2}={0,2}", end: '$',
- subLanguage: 'perl'
- },
- // mojolicious block
- {
- begin: "<%{1,2}={0,2}",
- end: "={0,1}%>",
- subLanguage: 'perl',
- excludeBegin: true,
- excludeEnd: true
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/monkey.js b/swh/web/static/jssources/highlight.js/lib/languages/monkey.js
deleted file mode 100644
index 5e9b9624..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/monkey.js
+++ /dev/null
@@ -1,74 +0,0 @@
-module.exports = function(hljs) {
- var NUMBER = {
- className: 'number', relevance: 0,
- variants: [
- {
- begin: '[$][a-fA-F0-9]+'
- },
- hljs.NUMBER_MODE
- ]
- };
-
- return {
- case_insensitive: true,
- keywords: {
- keyword: 'public private property continue exit extern new try catch ' +
- 'eachin not abstract final select case default const local global field ' +
- 'end if then else elseif endif while wend repeat until forever for ' +
- 'to step next return module inline throw import',
-
- built_in: 'DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil ' +
- 'Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI',
-
- literal: 'true false null and or shl shr mod'
- },
- illegal: /\/\*/,
- contains: [
- hljs.COMMENT('#rem', '#end'),
- hljs.COMMENT(
- "'",
- '$',
- {
- relevance: 0
- }
- ),
- {
- className: 'function',
- beginKeywords: 'function method', end: '[(=:]|$',
- illegal: /\n/,
- contains: [
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class interface', end: '$',
- contains: [
- {
- beginKeywords: 'extends implements'
- },
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- className: 'built_in',
- begin: '\\b(self|super)\\b'
- },
- {
- className: 'meta',
- begin: '\\s*#', end: '$',
- keywords: {'meta-keyword': 'if else elseif endif end then'}
- },
- {
- className: 'meta',
- begin: '^\\s*strict\\b'
- },
- {
- beginKeywords: 'alias', end: '=',
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- hljs.QUOTE_STRING_MODE,
- NUMBER
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/moonscript.js b/swh/web/static/jssources/highlight.js/lib/languages/moonscript.js
deleted file mode 100644
index 9b9710ea..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/moonscript.js
+++ /dev/null
@@ -1,111 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- // Moonscript keywords
- 'if then not for in while do return else elseif break continue switch and or ' +
- 'unless when class extends super local import export from using',
- literal:
- 'true false nil',
- built_in:
- '_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load ' +
- 'loadfile loadstring module next pairs pcall print rawequal rawget rawset require ' +
- 'select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug ' +
- 'io math os package string table'
- };
- var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
- var SUBST = {
- className: 'subst',
- begin: /#\{/, end: /}/,
- keywords: KEYWORDS
- };
- var EXPRESSIONS = [
- hljs.inherit(hljs.C_NUMBER_MODE,
- {starts: {end: '(\\s*/)?', relevance: 0}}), // a number tries to eat the following slash to prevent treating it as a regexp
- {
- className: 'string',
- variants: [
- {
- begin: /'/, end: /'/,
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: /"/, end: /"/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- }
- ]
- },
- {
- className: 'built_in',
- begin: '@__' + hljs.IDENT_RE
- },
- {
- begin: '@' + hljs.IDENT_RE // relevance booster on par with CoffeeScript
- },
- {
- begin: hljs.IDENT_RE + '\\\\' + hljs.IDENT_RE // inst\method
- }
- ];
- SUBST.contains = EXPRESSIONS;
-
- var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: JS_IDENT_RE});
- var PARAMS_RE = '(\\(.*\\))?\\s*\\B[-=]>';
- var PARAMS = {
- className: 'params',
- begin: '\\([^\\(]', returnBegin: true,
- /* We need another contained nameless mode to not have every nested
- pair of parens to be called "params" */
- contains: [{
- begin: /\(/, end: /\)/,
- keywords: KEYWORDS,
- contains: ['self'].concat(EXPRESSIONS)
- }]
- };
-
- return {
- aliases: ['moon'],
- keywords: KEYWORDS,
- illegal: /\/\*/,
- contains: EXPRESSIONS.concat([
- hljs.COMMENT('--', '$'),
- {
- className: 'function', // function: -> =>
- begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + PARAMS_RE, end: '[-=]>',
- returnBegin: true,
- contains: [TITLE, PARAMS]
- },
- {
- begin: /[\(,:=]\s*/, // anonymous function start
- relevance: 0,
- contains: [
- {
- className: 'function',
- begin: PARAMS_RE, end: '[-=]>',
- returnBegin: true,
- contains: [PARAMS]
- }
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class',
- end: '$',
- illegal: /[:="\[\]]/,
- contains: [
- {
- beginKeywords: 'extends',
- endsWithParent: true,
- illegal: /[:="\[\]]/,
- contains: [TITLE]
- },
- TITLE
- ]
- },
- {
- className: 'name', // table
- begin: JS_IDENT_RE + ':', end: ':',
- returnBegin: true, returnEnd: true,
- relevance: 0
- }
- ])
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/n1ql.js b/swh/web/static/jssources/highlight.js/lib/languages/n1ql.js
deleted file mode 100644
index ab2e399c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/n1ql.js
+++ /dev/null
@@ -1,68 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- contains: [
- {
- beginKeywords:
- 'build create index delete drop explain infer|10 insert merge prepare select update upsert|10',
- end: /;/, endsWithParent: true,
- keywords: {
- // Taken from http://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/reservedwords.html
- keyword:
- 'all alter analyze and any array as asc begin between binary boolean break bucket build by call ' +
- 'case cast cluster collate collection commit connect continue correlate cover create database ' +
- 'dataset datastore declare decrement delete derived desc describe distinct do drop each element ' +
- 'else end every except exclude execute exists explain fetch first flatten for force from ' +
- 'function grant group gsi having if ignore ilike in include increment index infer inline inner ' +
- 'insert intersect into is join key keys keyspace known last left let letting like limit lsm map ' +
- 'mapping matched materialized merge minus namespace nest not number object offset on ' +
- 'option or order outer over parse partition password path pool prepare primary private privilege ' +
- 'procedure public raw realm reduce rename return returning revoke right role rollback satisfies ' +
- 'schema select self semi set show some start statistics string system then to transaction trigger ' +
- 'truncate under union unique unknown unnest unset update upsert use user using validate value ' +
- 'valued values via view when where while with within work xor',
- // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/literals.html
- literal:
- 'true false null missing|5',
- // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/functions.html
- built_in:
- 'array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length ' +
- 'array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace ' +
- 'array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull ' +
- 'missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis ' +
- 'date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str ' +
- 'duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str ' +
- 'str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode ' +
- 'base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random ' +
- 'round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values ' +
- 'object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position ' +
- 'regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper ' +
- 'isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring'
- },
- contains: [
- {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 0
- },
- {
- className: 'string',
- begin: '"', end: '"',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 0
- },
- {
- className: 'symbol',
- begin: '`', end: '`',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 2
- },
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- },
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/nginx.js b/swh/web/static/jssources/highlight.js/lib/languages/nginx.js
deleted file mode 100644
index 2b14b043..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/nginx.js
+++ /dev/null
@@ -1,92 +0,0 @@
-module.exports = function(hljs) {
- var VAR = {
- className: 'variable',
- variants: [
- {begin: /\$\d+/},
- {begin: /\$\{/, end: /}/},
- {begin: '[\\$\\@]' + hljs.UNDERSCORE_IDENT_RE}
- ]
- };
- var DEFAULT = {
- endsWithParent: true,
- lexemes: '[a-z/_]+',
- keywords: {
- literal:
- 'on off yes no true false none blocked debug info notice warn error crit ' +
- 'select break last permanent redirect kqueue rtsig epoll poll /dev/poll'
- },
- relevance: 0,
- illegal: '=>',
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, VAR],
- variants: [
- {begin: /"/, end: /"/},
- {begin: /'/, end: /'/}
- ]
- },
- // this swallows entire URLs to avoid detecting numbers within
- {
- begin: '([a-z]+):/', end: '\\s', endsWithParent: true, excludeEnd: true,
- contains: [VAR]
- },
- {
- className: 'regexp',
- contains: [hljs.BACKSLASH_ESCAPE, VAR],
- variants: [
- {begin: "\\s\\^", end: "\\s|{|;", returnEnd: true},
- // regexp locations (~, ~*)
- {begin: "~\\*?\\s+", end: "\\s|{|;", returnEnd: true},
- // *.example.com
- {begin: "\\*(\\.[a-z\\-]+)+"},
- // sub.example.*
- {begin: "([a-z\\-]+\\.)+\\*"}
- ]
- },
- // IP
- {
- className: 'number',
- begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b'
- },
- // units
- {
- className: 'number',
- begin: '\\b\\d+[kKmMgGdshdwy]*\\b',
- relevance: 0
- },
- VAR
- ]
- };
-
- return {
- aliases: ['nginxconf'],
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- begin: hljs.UNDERSCORE_IDENT_RE + '\\s+{', returnBegin: true,
- end: '{',
- contains: [
- {
- className: 'section',
- begin: hljs.UNDERSCORE_IDENT_RE
- }
- ],
- relevance: 0
- },
- {
- begin: hljs.UNDERSCORE_IDENT_RE + '\\s', end: ';|{', returnBegin: true,
- contains: [
- {
- className: 'attribute',
- begin: hljs.UNDERSCORE_IDENT_RE,
- starts: DEFAULT
- }
- ],
- relevance: 0
- }
- ],
- illegal: '[^\\s\\}]'
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/nimrod.js b/swh/web/static/jssources/highlight.js/lib/languages/nimrod.js
deleted file mode 100644
index f47dcfa2..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/nimrod.js
+++ /dev/null
@@ -1,54 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['nim'],
- keywords: {
- keyword:
- 'addr and as asm bind block break case cast const continue converter ' +
- 'discard distinct div do elif else end enum except export finally ' +
- 'for from generic if import in include interface is isnot iterator ' +
- 'let macro method mixin mod nil not notin object of or out proc ptr ' +
- 'raise ref return shl shr static template try tuple type using var ' +
- 'when while with without xor yield',
- literal:
- 'shared guarded stdin stdout stderr result true false',
- built_in:
- 'int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float ' +
- 'float32 float64 bool char string cstring pointer expr stmt void ' +
- 'auto any range array openarray varargs seq set clong culong cchar ' +
- 'cschar cshort cint csize clonglong cfloat cdouble clongdouble ' +
- 'cuchar cushort cuint culonglong cstringarray semistatic'
- },
- contains: [ {
- className: 'meta', // Actually pragma
- begin: /{\./,
- end: /\.}/,
- relevance: 10
- }, {
- className: 'string',
- begin: /[a-zA-Z]\w*"/,
- end: /"/,
- contains: [{begin: /""/}]
- }, {
- className: 'string',
- begin: /([a-zA-Z]\w*)?"""/,
- end: /"""/
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'type',
- begin: /\b[A-Z]\w+\b/,
- relevance: 0
- }, {
- className: 'number',
- relevance: 0,
- variants: [
- {begin: /\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},
- {begin: /\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},
- {begin: /\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},
- {begin: /\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}
- ]
- },
- hljs.HASH_COMMENT_MODE
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/nix.js b/swh/web/static/jssources/highlight.js/lib/languages/nix.js
deleted file mode 100644
index 94938976..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/nix.js
+++ /dev/null
@@ -1,48 +0,0 @@
-module.exports = function(hljs) {
- var NIX_KEYWORDS = {
- keyword:
- 'rec with let in inherit assert if else then',
- literal:
- 'true false or and null',
- built_in:
- 'import abort baseNameOf dirOf isNull builtins map removeAttrs throw ' +
- 'toString derivation'
- };
- var ANTIQUOTE = {
- className: 'subst',
- begin: /\$\{/,
- end: /}/,
- keywords: NIX_KEYWORDS
- };
- var ATTRS = {
- begin: /[a-zA-Z0-9-_]+(\s*=)/, returnBegin: true,
- relevance: 0,
- contains: [
- {
- className: 'attr',
- begin: /\S+/
- }
- ]
- };
- var STRING = {
- className: 'string',
- contains: [ANTIQUOTE],
- variants: [
- {begin: "''", end: "''"},
- {begin: '"', end: '"'}
- ]
- };
- var EXPRESSIONS = [
- hljs.NUMBER_MODE,
- hljs.HASH_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRING,
- ATTRS
- ];
- ANTIQUOTE.contains = EXPRESSIONS;
- return {
- aliases: ["nixos"],
- keywords: NIX_KEYWORDS,
- contains: EXPRESSIONS
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/nsis.js b/swh/web/static/jssources/highlight.js/lib/languages/nsis.js
deleted file mode 100644
index 57a22696..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/nsis.js
+++ /dev/null
@@ -1,105 +0,0 @@
-module.exports = function(hljs) {
- var CONSTANTS = {
- className: 'variable',
- begin: /\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/
- };
-
- var DEFINES = {
- // ${defines}
- className: 'variable',
- begin: /\$+{[\w\.:-]+}/
- };
-
- var VARIABLES = {
- // $variables
- className: 'variable',
- begin: /\$+\w+/,
- illegal: /\(\){}/
- };
-
- var LANGUAGES = {
- // $(language_strings)
- className: 'variable',
- begin: /\$+\([\w\^\.:-]+\)/
- };
-
- var PARAMETERS = {
- // command parameters
- className: 'params',
- begin: '(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)'
- };
-
- var COMPILER = {
- // !compiler_flags
- className: 'keyword',
- begin: /\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/
- };
-
- var METACHARS = {
- // $\n, $\r, $\t, $$
- className: 'meta',
- begin: /\$(\\[nrt]|\$)/
- };
-
- var PLUGINS = {
- // plug::ins
- className: 'class',
- begin: /\w+\:\:\w+/
- };
-
- var STRING = {
- className: 'string',
- variants: [
- {
- begin: '"', end: '"'
- },
- {
- begin: '\'', end: '\''
- },
- {
- begin: '`', end: '`'
- }
- ],
- illegal: /\n/,
- contains: [
- METACHARS,
- CONSTANTS,
- DEFINES,
- VARIABLES,
- LANGUAGES
- ]
- };
-
- return {
- case_insensitive: false,
- keywords: {
- keyword:
- 'Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle',
- literal:
- 'admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib'
- },
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- ),
- {
- className: 'function',
- beginKeywords: 'Function PageEx Section SectionGroup', end: '$'
- },
- STRING,
- COMPILER,
- DEFINES,
- VARIABLES,
- LANGUAGES,
- PARAMETERS,
- PLUGINS,
- hljs.NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/objectivec.js b/swh/web/static/jssources/highlight.js/lib/languages/objectivec.js
deleted file mode 100644
index 6ba3809f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/objectivec.js
+++ /dev/null
@@ -1,90 +0,0 @@
-module.exports = function(hljs) {
- var API_CLASS = {
- className: 'built_in',
- begin: '\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+',
- };
- var OBJC_KEYWORDS = {
- keyword:
- 'int float while char export sizeof typedef const struct for union ' +
- 'unsigned long volatile static bool mutable if do return goto void ' +
- 'enum else break extern asm case short default double register explicit ' +
- 'signed typename this switch continue wchar_t inline readonly assign ' +
- 'readwrite self @synchronized id typeof ' +
- 'nonatomic super unichar IBOutlet IBAction strong weak copy ' +
- 'in out inout bycopy byref oneway __strong __weak __block __autoreleasing ' +
- '@private @protected @public @try @property @end @throw @catch @finally ' +
- '@autoreleasepool @synthesize @dynamic @selector @optional @required ' +
- '@encode @package @import @defs @compatibility_alias ' +
- '__bridge __bridge_transfer __bridge_retained __bridge_retain ' +
- '__covariant __contravariant __kindof ' +
- '_Nonnull _Nullable _Null_unspecified ' +
- '__FUNCTION__ __PRETTY_FUNCTION__ __attribute__ ' +
- 'getter setter retain unsafe_unretained ' +
- 'nonnull nullable null_unspecified null_resettable class instancetype ' +
- 'NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER ' +
- 'NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED ' +
- 'NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE ' +
- 'NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END ' +
- 'NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW ' +
- 'NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN',
- literal:
- 'false true FALSE TRUE nil YES NO NULL',
- built_in:
- 'BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once'
- };
- var LEXEMES = /[a-zA-Z@][a-zA-Z0-9_]*/;
- var CLASS_KEYWORDS = '@interface @class @protocol @implementation';
- return {
- aliases: ['mm', 'objc', 'obj-c'],
- keywords: OBJC_KEYWORDS,
- lexemes: LEXEMES,
- illegal: '',
- contains: [
- API_CLASS,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_NUMBER_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- variants: [
- {
- begin: '@"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '\'', end: '[^\\\\]\'',
- illegal: '[^\\\\][^\']'
- }
- ]
- },
- {
- className: 'meta',
- begin: '#',
- end: '$',
- contains: [
- {
- className: 'meta-string',
- variants: [
- { begin: '\"', end: '\"' },
- { begin: '<', end: '>' }
- ]
- }
- ]
- },
- {
- className: 'class',
- begin: '(' + CLASS_KEYWORDS.split(' ').join('|') + ')\\b', end: '({|$)', excludeEnd: true,
- keywords: CLASS_KEYWORDS, lexemes: LEXEMES,
- contains: [
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- begin: '\\.'+hljs.UNDERSCORE_IDENT_RE,
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ocaml.js b/swh/web/static/jssources/highlight.js/lib/languages/ocaml.js
deleted file mode 100644
index 2a686f85..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ocaml.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = function(hljs) {
- /* missing support for heredoc-like string (OCaml 4.0.2+) */
- return {
- aliases: ['ml'],
- keywords: {
- keyword:
- 'and as assert asr begin class constraint do done downto else end ' +
- 'exception external for fun function functor if in include ' +
- 'inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method ' +
- 'mod module mutable new object of open! open or private rec sig struct ' +
- 'then to try type val! val virtual when while with ' +
- /* camlp4 */
- 'parser value',
- built_in:
- /* built-in types */
- 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ' +
- /* (some) types in Pervasives */
- 'in_channel out_channel ref',
- literal:
- 'true false'
- },
- illegal: /\/\/|>>/,
- lexemes: '[a-z_]\\w*!?',
- contains: [
- {
- className: 'literal',
- begin: '\\[(\\|\\|)?\\]|\\(\\)',
- relevance: 0
- },
- hljs.COMMENT(
- '\\(\\*',
- '\\*\\)',
- {
- contains: ['self']
- }
- ),
- { /* type variable */
- className: 'symbol',
- begin: '\'[A-Za-z_](?!\')[\\w\']*'
- /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */
- },
- { /* polymorphic variant */
- className: 'type',
- begin: '`[A-Z][\\w\']*'
- },
- { /* module or constructor */
- className: 'type',
- begin: '\\b[A-Z][\\w\']*',
- relevance: 0
- },
- { /* don't color identifiers, but safely catch all identifiers with '*/
- begin: '[a-z_]\\w*\'[\\w\']*', relevance: 0
- },
- hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- {
- className: 'number',
- begin:
- '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' +
- '0[oO][0-7_]+[Lln]?|' +
- '0[bB][01_]+[Lln]?|' +
- '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)',
- relevance: 0
- },
- {
- begin: /[-=]>/ // relevance booster
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/openscad.js b/swh/web/static/jssources/highlight.js/lib/languages/openscad.js
deleted file mode 100644
index 4fb1bc97..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/openscad.js
+++ /dev/null
@@ -1,56 +0,0 @@
-module.exports = function(hljs) {
- var SPECIAL_VARS = {
- className: 'keyword',
- begin: '\\$(f[asn]|t|vp[rtd]|children)'
- },
- LITERALS = {
- className: 'literal',
- begin: 'false|true|PI|undef'
- },
- NUMBERS = {
- className: 'number',
- begin: '\\b\\d+(\\.\\d+)?(e-?\\d+)?', //adds 1e5, 1e-10
- relevance: 0
- },
- STRING = hljs.inherit(hljs.QUOTE_STRING_MODE,{illegal: null}),
- PREPRO = {
- className: 'meta',
- keywords: {'meta-keyword': 'include use'},
- begin: 'include|use <',
- end: '>'
- },
- PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)',
- contains: ['self', NUMBERS, STRING, SPECIAL_VARS, LITERALS]
- },
- MODIFIERS = {
- begin: '[*!#%]',
- relevance: 0
- },
- FUNCTIONS = {
- className: 'function',
- beginKeywords: 'module function',
- end: '\\=|\\{',
- contains: [PARAMS, hljs.UNDERSCORE_TITLE_MODE]
- };
-
- return {
- aliases: ['scad'],
- keywords: {
- keyword: 'function module include use for intersection_for if else \\%',
- literal: 'false true PI undef',
- built_in: 'circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- NUMBERS,
- PREPRO,
- STRING,
- SPECIAL_VARS,
- MODIFIERS,
- FUNCTIONS
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/oxygene.js b/swh/web/static/jssources/highlight.js/lib/languages/oxygene.js
deleted file mode 100644
index 9a9b7499..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/oxygene.js
+++ /dev/null
@@ -1,69 +0,0 @@
-module.exports = function(hljs) {
- var OXYGENE_KEYWORDS = 'abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue '+
- 'create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false '+
- 'final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited '+
- 'inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of '+
- 'old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly '+
- 'record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple '+
- 'type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal '+
- 'register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained';
- var CURLY_COMMENT = hljs.COMMENT(
- '{',
- '}',
- {
- relevance: 0
- }
- );
- var PAREN_COMMENT = hljs.COMMENT(
- '\\(\\*',
- '\\*\\)',
- {
- relevance: 10
- }
- );
- var STRING = {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [{begin: '\'\''}]
- };
- var CHAR_STRING = {
- className: 'string', begin: '(#\\d+)+'
- };
- var FUNCTION = {
- className: 'function',
- beginKeywords: 'function constructor destructor procedure method', end: '[:;]',
- keywords: 'function constructor|10 destructor|10 procedure|10 method|10',
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: '\\(', end: '\\)',
- keywords: OXYGENE_KEYWORDS,
- contains: [STRING, CHAR_STRING]
- },
- CURLY_COMMENT, PAREN_COMMENT
- ]
- };
- return {
- case_insensitive: true,
- lexemes: /\.?\w+/,
- keywords: OXYGENE_KEYWORDS,
- illegal: '("|\\$[G-Zg-z]|\\/\\*||=>|->)',
- contains: [
- CURLY_COMMENT, PAREN_COMMENT, hljs.C_LINE_COMMENT_MODE,
- STRING, CHAR_STRING,
- hljs.NUMBER_MODE,
- FUNCTION,
- {
- className: 'class',
- begin: '=\\bclass\\b', end: 'end;',
- keywords: OXYGENE_KEYWORDS,
- contains: [
- STRING, CHAR_STRING,
- CURLY_COMMENT, PAREN_COMMENT, hljs.C_LINE_COMMENT_MODE,
- FUNCTION
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/parser3.js b/swh/web/static/jssources/highlight.js/lib/languages/parser3.js
deleted file mode 100644
index 24df5a9d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/parser3.js
+++ /dev/null
@@ -1,47 +0,0 @@
-module.exports = function(hljs) {
- var CURLY_SUBCOMMENT = hljs.COMMENT(
- '{',
- '}',
- {
- contains: ['self']
- }
- );
- return {
- subLanguage: 'xml', relevance: 0,
- contains: [
- hljs.COMMENT('^#', '$'),
- hljs.COMMENT(
- '\\^rem{',
- '}',
- {
- relevance: 10,
- contains: [
- CURLY_SUBCOMMENT
- ]
- }
- ),
- {
- className: 'meta',
- begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
- relevance: 10
- },
- {
- className: 'title',
- begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
- },
- {
- className: 'variable',
- begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?'
- },
- {
- className: 'keyword',
- begin: '\\^[\\w\\-\\.\\:]+'
- },
- {
- className: 'number',
- begin: '\\^#[0-9a-fA-F]+'
- },
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/perl.js b/swh/web/static/jssources/highlight.js/lib/languages/perl.js
deleted file mode 100644
index ca65b8f7..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/perl.js
+++ /dev/null
@@ -1,156 +0,0 @@
-module.exports = function(hljs) {
- var PERL_KEYWORDS = 'getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ' +
- 'ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime ' +
- 'readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq' +
- 'fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent ' +
- 'shutdown dump chomp connect getsockname die socketpair close flock exists index shmget' +
- 'sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr ' +
- 'unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 ' +
- 'getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline ' +
- 'endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand ' +
- 'mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink ' +
- 'getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr ' +
- 'untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link ' +
- 'getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller ' +
- 'lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and ' +
- 'sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 ' +
- 'chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach ' +
- 'tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir' +
- 'ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe ' +
- 'atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when';
- var SUBST = {
- className: 'subst',
- begin: '[$@]\\{', end: '\\}',
- keywords: PERL_KEYWORDS
- };
- var METHOD = {
- begin: '->{', end: '}'
- // contains defined later
- };
- var VAR = {
- variants: [
- {begin: /\$\d/},
- {begin: /[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},
- {begin: /[\$%@][^\s\w{]/, relevance: 0}
- ]
- };
- var STRING_CONTAINS = [hljs.BACKSLASH_ESCAPE, SUBST, VAR];
- var PERL_DEFAULT_CONTAINS = [
- VAR,
- hljs.HASH_COMMENT_MODE,
- hljs.COMMENT(
- '^\\=\\w',
- '\\=cut',
- {
- endsWithParent: true
- }
- ),
- METHOD,
- {
- className: 'string',
- contains: STRING_CONTAINS,
- variants: [
- {
- begin: 'q[qwxr]?\\s*\\(', end: '\\)',
- relevance: 5
- },
- {
- begin: 'q[qwxr]?\\s*\\[', end: '\\]',
- relevance: 5
- },
- {
- begin: 'q[qwxr]?\\s*\\{', end: '\\}',
- relevance: 5
- },
- {
- begin: 'q[qwxr]?\\s*\\|', end: '\\|',
- relevance: 5
- },
- {
- begin: 'q[qwxr]?\\s*\\<', end: '\\>',
- relevance: 5
- },
- {
- begin: 'qw\\s+q', end: 'q',
- relevance: 5
- },
- {
- begin: '\'', end: '\'',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '"', end: '"'
- },
- {
- begin: '`', end: '`',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '{\\w+}',
- contains: [],
- relevance: 0
- },
- {
- begin: '\-?\\w+\\s*\\=\\>',
- contains: [],
- relevance: 0
- }
- ]
- },
- {
- className: 'number',
- begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
- relevance: 0
- },
- { // regexp container
- begin: '(\\/\\/|' + hljs.RE_STARTERS_RE + '|\\b(split|return|print|reverse|grep)\\b)\\s*',
- keywords: 'split return print reverse grep',
- relevance: 0,
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- className: 'regexp',
- begin: '(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*',
- relevance: 10
- },
- {
- className: 'regexp',
- begin: '(m|qr)?/', end: '/[a-z]*',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 0 // allows empty "//" which is a common comment delimiter in other languages
- }
- ]
- },
- {
- className: 'function',
- beginKeywords: 'sub', end: '(\\s*\\(.*?\\))?[;{]', excludeEnd: true,
- relevance: 5,
- contains: [hljs.TITLE_MODE]
- },
- {
- begin: '-\\w\\b',
- relevance: 0
- },
- {
- begin: "^__DATA__$",
- end: "^__END__$",
- subLanguage: 'mojolicious',
- contains: [
- {
- begin: "^@@.*",
- end: "$",
- className: "comment"
- }
- ]
- }
- ];
- SUBST.contains = PERL_DEFAULT_CONTAINS;
- METHOD.contains = PERL_DEFAULT_CONTAINS;
-
- return {
- aliases: ['pl', 'pm'],
- lexemes: /[\w\.]+/,
- keywords: PERL_KEYWORDS,
- contains: PERL_DEFAULT_CONTAINS
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/pf.js b/swh/web/static/jssources/highlight.js/lib/languages/pf.js
deleted file mode 100644
index 6015185a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/pf.js
+++ /dev/null
@@ -1,51 +0,0 @@
-module.exports = function(hljs) {
- var MACRO = {
- className: 'variable',
- begin: /\$[\w\d#@][\w\d_]*/
- };
- var TABLE = {
- className: 'variable',
- begin: /<(?!\/)/, end: />/
- };
- var QUOTE_STRING = {
- className: 'string',
- begin: /"/, end: /"/
- };
-
- return {
- aliases: ['pf.conf'],
- lexemes: /[a-z0-9_<>-]+/,
- keywords: {
- built_in: /* block match pass are "actions" in pf.conf(5), the rest are
- * lexically similar top-level commands.
- */
- 'block match pass load anchor|5 antispoof|10 set table',
- keyword:
- 'in out log quick on rdomain inet inet6 proto from port os to route' +
- 'allow-opts divert-packet divert-reply divert-to flags group icmp-type' +
- 'icmp6-type label once probability recieved-on rtable prio queue' +
- 'tos tag tagged user keep fragment for os drop' +
- 'af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin' +
- 'source-hash static-port' +
- 'dup-to reply-to route-to' +
- 'parent bandwidth default min max qlimit' +
- 'block-policy debug fingerprints hostid limit loginterface optimization' +
- 'reassemble ruleset-optimization basic none profile skip state-defaults' +
- 'state-policy timeout' +
- 'const counters persist' +
- 'no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy' +
- 'source-track global rule max-src-nodes max-src-states max-src-conn' +
- 'max-src-conn-rate overload flush' +
- 'scrub|5 max-mss min-ttl no-df|10 random-id',
- literal:
- 'all any no-route self urpf-failed egress|5 unknown'
- },
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.NUMBER_MODE,
- hljs.QUOTE_STRING_MODE,
- MACRO,
- TABLE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/pgsql.js b/swh/web/static/jssources/highlight.js/lib/languages/pgsql.js
deleted file mode 100644
index 7080690a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/pgsql.js
+++ /dev/null
@@ -1,487 +0,0 @@
-module.exports = function(hljs) {
- var COMMENT_MODE = hljs.COMMENT('--', '$');
- var UNQUOTED_IDENT = '[a-zA-Z_][a-zA-Z_0-9$]*';
- var DOLLAR_STRING = '\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$';
- var LABEL = '<<\\s*' + UNQUOTED_IDENT + '\\s*>>';
-
- var SQL_KW =
- // https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html
- // https://www.postgresql.org/docs/11/static/sql-commands.html
- // SQL commands (starting words)
- 'ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE ' +
- 'DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY ' +
- 'PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW ' +
- 'START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES ' +
- // SQL commands (others)
- 'AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN ' +
- 'WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS ' +
- 'FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM ' +
- 'TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS ' +
- 'METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION ' +
- 'INDEX PROCEDURE ASSERTION ' +
- // additional reserved key words
- 'ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK ' +
- 'COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS ' +
- 'DEFERRABLE RANGE ' +
- 'DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ' +
- 'ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT ' +
- 'NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ' +
- 'REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN ' +
- 'TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH ' +
- // some of non-reserved (which are used in clauses or as PL/pgSQL keyword)
- 'BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN ' +
- 'BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT ' +
- 'TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN ' +
- 'EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ' +
- 'REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ' +
- 'ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED ' +
- 'INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 ' +
- 'INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ' +
- 'ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES ' +
- 'RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS ' +
- 'UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF ' +
- // some parameters of VACUUM/ANALYZE/EXPLAIN
- 'FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING ' +
- //
- 'RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED ' +
- 'OF NOTHING NONE EXCLUDE ATTRIBUTE ' +
- // from GRANT (not keywords actually)
- 'USAGE ROUTINES ' +
- // actually literals, but look better this way (due to IS TRUE, IS FALSE, ISNULL etc)
- 'TRUE FALSE NAN INFINITY ';
-
- var ROLE_ATTRS = // only those not in keywrods already
- 'SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT ' +
- 'LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ';
-
- var PLPGSQL_KW =
- 'ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS ' +
- 'STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT ' +
- 'OPEN ';
-
- var TYPES =
- // https://www.postgresql.org/docs/11/static/datatype.html
- 'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR ' +
- 'CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 ' +
- 'MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 ' +
- 'SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 ' +
- 'TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR ' +
- 'INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ' +
- // pseudotypes
- 'ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL ' +
- 'RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR ' +
- // spec. type
- 'NAME ' +
- // OID-types
- 'OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ' +
- 'REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ';// +
- // some types from standard extensions
- 'HSTORE|10 LO LTREE|10 ';
-
- var TYPES_RE =
- TYPES.trim()
- .split(' ')
- .map( function(val) { return val.split('|')[0]; } )
- .join('|');
-
- var SQL_BI =
- 'CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP ' +
- 'CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ';
-
- var PLPGSQL_BI =
- 'FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 ' +
- 'TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ' +
- // get diagnostics
- 'ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME ' +
- 'PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 ' +
- 'PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ';
-
- var PLPGSQL_EXCEPTIONS =
- // exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html
- 'SQLSTATE SQLERRM|10 ' +
- 'SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING ' +
- 'NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED ' +
- 'STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED ' +
- 'SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE ' +
- 'SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION ' +
- 'TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED ' +
- 'INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR ' +
- 'INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION ' +
- 'STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION ' +
- 'DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW ' +
- 'DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW ' +
- 'INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ' +
- 'INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION ' +
- 'INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST ' +
- 'INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE ' +
- 'NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE ' +
- 'INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE ' +
- 'INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT ' +
- 'INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH ' +
- 'NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE ' +
- 'SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION ' +
- 'SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING ' +
- 'FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION ' +
- 'BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT ' +
- 'INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION ' +
- 'INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION ' +
- 'UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE ' +
- 'INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE ' +
- 'HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION ' +
- 'INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION ' +
- 'NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION ' +
- 'SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION ' +
- 'IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME ' +
- 'TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD ' +
- 'DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST ' +
- 'INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT ' +
- 'MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED ' +
- 'READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION ' +
- 'CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED ' +
- 'PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED ' +
- 'EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED ' +
- 'TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED ' +
- 'SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME ' +
- 'INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION ' +
- 'SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED ' +
- 'SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE ' +
- 'GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME ' +
- 'NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH ' +
- 'INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN ' +
- 'UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT ' +
- 'DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION ' +
- 'DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS ' +
- 'DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS ' +
- 'INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION ' +
- 'INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION ' +
- 'INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION ' +
- 'INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL ' +
- 'OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED ' +
- 'STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE ' +
- 'OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ' +
- 'QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED ' +
- 'SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR ' +
- 'LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED ' +
- 'FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION ' +
- 'FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER ' +
- 'FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS ' +
- 'FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX ' +
- 'FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH ' +
- 'FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES ' +
- 'FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE ' +
- 'FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION ' +
- 'FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR ' +
- 'RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED ' +
- 'INDEX_CORRUPTED ';
-
- var FUNCTIONS =
- // https://www.postgresql.org/docs/11/static/functions-aggregate.html
- 'ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG ' +
- 'JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG ' +
- 'CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE ' +
- 'REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP ' +
- 'PERCENTILE_CONT PERCENTILE_DISC ' +
- // https://www.postgresql.org/docs/11/static/functions-window.html
- 'ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE ' +
- // https://www.postgresql.org/docs/11/static/functions-comparison.html
- 'NUM_NONNULLS NUM_NULLS ' +
- // https://www.postgresql.org/docs/11/static/functions-math.html
- 'ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT ' +
- 'TRUNC WIDTH_BUCKET ' +
- 'RANDOM SETSEED ' +
- 'ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND ' +
- // https://www.postgresql.org/docs/11/static/functions-string.html
- 'BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ' +
- 'ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP' +
- 'LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 ' +
- 'QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY ' +
- 'REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR ' +
- 'TO_ASCII TO_HEX TRANSLATE ' +
- // https://www.postgresql.org/docs/11/static/functions-binarystring.html
- 'OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE ' +
- // https://www.postgresql.org/docs/11/static/functions-formatting.html
- 'TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP ' +
- // https://www.postgresql.org/docs/11/static/functions-datetime.html
- 'AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL ' +
- 'MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 ' +
- 'TIMEOFDAY TRANSACTION_TIMESTAMP|10 ' +
- // https://www.postgresql.org/docs/11/static/functions-enum.html
- 'ENUM_FIRST ENUM_LAST ENUM_RANGE ' +
- // https://www.postgresql.org/docs/11/static/functions-geometry.html
- 'AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH ' +
- 'BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ' +
- // https://www.postgresql.org/docs/11/static/functions-net.html
- 'ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY' +
- 'INET_MERGE MACADDR8_SET7BIT ' +
- // https://www.postgresql.org/docs/11/static/functions-textsearch.html
- 'ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY ' +
- 'QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE ' +
- 'TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY ' +
- 'TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN ' +
- // https://www.postgresql.org/docs/11/static/functions-xml.html
- 'XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT ' +
- 'XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT ' +
- 'XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES ' +
- 'TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA ' +
- 'QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA ' +
- 'CURSOR_TO_XML CURSOR_TO_XMLSCHEMA ' +
- 'SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA ' +
- 'DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA ' +
- 'XMLATTRIBUTES ' +
- // https://www.postgresql.org/docs/11/static/functions-json.html
- 'TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT ' +
- 'JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH ' +
- 'JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH ' +
- 'JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET ' +
- 'JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT ' +
- 'JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET ' +
- 'JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY ' +
- // https://www.postgresql.org/docs/11/static/functions-sequence.html
- 'CURRVAL LASTVAL NEXTVAL SETVAL ' +
- // https://www.postgresql.org/docs/11/static/functions-conditional.html
- 'COALESCE NULLIF GREATEST LEAST ' +
- // https://www.postgresql.org/docs/11/static/functions-array.html
- 'ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ' +
- 'ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY ' +
- 'STRING_TO_ARRAY UNNEST ' +
- // https://www.postgresql.org/docs/11/static/functions-range.html
- 'ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE ' +
- // https://www.postgresql.org/docs/11/static/functions-srf.html
- 'GENERATE_SERIES GENERATE_SUBSCRIPTS ' +
- // https://www.postgresql.org/docs/11/static/functions-info.html
- 'CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT ' +
- 'INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE ' +
- 'TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE ' +
- 'COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION ' +
- 'TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX ' +
- 'TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS ' +
- // https://www.postgresql.org/docs/11/static/functions-admin.html
- 'CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE ' +
- 'GIN_CLEAN_PENDING_LIST ' +
- // https://www.postgresql.org/docs/11/static/functions-trigger.html
- 'SUPPRESS_REDUNDANT_UPDATES_TRIGGER ' +
- // ihttps://www.postgresql.org/docs/devel/static/lo-funcs.html
- 'LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE ' +
- //
- 'GROUPING CAST ';
-
- var FUNCTIONS_RE =
- FUNCTIONS.trim()
- .split(' ')
- .map( function(val) { return val.split('|')[0]; } )
- .join('|');
-
- return {
- aliases: ['postgres','postgresql'],
- case_insensitive: true,
- keywords: {
- keyword:
- SQL_KW + PLPGSQL_KW + ROLE_ATTRS,
- built_in:
- SQL_BI + PLPGSQL_BI + PLPGSQL_EXCEPTIONS,
- },
- // Forbid some cunstructs from other languages to improve autodetect. In fact
- // "[a-z]:" is legal (as part of array slice), but improbabal.
- illegal: /:==|\W\s*\(\*|(^|\s)\$[a-z]|{{|[a-z]:\s*$|\.\.\.|TO:|DO:/,
- contains: [
- // special handling of some words, which are reserved only in some contexts
- {
- className: 'keyword',
- variants: [
- { begin: /\bTEXT\s*SEARCH\b/ },
- { begin: /\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/ },
- { begin: /\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/ },
- { begin: /\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/ },
- { begin: /\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/ },
- { begin: /\bNULLS\s+(FIRST|LAST)\b/ },
- { begin: /\bEVENT\s+TRIGGER\b/ },
- { begin: /\b(MAPPING|OR)\s+REPLACE\b/ },
- { begin: /\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/ },
- { begin: /\b(SHARE|EXCLUSIVE)\s+MODE\b/ },
- { begin: /\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/ },
- { begin: /\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/ },
- { begin: /\bPRESERVE\s+ROWS\b/ },
- { begin: /\bDISCARD\s+PLANS\b/ },
- { begin: /\bREFERENCING\s+(OLD|NEW)\b/ },
- { begin: /\bSKIP\s+LOCKED\b/ },
- { begin: /\bGROUPING\s+SETS\b/ },
- { begin: /\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/ },
- { begin: /\b(WITH|WITHOUT)\s+HOLD\b/ },
- { begin: /\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/ },
- { begin: /\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/ },
- { begin: /\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/ },
- { begin: /\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/ },
- { begin: /\bIS\s+(NOT\s+)?UNKNOWN\b/ },
- { begin: /\bSECURITY\s+LABEL\b/ },
- { begin: /\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/ },
- { begin: /\bWITH\s+(NO\s+)?DATA\b/ },
- { begin: /\b(FOREIGN|SET)\s+DATA\b/ },
- { begin: /\bSET\s+(CATALOG|CONSTRAINTS)\b/ },
- { begin: /\b(WITH|FOR)\s+ORDINALITY\b/ },
- { begin: /\bIS\s+(NOT\s+)?DOCUMENT\b/ },
- { begin: /\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/ },
- { begin: /\b(STRIP|PRESERVE)\s+WHITESPACE\b/ },
- { begin: /\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/ },
- { begin: /\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/ },
- { begin: /\bAT\s+TIME\s+ZONE\b/ },
- { begin: /\bGRANTED\s+BY\b/ },
- { begin: /\bRETURN\s+(QUERY|NEXT)\b/ },
- { begin: /\b(ATTACH|DETACH)\s+PARTITION\b/ },
- { begin: /\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/ },
- { begin: /\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/ },
- { begin: /\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/ }
- ]
- },
- // functions named as keywords, followed by '('
- {
- begin: /\b(FORMAT|FAMILY|VERSION)\s*\(/,
- //keywords: { built_in: 'FORMAT FAMILY VERSION' }
- },
- // INCLUDE ( ... ) in index_parameters in CREATE TABLE
- {
- begin: /\bINCLUDE\s*\(/,
- keywords: 'INCLUDE'
- },
- // not highlight RANGE if not in frame_clause (not 100% correct, but seems satisfactory)
- {
- begin: /\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/
- },
- // disable highlighting in commands CREATE AGGREGATE/COLLATION/DATABASE/OPERTOR/TEXT SEARCH .../TYPE
- // and in PL/pgSQL RAISE ... USING
- {
- begin: /\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/
- },
- // PG_smth; HAS_some_PRIVILEGE
- {
- //className: 'built_in',
- begin: /\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,
- relevance: 10
- },
- // extract
- {
- begin: /\bEXTRACT\s*\(/,
- end: /\bFROM\b/,
- returnEnd: true,
- keywords: {
- //built_in: 'EXTRACT',
- type: 'CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS ' +
- 'MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR ' +
- 'TIMEZONE_MINUTE WEEK YEAR'
- }
- },
- // xmlelement, xmlpi - special NAME
- {
- begin: /\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,
- keywords: {
- //built_in: 'XMLELEMENT XMLPI',
- keyword: 'NAME'
- }
- },
- // xmlparse, xmlserialize
- {
- begin: /\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,
- keywords: {
- //built_in: 'XMLPARSE XMLSERIALIZE',
- keyword: 'DOCUMENT CONTENT'
- }
- },
- // Sequences. We actually skip everything between CACHE|INCREMENT|MAXVALUE|MINVALUE and
- // nearest following numeric constant. Without with trick we find a lot of "keywords"
- // in 'avrasm' autodetection test...
- {
- beginKeywords: 'CACHE INCREMENT MAXVALUE MINVALUE',
- end: hljs.C_NUMBER_RE,
- returnEnd: true,
- keywords: 'BY CACHE INCREMENT MAXVALUE MINVALUE'
- },
- // WITH|WITHOUT TIME ZONE as part of datatype
- {
- className: 'type',
- begin: /\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/
- },
- // INTERVAL optional fields
- {
- className: 'type',
- begin: /\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/
- },
- // Pseudo-types which allowed only as return type
- {
- begin: /\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,
- keywords: {
- keyword: 'RETURNS',
- type: 'LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER'
- }
- },
- // Known functions - only when followed by '('
- {
- begin: '\\b(' + FUNCTIONS_RE + ')\\s*\\('
- //keywords: { built_in: FUNCTIONS }
- },
- // Types
- {
- begin: '\\.(' + TYPES_RE + ')\\b' // prevent highlight as type, say, 'oid' in 'pgclass.oid'
- },
- {
- begin: '\\b(' + TYPES_RE + ')\\s+PATH\\b', // in XMLTABLE
- keywords: {
- keyword: 'PATH', // hopefully no one would use PATH type in XMLTABLE...
- type: TYPES.replace('PATH ','')
- }
- },
- {
- className: 'type',
- begin: '\\b(' + TYPES_RE + ')\\b'
- },
- // Strings, see https://www.postgresql.org/docs/11/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
- {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [{begin: '\'\''}]
- },
- {
- className: 'string',
- begin: '(e|E|u&|U&)\'', end: '\'',
- contains: [{begin: '\\\\.'}],
- relevance: 10
- },
- {
- begin: DOLLAR_STRING,
- endSameAsBegin: true,
- contains: [
- {
- // actually we want them all except SQL; listed are those with known implementations
- // and XML + JSON just in case
- subLanguage: ['pgsql','perl','python','tcl','r','lua','java','php','ruby','bash','scheme','xml','json'],
- endsWithParent: true
- }
- ]
- },
- // identifiers in quotes
- {
- begin: '"', end: '"',
- contains: [{begin: '""'}]
- },
- // numbers
- hljs.C_NUMBER_MODE,
- // comments
- hljs.C_BLOCK_COMMENT_MODE,
- COMMENT_MODE,
- // PL/pgSQL staff
- // %ROWTYPE, %TYPE, $n
- {
- className: 'meta',
- variants: [
- {begin: '%(ROW)?TYPE', relevance: 10}, // %TYPE, %ROWTYPE
- {begin: '\\$\\d+'}, // $n
- {begin: '^#\\w', end: '$'} // #compiler option
- ]
- },
- // <>
- {
- className: 'symbol',
- begin: LABEL,
- relevance: 10
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/php.js b/swh/web/static/jssources/highlight.js/lib/languages/php.js
deleted file mode 100644
index aeabe5fd..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/php.js
+++ /dev/null
@@ -1,126 +0,0 @@
-module.exports = function(hljs) {
- var VARIABLE = {
- begin: '\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
- };
- var PREPROCESSOR = {
- className: 'meta', begin: /<\?(php)?|\?>/
- };
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, PREPROCESSOR],
- variants: [
- {
- begin: 'b"', end: '"'
- },
- {
- begin: 'b\'', end: '\''
- },
- hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null})
- ]
- };
- var NUMBER = {variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]};
- return {
- aliases: ['php', 'php3', 'php4', 'php5', 'php6', 'php7'],
- case_insensitive: true,
- keywords:
- 'and include_once list abstract global private echo interface as static endswitch ' +
- 'array null if endwhile or const for endforeach self var while isset public ' +
- 'protected exit foreach throw elseif include __FILE__ empty require_once do xor ' +
- 'return parent clone use __CLASS__ __LINE__ else break print eval new ' +
- 'catch __METHOD__ case exception default die require __FUNCTION__ ' +
- 'enddeclare final try switch continue endfor endif declare unset true false ' +
- 'trait goto instanceof insteadof __DIR__ __NAMESPACE__ ' +
- 'yield finally',
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.COMMENT('//', '$', {contains: [PREPROCESSOR]}),
- hljs.COMMENT(
- '/\\*',
- '\\*/',
- {
- contains: [
- {
- className: 'doctag',
- begin: '@[A-Za-z]+'
- }
- ]
- }
- ),
- hljs.COMMENT(
- '__halt_compiler.+?;',
- false,
- {
- endsWithParent: true,
- keywords: '__halt_compiler',
- lexemes: hljs.UNDERSCORE_IDENT_RE
- }
- ),
- {
- className: 'string',
- begin: /<<<['"]?\w+['"]?$/, end: /^\w+;?$/,
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {
- className: 'subst',
- variants: [
- {begin: /\$\w+/},
- {begin: /\{\$/, end: /\}/}
- ]
- }
- ]
- },
- PREPROCESSOR,
- {
- className: 'keyword', begin: /\$this\b/
- },
- VARIABLE,
- {
- // swallow composed identifiers to avoid parsing them as keywords
- begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
- },
- {
- className: 'function',
- beginKeywords: 'function', end: /[;{]/, excludeEnd: true,
- illegal: '\\$|\\[|%',
- contains: [
- hljs.UNDERSCORE_TITLE_MODE,
- {
- className: 'params',
- begin: '\\(', end: '\\)',
- contains: [
- 'self',
- VARIABLE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRING,
- NUMBER
- ]
- }
- ]
- },
- {
- className: 'class',
- beginKeywords: 'class interface', end: '{', excludeEnd: true,
- illegal: /[:\(\$"]/,
- contains: [
- {beginKeywords: 'extends implements'},
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- {
- beginKeywords: 'namespace', end: ';',
- illegal: /[\.']/,
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- beginKeywords: 'use', end: ';',
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- begin: '=>' // No markup, just a relevance booster
- },
- STRING,
- NUMBER
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/plaintext.js b/swh/web/static/jssources/highlight.js/lib/languages/plaintext.js
deleted file mode 100644
index f996641c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/plaintext.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = function(hljs) {
- return {
- disableAutodetect: true
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/pony.js b/swh/web/static/jssources/highlight.js/lib/languages/pony.js
deleted file mode 100644
index 4a800b37..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/pony.js
+++ /dev/null
@@ -1,68 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- 'actor addressof and as be break class compile_error compile_intrinsic ' +
- 'consume continue delegate digestof do else elseif embed end error ' +
- 'for fun if ifdef in interface is isnt lambda let match new not object ' +
- 'or primitive recover repeat return struct then trait try type until ' +
- 'use var where while with xor',
- meta:
- 'iso val tag trn box ref',
- literal:
- 'this false true'
- };
-
- var TRIPLE_QUOTE_STRING_MODE = {
- className: 'string',
- begin: '"""', end: '"""',
- relevance: 10
- };
-
- var QUOTE_STRING_MODE = {
- className: 'string',
- begin: '"', end: '"',
- contains: [hljs.BACKSLASH_ESCAPE]
- };
-
- var SINGLE_QUOTE_CHAR_MODE = {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [hljs.BACKSLASH_ESCAPE],
- relevance: 0
- };
-
- var TYPE_NAME = {
- className: 'type',
- begin: '\\b_?[A-Z][\\w]*',
- relevance: 0
- };
-
- var PRIMED_NAME = {
- begin: hljs.IDENT_RE + '\'', relevance: 0
- };
-
- /**
- * The `FUNCTION` and `CLASS` modes were intentionally removed to simplify
- * highlighting and fix cases like
- * ```
- * interface Iterator[A: A]
- * fun has_next(): Bool
- * fun next(): A?
- * ```
- * where it is valid to have a function head without a body
- */
-
- return {
- keywords: KEYWORDS,
- contains: [
- TYPE_NAME,
- TRIPLE_QUOTE_STRING_MODE,
- QUOTE_STRING_MODE,
- SINGLE_QUOTE_CHAR_MODE,
- PRIMED_NAME,
- hljs.C_NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/powershell.js b/swh/web/static/jssources/highlight.js/lib/languages/powershell.js
deleted file mode 100644
index cbee3f42..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/powershell.js
+++ /dev/null
@@ -1,80 +0,0 @@
-module.exports = function(hljs) {
- var BACKTICK_ESCAPE = {
- begin: '`[\\s\\S]',
- relevance: 0
- };
- var VAR = {
- className: 'variable',
- variants: [
- {begin: /\$[\w\d][\w\d_:]*/}
- ]
- };
- var LITERAL = {
- className: 'literal',
- begin: /\$(null|true|false)\b/
- };
- var QUOTE_STRING = {
- className: 'string',
- variants: [
- { begin: /"/, end: /"/ },
- { begin: /@"/, end: /^"@/ }
- ],
- contains: [
- BACKTICK_ESCAPE,
- VAR,
- {
- className: 'variable',
- begin: /\$[A-z]/, end: /[^A-z]/
- }
- ]
- };
- var APOS_STRING = {
- className: 'string',
- variants: [
- { begin: /'/, end: /'/ },
- { begin: /@'/, end: /^'@/ }
- ]
- };
-
- var PS_HELPTAGS = {
- className: 'doctag',
- variants: [
- /* no paramater help tags */
- { begin: /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ },
- /* one parameter help tags */
- { begin: /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/ }
- ]
- };
- var PS_COMMENT = hljs.inherit(
- hljs.COMMENT(null, null),
- {
- variants: [
- /* single-line comment */
- { begin: /#/, end: /$/ },
- /* multi-line comment */
- { begin: /<#/, end: /#>/ }
- ],
- contains: [PS_HELPTAGS]
- }
- );
-
- return {
- aliases: ['ps'],
- lexemes: /-?[A-z\.\-]+/,
- case_insensitive: true,
- keywords: {
- keyword: 'if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch',
- built_in: 'Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct',
- nomarkup: '-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace'
- },
- contains: [
- BACKTICK_ESCAPE,
- hljs.NUMBER_MODE,
- QUOTE_STRING,
- APOS_STRING,
- LITERAL,
- VAR,
- PS_COMMENT
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/processing.js b/swh/web/static/jssources/highlight.js/lib/languages/processing.js
deleted file mode 100644
index 2a706446..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/processing.js
+++ /dev/null
@@ -1,47 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword: 'BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color ' +
- 'double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject ' +
- 'Object StringDict StringList Table TableRow XML ' +
- // Java keywords
- 'false synchronized int abstract float private char boolean static null if const ' +
- 'for true while long throw strictfp finally protected import native final return void ' +
- 'enum else break transient new catch instanceof byte super volatile case assert short ' +
- 'package default double public try this switch continue throws protected public private',
- literal: 'P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI',
- title: 'setup draw',
- built_in: 'displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key ' +
- 'keyCode pixels focused frameCount frameRate height width ' +
- 'size createGraphics beginDraw createShape loadShape PShape arc ellipse line point ' +
- 'quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint ' +
- 'curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex ' +
- 'endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap ' +
- 'strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased ' +
- 'mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour ' +
- 'millis minute month second year background clear colorMode fill noFill noStroke stroke alpha ' +
- 'blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY ' +
- 'screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ' +
- 'ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle ' +
- 'pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf ' +
- 'nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset ' +
- 'box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings ' +
- 'loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput ' +
- 'createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings ' +
- 'saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale ' +
- 'shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal ' +
- 'pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap ' +
- 'blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont ' +
- 'loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil ' +
- 'constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees ' +
- 'radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/profile.js b/swh/web/static/jssources/highlight.js/lib/languages/profile.js
deleted file mode 100644
index b9465769..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/profile.js
+++ /dev/null
@@ -1,29 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- hljs.C_NUMBER_MODE,
- {
- begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}', end: ':',
- excludeEnd: true
- },
- {
- begin: '(ncalls|tottime|cumtime)', end: '$',
- keywords: 'ncalls tottime|10 cumtime|10 filename',
- relevance: 10
- },
- {
- begin: 'function calls', end: '$',
- contains: [hljs.C_NUMBER_MODE],
- relevance: 10
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '\\(', end: '\\)$',
- excludeBegin: true, excludeEnd: true,
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/prolog.js b/swh/web/static/jssources/highlight.js/lib/languages/prolog.js
deleted file mode 100644
index cf2c60b1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/prolog.js
+++ /dev/null
@@ -1,87 +0,0 @@
-module.exports = function(hljs) {
-
- var ATOM = {
-
- begin: /[a-z][A-Za-z0-9_]*/,
- relevance: 0
- };
-
- var VAR = {
-
- className: 'symbol',
- variants: [
- {begin: /[A-Z][a-zA-Z0-9_]*/},
- {begin: /_[A-Za-z0-9_]*/},
- ],
- relevance: 0
- };
-
- var PARENTED = {
-
- begin: /\(/,
- end: /\)/,
- relevance: 0
- };
-
- var LIST = {
-
- begin: /\[/,
- end: /\]/
- };
-
- var LINE_COMMENT = {
-
- className: 'comment',
- begin: /%/, end: /$/,
- contains: [hljs.PHRASAL_WORDS_MODE]
- };
-
- var BACKTICK_STRING = {
-
- className: 'string',
- begin: /`/, end: /`/,
- contains: [hljs.BACKSLASH_ESCAPE]
- };
-
- var CHAR_CODE = {
-
- className: 'string', // 0'a etc.
- begin: /0\'(\\\'|.)/
- };
-
- var SPACE_CODE = {
-
- className: 'string',
- begin: /0\'\\s/ // 0'\s
- };
-
- var PRED_OP = { // relevance booster
- begin: /:-/
- };
-
- var inner = [
-
- ATOM,
- VAR,
- PARENTED,
- PRED_OP,
- LIST,
- LINE_COMMENT,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- BACKTICK_STRING,
- CHAR_CODE,
- SPACE_CODE,
- hljs.C_NUMBER_MODE
- ];
-
- PARENTED.contains = inner;
- LIST.contains = inner;
-
- return {
- contains: inner.concat([
- {begin: /\.$/} // relevance booster
- ])
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/properties.js b/swh/web/static/jssources/highlight.js/lib/languages/properties.js
deleted file mode 100644
index fce149c0..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/properties.js
+++ /dev/null
@@ -1,69 +0,0 @@
-module.exports = function(hljs) {
-
- // whitespaces: space, tab, formfeed
- var WS0 = '[ \\t\\f]*';
- var WS1 = '[ \\t\\f]+';
- // delimiter
- var DELIM = '(' + WS0+'[:=]'+WS0+ '|' + WS1 + ')';
- var KEY_ALPHANUM = '([^\\\\\\W:= \\t\\f\\n]|\\\\.)+';
- var KEY_OTHER = '([^\\\\:= \\t\\f\\n]|\\\\.)+';
-
- var DELIM_AND_VALUE = {
- // skip DELIM
- end: DELIM,
- relevance: 0,
- starts: {
- // value: everything until end of line (again, taking into account backslashes)
- className: 'string',
- end: /$/,
- relevance: 0,
- contains: [
- { begin: '\\\\\\n' }
- ]
- }
- };
-
- return {
- case_insensitive: true,
- illegal: /\S/,
- contains: [
- hljs.COMMENT('^\\s*[!#]', '$'),
- // key: everything until whitespace or = or : (taking into account backslashes)
- // case of a "normal" key
- {
- begin: KEY_ALPHANUM + DELIM,
- returnBegin: true,
- contains: [
- {
- className: 'attr',
- begin: KEY_ALPHANUM,
- endsParent: true,
- relevance: 0
- }
- ],
- starts: DELIM_AND_VALUE
- },
- // case of key containing non-alphanumeric chars => relevance = 0
- {
- begin: KEY_OTHER + DELIM,
- returnBegin: true,
- relevance: 0,
- contains: [
- {
- className: 'meta',
- begin: KEY_OTHER,
- endsParent: true,
- relevance: 0
- }
- ],
- starts: DELIM_AND_VALUE
- },
- // case of an empty key
- {
- className: 'attr',
- relevance: 0,
- begin: KEY_OTHER + WS0 + '$'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/protobuf.js b/swh/web/static/jssources/highlight.js/lib/languages/protobuf.js
deleted file mode 100644
index efbc21e8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/protobuf.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword: 'package import option optional required repeated group oneof',
- built_in: 'double float int32 int64 uint32 uint64 sint32 sint64 ' +
- 'fixed32 fixed64 sfixed32 sfixed64 bool string bytes',
- literal: 'true false'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- {
- className: 'class',
- beginKeywords: 'message enum service', end: /\{/,
- illegal: /\n/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- starts: {endsWithParent: true, excludeEnd: true} // hack: eating everything after the first title
- })
- ]
- },
- {
- className: 'function',
- beginKeywords: 'rpc',
- end: /;/, excludeEnd: true,
- keywords: 'rpc returns'
- },
- {
- begin: /^\s*[A-Z_]+/,
- end: /\s*=/, excludeEnd: true
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/puppet.js b/swh/web/static/jssources/highlight.js/lib/languages/puppet.js
deleted file mode 100644
index 8ddcb1c0..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/puppet.js
+++ /dev/null
@@ -1,114 +0,0 @@
-module.exports = function(hljs) {
-
- var PUPPET_KEYWORDS = {
- keyword:
- /* language keywords */
- 'and case default else elsif false if in import enherits node or true undef unless main settings $string ',
- literal:
- /* metaparameters */
- 'alias audit before loglevel noop require subscribe tag ' +
- /* normal attributes */
- 'owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check ' +
- 'en_address ip_address realname command environment hour monute month monthday special target weekday '+
- 'creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore ' +
- 'links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source ' +
- 'souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid '+
- 'ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel ' +
- 'native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options ' +
- 'device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use ' +
- 'message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform ' +
- 'responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running ' +
- 'start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age ' +
- 'password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled ' +
- 'enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist ' +
- 'priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey ' +
- 'sslverify mounted',
- built_in:
- /* core facts */
- 'architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers ' +
- 'domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces '+
- 'ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion ' +
- 'kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease ' +
- 'lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major ' +
- 'macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease '+
- 'operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion '+
- 'rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced '+
- 'selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime '+
- 'uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version'
- };
-
- var COMMENT = hljs.COMMENT('#', '$');
-
- var IDENT_RE = '([A-Za-z_]|::)(\\w|::)*';
-
- var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE});
-
- var VARIABLE = {className: 'variable', begin: '\\$' + IDENT_RE};
-
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, VARIABLE],
- variants: [
- {begin: /'/, end: /'/},
- {begin: /"/, end: /"/}
- ]
- };
-
- return {
- aliases: ['pp'],
- contains: [
- COMMENT,
- VARIABLE,
- STRING,
- {
- beginKeywords: 'class', end: '\\{|;',
- illegal: /=/,
- contains: [TITLE, COMMENT]
- },
- {
- beginKeywords: 'define', end: /\{/,
- contains: [
- {
- className: 'section', begin: hljs.IDENT_RE, endsParent: true
- }
- ]
- },
- {
- begin: hljs.IDENT_RE + '\\s+\\{', returnBegin: true,
- end: /\S/,
- contains: [
- {
- className: 'keyword',
- begin: hljs.IDENT_RE
- },
- {
- begin: /\{/, end: /\}/,
- keywords: PUPPET_KEYWORDS,
- relevance: 0,
- contains: [
- STRING,
- COMMENT,
- {
- begin:'[a-zA-Z_]+\\s*=>',
- returnBegin: true, end: '=>',
- contains: [
- {
- className: 'attr',
- begin: hljs.IDENT_RE,
- }
- ]
- },
- {
- className: 'number',
- begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
- relevance: 0
- },
- VARIABLE
- ]
- }
- ],
- relevance: 0
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/purebasic.js b/swh/web/static/jssources/highlight.js/lib/languages/purebasic.js
deleted file mode 100644
index 53576d7c..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/purebasic.js
+++ /dev/null
@@ -1,57 +0,0 @@
-module.exports = // Base deafult colors in PB IDE: background: #FFFFDF; foreground: #000000;
-
-function(hljs) {
- var STRINGS = { // PB IDE color: #0080FF (Azure Radiance)
- className: 'string',
- begin: '(~)?"', end: '"',
- illegal: '\\n'
- };
- var CONSTANTS = { // PB IDE color: #924B72 (Cannon Pink)
- // "#" + a letter or underscore + letters, digits or underscores + (optional) "$"
- className: 'symbol',
- begin: '#[a-zA-Z_]\\w*\\$?'
- };
-
- return {
- aliases: ['pb', 'pbi'],
- keywords: // PB IDE color: #006666 (Blue Stone) + Bold
- // The following keywords list was taken and adapted from GuShH's PureBasic language file for GeSHi...
- 'And As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerEndIf CompilerEndSelect ' +
- 'CompilerError CompilerIf CompilerSelect Continue Data DataSection EndDataSection Debug DebugLevel ' +
- 'Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM ' +
- 'EnableDebugger EnableExplicit End EndEnumeration EndIf EndImport EndInterface EndMacro EndProcedure ' +
- 'EndSelect EndStructure EndStructureUnion EndWith Enumeration Extends FakeReturn For Next ForEach ' +
- 'ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface Macro ' +
- 'NewList Not Or ProcedureReturn Protected Prototype ' +
- 'PrototypeC Read ReDim Repeat Until Restore Return Select Shared Static Step Structure StructureUnion ' +
- 'Swap To Wend While With XIncludeFile XOr ' +
- 'Procedure ProcedureC ProcedureCDLL ProcedureDLL Declare DeclareC DeclareCDLL DeclareDLL',
- contains: [
- // COMMENTS | PB IDE color: #00AAAA (Persian Green)
- hljs.COMMENT(';', '$', {relevance: 0}),
-
- { // PROCEDURES DEFINITIONS
- className: 'function',
- begin: '\\b(Procedure|Declare)(C|CDLL|DLL)?\\b',
- end: '\\(',
- excludeEnd: true,
- returnBegin: true,
- contains: [
- { // PROCEDURE KEYWORDS | PB IDE color: #006666 (Blue Stone) + Bold
- className: 'keyword',
- begin: '(Procedure|Declare)(C|CDLL|DLL)?',
- excludeEnd: true
- },
- { // PROCEDURE RETURN TYPE SETTING | PB IDE color: #000000 (Black)
- className: 'type',
- begin: '\\.\\w*'
- // end: ' ',
- },
- hljs.UNDERSCORE_TITLE_MODE // PROCEDURE NAME | PB IDE color: #006666 (Blue Stone)
- ]
- },
- STRINGS,
- CONSTANTS
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/python.js b/swh/web/static/jssources/highlight.js/lib/languages/python.js
deleted file mode 100644
index c06aad22..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/python.js
+++ /dev/null
@@ -1,116 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- 'and elif is global as in if from raise for except finally print import pass return ' +
- 'exec else break not with class assert yield try while continue del or def lambda ' +
- 'async await nonlocal|10',
- built_in:
- 'Ellipsis NotImplemented',
- literal: 'False None True'
- };
- var PROMPT = {
- className: 'meta', begin: /^(>>>|\.\.\.) /
- };
- var SUBST = {
- className: 'subst',
- begin: /\{/, end: /\}/,
- keywords: KEYWORDS,
- illegal: /#/
- };
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- {
- begin: /(u|b)?r?'''/, end: /'''/,
- contains: [hljs.BACKSLASH_ESCAPE, PROMPT],
- relevance: 10
- },
- {
- begin: /(u|b)?r?"""/, end: /"""/,
- contains: [hljs.BACKSLASH_ESCAPE, PROMPT],
- relevance: 10
- },
- {
- begin: /(fr|rf|f)'''/, end: /'''/,
- contains: [hljs.BACKSLASH_ESCAPE, PROMPT, SUBST]
- },
- {
- begin: /(fr|rf|f)"""/, end: /"""/,
- contains: [hljs.BACKSLASH_ESCAPE, PROMPT, SUBST]
- },
- {
- begin: /(u|r|ur)'/, end: /'/,
- relevance: 10
- },
- {
- begin: /(u|r|ur)"/, end: /"/,
- relevance: 10
- },
- {
- begin: /(b|br)'/, end: /'/
- },
- {
- begin: /(b|br)"/, end: /"/
- },
- {
- begin: /(fr|rf|f)'/, end: /'/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- },
- {
- begin: /(fr|rf|f)"/, end: /"/,
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- };
- var NUMBER = {
- className: 'number', relevance: 0,
- variants: [
- {begin: hljs.BINARY_NUMBER_RE + '[lLjJ]?'},
- {begin: '\\b(0o[0-7]+)[lLjJ]?'},
- {begin: hljs.C_NUMBER_RE + '[lLjJ]?'}
- ]
- };
- var PARAMS = {
- className: 'params',
- begin: /\(/, end: /\)/,
- contains: ['self', PROMPT, NUMBER, STRING]
- };
- SUBST.contains = [STRING, NUMBER, PROMPT];
- return {
- aliases: ['py', 'gyp', 'ipython'],
- keywords: KEYWORDS,
- illegal: /(<\/|->|\?)|=>/,
- contains: [
- PROMPT,
- NUMBER,
- STRING,
- hljs.HASH_COMMENT_MODE,
- {
- variants: [
- {className: 'function', beginKeywords: 'def'},
- {className: 'class', beginKeywords: 'class'}
- ],
- end: /:/,
- illegal: /[${=;\n,]/,
- contains: [
- hljs.UNDERSCORE_TITLE_MODE,
- PARAMS,
- {
- begin: /->/, endsWithParent: true,
- keywords: 'None'
- }
- ]
- },
- {
- className: 'meta',
- begin: /^[\t ]*@/, end: /$/
- },
- {
- begin: /\b(print|exec)\(/ // don’t highlight keywords-turned-functions in Python 3
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/q.js b/swh/web/static/jssources/highlight.js/lib/languages/q.js
deleted file mode 100644
index 9dbfbc62..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/q.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = function(hljs) {
- var Q_KEYWORDS = {
- keyword:
- 'do while select delete by update from',
- literal:
- '0b 1b',
- built_in:
- 'neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum',
- type:
- '`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid'
- };
- return {
- aliases:['k', 'kdb'],
- keywords: Q_KEYWORDS,
- lexemes: /(`?)[A-Za-z0-9_]+\b/,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/qml.js b/swh/web/static/jssources/highlight.js/lib/languages/qml.js
deleted file mode 100644
index 3ed4b8b5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/qml.js
+++ /dev/null
@@ -1,168 +0,0 @@
-module.exports = function(hljs) {
- var KEYWORDS = {
- keyword:
- 'in of on if for while finally var new function do return void else break catch ' +
- 'instanceof with throw case default try this switch continue typeof delete ' +
- 'let yield const export super debugger as async await import',
- literal:
- 'true false null undefined NaN Infinity',
- built_in:
- 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +
- 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +
- 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +
- 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +
- 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' +
- 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' +
- 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' +
- 'Behavior bool color coordinate date double enumeration font geocircle georectangle ' +
- 'geoshape int list matrix4x4 parent point quaternion real rect ' +
- 'size string url variant vector2d vector3d vector4d' +
- 'Promise'
- };
-
- var QML_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9\\._]*';
-
- // Isolate property statements. Ends at a :, =, ;, ,, a comment or end of line.
- // Use property class.
- var PROPERTY = {
- className: 'keyword',
- begin: '\\bproperty\\b',
- starts: {
- className: 'string',
- end: '(:|=|;|,|//|/\\*|$)',
- returnEnd: true
- }
- };
-
- // Isolate signal statements. Ends at a ) a comment or end of line.
- // Use property class.
- var SIGNAL = {
- className: 'keyword',
- begin: '\\bsignal\\b',
- starts: {
- className: 'string',
- end: '(\\(|:|=|;|,|//|/\\*|$)',
- returnEnd: true
- }
- };
-
- // id: is special in QML. When we see id: we want to mark the id: as attribute and
- // emphasize the token following.
- var ID_ID = {
- className: 'attribute',
- begin: '\\bid\\s*:',
- starts: {
- className: 'string',
- end: QML_IDENT_RE,
- returnEnd: false
- }
- };
-
- // Find QML object attribute. An attribute is a QML identifier followed by :.
- // Unfortunately it's hard to know where it ends, as it may contain scalars,
- // objects, object definitions, or javascript. The true end is either when the parent
- // ends or the next attribute is detected.
- var QML_ATTRIBUTE = {
- begin: QML_IDENT_RE + '\\s*:',
- returnBegin: true,
- contains: [
- {
- className: 'attribute',
- begin: QML_IDENT_RE,
- end: '\\s*:',
- excludeEnd: true,
- relevance: 0
- }
- ],
- relevance: 0
- };
-
- // Find QML object. A QML object is a QML identifier followed by { and ends at the matching }.
- // All we really care about is finding IDENT followed by { and just mark up the IDENT and ignore the {.
- var QML_OBJECT = {
- begin: QML_IDENT_RE + '\\s*{', end: '{',
- returnBegin: true,
- relevance: 0,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: QML_IDENT_RE})
- ]
- };
-
- return {
- aliases: ['qt'],
- case_insensitive: false,
- keywords: KEYWORDS,
- contains: [
- {
- className: 'meta',
- begin: /^\s*['"]use (strict|asm)['"]/
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- { // template string
- className: 'string',
- begin: '`', end: '`',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {
- className: 'subst',
- begin: '\\$\\{', end: '\\}'
- }
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'number',
- variants: [
- { begin: '\\b(0[bB][01]+)' },
- { begin: '\\b(0[oO][0-7]+)' },
- { begin: hljs.C_NUMBER_RE }
- ],
- relevance: 0
- },
- { // "value" container
- begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
- keywords: 'return throw case',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.REGEXP_MODE,
- { // E4X / JSX
- begin: /, end: />\s*[);\]]/,
- relevance: 0,
- subLanguage: 'xml'
- }
- ],
- relevance: 0
- },
- SIGNAL,
- PROPERTY,
- {
- className: 'function',
- beginKeywords: 'function', end: /\{/, excludeEnd: true,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: /[A-Za-z$_][0-9A-Za-z$_]*/}),
- {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- }
- ],
- illegal: /\[|%/
- },
- {
- begin: '\\.' + hljs.IDENT_RE, relevance: 0 // hack: prevents detection of keywords after dots
- },
- ID_ID,
- QML_ATTRIBUTE,
- QML_OBJECT
- ],
- illegal: /#/
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/r.js b/swh/web/static/jssources/highlight.js/lib/languages/r.js
deleted file mode 100644
index ddaaa67f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/r.js
+++ /dev/null
@@ -1,69 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*';
-
- return {
- contains: [
- hljs.HASH_COMMENT_MODE,
- {
- begin: IDENT_RE,
- lexemes: IDENT_RE,
- keywords: {
- keyword:
- 'function if in break next repeat else for return switch while try tryCatch ' +
- 'stop warning require library attach detach source setMethod setGeneric ' +
- 'setGroupGeneric setClass ...',
- literal:
- 'NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 ' +
- 'NA_complex_|10'
- },
- relevance: 0
- },
- {
- // hex value
- className: 'number',
- begin: "0[xX][0-9a-fA-F]+[Li]?\\b",
- relevance: 0
- },
- {
- // explicit integer
- className: 'number',
- begin: "\\d+(?:[eE][+\\-]?\\d*)?L\\b",
- relevance: 0
- },
- {
- // number with trailing decimal
- className: 'number',
- begin: "\\d+\\.(?!\\d)(?:i\\b)?",
- relevance: 0
- },
- {
- // number
- className: 'number',
- begin: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",
- relevance: 0
- },
- {
- // number with leading decimal
- className: 'number',
- begin: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",
- relevance: 0
- },
-
- {
- // escaped identifier
- begin: '`',
- end: '`',
- relevance: 0
- },
-
- {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- {begin: '"', end: '"'},
- {begin: "'", end: "'"}
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/reasonml.js b/swh/web/static/jssources/highlight.js/lib/languages/reasonml.js
deleted file mode 100644
index 6ae2f4e4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/reasonml.js
+++ /dev/null
@@ -1,299 +0,0 @@
-module.exports = function(hljs) {
- function orReValues(ops){
- return ops
- .map(function(op) {
- return op
- .split('')
- .map(function(char) {
- return '\\' + char;
- })
- .join('');
- })
- .join('|');
- }
-
- var RE_IDENT = '~?[a-z$_][0-9a-zA-Z$_]*';
- var RE_MODULE_IDENT = '`?[A-Z$_][0-9a-zA-Z$_]*';
-
- var RE_PARAM_TYPEPARAM = '\'?[a-z$_][0-9a-z$_]*';
- var RE_PARAM_TYPE = '\s*:\s*[a-z$_][0-9a-z$_]*(\(\s*(' + RE_PARAM_TYPEPARAM + '\s*(,' + RE_PARAM_TYPEPARAM + ')*)?\s*\))?';
- var RE_PARAM = RE_IDENT + '(' + RE_PARAM_TYPE + ')?(' + RE_PARAM_TYPE + ')?';
- var RE_OPERATOR = "(" + orReValues(['||', '&&', '++', '**', '+.', '*', '/', '*.', '/.', '...', '|>']) + "|==|===)";
- var RE_OPERATOR_SPACED = "\\s+" + RE_OPERATOR + "\\s+";
-
- var KEYWORDS = {
- keyword:
- 'and as asr assert begin class constraint do done downto else end exception external' +
- 'for fun function functor if in include inherit initializer' +
- 'land lazy let lor lsl lsr lxor match method mod module mutable new nonrec' +
- 'object of open or private rec sig struct then to try type val virtual when while with',
- built_in:
- 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ',
- literal:
- 'true false'
- };
-
- var RE_NUMBER = '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' +
- '0[oO][0-7_]+[Lln]?|' +
- '0[bB][01_]+[Lln]?|' +
- '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)';
-
- var NUMBER_MODE = {
- className: 'number',
- relevance: 0,
- variants: [
- {
- begin: RE_NUMBER
- },
- {
- begin: '\\(\\-' + RE_NUMBER + '\\)'
- }
- ]
- };
-
- var OPERATOR_MODE = {
- className: 'operator',
- relevance: 0,
- begin: RE_OPERATOR
- };
- var LIST_CONTENTS_MODES = [
- {
- className: 'identifier',
- relevance: 0,
- begin: RE_IDENT
- },
- OPERATOR_MODE,
- NUMBER_MODE
- ];
-
- var MODULE_ACCESS_CONTENTS = [
- hljs.QUOTE_STRING_MODE,
- OPERATOR_MODE,
- {
- className: 'module',
- begin: "\\b" + RE_MODULE_IDENT, returnBegin: true,
- end: "\.",
- contains: [
- {
- className: 'identifier',
- begin: RE_MODULE_IDENT,
- relevance: 0
- }
- ]
- }
- ];
-
- var PARAMS_CONTENTS = [
- {
- className: 'module',
- begin: "\\b" + RE_MODULE_IDENT, returnBegin: true,
- end: "\.",
- relevance: 0,
- contains: [
- {
- className: 'identifier',
- begin: RE_MODULE_IDENT,
- relevance: 0
- }
- ]
- }
- ];
-
- var PARAMS_MODE = {
- begin: RE_IDENT,
- end: '(,|\\n|\\))',
- relevance: 0,
- contains: [
- OPERATOR_MODE,
- {
- className: 'typing',
- begin: ':',
- end: '(,|\\n)',
- returnBegin: true,
- relevance: 0,
- contains: PARAMS_CONTENTS
- }
- ]
- };
-
- var FUNCTION_BLOCK_MODE = {
- className: 'function',
- relevance: 0,
- keywords: KEYWORDS,
- variants: [
- {
- begin: '\\s(\\(\\.?.*?\\)|' + RE_IDENT + ')\\s*=>',
- end: '\\s*=>',
- returnBegin: true,
- relevance: 0,
- contains: [
- {
- className: 'params',
- variants: [
- {
- begin: RE_IDENT
- },
- {
- begin: RE_PARAM
- },
- {
- begin: /\(\s*\)/,
- }
- ]
- }
- ]
- },
- {
- begin: '\\s\\(\\.?[^;\\|]*\\)\\s*=>',
- end: '\\s=>',
- returnBegin: true,
- relevance: 0,
- contains: [
- {
- className: 'params',
- relevance: 0,
- variants: [
- PARAMS_MODE
- ]
- }
- ]
- },
- {
- begin: '\\(\\.\\s' + RE_IDENT + '\\)\\s*=>'
- }
- ]
- };
- MODULE_ACCESS_CONTENTS.push(FUNCTION_BLOCK_MODE);
-
- var CONSTRUCTOR_MODE = {
- className: 'constructor',
- begin: RE_MODULE_IDENT + '\\(',
- end: '\\)',
- illegal: '\\n',
- keywords: KEYWORDS,
- contains: [
- hljs.QUOTE_STRING_MODE,
- OPERATOR_MODE,
- {
- className: 'params',
- begin: '\\b' + RE_IDENT
- }
- ]
- };
-
- var PATTERN_MATCH_BLOCK_MODE = {
- className: 'pattern-match',
- begin: '\\|',
- returnBegin: true,
- keywords: KEYWORDS,
- end: '=>',
- relevance: 0,
- contains: [
- CONSTRUCTOR_MODE,
- OPERATOR_MODE,
- {
- relevance: 0,
- className: 'constructor',
- begin: RE_MODULE_IDENT
- }
- ]
- };
-
- var MODULE_ACCESS_MODE = {
- className: 'module-access',
- keywords: KEYWORDS,
- returnBegin: true,
- variants: [
- {
- begin: "\\b(" + RE_MODULE_IDENT + "\\.)+" + RE_IDENT
- },
- {
- begin: "\\b(" + RE_MODULE_IDENT + "\\.)+\\(",
- end: "\\)",
- returnBegin: true,
- contains: [
- FUNCTION_BLOCK_MODE,
- {
- begin: '\\(',
- end: '\\)',
- skip: true
- }
- ].concat(MODULE_ACCESS_CONTENTS)
- },
- {
- begin: "\\b(" + RE_MODULE_IDENT + "\\.)+{",
- end: "}"
- }
- ],
- contains: MODULE_ACCESS_CONTENTS
- };
-
- PARAMS_CONTENTS.push(MODULE_ACCESS_MODE);
-
- return {
- aliases: ['re'],
- keywords: KEYWORDS,
- illegal: '(:\\-|:=|\\${|\\+=)',
- contains: [
- hljs.COMMENT('/\\*', '\\*/', { illegal: '^(\\#,\\/\\/)' }),
- {
- className: 'character',
- begin: '\'(\\\\[^\']+|[^\'])\'',
- illegal: '\\n',
- relevance: 0
- },
- hljs.QUOTE_STRING_MODE,
- {
- className: 'literal',
- begin: '\\(\\)',
- relevance: 0
- },
- {
- className: 'literal',
- begin: '\\[\\|',
- end: '\\|\\]',
- relevance: 0,
- contains: LIST_CONTENTS_MODES
- },
- {
- className: 'literal',
- begin: '\\[',
- end: '\\]',
- relevance: 0,
- contains: LIST_CONTENTS_MODES
- },
- CONSTRUCTOR_MODE,
- {
- className: 'operator',
- begin: RE_OPERATOR_SPACED,
- illegal: '\\-\\->',
- relevance: 0
- },
- NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- PATTERN_MATCH_BLOCK_MODE,
- FUNCTION_BLOCK_MODE,
- {
- className: 'module-def',
- begin: "\\bmodule\\s+" + RE_IDENT + "\\s+" + RE_MODULE_IDENT + "\\s+=\\s+{",
- end: "}",
- returnBegin: true,
- keywords: KEYWORDS,
- relevance: 0,
- contains: [
- {
- className: 'module',
- relevance: 0,
- begin: RE_MODULE_IDENT
- },
- {
- begin: '{',
- end: '}',
- skip: true
- }
- ].concat(MODULE_ACCESS_CONTENTS)
- },
- MODULE_ACCESS_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/rib.js b/swh/web/static/jssources/highlight.js/lib/languages/rib.js
deleted file mode 100644
index 4138fd99..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/rib.js
+++ /dev/null
@@ -1,26 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords:
- 'ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis ' +
- 'Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone ' +
- 'CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail ' +
- 'DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format ' +
- 'FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry ' +
- 'Hider Hyperboloid Identity Illuminate Imager Interior LightSource ' +
- 'MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte ' +
- 'MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option ' +
- 'Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples ' +
- 'PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection ' +
- 'Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ' +
- 'ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere ' +
- 'SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd ' +
- 'TransformPoints Translate TrimCurve WorldBegin WorldEnd',
- illegal: '',
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.C_NUMBER_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/roboconf.js b/swh/web/static/jssources/highlight.js/lib/languages/roboconf.js
deleted file mode 100644
index fee29282..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/roboconf.js
+++ /dev/null
@@ -1,66 +0,0 @@
-module.exports = function(hljs) {
- var IDENTIFIER = '[a-zA-Z-_][^\\n{]+\\{';
-
- var PROPERTY = {
- className: 'attribute',
- begin: /[a-zA-Z-_]+/, end: /\s*:/, excludeEnd: true,
- starts: {
- end: ';',
- relevance: 0,
- contains: [
- {
- className: 'variable',
- begin: /\.[a-zA-Z-_]+/
- },
- {
- className: 'keyword',
- begin: /\(optional\)/
- }
- ]
- }
- };
-
- return {
- aliases: ['graph', 'instances'],
- case_insensitive: true,
- keywords: 'import',
- contains: [
- // Facet sections
- {
- begin: '^facet ' + IDENTIFIER,
- end: '}',
- keywords: 'facet',
- contains: [
- PROPERTY,
- hljs.HASH_COMMENT_MODE
- ]
- },
-
- // Instance sections
- {
- begin: '^\\s*instance of ' + IDENTIFIER,
- end: '}',
- keywords: 'name count channels instance-data instance-state instance of',
- illegal: /\S/,
- contains: [
- 'self',
- PROPERTY,
- hljs.HASH_COMMENT_MODE
- ]
- },
-
- // Component sections
- {
- begin: '^' + IDENTIFIER,
- end: '}',
- contains: [
- PROPERTY,
- hljs.HASH_COMMENT_MODE
- ]
- },
-
- // Comments
- hljs.HASH_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/routeros.js b/swh/web/static/jssources/highlight.js/lib/languages/routeros.js
deleted file mode 100644
index 55ad00f4..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/routeros.js
+++ /dev/null
@@ -1,158 +0,0 @@
-module.exports = // Colors from RouterOS terminal:
-// green - #0E9A00
-// teal - #0C9A9A
-// purple - #99069A
-// light-brown - #9A9900
-
-function(hljs) {
-
- var STATEMENTS = 'foreach do while for if from to step else on-error and or not in';
-
- // Global commands: Every global command should start with ":" token, otherwise it will be treated as variable.
- var GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime';
-
- // Common commands: Following commands available from most sub-menus:
- var COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning';
-
- var LITERALS = 'true false yes no nothing nil null';
-
- var OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw';
-
- // print parameters
- // Several parameters are available for print command:
- // ToDo: var PARAMETERS_PRINT = 'append as-value brief detail count-only file follow follow-only from interval terse value-list without-paging where info';
- // ToDo: var OPERATORS = '&& and ! not || or in ~ ^ & << >> + - * /';
- // ToDo: var TYPES = 'num number bool boolean str string ip ip6-prefix id time array';
- // ToDo: The following tokens serve as delimiters in the grammar: () [] {} : ; $ /
-
- var VAR_PREFIX = 'global local set for foreach';
-
- var VAR = {
- className: 'variable',
- variants: [
- {begin: /\$[\w\d#@][\w\d_]*/},
- {begin: /\$\{(.*?)}/}
- ]
- };
-
- var QUOTE_STRING = {
- className: 'string',
- begin: /"/, end: /"/,
- contains: [
- hljs.BACKSLASH_ESCAPE,
- VAR,
- {
- className: 'variable',
- begin: /\$\(/, end: /\)/,
- contains: [hljs.BACKSLASH_ESCAPE]
- }
- ]
- };
-
- var APOS_STRING = {
- className: 'string',
- begin: /'/, end: /'/
- };
-
- var IPADDR = '((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b';
- var IPADDR_wBITMASK = IPADDR+'/(3[0-2]|[1-2][0-9]|\\d)';
- //////////////////////////////////////////////////////////////////////
- return {
- aliases: ['routeros', 'mikrotik'],
- case_insensitive: true,
- lexemes: /:?[\w-]+/,
- keywords: {
- literal: LITERALS,
- keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :'),
- },
- contains: [
- { // недопустимые конструкции
- variants: [
- { begin: /^@/, end: /$/, }, // dns
- { begin: /\/\*/, end: /\*\//, }, // -- comment
- { begin: /%%/, end: /$/, }, // -- comment
- { begin: /^'/, end: /$/, }, // Monkey one line comment
- { begin: /^\s*\/[\w-]+=/, end: /$/, }, // jboss-cli
- { begin: /\/\//, end: /$/, }, // Stan comment
- { begin: /^\[\, end: /\>\]$/, }, // F# class declaration?
- { begin: /<\//, end: />/, }, // HTML tags
- { begin: /^facet /, end: /\}/, }, // roboconf - лютый костыль )))
- { begin: '^1\\.\\.(\\d+)$', end: /$/, }, // tap
- ],
- illegal: /./,
- },
- hljs.COMMENT('^#', '$'),
- QUOTE_STRING,
- APOS_STRING,
- VAR,
- { // attribute=value
- begin: /[\w-]+\=([^\s\{\}\[\]\(\)]+)/,
- relevance: 0,
- returnBegin: true,
- contains: [
- {
- className: 'attribute',
- begin: /[^=]+/
- },
- {
- begin: /=/,
- endsWithParent: true,
- relevance: 0,
- contains: [
- QUOTE_STRING,
- APOS_STRING,
- VAR,
- {
- className: 'literal',
- begin: '\\b(' + LITERALS.split(' ').join('|') + ')\\b',
- },
- /*{
- // IPv4 addresses and subnets
- className: 'number',
- variants: [
- {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24
- {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3
- {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1
- ]
- }, // */
- /*{
- // MAC addresses and DHCP Client IDs
- className: 'number',
- begin: /\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\b/,
- }, //*/
- {
- // Не форматировать не классифицированные значения. Необходимо для исключения подсветки значений как built_in.
- // className: 'number',
- begin: /("[^"]*"|[^\s\{\}\[\]]+)/,
- }, //*/
- ]
- } //*/
- ]
- },//*/
- {
- // HEX values
- className: 'number',
- begin: /\*[0-9a-fA-F]+/,
- }, //*/
-
- {
- begin: '\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\s\[\(]|\])',
- returnBegin: true,
- contains: [
- {
- className: 'builtin-name', //'function',
- begin: /\w+/,
- },
- ],
- },
-
- {
- className: 'built_in',
- variants: [
- {begin: '(\\.\\./|/|\\s)((' + OBJECTS.split(' ').join('|') + ');?\\s)+',relevance: 10,},
- {begin: /\.\./,},
- ],
- },//*/
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/rsl.js b/swh/web/static/jssources/highlight.js/lib/languages/rsl.js
deleted file mode 100644
index 2734f4bc..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/rsl.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword:
- 'float color point normal vector matrix while for if do return else break extern continue',
- built_in:
- 'abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise ' +
- 'clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp ' +
- 'faceforward filterstep floor format fresnel incident length lightsource log match ' +
- 'max min mod noise normalize ntransform opposite option phong pnoise pow printf ' +
- 'ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp ' +
- 'setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan ' +
- 'texture textureinfo trace transform vtransform xcomp ycomp zcomp'
- },
- illegal: '',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'meta',
- begin: '#', end: '$'
- },
- {
- className: 'class',
- beginKeywords: 'surface displacement light volume imager', end: '\\('
- },
- {
- beginKeywords: 'illuminate illuminance gather', end: '\\('
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ruby.js b/swh/web/static/jssources/highlight.js/lib/languages/ruby.js
deleted file mode 100644
index 7f771c4b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ruby.js
+++ /dev/null
@@ -1,176 +0,0 @@
-module.exports = function(hljs) {
- var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?';
- var RUBY_KEYWORDS = {
- keyword:
- 'and then defined module in return redo if BEGIN retry end for self when ' +
- 'next until do begin unless END rescue else break undef not super class case ' +
- 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor',
- literal:
- 'true false nil'
- };
- var YARDOCTAG = {
- className: 'doctag',
- begin: '@[A-Za-z]+'
- };
- var IRB_OBJECT = {
- begin: '#<', end: '>'
- };
- var COMMENT_MODES = [
- hljs.COMMENT(
- '#',
- '$',
- {
- contains: [YARDOCTAG]
- }
- ),
- hljs.COMMENT(
- '^\\=begin',
- '^\\=end',
- {
- contains: [YARDOCTAG],
- relevance: 10
- }
- ),
- hljs.COMMENT('^__END__', '\\n$')
- ];
- var SUBST = {
- className: 'subst',
- begin: '#\\{', end: '}',
- keywords: RUBY_KEYWORDS
- };
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {begin: /'/, end: /'/},
- {begin: /"/, end: /"/},
- {begin: /`/, end: /`/},
- {begin: '%[qQwWx]?\\(', end: '\\)'},
- {begin: '%[qQwWx]?\\[', end: '\\]'},
- {begin: '%[qQwWx]?{', end: '}'},
- {begin: '%[qQwWx]?<', end: '>'},
- {begin: '%[qQwWx]?/', end: '/'},
- {begin: '%[qQwWx]?%', end: '%'},
- {begin: '%[qQwWx]?-', end: '-'},
- {begin: '%[qQwWx]?\\|', end: '\\|'},
- {
- // \B in the beginning suppresses recognition of ?-sequences where ?
- // is the last character of a preceding identifier, as in: `func?4`
- begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/
- },
- {
- begin: /<<(-?)\w+$/, end: /^\s*\w+$/,
- }
- ]
- };
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)', endsParent: true,
- keywords: RUBY_KEYWORDS
- };
-
- var RUBY_DEFAULT_CONTAINS = [
- STRING,
- IRB_OBJECT,
- {
- className: 'class',
- beginKeywords: 'class module', end: '$|;',
- illegal: /=/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?'}),
- {
- begin: '<\\s*',
- contains: [{
- begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE
- }]
- }
- ].concat(COMMENT_MODES)
- },
- {
- className: 'function',
- beginKeywords: 'def', end: '$|;',
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: RUBY_METHOD_RE}),
- PARAMS
- ].concat(COMMENT_MODES)
- },
- {
- // swallow namespace qualifiers before symbols
- begin: hljs.IDENT_RE + '::'
- },
- {
- className: 'symbol',
- begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:',
- relevance: 0
- },
- {
- className: 'symbol',
- begin: ':(?!\\s)',
- contains: [STRING, {begin: RUBY_METHOD_RE}],
- relevance: 0
- },
- {
- className: 'number',
- begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
- relevance: 0
- },
- {
- begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' // variables
- },
- {
- className: 'params',
- begin: /\|/, end: /\|/,
- keywords: RUBY_KEYWORDS
- },
- { // regexp container
- begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*',
- keywords: 'unless',
- contains: [
- IRB_OBJECT,
- {
- className: 'regexp',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- illegal: /\n/,
- variants: [
- {begin: '/', end: '/[a-z]*'},
- {begin: '%r{', end: '}[a-z]*'},
- {begin: '%r\\(', end: '\\)[a-z]*'},
- {begin: '%r!', end: '![a-z]*'},
- {begin: '%r\\[', end: '\\][a-z]*'}
- ]
- }
- ].concat(COMMENT_MODES),
- relevance: 0
- }
- ].concat(COMMENT_MODES);
-
- SUBST.contains = RUBY_DEFAULT_CONTAINS;
- PARAMS.contains = RUBY_DEFAULT_CONTAINS;
-
- var SIMPLE_PROMPT = "[>?]>";
- var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>";
- var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>";
-
- var IRB_DEFAULT = [
- {
- begin: /^\s*=>/,
- starts: {
- end: '$', contains: RUBY_DEFAULT_CONTAINS
- }
- },
- {
- className: 'meta',
- begin: '^('+SIMPLE_PROMPT+"|"+DEFAULT_PROMPT+'|'+RVM_PROMPT+')',
- starts: {
- end: '$', contains: RUBY_DEFAULT_CONTAINS
- }
- }
- ];
-
- return {
- aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'],
- keywords: RUBY_KEYWORDS,
- illegal: /\/\*/,
- contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/ruleslanguage.js b/swh/web/static/jssources/highlight.js/lib/languages/ruleslanguage.js
deleted file mode 100644
index 1bd48276..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/ruleslanguage.js
+++ /dev/null
@@ -1,60 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword: 'BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE ' +
- 'INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 ' +
- 'INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 ' +
- 'INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 ' +
- 'INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 ' +
- 'INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 ' +
- 'INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 ' +
- 'INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 ' +
- 'INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 ' +
- 'INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 ' +
- 'INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 ' +
- 'INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 ' +
- 'INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 ' +
- 'INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 ' +
- 'INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 ' +
- 'MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER ' +
- 'OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE ' +
- 'NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH ' +
- 'IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND ' +
- 'UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ' +
- 'ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE ' +
- 'GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE ' +
- 'SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING ' +
- 'DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF ' +
- 'MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY ' +
- 'YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE ' +
- 'COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR ' +
- 'READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ' +
- 'ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE ' +
- 'EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE ' +
- 'SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL ' +
- 'COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN ' +
- 'MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING ' +
- 'FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM ' +
- 'NUMDAYS READ_DATE STAGING',
- built_in: 'IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML ' +
- 'DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT ' +
- 'DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE ' +
- 'DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT ' +
- 'DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'literal',
- variants: [
- {begin: '#\\s+[a-zA-Z\\ \\.]*', relevance: 0}, // looks like #-comment
- {begin: '#[a-zA-Z\\ \\.]+'}
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/rust.js b/swh/web/static/jssources/highlight.js/lib/languages/rust.js
deleted file mode 100644
index c4b0d1c5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/rust.js
+++ /dev/null
@@ -1,107 +0,0 @@
-module.exports = function(hljs) {
- var NUM_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?';
- var KEYWORDS =
- 'alignof as be box break const continue crate do else enum extern ' +
- 'false fn for if impl in let loop match mod mut offsetof once priv ' +
- 'proc pub pure ref return self Self sizeof static struct super trait true ' +
- 'type typeof unsafe unsized use virtual while where yield move default';
- var BUILTINS =
- // functions
- 'drop ' +
- // types
- 'i8 i16 i32 i64 i128 isize ' +
- 'u8 u16 u32 u64 u128 usize ' +
- 'f32 f64 ' +
- 'str char bool ' +
- 'Box Option Result String Vec ' +
- // traits
- 'Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug ' +
- 'PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator ' +
- 'Extend IntoIterator DoubleEndedIterator ExactSizeIterator ' +
- 'SliceConcatExt ToString ' +
- // macros
- 'assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! ' +
- 'debug_assert! debug_assert_eq! env! panic! file! format! format_args! ' +
- 'include_bin! include_str! line! local_data_key! module_path! ' +
- 'option_env! print! println! select! stringify! try! unimplemented! ' +
- 'unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!';
- return {
- aliases: ['rs'],
- keywords: {
- keyword:
- KEYWORDS,
- literal:
- 'true false Some None Ok Err',
- built_in:
- BUILTINS
- },
- lexemes: hljs.IDENT_RE + '!?',
- illegal: '',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.COMMENT('/\\*', '\\*/', {contains: ['self']}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {begin: /b?"/, illegal: null}),
- {
- className: 'string',
- variants: [
- { begin: /r(#*)"(.|\n)*?"\1(?!#)/ },
- { begin: /b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/ }
- ]
- },
- {
- className: 'symbol',
- begin: /'[a-zA-Z_][a-zA-Z0-9_]*/
- },
- {
- className: 'number',
- variants: [
- { begin: '\\b0b([01_]+)' + NUM_SUFFIX },
- { begin: '\\b0o([0-7_]+)' + NUM_SUFFIX },
- { begin: '\\b0x([A-Fa-f0-9_]+)' + NUM_SUFFIX },
- { begin: '\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' +
- NUM_SUFFIX
- }
- ],
- relevance: 0
- },
- {
- className: 'function',
- beginKeywords: 'fn', end: '(\\(|<)', excludeEnd: true,
- contains: [hljs.UNDERSCORE_TITLE_MODE]
- },
- {
- className: 'meta',
- begin: '#\\!?\\[', end: '\\]',
- contains: [
- {
- className: 'meta-string',
- begin: /"/, end: /"/
- }
- ]
- },
- {
- className: 'class',
- beginKeywords: 'type', end: ';',
- contains: [
- hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, {endsParent: true})
- ],
- illegal: '\\S'
- },
- {
- className: 'class',
- beginKeywords: 'trait enum struct union', end: '{',
- contains: [
- hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, {endsParent: true})
- ],
- illegal: '[\\w\\d]'
- },
- {
- begin: hljs.IDENT_RE + '::',
- keywords: {built_in: BUILTINS}
- },
- {
- begin: '->'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/sas.js b/swh/web/static/jssources/highlight.js/lib/languages/sas.js
deleted file mode 100644
index 71efbb5f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/sas.js
+++ /dev/null
@@ -1,125 +0,0 @@
-module.exports = function(hljs) {
-
- // Data step and PROC SQL statements
- var SAS_KEYWORDS = ''+
- 'do if then else end until while '+
- ''+
- 'abort array attrib by call cards cards4 catname continue '+
- 'datalines datalines4 delete delim delimiter display dm drop '+
- 'endsas error file filename footnote format goto in infile '+
- 'informat input keep label leave length libname link list '+
- 'lostcard merge missing modify options output out page put '+
- 'redirect remove rename replace retain return select set skip '+
- 'startsas stop title update waitsas where window x systask '+
- ''+
- 'add and alter as cascade check create delete describe '+
- 'distinct drop foreign from group having index insert into in '+
- 'key like message modify msgtype not null on or order primary '+
- 'references reset restrict select set table unique update '+
- 'validate view where';
-
- // Built-in SAS functions
- var SAS_FUN = ''+
- 'abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|'+
- 'betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|'+
- 'cexist|cinv|close|cnonct|collate|compbl|compound|'+
- 'compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|'+
- 'daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|'+
- 'datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|'+
- 'depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|'+
- 'digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|'+
- 'dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|'+
- 'fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|'+
- 'filename|fileref|finfo|finv|fipname|fipnamel|'+
- 'fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|'+
- 'fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|'+
- 'fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|'+
- 'hms|hosthelp|hour|ibessel|index|indexc|indexw|input|'+
- 'inputc|inputn|int|intck|intnx|intrr|irr|jbessel|'+
- 'juldate|kurtosis|lag|lbound|left|length|lgamma|'+
- 'libname|libref|log|log10|log2|logpdf|logpmf|logsdf|'+
- 'lowcase|max|mdy|mean|min|minute|mod|month|mopen|'+
- 'mort|n|netpv|nmiss|normal|note|npv|open|ordinal|'+
- 'pathname|pdf|peek|peekc|pmf|point|poisson|poke|'+
- 'probbeta|probbnml|probchi|probf|probgam|probhypr|'+
- 'probit|probnegb|probnorm|probt|put|putc|putn|qtr|'+
- 'quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|'+
- 'ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|'+
- 'rewind|right|round|saving|scan|sdf|second|sign|'+
- 'sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|'+
- 'stfips|stname|stnamel|substr|sum|symget|sysget|'+
- 'sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|'+
- 'tinv|tnonct|today|translate|tranwrd|trigamma|'+
- 'trim|trimn|trunc|uniform|upcase|uss|var|varfmt|'+
- 'varinfmt|varlabel|varlen|varname|varnum|varray|'+
- 'varrayx|vartype|verify|vformat|vformatd|vformatdx|'+
- 'vformatn|vformatnx|vformatw|vformatwx|vformatx|'+
- 'vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|'+
- 'vinformatn|vinformatnx|vinformatw|vinformatwx|'+
- 'vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|'+
- 'vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|'+
- 'zipnamel|zipstate';
-
- // Built-in macro functions
- var SAS_MACRO_FUN = 'bquote|nrbquote|cmpres|qcmpres|compstor|'+
- 'datatyp|display|do|else|end|eval|global|goto|'+
- 'if|index|input|keydef|label|left|length|let|'+
- 'local|lowcase|macro|mend|nrbquote|nrquote|'+
- 'nrstr|put|qcmpres|qleft|qlowcase|qscan|'+
- 'qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|'+
- 'substr|superq|syscall|sysevalf|sysexec|sysfunc|'+
- 'sysget|syslput|sysprod|sysrc|sysrput|then|to|'+
- 'trim|unquote|until|upcase|verify|while|window';
-
- return {
- aliases: ['sas', 'SAS'],
- case_insensitive: true, // SAS is case-insensitive
- keywords: {
- literal:
- 'null missing _all_ _automatic_ _character_ _infile_ '+
- '_n_ _name_ _null_ _numeric_ _user_ _webout_',
- meta:
- SAS_KEYWORDS
- },
- contains: [
- {
- // Distinct highlight for proc , data, run, quit
- className: 'keyword',
- begin: /^\s*(proc [\w\d_]+|data|run|quit)[\s\;]/
- },
- {
- // Macro variables
- className: 'variable',
- begin: /\&[a-zA-Z_\&][a-zA-Z0-9_]*\.?/
- },
- {
- // Special emphasis for datalines|cards
- className: 'emphasis',
- begin: /^\s*datalines|cards.*;/,
- end: /^\s*;\s*$/
- },
- { // Built-in macro variables take precedence
- className: 'built_in',
- begin: '%(' + SAS_MACRO_FUN + ')'
- },
- {
- // User-defined macro functions highlighted after
- className: 'name',
- begin: /%[a-zA-Z_][a-zA-Z_0-9]*/
- },
- {
- className: 'meta',
- begin: '[^%](' + SAS_FUN + ')[\(]'
- },
- {
- className: 'string',
- variants: [
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- },
- hljs.COMMENT('\\*', ';'),
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/scala.js b/swh/web/static/jssources/highlight.js/lib/languages/scala.js
deleted file mode 100644
index 1a3f2d9d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/scala.js
+++ /dev/null
@@ -1,114 +0,0 @@
-module.exports = function(hljs) {
-
- var ANNOTATION = { className: 'meta', begin: '@[A-Za-z]+' };
-
- // used in strings for escaping/interpolation/substitution
- var SUBST = {
- className: 'subst',
- variants: [
- {begin: '\\$[A-Za-z0-9_]+'},
- {begin: '\\${', end: '}'}
- ]
- };
-
- var STRING = {
- className: 'string',
- variants: [
- {
- begin: '"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- begin: '"""', end: '"""',
- relevance: 10
- },
- {
- begin: '[a-z]+"', end: '"',
- illegal: '\\n',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
- },
- {
- className: 'string',
- begin: '[a-z]+"""', end: '"""',
- contains: [SUBST],
- relevance: 10
- }
- ]
-
- };
-
- var SYMBOL = {
- className: 'symbol',
- begin: '\'\\w[\\w\\d_]*(?!\')'
- };
-
- var TYPE = {
- className: 'type',
- begin: '\\b[A-Z][A-Za-z0-9_]*',
- relevance: 0
- };
-
- var NAME = {
- className: 'title',
- begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,
- relevance: 0
- };
-
- var CLASS = {
- className: 'class',
- beginKeywords: 'class object trait type',
- end: /[:={\[\n;]/,
- excludeEnd: true,
- contains: [
- {
- beginKeywords: 'extends with',
- relevance: 10
- },
- {
- begin: /\[/,
- end: /\]/,
- excludeBegin: true,
- excludeEnd: true,
- relevance: 0,
- contains: [TYPE]
- },
- {
- className: 'params',
- begin: /\(/,
- end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- relevance: 0,
- contains: [TYPE]
- },
- NAME
- ]
- };
-
- var METHOD = {
- className: 'function',
- beginKeywords: 'def',
- end: /[:={\[(\n;]/,
- excludeEnd: true,
- contains: [NAME]
- };
-
- return {
- keywords: {
- literal: 'true false null',
- keyword: 'type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit'
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- STRING,
- SYMBOL,
- TYPE,
- METHOD,
- CLASS,
- hljs.C_NUMBER_MODE,
- ANNOTATION
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/scheme.js b/swh/web/static/jssources/highlight.js/lib/languages/scheme.js
deleted file mode 100644
index f4cd10cf..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/scheme.js
+++ /dev/null
@@ -1,143 +0,0 @@
-module.exports = function(hljs) {
- var SCHEME_IDENT_RE = '[^\\(\\)\\[\\]\\{\\}",\'`;#|\\\\\\s]+';
- var SCHEME_SIMPLE_NUMBER_RE = '(\\-|\\+)?\\d+([./]\\d+)?';
- var SCHEME_COMPLEX_NUMBER_RE = SCHEME_SIMPLE_NUMBER_RE + '[+\\-]' + SCHEME_SIMPLE_NUMBER_RE + 'i';
- var BUILTINS = {
- 'builtin-name':
- 'case-lambda call/cc class define-class exit-handler field import ' +
- 'inherit init-field interface let*-values let-values let/ec mixin ' +
- 'opt-lambda override protect provide public rename require ' +
- 'require-for-syntax syntax syntax-case syntax-error unit/sig unless ' +
- 'when with-syntax and begin call-with-current-continuation ' +
- 'call-with-input-file call-with-output-file case cond define ' +
- 'define-syntax delay do dynamic-wind else for-each if lambda let let* ' +
- 'let-syntax letrec letrec-syntax map or syntax-rules \' * + , ,@ - ... / ' +
- '; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan ' +
- 'boolean? caar cadr call-with-input-file call-with-output-file ' +
- 'call-with-values car cdddar cddddr cdr ceiling char->integer ' +
- 'char-alphabetic? char-ci<=? char-ci char-ci=? char-ci>=? char-ci>? ' +
- 'char-downcase char-lower-case? char-numeric? char-ready? char-upcase ' +
- 'char-upper-case? char-whitespace? char<=? char char=? char>=? char>? ' +
- 'char? close-input-port close-output-port complex? cons cos ' +
- 'current-input-port current-output-port denominator display eof-object? ' +
- 'eq? equal? eqv? eval even? exact->inexact exact? exp expt floor ' +
- 'force gcd imag-part inexact->exact inexact? input-port? integer->char ' +
- 'integer? interaction-environment lcm length list list->string ' +
- 'list->vector list-ref list-tail list? load log magnitude make-polar ' +
- 'make-rectangular make-string make-vector max member memq memv min ' +
- 'modulo negative? newline not null-environment null? number->string ' +
- 'number? numerator odd? open-input-file open-output-file output-port? ' +
- 'pair? peek-char port? positive? procedure? quasiquote quote quotient ' +
- 'rational? rationalize read read-char real-part real? remainder reverse ' +
- 'round scheme-report-environment set! set-car! set-cdr! sin sqrt string ' +
- 'string->list string->number string->symbol string-append string-ci<=? ' +
- 'string-ci string-ci=? string-ci>=? string-ci>? string-copy ' +
- 'string-fill! string-length string-ref string-set! string<=? string ' +
- 'string=? string>=? string>? string? substring symbol->string symbol? ' +
- 'tan transcript-off transcript-on truncate values vector ' +
- 'vector->list vector-fill! vector-length vector-ref vector-set! ' +
- 'with-input-from-file with-output-to-file write write-char zero?'
- };
-
- var SHEBANG = {
- className: 'meta',
- begin: '^#!',
- end: '$'
- };
-
- var LITERAL = {
- className: 'literal',
- begin: '(#t|#f|#\\\\' + SCHEME_IDENT_RE + '|#\\\\.)'
- };
-
- var NUMBER = {
- className: 'number',
- variants: [
- { begin: SCHEME_SIMPLE_NUMBER_RE, relevance: 0 },
- { begin: SCHEME_COMPLEX_NUMBER_RE, relevance: 0 },
- { begin: '#b[0-1]+(/[0-1]+)?' },
- { begin: '#o[0-7]+(/[0-7]+)?' },
- { begin: '#x[0-9a-f]+(/[0-9a-f]+)?' }
- ]
- };
-
- var STRING = hljs.QUOTE_STRING_MODE;
-
- var REGULAR_EXPRESSION = {
- className: 'regexp',
- begin: '#[pr]x"',
- end: '[^\\\\]"'
- };
-
- var COMMENT_MODES = [
- hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- ),
- hljs.COMMENT('#\\|', '\\|#')
- ];
-
- var IDENT = {
- begin: SCHEME_IDENT_RE,
- relevance: 0
- };
-
- var QUOTED_IDENT = {
- className: 'symbol',
- begin: '\'' + SCHEME_IDENT_RE
- };
-
- var BODY = {
- endsWithParent: true,
- relevance: 0
- };
-
- var QUOTED_LIST = {
- variants: [
- { begin: /'/ },
- { begin: '`' }
- ],
- contains: [
- {
- begin: '\\(', end: '\\)',
- contains: ['self', LITERAL, STRING, NUMBER, IDENT, QUOTED_IDENT]
- }
- ]
- };
-
- var NAME = {
- className: 'name',
- begin: SCHEME_IDENT_RE,
- lexemes: SCHEME_IDENT_RE,
- keywords: BUILTINS
- };
-
- var LAMBDA = {
- begin: /lambda/, endsWithParent: true, returnBegin: true,
- contains: [
- NAME,
- {
- begin: /\(/, end: /\)/, endsParent: true,
- contains: [IDENT],
- }
- ]
- };
-
- var LIST = {
- variants: [
- { begin: '\\(', end: '\\)' },
- { begin: '\\[', end: '\\]' }
- ],
- contains: [LAMBDA, NAME, BODY]
- };
-
- BODY.contains = [LITERAL, NUMBER, STRING, IDENT, QUOTED_IDENT, QUOTED_LIST, LIST].concat(COMMENT_MODES);
-
- return {
- illegal: /\S/,
- contains: [SHEBANG, NUMBER, STRING, QUOTED_IDENT, QUOTED_LIST, LIST].concat(COMMENT_MODES)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/scilab.js b/swh/web/static/jssources/highlight.js/lib/languages/scilab.js
deleted file mode 100644
index 9aeaf182..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/scilab.js
+++ /dev/null
@@ -1,53 +0,0 @@
-module.exports = function(hljs) {
-
- var COMMON_CONTAINS = [
- hljs.C_NUMBER_MODE,
- {
- className: 'string',
- begin: '\'|\"', end: '\'|\"',
- contains: [hljs.BACKSLASH_ESCAPE, {begin: '\'\''}]
- }
- ];
-
- return {
- aliases: ['sci'],
- lexemes: /%?\w+/,
- keywords: {
- keyword: 'abort break case clear catch continue do elseif else endfunction end for function '+
- 'global if pause return resume select try then while',
- literal:
- '%f %F %t %T %pi %eps %inf %nan %e %i %z %s',
- built_in: // Scilab has more than 2000 functions. Just list the most commons
- 'abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error '+
- 'exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty '+
- 'isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log '+
- 'max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real '+
- 'round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan '+
- 'type typename warning zeros matrix'
- },
- illegal: '("|#|/\\*|\\s+/\\w+)',
- contains: [
- {
- className: 'function',
- beginKeywords: 'function', end: '$',
- contains: [
- hljs.UNDERSCORE_TITLE_MODE,
- {
- className: 'params',
- begin: '\\(', end: '\\)'
- }
- ]
- },
- {
- begin: '[a-zA-Z_][a-zA-Z_0-9]*(\'+[\\.\']*|[\\.\']+)', end: '',
- relevance: 0
- },
- {
- begin: '\\[', end: '\\]\'*[\\.\']*',
- relevance: 0,
- contains: COMMON_CONTAINS
- },
- hljs.COMMENT('//', '$')
- ].concat(COMMON_CONTAINS)
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/scss.js b/swh/web/static/jssources/highlight.js/lib/languages/scss.js
deleted file mode 100644
index e9bb62a3..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/scss.js
+++ /dev/null
@@ -1,97 +0,0 @@
-module.exports = function(hljs) {
- var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';
- var VARIABLE = {
- className: 'variable',
- begin: '(\\$' + IDENT_RE + ')\\b'
- };
- var HEXCOLOR = {
- className: 'number', begin: '#[0-9A-Fa-f]+'
- };
- var DEF_INTERNALS = {
- className: 'attribute',
- begin: '[A-Z\\_\\.\\-]+', end: ':',
- excludeEnd: true,
- illegal: '[^\\s]',
- starts: {
- endsWithParent: true, excludeEnd: true,
- contains: [
- HEXCOLOR,
- hljs.CSS_NUMBER_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'meta', begin: '!important'
- }
- ]
- }
- };
- return {
- case_insensitive: true,
- illegal: '[=/|\']',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'selector-id', begin: '\\#[A-Za-z0-9_-]+',
- relevance: 0
- },
- {
- className: 'selector-class', begin: '\\.[A-Za-z0-9_-]+',
- relevance: 0
- },
- {
- className: 'selector-attr', begin: '\\[', end: '\\]',
- illegal: '$'
- },
- {
- className: 'selector-tag', // begin: IDENT_RE, end: '[,|\\s]'
- begin: '\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b',
- relevance: 0
- },
- {
- begin: ':(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)'
- },
- {
- begin: '::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)'
- },
- VARIABLE,
- {
- className: 'attribute',
- begin: '\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b',
- illegal: '[^\\s]'
- },
- {
- begin: '\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b'
- },
- {
- begin: ':', end: ';',
- contains: [
- VARIABLE,
- HEXCOLOR,
- hljs.CSS_NUMBER_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- {
- className: 'meta', begin: '!important'
- }
- ]
- },
- {
- begin: '@', end: '[{;]',
- keywords: 'mixin include extend for if else each while charset import debug media page content font-face namespace warn',
- contains: [
- VARIABLE,
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- HEXCOLOR,
- hljs.CSS_NUMBER_MODE,
- {
- begin: '\\s[A-Za-z0-9_.-]+',
- relevance: 0
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/shell.js b/swh/web/static/jssources/highlight.js/lib/languages/shell.js
deleted file mode 100644
index d8192769..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/shell.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['console'],
- contains: [
- {
- className: 'meta',
- begin: '^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]',
- starts: {
- end: '$', subLanguage: 'bash'
- }
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/smali.js b/swh/web/static/jssources/highlight.js/lib/languages/smali.js
deleted file mode 100644
index ae7f29bd..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/smali.js
+++ /dev/null
@@ -1,55 +0,0 @@
-module.exports = function(hljs) {
- var smali_instr_low_prio = ['add', 'and', 'cmp', 'cmpg', 'cmpl', 'const', 'div', 'double', 'float', 'goto', 'if', 'int', 'long', 'move', 'mul', 'neg', 'new', 'nop', 'not', 'or', 'rem', 'return', 'shl', 'shr', 'sput', 'sub', 'throw', 'ushr', 'xor'];
- var smali_instr_high_prio = ['aget', 'aput', 'array', 'check', 'execute', 'fill', 'filled', 'goto/16', 'goto/32', 'iget', 'instance', 'invoke', 'iput', 'monitor', 'packed', 'sget', 'sparse'];
- var smali_keywords = ['transient', 'constructor', 'abstract', 'final', 'synthetic', 'public', 'private', 'protected', 'static', 'bridge', 'system'];
- return {
- aliases: ['smali'],
- contains: [
- {
- className: 'string',
- begin: '"', end: '"',
- relevance: 0
- },
- hljs.COMMENT(
- '#',
- '$',
- {
- relevance: 0
- }
- ),
- {
- className: 'keyword',
- variants: [
- {begin: '\\s*\\.end\\s[a-zA-Z0-9]*'},
- {begin: '^[ ]*\\.[a-zA-Z]*', relevance: 0},
- {begin: '\\s:[a-zA-Z_0-9]*', relevance: 0},
- {begin: '\\s(' + smali_keywords.join('|') + ')'}
- ]
- },
- {
- className: 'built_in',
- variants : [
- {
- begin: '\\s('+smali_instr_low_prio.join('|')+')\\s'
- },
- {
- begin: '\\s('+smali_instr_low_prio.join('|')+')((\\-|/)[a-zA-Z0-9]+)+\\s',
- relevance: 10
- },
- {
- begin: '\\s('+smali_instr_high_prio.join('|')+')((\\-|/)[a-zA-Z0-9]+)*\\s',
- relevance: 10
- },
- ]
- },
- {
- className: 'class',
- begin: 'L[^\(;:\n]*;',
- relevance: 0
- },
- {
- begin: '[vp][0-9]+',
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/smalltalk.js b/swh/web/static/jssources/highlight.js/lib/languages/smalltalk.js
deleted file mode 100644
index 6734bc11..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/smalltalk.js
+++ /dev/null
@@ -1,49 +0,0 @@
-module.exports = function(hljs) {
- var VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*';
- var CHAR = {
- className: 'string',
- begin: '\\$.{1}'
- };
- var SYMBOL = {
- className: 'symbol',
- begin: '#' + hljs.UNDERSCORE_IDENT_RE
- };
- return {
- aliases: ['st'],
- keywords: 'self super nil true false thisContext', // only 6
- contains: [
- hljs.COMMENT('"', '"'),
- hljs.APOS_STRING_MODE,
- {
- className: 'type',
- begin: '\\b[A-Z][A-Za-z0-9_]*',
- relevance: 0
- },
- {
- begin: VAR_IDENT_RE + ':',
- relevance: 0
- },
- hljs.C_NUMBER_MODE,
- SYMBOL,
- CHAR,
- {
- // This looks more complicated than needed to avoid combinatorial
- // explosion under V8. It effectively means `| var1 var2 ... |` with
- // whitespace adjacent to `|` being optional.
- begin: '\\|[ ]*' + VAR_IDENT_RE + '([ ]+' + VAR_IDENT_RE + ')*[ ]*\\|',
- returnBegin: true, end: /\|/,
- illegal: /\S/,
- contains: [{begin: '(\\|[ ]*)?' + VAR_IDENT_RE}]
- },
- {
- begin: '\\#\\(', end: '\\)',
- contains: [
- hljs.APOS_STRING_MODE,
- CHAR,
- hljs.C_NUMBER_MODE,
- SYMBOL
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/sml.js b/swh/web/static/jssources/highlight.js/lib/languages/sml.js
deleted file mode 100644
index e7a34ce5..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/sml.js
+++ /dev/null
@@ -1,65 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['ml'],
- keywords: {
- keyword:
- /* according to Definition of Standard ML 97 */
- 'abstype and andalso as case datatype do else end eqtype ' +
- 'exception fn fun functor handle if in include infix infixr ' +
- 'let local nonfix of op open orelse raise rec sharing sig ' +
- 'signature struct structure then type val with withtype where while',
- built_in:
- /* built-in types according to basis library */
- 'array bool char exn int list option order real ref string substring vector unit word',
- literal:
- 'true false NONE SOME LESS EQUAL GREATER nil'
- },
- illegal: /\/\/|>>/,
- lexemes: '[a-z_]\\w*!?',
- contains: [
- {
- className: 'literal',
- begin: /\[(\|\|)?\]|\(\)/,
- relevance: 0
- },
- hljs.COMMENT(
- '\\(\\*',
- '\\*\\)',
- {
- contains: ['self']
- }
- ),
- { /* type variable */
- className: 'symbol',
- begin: '\'[A-Za-z_](?!\')[\\w\']*'
- /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */
- },
- { /* polymorphic variant */
- className: 'type',
- begin: '`[A-Z][\\w\']*'
- },
- { /* module or constructor */
- className: 'type',
- begin: '\\b[A-Z][\\w\']*',
- relevance: 0
- },
- { /* don't color identifiers, but safely catch all identifiers with '*/
- begin: '[a-z_]\\w*\'[\\w\']*'
- },
- hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- {
- className: 'number',
- begin:
- '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' +
- '0[oO][0-7_]+[Lln]?|' +
- '0[bB][01_]+[Lln]?|' +
- '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)',
- relevance: 0
- },
- {
- begin: /[-=]>/ // relevance booster
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/sqf.js b/swh/web/static/jssources/highlight.js/lib/languages/sqf.js
deleted file mode 100644
index eab90812..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/sqf.js
+++ /dev/null
@@ -1,404 +0,0 @@
-module.exports = function(hljs) {
- var CPP = hljs.getLanguage('cpp').exports;
-
- // In SQF, a variable start with _
- var VARIABLE = {
- className: 'variable',
- begin: /\b_+[a-zA-Z_]\w*/
- };
-
- // In SQF, a function should fit myTag_fnc_myFunction pattern
- // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function
- var FUNCTION = {
- className: 'title',
- begin: /[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/
- };
-
- // In SQF strings, quotes matching the start are escaped by adding a consecutive.
- // Example of single escaped quotes: " "" " and ' '' '.
- var STRINGS = {
- className: 'string',
- variants: [
- {
- begin: '"',
- end: '"',
- contains: [{begin: '""', relevance: 0}]
- },
- {
- begin: '\'',
- end: '\'',
- contains: [{begin: '\'\'', relevance: 0}]
- }
- ]
- };
-
- return {
- aliases: ['sqf'],
- case_insensitive: true,
- keywords: {
- keyword:
- 'case catch default do else exit exitWith for forEach from if ' +
- 'private switch then throw to try waitUntil while with',
- built_in:
- 'abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames ' +
- 'actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey ' +
- 'add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo ' +
- 'addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea ' +
- 'addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler ' +
- 'addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo ' +
- 'addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats ' +
- 'addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal ' +
- 'addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler ' +
- 'addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem ' +
- 'addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem ' +
- 'addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest ' +
- 'addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem ' +
- 'addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD ' +
- 'airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls ' +
- 'allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines ' +
- 'allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage ' +
- 'allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects ' +
- 'allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay ' +
- 'animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase ' +
- 'animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert ' +
- 'assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret ' +
- 'assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems ' +
- 'assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam ' +
- 'assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject ' +
- 'attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines ' +
- 'backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter ' +
- 'breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode ' +
- 'call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams ' +
- 'camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView ' +
- 'campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive ' +
- 'camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget ' +
- 'camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos ' +
- 'camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest ' +
- 'cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend ' +
- 'canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked ' +
- 'cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className ' +
- 'clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons ' +
- 'clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal ' +
- 'clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool ' +
- 'clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory ' +
- 'collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow ' +
- 'commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop ' +
- 'commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal ' +
- 'completedFSM composeText configClasses configFile configHierarchy configName configProperties ' +
- 'configSourceAddonList configSourceMod configSourceModList confirmSensorTarget ' +
- 'connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count ' +
- 'countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity ' +
- 'createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject ' +
- 'createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker ' +
- 'createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay ' +
- 'createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam ' +
- 'createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ' +
- 'ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ' +
- 'ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ' +
- 'ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ' +
- 'ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ' +
- 'ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ' +
- 'ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ' +
- 'ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ' +
- 'ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ' +
- 'ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ' +
- 'ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ' +
- 'ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ' +
- 'ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ' +
- 'ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ' +
- 'ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ' +
- 'ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ' +
- 'ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ' +
- 'ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ' +
- 'ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ' +
- 'ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera ' +
- 'curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea ' +
- 'curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected ' +
- 'curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine ' +
- 'currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle ' +
- 'currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint ' +
- 'currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget ' +
- 'customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime ' +
- 'deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ' +
- 'deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity ' +
- 'deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus ' +
- 'deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines ' +
- 'diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts ' +
- 'diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance ' +
- 'diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad ' +
- 'diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits ' +
- 'diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner ' +
- 'difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI ' +
- 'disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators ' +
- 'disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment ' +
- 'disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent ' +
- 'displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam ' +
- 'distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow ' +
- 'doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse ' +
- 'drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle ' +
- 'drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef ' +
- 'dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject ' +
- 'editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature ' +
- 'enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD ' +
- 'enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot ' +
- 'enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem ' +
- 'enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights ' +
- 'enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload ' +
- 'enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation ' +
- 'enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability ' +
- 'enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly ' +
- 'endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities ' +
- 'environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack ' +
- 'everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages ' +
- 'eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission ' +
- 'fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition ' +
- 'findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget ' +
- 'firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight ' +
- 'flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture ' +
- 'forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange ' +
- 'forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation ' +
- 'formationDirection formationLeader formationMembers formationPosition formationTask formatText ' +
- 'formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData ' +
- 'get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity ' +
- 'get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible ' +
- 'get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers ' +
- 'getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision ' +
- 'getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA ' +
- 'getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining ' +
- 'getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState ' +
- 'getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad ' +
- 'getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual ' +
- 'getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode ' +
- 'getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture ' +
- 'getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom ' +
- 'getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos ' +
- 'getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs ' +
- 'getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber ' +
- 'getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy ' +
- 'getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs ' +
- 'getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget ' +
- 'getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual ' +
- 'getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir ' +
- 'getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents ' +
- 'getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue ' +
- 'getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout ' +
- 'getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo ' +
- 'getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio ' +
- 'goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId ' +
- 'groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems ' +
- 'handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups ' +
- 'hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup ' +
- 'hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC ' +
- 'hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups ' +
- 'importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel ' +
- 'infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom ' +
- 'initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN ' +
- 'is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest ' +
- 'isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated ' +
- 'isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray ' +
- 'isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader ' +
- 'isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn ' +
- 'isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection ' +
- 'isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad ' +
- 'isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons ' +
- 'isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText ' +
- 'isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext ' +
- 'isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking ' +
- 'isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent ' +
- 'joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact ' +
- 'kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language ' +
- 'laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture ' +
- 'lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture ' +
- 'lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight ' +
- 'lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected ' +
- 'lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip ' +
- 'lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit ' +
- 'leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore ' +
- 'leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits ' +
- 'libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed ' +
- 'linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith ' +
- 'linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn ' +
- 'lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow ' +
- 'lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData ' +
- 'lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs ' +
- 'loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform ' +
- 'loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked ' +
- 'lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork ' +
- 'logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo ' +
- 'magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack ' +
- 'magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd ' +
- 'mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam ' +
- 'markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText ' +
- 'markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete ' +
- 'menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData ' +
- 'menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL ' +
- 'menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName ' +
- 'missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual ' +
- 'modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move ' +
- 'move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret ' +
- 'moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound ' +
- 'nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing ' +
- 'nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads ' +
- 'nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex ' +
- 'nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId ' +
- 'objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch ' +
- 'onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter ' +
- 'onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected ' +
- 'onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch ' +
- 'openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast ' +
- 'overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace ' +
- 'particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW ' +
- 'playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide ' +
- 'playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission ' +
- 'playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ' +
- 'ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ' +
- 'ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound ' +
- 'preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon ' +
- 'primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName ' +
- 'profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition ' +
- 'publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool ' +
- 'queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate ' +
- 'radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random ' +
- 'rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl ' +
- 'remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler ' +
- 'remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems ' +
- 'removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas ' +
- 'removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems ' +
- 'removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers ' +
- 'removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons ' +
- 'removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea ' +
- 'removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks ' +
- 'removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem ' +
- 'removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest ' +
- 'removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret ' +
- 'removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler ' +
- 'removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem ' +
- 'removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon ' +
- 'removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret ' +
- 'reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources ' +
- 'respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt ' +
- 'roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ' +
- 'ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ' +
- 'ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW ' +
- 'safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity ' +
- 'saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D ' +
- 'scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState ' +
- 'secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces ' +
- 'selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition ' +
- 'selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted ' +
- 'selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult ' +
- 'sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime ' +
- 'set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer ' +
- 'set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes ' +
- 'set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD ' +
- 'setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef ' +
- 'setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour ' +
- 'setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams ' +
- 'setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation ' +
- 'setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType ' +
- 'setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef ' +
- 'setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination ' +
- 'setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval ' +
- 'setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope ' +
- 'setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType ' +
- 'setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation ' +
- 'setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo ' +
- 'setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId ' +
- 'setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage ' +
- 'setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader ' +
- 'setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight ' +
- 'setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare ' +
- 'setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush ' +
- 'setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal ' +
- 'setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize ' +
- 'setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass ' +
- 'setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound ' +
- 'setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture ' +
- 'setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining ' +
- 'setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom ' +
- 'setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect ' +
- 'setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW ' +
- 'setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain ' +
- 'setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance ' +
- 'setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData ' +
- 'setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType ' +
- 'setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech ' +
- 'setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits ' +
- 'setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText ' +
- 'setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap ' +
- 'setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText ' +
- 'setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos ' +
- 'setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat ' +
- 'setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp ' +
- 'setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId ' +
- 'setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets ' +
- 'setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName ' +
- 'setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance ' +
- 'setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode ' +
- 'setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation ' +
- 'setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName ' +
- 'setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout ' +
- 'setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce ' +
- 'setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu ' +
- 'showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer ' +
- 'shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap ' +
- 'shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio ' +
- 'showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side ' +
- 'sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity ' +
- 'simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime ' +
- 'sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed ' +
- 'slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode ' +
- 'splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str ' +
- 'sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth ' +
- 'switchableUnits switchAction switchCamera switchGesture switchLight switchMove ' +
- 'synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd ' +
- 'synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan ' +
- 'targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren ' +
- 'taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent ' +
- 'taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType ' +
- 'terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat ' +
- 'tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower ' +
- 'toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle ' +
- 'triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText ' +
- 'triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear ' +
- 'tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture ' +
- 'tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled ' +
- 'tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled ' +
- 'tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText ' +
- 'tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator ' +
- 'unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems ' +
- 'uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos ' +
- 'unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement ' +
- 'unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent ' +
- 'useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff ' +
- 'vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo ' +
- 'vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply ' +
- 'vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle ' +
- 'vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition ' +
- 'vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature ' +
- 'vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap ' +
- 'visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject ' +
- 'waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour ' +
- 'waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour ' +
- 'waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName ' +
- 'waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed ' +
- 'waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible ' +
- 'weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered ' +
- 'weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ',
- literal:
- 'blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak ' +
- 'locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic ' +
- 'sideUnknown taskNull teamMemberNull true west',
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.NUMBER_MODE,
- VARIABLE,
- FUNCTION,
- STRINGS,
- CPP.preprocessor
- ],
- illegal: /#|^\$ /
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/sql.js b/swh/web/static/jssources/highlight.js/lib/languages/sql.js
deleted file mode 100644
index b49122c2..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/sql.js
+++ /dev/null
@@ -1,161 +0,0 @@
-module.exports = function(hljs) {
- var COMMENT_MODE = hljs.COMMENT('--', '$');
- return {
- case_insensitive: true,
- illegal: /[<>{}*]/,
- contains: [
- {
- beginKeywords:
- 'begin end start commit rollback savepoint lock alter create drop rename call ' +
- 'delete do handler insert load replace select truncate update set show pragma grant ' +
- 'merge describe use explain help declare prepare execute deallocate release ' +
- 'unlock purge reset change stop analyze cache flush optimize repair kill ' +
- 'install uninstall checksum restore check backup revoke comment values with',
- end: /;/, endsWithParent: true,
- lexemes: /[\w\.]+/,
- keywords: {
- keyword:
- 'as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add ' +
- 'addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias ' +
- 'all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply ' +
- 'archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan ' +
- 'atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid ' +
- 'authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile ' +
- 'before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float ' +
- 'binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound ' +
- 'bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel ' +
- 'capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base ' +
- 'char_length character_length characters characterset charindex charset charsetform charsetid check ' +
- 'checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close ' +
- 'cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation ' +
- 'collect colu colum column column_value columns columns_updated comment commit compact compatibility ' +
- 'compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn ' +
- 'connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection ' +
- 'consider consistent constant constraint constraints constructor container content contents context ' +
- 'contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost ' +
- 'count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation ' +
- 'critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user ' +
- 'cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add ' +
- 'date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts ' +
- 'day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate ' +
- 'declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults ' +
- 'deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank ' +
- 'depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor ' +
- 'deterministic diagnostics difference dimension direct_load directory disable disable_all ' +
- 'disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div ' +
- 'do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable ' +
- 'editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt ' +
- 'end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors ' +
- 'escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding ' +
- 'execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external ' +
- 'external_1 external_2 externally extract failed failed_login_attempts failover failure far fast ' +
- 'feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final ' +
- 'finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign ' +
- 'form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ' +
- 'ftp full function general generated get get_format get_lock getdate getutcdate global global_name ' +
- 'globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups ' +
- 'gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex ' +
- 'hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified ' +
- 'identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment ' +
- 'index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile ' +
- 'initial initialized initially initrans inmemory inner innodb input insert install instance instantiable ' +
- 'instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat ' +
- 'is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists ' +
- 'keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase ' +
- 'lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit ' +
- 'lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate ' +
- 'locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call ' +
- 'logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime ' +
- 'managed management manual map mapping mask master master_pos_wait match matched materialized max ' +
- 'maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans ' +
- 'md5 measures median medium member memcompress memory merge microsecond mid migration min minextents ' +
- 'minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month ' +
- 'months mount move movement multiset mutex name name_const names nan national native natural nav nchar ' +
- 'nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile ' +
- 'nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile ' +
- 'nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder ' +
- 'nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck ' +
- 'noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe ' +
- 'nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ' +
- 'ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old ' +
- 'on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date ' +
- 'oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary ' +
- 'out outer outfile outline output over overflow overriding package pad parallel parallel_enable ' +
- 'parameters parent parse partial partition partitions pascal passing password password_grace_time ' +
- 'password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex ' +
- 'pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc ' +
- 'performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin ' +
- 'policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction ' +
- 'prediction_cost prediction_details prediction_probability prediction_set prepare present preserve ' +
- 'prior priority private private_sga privileges procedural procedure procedure_analyze processlist ' +
- 'profiles project prompt protection public publishingservername purge quarter query quick quiesce quota ' +
- 'quotename radians raise rand range rank raw read reads readsize rebuild record records ' +
- 'recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh ' +
- 'regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy ' +
- 'reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename ' +
- 'repair repeat replace replicate replication required reset resetlogs resize resource respect restore ' +
- 'restricted result result_cache resumable resume retention return returning returns reuse reverse revoke ' +
- 'right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows ' +
- 'rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll ' +
- 'sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select ' +
- 'self semi sequence sequential serializable server servererror session session_user sessions_per_user set ' +
- 'sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor ' +
- 'si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin ' +
- 'size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex ' +
- 'source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows ' +
- 'sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone ' +
- 'standby start starting startup statement static statistics stats_binomial_test stats_crosstab ' +
- 'stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep ' +
- 'stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev ' +
- 'stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate ' +
- 'subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum ' +
- 'suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate ' +
- 'sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo ' +
- 'template temporary terminated tertiary_weights test than then thread through tier ties time time_format ' +
- 'time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr ' +
- 'timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking ' +
- 'transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate ' +
- 'try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress ' +
- 'under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot ' +
- 'unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert ' +
- 'url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date ' +
- 'utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var ' +
- 'var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray ' +
- 'verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear ' +
- 'wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped ' +
- 'xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces ' +
- 'xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek',
- literal:
- 'true false null unknown',
- built_in:
- 'array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number ' +
- 'numeric real record serial serial8 smallint text time timestamp tinyint varchar varying void'
- },
- contains: [
- {
- className: 'string',
- begin: '\'', end: '\'',
- contains: [hljs.BACKSLASH_ESCAPE, {begin: '\'\''}]
- },
- {
- className: 'string',
- begin: '"', end: '"',
- contains: [hljs.BACKSLASH_ESCAPE, {begin: '""'}]
- },
- {
- className: 'string',
- begin: '`', end: '`',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- hljs.C_NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- COMMENT_MODE,
- hljs.HASH_COMMENT_MODE
- ]
- },
- hljs.C_BLOCK_COMMENT_MODE,
- COMMENT_MODE,
- hljs.HASH_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/stan.js b/swh/web/static/jssources/highlight.js/lib/languages/stan.js
deleted file mode 100644
index ea82f3dd..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/stan.js
+++ /dev/null
@@ -1,82 +0,0 @@
-module.exports = function(hljs) {
- return {
- contains: [
- hljs.HASH_COMMENT_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- begin: hljs.UNDERSCORE_IDENT_RE,
- lexemes: hljs.UNDERSCORE_IDENT_RE,
- keywords: {
- // Stan's keywords
- name:
- 'for in while repeat until if then else',
- // Stan's probablity distributions (less beta and gamma, as commonly
- // used for parameter names). So far, _log and _rng variants are not
- // included
- symbol:
- 'bernoulli bernoulli_logit binomial binomial_logit ' +
- 'beta_binomial hypergeometric categorical categorical_logit ' +
- 'ordered_logistic neg_binomial neg_binomial_2 ' +
- 'neg_binomial_2_log poisson poisson_log multinomial normal ' +
- 'exp_mod_normal skew_normal student_t cauchy double_exponential ' +
- 'logistic gumbel lognormal chi_square inv_chi_square ' +
- 'scaled_inv_chi_square exponential inv_gamma weibull frechet ' +
- 'rayleigh wiener pareto pareto_type_2 von_mises uniform ' +
- 'multi_normal multi_normal_prec multi_normal_cholesky multi_gp ' +
- 'multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet ' +
- 'lkj_corr lkj_corr_cholesky wishart inv_wishart',
- // Stan's data types
- 'selector-tag':
- 'int real vector simplex unit_vector ordered positive_ordered ' +
- 'row_vector matrix cholesky_factor_corr cholesky_factor_cov ' +
- 'corr_matrix cov_matrix',
- // Stan's model blocks
- title:
- 'functions model data parameters quantities transformed ' +
- 'generated',
- literal:
- 'true false'
- },
- relevance: 0
- },
- // The below is all taken from the R language definition
- {
- // hex value
- className: 'number',
- begin: "0[xX][0-9a-fA-F]+[Li]?\\b",
- relevance: 0
- },
- {
- // hex value
- className: 'number',
- begin: "0[xX][0-9a-fA-F]+[Li]?\\b",
- relevance: 0
- },
- {
- // explicit integer
- className: 'number',
- begin: "\\d+(?:[eE][+\\-]?\\d*)?L\\b",
- relevance: 0
- },
- {
- // number with trailing decimal
- className: 'number',
- begin: "\\d+\\.(?!\\d)(?:i\\b)?",
- relevance: 0
- },
- {
- // number
- className: 'number',
- begin: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",
- relevance: 0
- },
- {
- // number with leading decimal
- className: 'number',
- begin: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",
- relevance: 0
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/stata.js b/swh/web/static/jssources/highlight.js/lib/languages/stata.js
deleted file mode 100644
index accf10b2..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/stata.js
+++ /dev/null
@@ -1,37 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['do', 'ado'],
- case_insensitive: true,
- keywords: 'if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5',
- contains: [
- {
- className: 'symbol',
- begin: /`[a-zA-Z0-9_]+'/
- },
- {
- className: 'variable',
- begin: /\$\{?[a-zA-Z0-9_]+\}?/
- },
- {
- className: 'string',
- variants: [
- {begin: '`"[^\r\n]*?"\''},
- {begin: '"[^\r\n"]*"'}
- ]
- },
-
- {
- className: 'built_in',
- variants: [
- {
- begin: '\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)'
- }
- ]
- },
-
- hljs.COMMENT('^[ \t]*\\*.*$', false),
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/step21.js b/swh/web/static/jssources/highlight.js/lib/languages/step21.js
deleted file mode 100644
index d688f7a9..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/step21.js
+++ /dev/null
@@ -1,46 +0,0 @@
-module.exports = function(hljs) {
- var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*';
- var STEP21_KEYWORDS = {
- keyword: 'HEADER ENDSEC DATA'
- };
- var STEP21_START = {
- className: 'meta',
- begin: 'ISO-10303-21;',
- relevance: 10
- };
- var STEP21_CLOSE = {
- className: 'meta',
- begin: 'END-ISO-10303-21;',
- relevance: 10
- };
-
- return {
- aliases: ['p21', 'step', 'stp'],
- case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized.
- lexemes: STEP21_IDENT_RE,
- keywords: STEP21_KEYWORDS,
- contains: [
- STEP21_START,
- STEP21_CLOSE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.COMMENT('/\\*\\*!', '\\*/'),
- hljs.C_NUMBER_MODE,
- hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
- {
- className: 'string',
- begin: "'", end: "'"
- },
- {
- className: 'symbol',
- variants: [
- {
- begin: '#', end: '\\d+',
- illegal: '\\W'
- }
- ]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/stylus.js b/swh/web/static/jssources/highlight.js/lib/languages/stylus.js
deleted file mode 100644
index e0e3d379..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/stylus.js
+++ /dev/null
@@ -1,453 +0,0 @@
-module.exports = function(hljs) {
-
- var VARIABLE = {
- className: 'variable',
- begin: '\\$' + hljs.IDENT_RE
- };
-
- var HEX_COLOR = {
- className: 'number',
- begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})'
- };
-
- var AT_KEYWORDS = [
- 'charset',
- 'css',
- 'debug',
- 'extend',
- 'font-face',
- 'for',
- 'import',
- 'include',
- 'media',
- 'mixin',
- 'page',
- 'warn',
- 'while'
- ];
-
- var PSEUDO_SELECTORS = [
- 'after',
- 'before',
- 'first-letter',
- 'first-line',
- 'active',
- 'first-child',
- 'focus',
- 'hover',
- 'lang',
- 'link',
- 'visited'
- ];
-
- var TAGS = [
- 'a',
- 'abbr',
- 'address',
- 'article',
- 'aside',
- 'audio',
- 'b',
- 'blockquote',
- 'body',
- 'button',
- 'canvas',
- 'caption',
- 'cite',
- 'code',
- 'dd',
- 'del',
- 'details',
- 'dfn',
- 'div',
- 'dl',
- 'dt',
- 'em',
- 'fieldset',
- 'figcaption',
- 'figure',
- 'footer',
- 'form',
- 'h1',
- 'h2',
- 'h3',
- 'h4',
- 'h5',
- 'h6',
- 'header',
- 'hgroup',
- 'html',
- 'i',
- 'iframe',
- 'img',
- 'input',
- 'ins',
- 'kbd',
- 'label',
- 'legend',
- 'li',
- 'mark',
- 'menu',
- 'nav',
- 'object',
- 'ol',
- 'p',
- 'q',
- 'quote',
- 'samp',
- 'section',
- 'span',
- 'strong',
- 'summary',
- 'sup',
- 'table',
- 'tbody',
- 'td',
- 'textarea',
- 'tfoot',
- 'th',
- 'thead',
- 'time',
- 'tr',
- 'ul',
- 'var',
- 'video'
- ];
-
- var TAG_END = '[\\.\\s\\n\\[\\:,]';
-
- var ATTRIBUTES = [
- 'align-content',
- 'align-items',
- 'align-self',
- 'animation',
- 'animation-delay',
- 'animation-direction',
- 'animation-duration',
- 'animation-fill-mode',
- 'animation-iteration-count',
- 'animation-name',
- 'animation-play-state',
- 'animation-timing-function',
- 'auto',
- 'backface-visibility',
- 'background',
- 'background-attachment',
- 'background-clip',
- 'background-color',
- 'background-image',
- 'background-origin',
- 'background-position',
- 'background-repeat',
- 'background-size',
- 'border',
- 'border-bottom',
- 'border-bottom-color',
- 'border-bottom-left-radius',
- 'border-bottom-right-radius',
- 'border-bottom-style',
- 'border-bottom-width',
- 'border-collapse',
- 'border-color',
- 'border-image',
- 'border-image-outset',
- 'border-image-repeat',
- 'border-image-slice',
- 'border-image-source',
- 'border-image-width',
- 'border-left',
- 'border-left-color',
- 'border-left-style',
- 'border-left-width',
- 'border-radius',
- 'border-right',
- 'border-right-color',
- 'border-right-style',
- 'border-right-width',
- 'border-spacing',
- 'border-style',
- 'border-top',
- 'border-top-color',
- 'border-top-left-radius',
- 'border-top-right-radius',
- 'border-top-style',
- 'border-top-width',
- 'border-width',
- 'bottom',
- 'box-decoration-break',
- 'box-shadow',
- 'box-sizing',
- 'break-after',
- 'break-before',
- 'break-inside',
- 'caption-side',
- 'clear',
- 'clip',
- 'clip-path',
- 'color',
- 'column-count',
- 'column-fill',
- 'column-gap',
- 'column-rule',
- 'column-rule-color',
- 'column-rule-style',
- 'column-rule-width',
- 'column-span',
- 'column-width',
- 'columns',
- 'content',
- 'counter-increment',
- 'counter-reset',
- 'cursor',
- 'direction',
- 'display',
- 'empty-cells',
- 'filter',
- 'flex',
- 'flex-basis',
- 'flex-direction',
- 'flex-flow',
- 'flex-grow',
- 'flex-shrink',
- 'flex-wrap',
- 'float',
- 'font',
- 'font-family',
- 'font-feature-settings',
- 'font-kerning',
- 'font-language-override',
- 'font-size',
- 'font-size-adjust',
- 'font-stretch',
- 'font-style',
- 'font-variant',
- 'font-variant-ligatures',
- 'font-weight',
- 'height',
- 'hyphens',
- 'icon',
- 'image-orientation',
- 'image-rendering',
- 'image-resolution',
- 'ime-mode',
- 'inherit',
- 'initial',
- 'justify-content',
- 'left',
- 'letter-spacing',
- 'line-height',
- 'list-style',
- 'list-style-image',
- 'list-style-position',
- 'list-style-type',
- 'margin',
- 'margin-bottom',
- 'margin-left',
- 'margin-right',
- 'margin-top',
- 'marks',
- 'mask',
- 'max-height',
- 'max-width',
- 'min-height',
- 'min-width',
- 'nav-down',
- 'nav-index',
- 'nav-left',
- 'nav-right',
- 'nav-up',
- 'none',
- 'normal',
- 'object-fit',
- 'object-position',
- 'opacity',
- 'order',
- 'orphans',
- 'outline',
- 'outline-color',
- 'outline-offset',
- 'outline-style',
- 'outline-width',
- 'overflow',
- 'overflow-wrap',
- 'overflow-x',
- 'overflow-y',
- 'padding',
- 'padding-bottom',
- 'padding-left',
- 'padding-right',
- 'padding-top',
- 'page-break-after',
- 'page-break-before',
- 'page-break-inside',
- 'perspective',
- 'perspective-origin',
- 'pointer-events',
- 'position',
- 'quotes',
- 'resize',
- 'right',
- 'tab-size',
- 'table-layout',
- 'text-align',
- 'text-align-last',
- 'text-decoration',
- 'text-decoration-color',
- 'text-decoration-line',
- 'text-decoration-style',
- 'text-indent',
- 'text-overflow',
- 'text-rendering',
- 'text-shadow',
- 'text-transform',
- 'text-underline-position',
- 'top',
- 'transform',
- 'transform-origin',
- 'transform-style',
- 'transition',
- 'transition-delay',
- 'transition-duration',
- 'transition-property',
- 'transition-timing-function',
- 'unicode-bidi',
- 'vertical-align',
- 'visibility',
- 'white-space',
- 'widows',
- 'width',
- 'word-break',
- 'word-spacing',
- 'word-wrap',
- 'z-index'
- ];
-
- // illegals
- var ILLEGAL = [
- '\\?',
- '(\\bReturn\\b)', // monkey
- '(\\bEnd\\b)', // monkey
- '(\\bend\\b)', // vbscript
- '(\\bdef\\b)', // gradle
- ';', // a whole lot of languages
- '#\\s', // markdown
- '\\*\\s', // markdown
- '===\\s', // markdown
- '\\|',
- '%', // prolog
- ];
-
- return {
- aliases: ['styl'],
- case_insensitive: false,
- keywords: 'if else for in',
- illegal: '(' + ILLEGAL.join('|') + ')',
- contains: [
-
- // strings
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
-
- // comments
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
-
- // hex colors
- HEX_COLOR,
-
- // class tag
- {
- begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END,
- returnBegin: true,
- contains: [
- {className: 'selector-class', begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*'}
- ]
- },
-
- // id tag
- {
- begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END,
- returnBegin: true,
- contains: [
- {className: 'selector-id', begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*'}
- ]
- },
-
- // tags
- {
- begin: '\\b(' + TAGS.join('|') + ')' + TAG_END,
- returnBegin: true,
- contains: [
- {className: 'selector-tag', begin: '\\b[a-zA-Z][a-zA-Z0-9_-]*'}
- ]
- },
-
- // psuedo selectors
- {
- begin: '&?:?:\\b(' + PSEUDO_SELECTORS.join('|') + ')' + TAG_END
- },
-
- // @ keywords
- {
- begin: '\@(' + AT_KEYWORDS.join('|') + ')\\b'
- },
-
- // variables
- VARIABLE,
-
- // dimension
- hljs.CSS_NUMBER_MODE,
-
- // number
- hljs.NUMBER_MODE,
-
- // functions
- // - only from beginning of line + whitespace
- {
- className: 'function',
- begin: '^[a-zA-Z][a-zA-Z0-9_\-]*\\(.*\\)',
- illegal: '[\\n]',
- returnBegin: true,
- contains: [
- {className: 'title', begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*'},
- {
- className: 'params',
- begin: /\(/,
- end: /\)/,
- contains: [
- HEX_COLOR,
- VARIABLE,
- hljs.APOS_STRING_MODE,
- hljs.CSS_NUMBER_MODE,
- hljs.NUMBER_MODE,
- hljs.QUOTE_STRING_MODE
- ]
- }
- ]
- },
-
- // attributes
- // - only from beginning of line + whitespace
- // - must have whitespace after it
- {
- className: 'attribute',
- begin: '\\b(' + ATTRIBUTES.reverse().join('|') + ')\\b',
- starts: {
- // value container
- end: /;|$/,
- contains: [
- HEX_COLOR,
- VARIABLE,
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.CSS_NUMBER_MODE,
- hljs.NUMBER_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ],
- illegal: /\./,
- relevance: 0
- }
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/subunit.js b/swh/web/static/jssources/highlight.js/lib/languages/subunit.js
deleted file mode 100644
index 9b32ee7e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/subunit.js
+++ /dev/null
@@ -1,33 +0,0 @@
-module.exports = function(hljs) {
- var DETAILS = {
- className: 'string',
- begin: '\\[\n(multipart)?', end: '\\]\n'
- };
- var TIME = {
- className: 'string',
- begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z'
- };
- var PROGRESSVALUE = {
- className: 'string',
- begin: '(\\+|-)\\d+'
- };
- var KEYWORDS = {
- className: 'keyword',
- relevance: 10,
- variants: [
- { begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?' },
- { begin: '^progress(:?)(\\s+)?(pop|push)?' },
- { begin: '^tags:' },
- { begin: '^time:' }
- ],
- };
- return {
- case_insensitive: true,
- contains: [
- DETAILS,
- TIME,
- PROGRESSVALUE,
- KEYWORDS
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/swift.js b/swh/web/static/jssources/highlight.js/lib/languages/swift.js
deleted file mode 100644
index bff015f0..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/swift.js
+++ /dev/null
@@ -1,129 +0,0 @@
-module.exports = function(hljs) {
- var SWIFT_KEYWORDS = {
- keyword: '#available #colorLiteral #column #else #elseif #endif #file ' +
- '#fileLiteral #function #if #imageLiteral #line #selector #sourceLocation ' +
- '_ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype ' +
- 'associativity break case catch class continue convenience default defer deinit didSet do ' +
- 'dynamic dynamicType else enum extension fallthrough false fileprivate final for func ' +
- 'get guard if import in indirect infix init inout internal is lazy left let ' +
- 'mutating nil none nonmutating open operator optional override postfix precedence ' +
- 'prefix private protocol Protocol public repeat required rethrows return ' +
- 'right self Self set static struct subscript super switch throw throws true ' +
- 'try try! try? Type typealias unowned var weak where while willSet',
- literal: 'true false nil',
- built_in: 'abs advance alignof alignofValue anyGenerator assert assertionFailure ' +
- 'bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC ' +
- 'bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros ' +
- 'debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords ' +
- 'enumerate equal fatalError filter find getBridgedObjectiveCType getVaList ' +
- 'indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC ' +
- 'isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare ' +
- 'map max maxElement min minElement numericCast overlaps partition posix ' +
- 'precondition preconditionFailure print println quickSort readLine reduce reflect ' +
- 'reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split ' +
- 'startsWith stride strideof strideofValue swap toString transcode ' +
- 'underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap ' +
- 'unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer ' +
- 'withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers ' +
- 'withUnsafePointer withUnsafePointers withVaList zip'
- };
-
- var TYPE = {
- className: 'type',
- begin: '\\b[A-Z][\\w\u00C0-\u02B8\']*',
- relevance: 0
- };
- // slightly more special to swift
- var OPTIONAL_USING_TYPE = {
- className: 'type',
- begin: '\\b[A-Z][\\w\u00C0-\u02B8\']*[!?]'
- }
- var BLOCK_COMMENT = hljs.COMMENT(
- '/\\*',
- '\\*/',
- {
- contains: ['self']
- }
- );
- var SUBST = {
- className: 'subst',
- begin: /\\\(/, end: '\\)',
- keywords: SWIFT_KEYWORDS,
- contains: [] // assigned later
- };
- var STRING = {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
- variants: [
- {begin: /"""/, end: /"""/},
- {begin: /"/, end: /"/},
- ]
- };
- var NUMBERS = {
- className: 'number',
- begin: '\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b',
- relevance: 0
- };
- SUBST.contains = [NUMBERS];
-
- return {
- keywords: SWIFT_KEYWORDS,
- contains: [
- STRING,
- hljs.C_LINE_COMMENT_MODE,
- BLOCK_COMMENT,
- OPTIONAL_USING_TYPE,
- TYPE,
- NUMBERS,
- {
- className: 'function',
- beginKeywords: 'func', end: '{', excludeEnd: true,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- begin: /[A-Za-z$_][0-9A-Za-z$_]*/
- }),
- {
- begin: /, end: />/
- },
- {
- className: 'params',
- begin: /\(/, end: /\)/, endsParent: true,
- keywords: SWIFT_KEYWORDS,
- contains: [
- 'self',
- NUMBERS,
- STRING,
- hljs.C_BLOCK_COMMENT_MODE,
- {begin: ':'} // relevance booster
- ],
- illegal: /["']/
- }
- ],
- illegal: /\[|%/
- },
- {
- className: 'class',
- beginKeywords: 'struct protocol class extension enum',
- keywords: SWIFT_KEYWORDS,
- end: '\\{',
- excludeEnd: true,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})
- ]
- },
- {
- className: 'meta', // @attributes
- begin: '(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|' +
- '@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|' +
- '@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|' +
- '@infix|@prefix|@postfix|@autoclosure|@testable|@available|' +
- '@nonobjc|@NSApplicationMain|@UIApplicationMain)'
-
- },
- {
- beginKeywords: 'import', end: /$/,
- contains: [hljs.C_LINE_COMMENT_MODE, BLOCK_COMMENT]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/taggerscript.js b/swh/web/static/jssources/highlight.js/lib/languages/taggerscript.js
deleted file mode 100644
index 9b11a931..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/taggerscript.js
+++ /dev/null
@@ -1,43 +0,0 @@
-module.exports = function(hljs) {
-
- var COMMENT = {
- className: 'comment',
- begin: /\$noop\(/,
- end: /\)/,
- contains: [{
- begin: /\(/,
- end: /\)/,
- contains: ['self', {
- begin: /\\./
- }]
- }],
- relevance: 10
- };
-
- var FUNCTION = {
- className: 'keyword',
- begin: /\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,
- end: /\(/,
- excludeEnd: true
- };
-
- var VARIABLE = {
- className: 'variable',
- begin: /%[_a-zA-Z0-9:]*/,
- end: '%'
- };
-
- var ESCAPE_SEQUENCE = {
- className: 'symbol',
- begin: /\\./
- };
-
- return {
- contains: [
- COMMENT,
- FUNCTION,
- VARIABLE,
- ESCAPE_SEQUENCE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/tap.js b/swh/web/static/jssources/highlight.js/lib/languages/tap.js
deleted file mode 100644
index efc28584..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/tap.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- contains: [
- hljs.HASH_COMMENT_MODE,
- // version of format and total amount of testcases
- {
- className: 'meta',
- variants: [
- { begin: '^TAP version (\\d+)$' },
- { begin: '^1\\.\\.(\\d+)$' }
- ],
- },
- // YAML block
- {
- begin: '(\s+)?---$', end: '\\.\\.\\.$',
- subLanguage: 'yaml',
- relevance: 0
- },
- // testcase number
- {
- className: 'number',
- begin: ' (\\d+) '
- },
- // testcase status and description
- {
- className: 'symbol',
- variants: [
- { begin: '^ok' },
- { begin: '^not ok' }
- ],
- },
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/tcl.js b/swh/web/static/jssources/highlight.js/lib/languages/tcl.js
deleted file mode 100644
index e56c5137..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/tcl.js
+++ /dev/null
@@ -1,59 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['tk'],
- keywords: 'after append apply array auto_execok auto_import auto_load auto_mkindex ' +
- 'auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock ' +
- 'close concat continue dde dict encoding eof error eval exec exit expr fblocked ' +
- 'fconfigure fcopy file fileevent filename flush for foreach format gets glob global ' +
- 'history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list ' +
- 'llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 '+
- 'mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex '+
- 'platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename '+
- 'return safe scan seek set socket source split string subst switch tcl_endOfWord '+
- 'tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter '+
- 'tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update '+
- 'uplevel upvar variable vwait while',
- contains: [
- hljs.COMMENT(';[ \\t]*#', '$'),
- hljs.COMMENT('^[ \\t]*#', '$'),
- {
- beginKeywords: 'proc',
- end: '[\\{]',
- excludeEnd: true,
- contains: [
- {
- className: 'title',
- begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
- end: '[ \\t\\n\\r]',
- endsWithParent: true,
- excludeEnd: true
- }
- ]
- },
- {
- excludeEnd: true,
- variants: [
- {
- begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)',
- end: '[^a-zA-Z0-9_\\}\\$]'
- },
- {
- begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
- end: '(\\))?[^a-zA-Z0-9_\\}\\$]'
- }
- ]
- },
- {
- className: 'string',
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null})
- ]
- },
- {
- className: 'number',
- variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]
- }
- ]
- }
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/tex.js b/swh/web/static/jssources/highlight.js/lib/languages/tex.js
deleted file mode 100644
index f6a0b503..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/tex.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module.exports = function(hljs) {
- var COMMAND = {
- className: 'tag',
- begin: /\\/,
- relevance: 0,
- contains: [
- {
- className: 'name',
- variants: [
- {begin: /[a-zA-Z\u0430-\u044f\u0410-\u042f]+[*]?/},
- {begin: /[^a-zA-Z\u0430-\u044f\u0410-\u042f0-9]/}
- ],
- starts: {
- endsWithParent: true,
- relevance: 0,
- contains: [
- {
- className: 'string', // because it looks like attributes in HTML tags
- variants: [
- {begin: /\[/, end: /\]/},
- {begin: /\{/, end: /\}/}
- ]
- },
- {
- begin: /\s*=\s*/, endsWithParent: true,
- relevance: 0,
- contains: [
- {
- className: 'number',
- begin: /-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/
- }
- ]
- }
- ]
- }
- }
- ]
- };
-
- return {
- contains: [
- COMMAND,
- {
- className: 'formula',
- contains: [COMMAND],
- relevance: 0,
- variants: [
- {begin: /\$\$/, end: /\$\$/},
- {begin: /\$/, end: /\$/}
- ]
- },
- hljs.COMMENT(
- '%',
- '$',
- {
- relevance: 0
- }
- )
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/thrift.js b/swh/web/static/jssources/highlight.js/lib/languages/thrift.js
deleted file mode 100644
index edf29e6a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/thrift.js
+++ /dev/null
@@ -1,34 +0,0 @@
-module.exports = function(hljs) {
- var BUILT_IN_TYPES = 'bool byte i16 i32 i64 double string binary';
- return {
- keywords: {
- keyword:
- 'namespace const typedef struct enum service exception void oneway set list map required optional',
- built_in:
- BUILT_IN_TYPES,
- literal:
- 'true false'
- },
- contains: [
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'class',
- beginKeywords: 'struct enum service exception', end: /\{/,
- illegal: /\n/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {
- starts: {endsWithParent: true, excludeEnd: true} // hack: eating everything after the first title
- })
- ]
- },
- {
- begin: '\\b(set|list|map)\\s*<', end: '>',
- keywords: BUILT_IN_TYPES,
- contains: ['self']
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/tp.js b/swh/web/static/jssources/highlight.js/lib/languages/tp.js
deleted file mode 100644
index d3d4a405..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/tp.js
+++ /dev/null
@@ -1,83 +0,0 @@
-module.exports = function(hljs) {
- var TPID = {
- className: 'number',
- begin: '[1-9][0-9]*', /* no leading zeros */
- relevance: 0
- };
- var TPLABEL = {
- className: 'symbol',
- begin: ':[^\\]]+'
- };
- var TPDATA = {
- className: 'built_in',
- begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|' +
- 'TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[', end: '\\]',
- contains: [
- 'self',
- TPID,
- TPLABEL
- ]
- };
- var TPIO = {
- className: 'built_in',
- begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[', end: '\\]',
- contains: [
- 'self',
- TPID,
- hljs.QUOTE_STRING_MODE, /* for pos section at bottom */
- TPLABEL
- ]
- };
-
- return {
- keywords: {
- keyword:
- 'ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB ' +
- 'DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC ' +
- 'IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE ' +
- 'PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET ' +
- 'Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN ' +
- 'SUBSTR FINDSTR VOFFSET PROG ATTR MN POS',
- literal:
- 'ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET'
- },
- contains: [
- TPDATA,
- TPIO,
- {
- className: 'keyword',
- begin: '/(PROG|ATTR|MN|POS|END)\\b'
- },
- {
- /* this is for cases like ,CALL */
- className: 'keyword',
- begin: '(CALL|RUN|POINT_LOGIC|LBL)\\b'
- },
- {
- /* this is for cases like CNT100 where the default lexemes do not
- * separate the keyword and the number */
- className: 'keyword',
- begin: '\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)'
- },
- {
- /* to catch numbers that do not have a word boundary on the left */
- className: 'number',
- begin: '\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b',
- relevance: 0
- },
- hljs.COMMENT('//', '[;$]'),
- hljs.COMMENT('!', '[;$]'),
- hljs.COMMENT('--eg:', '$'),
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- begin: '\'', end: '\''
- },
- hljs.C_NUMBER_MODE,
- {
- className: 'variable',
- begin: '\\$[A-Za-z0-9_]+'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/twig.js b/swh/web/static/jssources/highlight.js/lib/languages/twig.js
deleted file mode 100644
index 2c4168b1..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/twig.js
+++ /dev/null
@@ -1,65 +0,0 @@
-module.exports = function(hljs) {
- var PARAMS = {
- className: 'params',
- begin: '\\(', end: '\\)'
- };
-
- var FUNCTION_NAMES = 'attribute block constant cycle date dump include ' +
- 'max min parent random range source template_from_string';
-
- var FUNCTIONS = {
- beginKeywords: FUNCTION_NAMES,
- keywords: {name: FUNCTION_NAMES},
- relevance: 0,
- contains: [
- PARAMS
- ]
- };
-
- var FILTER = {
- begin: /\|[A-Za-z_]+:?/,
- keywords:
- 'abs batch capitalize convert_encoding date date_modify default ' +
- 'escape first format join json_encode keys last length lower ' +
- 'merge nl2br number_format raw replace reverse round slice sort split ' +
- 'striptags title trim upper url_encode',
- contains: [
- FUNCTIONS
- ]
- };
-
- var TAGS = 'autoescape block do embed extends filter flush for ' +
- 'if import include macro sandbox set spaceless use verbatim';
-
- TAGS = TAGS + ' ' + TAGS.split(' ').map(function(t){return 'end' + t}).join(' ');
-
- return {
- aliases: ['craftcms'],
- case_insensitive: true,
- subLanguage: 'xml',
- contains: [
- hljs.COMMENT(/\{#/, /#}/),
- {
- className: 'template-tag',
- begin: /\{%/, end: /%}/,
- contains: [
- {
- className: 'name',
- begin: /\w+/,
- keywords: TAGS,
- starts: {
- endsWithParent: true,
- contains: [FILTER, FUNCTIONS],
- relevance: 0
- }
- }
- ]
- },
- {
- className: 'template-variable',
- begin: /\{\{/, end: /}}/,
- contains: ['self', FILTER, FUNCTIONS]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/typescript.js b/swh/web/static/jssources/highlight.js/lib/languages/typescript.js
deleted file mode 100644
index 59ec320f..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/typescript.js
+++ /dev/null
@@ -1,165 +0,0 @@
-module.exports = function(hljs) {
- var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
- var KEYWORDS = {
- keyword:
- 'in if for while finally var new function do return void else break catch ' +
- 'instanceof with throw case default try this switch continue typeof delete ' +
- 'let yield const class public private protected get set super ' +
- 'static implements enum export import declare type namespace abstract ' +
- 'as from extends async await',
- literal:
- 'true false null undefined NaN Infinity',
- built_in:
- 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +
- 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +
- 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +
- 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +
- 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' +
- 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' +
- 'module console window document any number boolean string void Promise'
- };
-
- var DECORATOR = {
- className: 'meta',
- begin: '@' + JS_IDENT_RE,
- };
-
- var ARGS =
- {
- begin: '\\(',
- end: /\)/,
- keywords: KEYWORDS,
- contains: [
- 'self',
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- hljs.NUMBER_MODE
- ]
- };
-
- var PARAMS = {
- className: 'params',
- begin: /\(/, end: /\)/,
- excludeBegin: true,
- excludeEnd: true,
- keywords: KEYWORDS,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- DECORATOR,
- ARGS
- ]
- };
-
- return {
- aliases: ['ts'],
- keywords: KEYWORDS,
- contains: [
- {
- className: 'meta',
- begin: /^\s*['"]use strict['"]/
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- { // template string
- className: 'string',
- begin: '`', end: '`',
- contains: [
- hljs.BACKSLASH_ESCAPE,
- {
- className: 'subst',
- begin: '\\$\\{', end: '\\}'
- }
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'number',
- variants: [
- { begin: '\\b(0[bB][01]+)' },
- { begin: '\\b(0[oO][0-7]+)' },
- { begin: hljs.C_NUMBER_RE }
- ],
- relevance: 0
- },
- { // "value" container
- begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
- keywords: 'return throw case',
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.REGEXP_MODE,
- {
- className: 'function',
- begin: '(\\(.*?\\)|' + hljs.IDENT_RE + ')\\s*=>', returnBegin: true,
- end: '\\s*=>',
- contains: [
- {
- className: 'params',
- variants: [
- {
- begin: hljs.IDENT_RE
- },
- {
- begin: /\(\s*\)/,
- },
- {
- begin: /\(/, end: /\)/,
- excludeBegin: true, excludeEnd: true,
- keywords: KEYWORDS,
- contains: [
- 'self',
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE
- ]
- }
- ]
- }
- ]
- }
- ],
- relevance: 0
- },
- {
- className: 'function',
- begin: 'function', end: /[\{;]/, excludeEnd: true,
- keywords: KEYWORDS,
- contains: [
- 'self',
- hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE }),
- PARAMS
- ],
- illegal: /%/,
- relevance: 0 // () => {} is more typical in TypeScript
- },
- {
- beginKeywords: 'constructor', end: /\{/, excludeEnd: true,
- contains: [
- 'self',
- PARAMS
- ]
- },
- { // prevent references like module.id from being higlighted as module definitions
- begin: /module\./,
- keywords: { built_in: 'module' },
- relevance: 0
- },
- {
- beginKeywords: 'module', end: /\{/, excludeEnd: true
- },
- {
- beginKeywords: 'interface', end: /\{/, excludeEnd: true,
- keywords: 'interface extends'
- },
- {
- begin: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
- },
- {
- begin: '\\.' + hljs.IDENT_RE, relevance: 0 // hack: prevents detection of keywords after dots
- },
- DECORATOR,
- ARGS
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vala.js b/swh/web/static/jssources/highlight.js/lib/languages/vala.js
deleted file mode 100644
index 5feba66d..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vala.js
+++ /dev/null
@@ -1,49 +0,0 @@
-module.exports = function(hljs) {
- return {
- keywords: {
- keyword:
- // Value types
- 'char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 ' +
- 'uint16 uint32 uint64 float double bool struct enum string void ' +
- // Reference types
- 'weak unowned owned ' +
- // Modifiers
- 'async signal static abstract interface override virtual delegate ' +
- // Control Structures
- 'if while do for foreach else switch case break default return try catch ' +
- // Visibility
- 'public private protected internal ' +
- // Other
- 'using new this get set const stdout stdin stderr var',
- built_in:
- 'DBus GLib CCode Gee Object Gtk Posix',
- literal:
- 'false true null'
- },
- contains: [
- {
- className: 'class',
- beginKeywords: 'class interface namespace', end: '{', excludeEnd: true,
- illegal: '[^,:\\n\\s\\.]',
- contains: [
- hljs.UNDERSCORE_TITLE_MODE
- ]
- },
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: 'string',
- begin: '"""', end: '"""',
- relevance: 5
- },
- hljs.APOS_STRING_MODE,
- hljs.QUOTE_STRING_MODE,
- hljs.C_NUMBER_MODE,
- {
- className: 'meta',
- begin: '^#', end: '$',
- relevance: 2
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vbnet.js b/swh/web/static/jssources/highlight.js/lib/languages/vbnet.js
deleted file mode 100644
index 35e415c8..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vbnet.js
+++ /dev/null
@@ -1,55 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['vb'],
- case_insensitive: true,
- keywords: {
- keyword:
- 'addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval ' + /* a-b */
- 'call case catch class compare const continue custom declare default delegate dim distinct do ' + /* c-d */
- 'each equals else elseif end enum erase error event exit explicit finally for friend from function ' + /* e-f */
- 'get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue ' + /* g-i */
- 'join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass ' + /* j-m */
- 'namespace narrowing new next not notinheritable notoverridable ' + /* n */
- 'of off on operator option optional or order orelse overloads overridable overrides ' + /* o */
- 'paramarray partial preserve private property protected public ' + /* p */
- 'raiseevent readonly redim rem removehandler resume return ' + /* r */
- 'select set shadows shared skip static step stop structure strict sub synclock ' + /* s */
- 'take text then throw to try unicode until using when where while widening with withevents writeonly xor', /* t-x */
- built_in:
- 'boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype ' + /* b-c */
- 'date decimal directcast double gettype getxmlnamespace iif integer long object ' + /* d-o */
- 'sbyte short single string trycast typeof uinteger ulong ushort', /* s-u */
- literal:
- 'true false nothing'
- },
- illegal: '//|{|}|endif|gosub|variant|wend|^\\$ ', /* reserved deprecated keywords */
- contains: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, {contains: [{begin: '""'}]}),
- hljs.COMMENT(
- '\'',
- '$',
- {
- returnBegin: true,
- contains: [
- {
- className: 'doctag',
- begin: '\'\'\'|',
- contains: [hljs.PHRASAL_WORDS_MODE]
- },
- {
- className: 'doctag',
- begin: '?', end: '>',
- contains: [hljs.PHRASAL_WORDS_MODE]
- }
- ]
- }
- ),
- hljs.C_NUMBER_MODE,
- {
- className: 'meta',
- begin: '#', end: '$',
- keywords: {'meta-keyword': 'if else elseif end region externalsource'}
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vbscript-html.js b/swh/web/static/jssources/highlight.js/lib/languages/vbscript-html.js
deleted file mode 100644
index 12ba951a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vbscript-html.js
+++ /dev/null
@@ -1,11 +0,0 @@
-module.exports = function(hljs) {
- return {
- subLanguage: 'xml',
- contains: [
- {
- begin: '<%', end: '%>',
- subLanguage: 'vbscript'
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vbscript.js b/swh/web/static/jssources/highlight.js/lib/languages/vbscript.js
deleted file mode 100644
index b842978b..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vbscript.js
+++ /dev/null
@@ -1,38 +0,0 @@
-module.exports = function(hljs) {
- return {
- aliases: ['vbs'],
- case_insensitive: true,
- keywords: {
- keyword:
- 'call class const dim do loop erase execute executeglobal exit for each next function ' +
- 'if then else on error option explicit new private property let get public randomize ' +
- 'redim rem select case set stop sub while wend with end to elseif is or xor and not ' +
- 'class_initialize class_terminate default preserve in me byval byref step resume goto',
- built_in:
- 'lcase month vartype instrrev ubound setlocale getobject rgb getref string ' +
- 'weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency ' +
- 'conversions csng timevalue second year space abs clng timeserial fixs len asc ' +
- 'isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate ' +
- 'instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex ' +
- 'chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ' +
- 'strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion ' +
- 'scriptengine split scriptengineminorversion cint sin datepart ltrim sqr ' +
- 'scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw ' +
- 'chrw regexp server response request cstr err',
- literal:
- 'true false null nothing empty'
- },
- illegal: '//',
- contains: [
- hljs.inherit(hljs.QUOTE_STRING_MODE, {contains: [{begin: '""'}]}),
- hljs.COMMENT(
- /'/,
- /$/,
- {
- relevance: 0
- }
- ),
- hljs.C_NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/verilog.js b/swh/web/static/jssources/highlight.js/lib/languages/verilog.js
deleted file mode 100644
index 752400d2..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/verilog.js
+++ /dev/null
@@ -1,98 +0,0 @@
-module.exports = function(hljs) {
- var SV_KEYWORDS = {
- keyword:
- 'accept_on alias always always_comb always_ff always_latch and assert assign ' +
- 'assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 ' +
- 'byte case casex casez cell chandle checker class clocking cmos config const ' +
- 'constraint context continue cover covergroup coverpoint cross deassign default ' +
- 'defparam design disable dist do edge else end endcase endchecker endclass ' +
- 'endclocking endconfig endfunction endgenerate endgroup endinterface endmodule ' +
- 'endpackage endprimitive endprogram endproperty endspecify endsequence endtable ' +
- 'endtask enum event eventually expect export extends extern final first_match for ' +
- 'force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 ' +
- 'if iff ifnone ignore_bins illegal_bins implements implies import incdir include ' +
- 'initial inout input inside instance int integer interconnect interface intersect ' +
- 'join join_any join_none large let liblist library local localparam logic longint ' +
- 'macromodule matches medium modport module nand negedge nettype new nexttime nmos ' +
- 'nor noshowcancelled not notif0 notif1 or output package packed parameter pmos ' +
- 'posedge primitive priority program property protected pull0 pull1 pulldown pullup ' +
- 'pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos ' +
- 'real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran ' +
- 'rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared ' +
- 'sequence shortint shortreal showcancelled signed small soft solve specify specparam ' +
- 'static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on ' +
- 'sync_reject_on table tagged task this throughout time timeprecision timeunit tran ' +
- 'tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 ' +
- 'unsigned until until_with untyped use uwire var vectored virtual void wait wait_order ' +
- 'wand weak weak0 weak1 while wildcard wire with within wor xnor xor',
- literal:
- 'null',
- built_in:
- '$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale ' +
- '$bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat ' +
- '$realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson ' +
- '$assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff ' +
- '$assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk ' +
- '$fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control ' +
- '$coverage_get $coverage_save $set_coverage_db_name $rose $stable $past ' +
- '$rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display ' +
- '$coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename ' +
- '$unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow ' +
- '$floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning ' +
- '$dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh ' +
- '$tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random ' +
- '$dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson ' +
- '$dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array ' +
- '$async$nand$array $async$or$array $async$nor$array $sync$and$array ' +
- '$sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf ' +
- '$async$and$plane $async$nand$plane $async$or$plane $async$nor$plane ' +
- '$sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system ' +
- '$display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo ' +
- '$write $readmemb $readmemh $writememh $value$plusargs ' +
- '$dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit ' +
- '$writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb ' +
- '$dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall ' +
- '$dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo ' +
- '$fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh ' +
- '$swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb ' +
- '$fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat ' +
- '$sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror'
- };
- return {
- aliases: ['v', 'sv', 'svh'],
- case_insensitive: false,
- keywords: SV_KEYWORDS, lexemes: /[\w\$]+/,
- contains: [
- hljs.C_BLOCK_COMMENT_MODE,
- hljs.C_LINE_COMMENT_MODE,
- hljs.QUOTE_STRING_MODE,
- {
- className: 'number',
- contains: [hljs.BACKSLASH_ESCAPE],
- variants: [
- {begin: '\\b((\\d+\'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)'},
- {begin: '\\B((\'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)'},
- {begin: '\\b([0-9_])+', relevance: 0}
- ]
- },
- /* parameters to instances */
- {
- className: 'variable',
- variants: [
- {begin: '#\\((?!parameter).+\\)'},
- {begin: '\\.\\w+', relevance: 0},
- ]
- },
- {
- className: 'meta',
- begin: '`', end: '$',
- keywords: {'meta-keyword': 'define __FILE__ ' +
- '__LINE__ begin_keywords celldefine default_nettype define ' +
- 'else elsif end_keywords endcelldefine endif ifdef ifndef ' +
- 'include line nounconnected_drive pragma resetall timescale ' +
- 'unconnected_drive undef undefineall'},
- relevance: 0
- }
- ]
- }; // return
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vhdl.js b/swh/web/static/jssources/highlight.js/lib/languages/vhdl.js
deleted file mode 100644
index 301aeac2..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vhdl.js
+++ /dev/null
@@ -1,60 +0,0 @@
-module.exports = function(hljs) {
- // Regular expression for VHDL numeric literals.
-
- // Decimal literal:
- var INTEGER_RE = '\\d(_|\\d)*';
- var EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
- var DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
- // Based literal:
- var BASED_INTEGER_RE = '\\w+';
- var BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
-
- var NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
-
- return {
- case_insensitive: true,
- keywords: {
- keyword:
- 'abs access after alias all and architecture array assert assume assume_guarantee attribute ' +
- 'begin block body buffer bus case component configuration constant context cover disconnect ' +
- 'downto default else elsif end entity exit fairness file for force function generate ' +
- 'generic group guarded if impure in inertial inout is label library linkage literal ' +
- 'loop map mod nand new next nor not null of on open or others out package parameter port ' +
- 'postponed procedure process property protected pure range record register reject ' +
- 'release rem report restrict restrict_guarantee return rol ror select sequence ' +
- 'severity shared signal sla sll sra srl strong subtype then to transport type ' +
- 'unaffected units until use variable view vmode vprop vunit wait when while with xnor xor',
- built_in:
- 'boolean bit character ' +
- 'integer time delay_length natural positive ' +
- 'string bit_vector file_open_kind file_open_status ' +
- 'std_logic std_logic_vector unsigned signed boolean_vector integer_vector ' +
- 'std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed ' +
- 'real_vector time_vector',
- literal:
- 'false true note warning error failure ' + // severity_level
- 'line text side width' // textio
- },
- illegal: '{',
- contains: [
- hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting.
- hljs.COMMENT('--', '$'),
- hljs.QUOTE_STRING_MODE,
- {
- className: 'number',
- begin: NUMBER_RE,
- relevance: 0
- },
- {
- className: 'string',
- begin: '\'(U|X|0|1|Z|W|L|H|-)\'',
- contains: [hljs.BACKSLASH_ESCAPE]
- },
- {
- className: 'symbol',
- begin: '\'[A-Za-z](_?[A-Za-z0-9])*',
- contains: [hljs.BACKSLASH_ESCAPE]
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/vim.js b/swh/web/static/jssources/highlight.js/lib/languages/vim.js
deleted file mode 100644
index b25faf09..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/vim.js
+++ /dev/null
@@ -1,109 +0,0 @@
-module.exports = function(hljs) {
- return {
- lexemes: /[!#@\w]+/,
- keywords: {
- keyword:
- // express version except: ! & * < = > !! # @ @@
- 'N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope '+
- 'cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc '+
- 'ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 '+
- 'profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor '+
- 'so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew '+
- 'tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ '+
- // full version
- 'Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload '+
- 'bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap '+
- 'cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor '+
- 'endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap '+
- 'imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview '+
- 'lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap '+
- 'nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext '+
- 'ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding '+
- 'scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace '+
- 'startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious '+'trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew '+
- 'vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank',
- built_in: //built in func
- 'synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv ' +
- 'complete_check add getwinposx getqflist getwinposy screencol ' +
- 'clearmatches empty extend getcmdpos mzeval garbagecollect setreg ' +
- 'ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable ' +
- 'shiftwidth max sinh isdirectory synID system inputrestore winline ' +
- 'atan visualmode inputlist tabpagewinnr round getregtype mapcheck ' +
- 'hasmapto histdel argidx findfile sha256 exists toupper getcmdline ' +
- 'taglist string getmatches bufnr strftime winwidth bufexists ' +
- 'strtrans tabpagebuflist setcmdpos remote_read printf setloclist ' +
- 'getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval ' +
- 'resolve libcallnr foldclosedend reverse filter has_key bufname ' +
- 'str2float strlen setline getcharmod setbufvar index searchpos ' +
- 'shellescape undofile foldclosed setqflist buflisted strchars str2nr ' +
- 'virtcol floor remove undotree remote_expr winheight gettabwinvar ' +
- 'reltime cursor tabpagenr finddir localtime acos getloclist search ' +
- 'tanh matchend rename gettabvar strdisplaywidth type abs py3eval ' +
- 'setwinvar tolower wildmenumode log10 spellsuggest bufloaded ' +
- 'synconcealed nextnonblank server2client complete settabwinvar ' +
- 'executable input wincol setmatches getftype hlID inputsave ' +
- 'searchpair or screenrow line settabvar histadd deepcopy strpart ' +
- 'remote_peek and eval getftime submatch screenchar winsaveview ' +
- 'matchadd mkdir screenattr getfontname libcall reltimestr getfsize ' +
- 'winnr invert pow getbufline byte2line soundfold repeat fnameescape ' +
- 'tagfiles sin strwidth spellbadword trunc maparg log lispindent ' +
- 'hostname setpos globpath remote_foreground getchar synIDattr ' +
- 'fnamemodify cscope_connection stridx winbufnr indent min ' +
- 'complete_add nr2char searchpairpos inputdialog values matchlist ' +
- 'items hlexists strridx browsedir expand fmod pathshorten line2byte ' +
- 'argc count getwinvar glob foldtextresult getreg foreground cosh ' +
- 'matchdelete has char2nr simplify histget searchdecl iconv ' +
- 'winrestcmd pumvisible writefile foldlevel haslocaldir keys cos ' +
- 'matchstr foldtext histnr tan tempname getcwd byteidx getbufvar ' +
- 'islocked escape eventhandler remote_send serverlist winrestview ' +
- 'synstack pyeval prevnonblank readfile cindent filereadable changenr ' +
- 'exp'
- },
- illegal: /;/,
- contains: [
- hljs.NUMBER_MODE,
- {
- className: 'string',
- begin: '\'', end: '\'',
- illegal: '\\n'
- },
-
- /*
- A double quote can start either a string or a line comment. Strings are
- ended before the end of a line by another double quote and can contain
- escaped double-quotes and post-escaped line breaks.
-
- Also, any double quote at the beginning of a line is a comment but we
- don't handle that properly at the moment: any double quote inside will
- turn them into a string. Handling it properly will require a smarter
- parser.
- */
- {
- className: 'string',
- begin: /"(\\"|\n\\|[^"\n])*"/
- },
- hljs.COMMENT('"', '$'),
-
- {
- className: 'variable',
- begin: /[bwtglsav]:[\w\d_]*/
- },
- {
- className: 'function',
- beginKeywords: 'function function!', end: '$',
- relevance: 0,
- contains: [
- hljs.TITLE_MODE,
- {
- className: 'params',
- begin: '\\(', end: '\\)'
- }
- ]
- },
- {
- className: 'symbol',
- begin: /<[\w-]+>/
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/x86asm.js b/swh/web/static/jssources/highlight.js/lib/languages/x86asm.js
deleted file mode 100644
index 16ba206a..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/x86asm.js
+++ /dev/null
@@ -1,135 +0,0 @@
-module.exports = function(hljs) {
- return {
- case_insensitive: true,
- lexemes: '[.%]?' + hljs.IDENT_RE,
- keywords: {
- keyword:
- 'lock rep repe repz repne repnz xaquire xrelease bnd nobnd ' +
- 'aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63',
- built_in:
- // Instruction pointer
- 'ip eip rip ' +
- // 8-bit registers
- 'al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ' +
- // 16-bit registers
- 'ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w ' +
- // 32-bit registers
- 'eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d ' +
- // 64-bit registers
- 'rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 ' +
- // Segment registers
- 'cs ds es fs gs ss ' +
- // Floating point stack registers
- 'st st0 st1 st2 st3 st4 st5 st6 st7 ' +
- // MMX Registers
- 'mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 ' +
- // SSE registers
- 'xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 ' +
- 'xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ' +
- // AVX registers
- 'ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ' +
- 'ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 ' +
- // AVX-512F registers
- 'zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 ' +
- 'zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 ' +
- // AVX-512F mask registers
- 'k0 k1 k2 k3 k4 k5 k6 k7 ' +
- // Bound (MPX) register
- 'bnd0 bnd1 bnd2 bnd3 ' +
- // Special register
- 'cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 ' +
- // NASM altreg package
- 'r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b ' +
- 'r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d ' +
- 'r0h r1h r2h r3h ' +
- 'r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l ' +
-
- 'db dw dd dq dt ddq do dy dz ' +
- 'resb resw resd resq rest resdq reso resy resz ' +
- 'incbin equ times ' +
- 'byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr',
-
- meta:
- '%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif ' +
- '%if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep ' +
- '%endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment ' +
- '.nolist ' +
- '__FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ ' +
- '__UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend ' +
- 'align alignb sectalign daz nodaz up down zero default option assume public ' +
-
- 'bits use16 use32 use64 default section segment absolute extern global common cpu float ' +
- '__utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ ' +
- '__float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ ' +
- '__Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e ' +
- 'float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__'
- },
- contains: [
- hljs.COMMENT(
- ';',
- '$',
- {
- relevance: 0
- }
- ),
- {
- className: 'number',
- variants: [
- // Float number and x87 BCD
- {
- begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|' +
- '(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b',
- relevance: 0
- },
-
- // Hex number in $
- { begin: '\\$[0-9][0-9A-Fa-f]*', relevance: 0 },
-
- // Number in H,D,T,Q,O,B,Y suffix
- { begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b' },
-
- // Number in X,D,T,Q,O,B,Y prefix
- { begin: '\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b'}
- ]
- },
- // Double quote string
- hljs.QUOTE_STRING_MODE,
- {
- className: 'string',
- variants: [
- // Single-quoted string
- { begin: '\'', end: '[^\\\\]\'' },
- // Backquoted string
- { begin: '`', end: '[^\\\\]`' }
- ],
- relevance: 0
- },
- {
- className: 'symbol',
- variants: [
- // Global label and local label
- { begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)' },
- // Macro-local label
- { begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:' }
- ],
- relevance: 0
- },
- // Macro parameter
- {
- className: 'subst',
- begin: '%[0-9]+',
- relevance: 0
- },
- // Macro parameter
- {
- className: 'subst',
- begin: '%!\S+',
- relevance: 0
- },
- {
- className: 'meta',
- begin: /^\s*\.[\w_-]+/
- }
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/xl.js b/swh/web/static/jssources/highlight.js/lib/languages/xl.js
deleted file mode 100644
index c17c545e..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/xl.js
+++ /dev/null
@@ -1,72 +0,0 @@
-module.exports = function(hljs) {
- var BUILTIN_MODULES =
- 'ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo ' +
- 'StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts';
-
- var XL_KEYWORDS = {
- keyword:
- 'if then else do while until for loop import with is as where when by data constant ' +
- 'integer real text name boolean symbol infix prefix postfix block tree',
- literal:
- 'true false nil',
- built_in:
- 'in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin ' +
- 'acos atan exp expm1 log log2 log10 log1p pi at text_length text_range ' +
- 'text_find text_replace contains page slide basic_slide title_slide ' +
- 'title subtitle fade_in fade_out fade_at clear_color color line_color ' +
- 'line_width texture_wrap texture_transform texture scale_?x scale_?y ' +
- 'scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y ' +
- 'rotate_?z? rectangle circle ellipse sphere path line_to move_to ' +
- 'quad_to curve_to theme background contents locally time mouse_?x ' +
- 'mouse_?y mouse_buttons ' +
- BUILTIN_MODULES
- };
-
- var DOUBLE_QUOTE_TEXT = {
- className: 'string',
- begin: '"', end: '"', illegal: '\\n'
- };
- var SINGLE_QUOTE_TEXT = {
- className: 'string',
- begin: '\'', end: '\'', illegal: '\\n'
- };
- var LONG_TEXT = {
- className: 'string',
- begin: '<<', end: '>>'
- };
- var BASED_NUMBER = {
- className: 'number',
- begin: '[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?'
- };
- var IMPORT = {
- beginKeywords: 'import', end: '$',
- keywords: XL_KEYWORDS,
- contains: [DOUBLE_QUOTE_TEXT]
- };
- var FUNCTION_DEFINITION = {
- className: 'function',
- begin: /[a-z][^\n]*->/, returnBegin: true, end: /->/,
- contains: [
- hljs.inherit(hljs.TITLE_MODE, {starts: {
- endsWithParent: true,
- keywords: XL_KEYWORDS
- }})
- ]
- };
- return {
- aliases: ['tao'],
- lexemes: /[a-zA-Z][a-zA-Z0-9_?]*/,
- keywords: XL_KEYWORDS,
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- DOUBLE_QUOTE_TEXT,
- SINGLE_QUOTE_TEXT,
- LONG_TEXT,
- FUNCTION_DEFINITION,
- IMPORT,
- BASED_NUMBER,
- hljs.NUMBER_MODE
- ]
- };
-};
\ No newline at end of file
diff --git a/swh/web/static/jssources/highlight.js/lib/languages/xml.js b/swh/web/static/jssources/highlight.js/lib/languages/xml.js
deleted file mode 100644
index 9c6b1416..00000000
--- a/swh/web/static/jssources/highlight.js/lib/languages/xml.js
+++ /dev/null
@@ -1,107 +0,0 @@
-module.exports = function(hljs) {
- var XML_IDENT_RE = '[A-Za-z0-9\\._:-]+';
- var TAG_INTERNALS = {
- endsWithParent: true,
- illegal: /,
- relevance: 0,
- contains: [
- {
- className: 'attr',
- begin: XML_IDENT_RE,
- relevance: 0
- },
- {
- begin: /=\s*/,
- relevance: 0,
- contains: [
- {
- className: 'string',
- endsParent: true,
- variants: [
- {begin: /"/, end: /"/},
- {begin: /'/, end: /'/},
- {begin: /[^\s"'=<>`]+/}
- ]
- }
- ]
- }
- ]
- };
- return {
- aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist'],
- case_insensitive: true,
- contains: [
- {
- className: 'meta',
- begin: '',
- relevance: 10,
- contains: [{begin: '\\[', end: '\\]'}]
- },
- hljs.COMMENT(
- '',
- {
- relevance: 10
- }
- ),
- {
- begin: '<\\!\\[CDATA\\[', end: '\\]\\]>',
- relevance: 10
- },
- {
- className: 'meta',
- begin: /<\?xml/, end: /\?>/, relevance: 10
- },
- {
- begin: /<\?(php)?/, end: /\?>/,
- subLanguage: 'php',
- contains: [
- // We don't want the php closing tag ?> to close the PHP block when
- // inside any of the following blocks:
- {begin: '/\\*', end: '\\*/', skip: true},
- {begin: 'b"', end: '"', skip: true},
- {begin: 'b\'', end: '\'', skip: true},
- hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null, className: null, contains: null, skip: true}),
- hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null, className: null, contains: null, skip: true})
- ]
- },
- {
- className: 'tag',
- /*
- The lookahead pattern (?=...) ensures that 'begin' only matches
- '', returnEnd: true,
- subLanguage: ['css', 'xml']
- }
- },
- {
- className: 'tag',
- // See the comment in the