summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/string-trim-spaces-only/dist
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
committerRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
commit23563c7188e089929b60f9e10721c6fc43a220ff (patch)
treeedfe2b009c82900d4ac27db02222d2f68dcad846 /includes/external/school/node_modules/string-trim-spaces-only/dist
parent7a7a49332df7c852abbaa33c7e8e87f93d064d61 (diff)
downloadpluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.gz
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.bz2
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.zip
Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated)
Diffstat (limited to 'includes/external/school/node_modules/string-trim-spaces-only/dist')
-rw-r--r--includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js97
-rw-r--r--includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js116
-rw-r--r--includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js85
-rw-r--r--includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js10
4 files changed, 0 insertions, 308 deletions
diff --git a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js
deleted file mode 100644
index 33746c8..0000000
--- a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.cjs.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * @name string-trim-spaces-only
- * @fileoverview Like String.trim() but you can choose granularly what to trim
- * @version 3.1.0
- * @author Roy Revelt, Codsen Ltd
- * @license MIT
- * {@link https://codsen.com/os/string-trim-spaces-only/}
- */
-
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
-var _typeof = require('@babel/runtime/helpers/typeof');
-
-function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
-
-var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
-var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
-
-var version$1 = "3.1.0";
-
-var version = version$1;
-var defaults = {
- classicTrim: false,
- cr: false,
- lf: false,
- tab: false,
- space: true,
- nbsp: false
-};
-function trimSpaces(str, originalOpts) {
- if (typeof str !== "string") {
- throw new Error("string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ".concat(_typeof__default['default'](str), ", equal to:\n").concat(JSON.stringify(str, null, 4)));
- }
- var opts = _objectSpread__default['default'](_objectSpread__default['default']({}, defaults), originalOpts);
- function check(_char) {
- return opts.classicTrim && !_char.trim() || !opts.classicTrim && (opts.space && _char === " " || opts.cr && _char === "\r" || opts.lf && _char === "\n" || opts.tab && _char === "\t" || opts.nbsp && _char === "\xA0");
- }
- var newStart;
- var newEnd;
- if (str.length) {
- if (check(str[0])) {
- for (var i = 0, len = str.length; i < len; i++) {
- if (!check(str[i])) {
- newStart = i;
- break;
- }
- if (i === str.length - 1) {
- return {
- res: "",
- ranges: [[0, str.length]]
- };
- }
- }
- }
- if (check(str[str.length - 1])) {
- for (var _i = str.length; _i--;) {
- if (!check(str[_i])) {
- newEnd = _i + 1;
- break;
- }
- }
- }
- if (newStart) {
- if (newEnd) {
- return {
- res: str.slice(newStart, newEnd),
- ranges: [[0, newStart], [newEnd, str.length]]
- };
- }
- return {
- res: str.slice(newStart),
- ranges: [[0, newStart]]
- };
- }
- if (newEnd) {
- return {
- res: str.slice(0, newEnd),
- ranges: [[newEnd, str.length]]
- };
- }
- return {
- res: str,
- ranges: []
- };
- }
- return {
- res: "",
- ranges: []
- };
-}
-
-exports.defaults = defaults;
-exports.trimSpaces = trimSpaces;
-exports.version = version;
diff --git a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js
deleted file mode 100644
index 9f9629a..0000000
--- a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.dev.umd.js
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * @name string-trim-spaces-only
- * @fileoverview Like String.trim() but you can choose granularly what to trim
- * @version 3.1.0
- * @author Roy Revelt, Codsen Ltd
- * @license MIT
- * {@link https://codsen.com/os/string-trim-spaces-only/}
- */
-
-(function (global, factory) {
-typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
-typeof define === 'function' && define.amd ? define(['exports'], factory) :
-(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.stringTrimSpacesOnly = {}));
-}(this, (function (exports) { 'use strict';
-
-var version$1 = "3.1.0";
-
-const version = version$1;
-const defaults = {
- classicTrim: false,
- cr: false,
- lf: false,
- tab: false,
- space: true,
- nbsp: false,
-};
-function trimSpaces(str, originalOpts) {
- // insurance:
- if (typeof str !== "string") {
- throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`);
- }
- // opts preparation:
- const opts = { ...defaults, ...originalOpts };
- function check(char) {
- return ((opts.classicTrim && !char.trim()) ||
- (!opts.classicTrim &&
- ((opts.space && char === " ") ||
- (opts.cr && char === "\r") ||
- (opts.lf && char === "\n") ||
- (opts.tab && char === "\t") ||
- (opts.nbsp && char === "\u00a0"))));
- }
- // action:
- let newStart;
- let newEnd;
- if (str.length) {
- if (check(str[0])) {
- for (let i = 0, len = str.length; i < len; i++) {
- if (!check(str[i])) {
- newStart = i;
- break;
- }
- // if we traversed the whole string this way and didn't stumble on a non-
- // space/whitespace character (depending on opts.classicTrim), this means
- // whole thing can be trimmed:
- if (i === str.length - 1) {
- // this means there are only spaces/whitespace from beginning to the end
- return {
- res: "",
- ranges: [[0, str.length]],
- };
- }
- }
- }
- // if we reached this far, check the last character - find out, is it worth
- // trimming the end of the given string:
- if (check(str[str.length - 1])) {
- for (let i = str.length; i--;) {
- if (!check(str[i])) {
- newEnd = i + 1;
- break;
- }
- }
- }
- if (newStart) {
- if (newEnd) {
- return {
- res: str.slice(newStart, newEnd),
- ranges: [
- [0, newStart],
- [newEnd, str.length],
- ],
- };
- }
- return {
- res: str.slice(newStart),
- ranges: [[0, newStart]],
- };
- }
- if (newEnd) {
- return {
- res: str.slice(0, newEnd),
- ranges: [[newEnd, str.length]],
- };
- }
- // if we reached this far, there was nothing to trim:
- return {
- res: str,
- ranges: [],
- };
- }
- // if we reached this far, this means it's an empty string. In which case,
- // return empty values:
- return {
- res: "",
- ranges: [],
- };
-}
-
-exports.defaults = defaults;
-exports.trimSpaces = trimSpaces;
-exports.version = version;
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
diff --git a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js
deleted file mode 100644
index d241b54..0000000
--- a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.esm.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * @name string-trim-spaces-only
- * @fileoverview Like String.trim() but you can choose granularly what to trim
- * @version 3.1.0
- * @author Roy Revelt, Codsen Ltd
- * @license MIT
- * {@link https://codsen.com/os/string-trim-spaces-only/}
- */
-
-var version$1 = "3.1.0";
-
-const version = version$1;
-const defaults = {
- classicTrim: false,
- cr: false,
- lf: false,
- tab: false,
- space: true,
- nbsp: false
-};
-function trimSpaces(str, originalOpts) {
- if (typeof str !== "string") {
- throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`);
- }
- const opts = { ...defaults,
- ...originalOpts
- };
- function check(char) {
- return opts.classicTrim && !char.trim() || !opts.classicTrim && (opts.space && char === " " || opts.cr && char === "\r" || opts.lf && char === "\n" || opts.tab && char === "\t" || opts.nbsp && char === "\u00a0");
- }
- let newStart;
- let newEnd;
- if (str.length) {
- if (check(str[0])) {
- for (let i = 0, len = str.length; i < len; i++) {
- if (!check(str[i])) {
- newStart = i;
- break;
- }
- if (i === str.length - 1) {
- return {
- res: "",
- ranges: [[0, str.length]]
- };
- }
- }
- }
- if (check(str[str.length - 1])) {
- for (let i = str.length; i--;) {
- if (!check(str[i])) {
- newEnd = i + 1;
- break;
- }
- }
- }
- if (newStart) {
- if (newEnd) {
- return {
- res: str.slice(newStart, newEnd),
- ranges: [[0, newStart], [newEnd, str.length]]
- };
- }
- return {
- res: str.slice(newStart),
- ranges: [[0, newStart]]
- };
- }
- if (newEnd) {
- return {
- res: str.slice(0, newEnd),
- ranges: [[newEnd, str.length]]
- };
- }
- return {
- res: str,
- ranges: []
- };
- }
- return {
- res: "",
- ranges: []
- };
-}
-
-export { defaults, trimSpaces, version };
diff --git a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js
deleted file mode 100644
index c7e8716..0000000
--- a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * @name string-trim-spaces-only
- * @fileoverview Like String.trim() but you can choose granularly what to trim
- * @version 3.1.0
- * @author Roy Revelt, Codsen Ltd
- * @license MIT
- * {@link https://codsen.com/os/string-trim-spaces-only/}
- */
-
-!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).stringTrimSpacesOnly={})}(this,(function(e){"use strict";const n={classicTrim:!1,cr:!1,lf:!1,tab:!1,space:!0,nbsp:!1};e.defaults=n,e.trimSpaces=function(e,t){if("string"!=typeof e)throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof e}, equal to:\n${JSON.stringify(e,null,4)}`);const s={...n,...t};function r(e){return s.classicTrim&&!e.trim()||!s.classicTrim&&(s.space&&" "===e||s.cr&&"\r"===e||s.lf&&"\n"===e||s.tab&&"\t"===e||s.nbsp&&" "===e)}let i,l;if(e.length){if(r(e[0]))for(let n=0,t=e.length;n<t;n++){if(!r(e[n])){i=n;break}if(n===e.length-1)return{res:"",ranges:[[0,e.length]]}}if(r(e[e.length-1]))for(let n=e.length;n--;)if(!r(e[n])){l=n+1;break}return i?l?{res:e.slice(i,l),ranges:[[0,i],[l,e.length]]}:{res:e.slice(i),ranges:[[0,i]]}:l?{res:e.slice(0,l),ranges:[[l,e.length]]}:{res:e,ranges:[]}}return{res:"",ranges:[]}},e.version="3.1.0",Object.defineProperty(e,"__esModule",{value:!0})}));