@startinblox/core 2.0.0-beta.11 → 2.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{helpers-DH22C8s9.js → helpers-C9LaFy6i.js} +17 -8
- package/dist/helpers.js +9 -8
- package/dist/index.js +389 -238
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2;
|
|
5
|
-
import { d as defineComponent, a as doesResourceContainList, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector,
|
|
6
|
-
import {
|
|
5
|
+
import { d as defineComponent, i as isUrlOrRelativePath, a as doesResourceContainList, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, j as importInlineCSS, k as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-C9LaFy6i.js";
|
|
6
|
+
import { l } from "./helpers-C9LaFy6i.js";
|
|
7
7
|
if (!("flat" in Array.prototype)) {
|
|
8
8
|
Object.defineProperty(Array.prototype, "flat", {
|
|
9
9
|
configurable: true,
|
|
@@ -56,12 +56,12 @@ function getAugmentedNamespace(n3) {
|
|
|
56
56
|
a2.prototype = f2.prototype;
|
|
57
57
|
} else a2 = {};
|
|
58
58
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
59
|
-
Object.keys(n3).forEach(function(
|
|
60
|
-
var d2 = Object.getOwnPropertyDescriptor(n3,
|
|
61
|
-
Object.defineProperty(a2,
|
|
59
|
+
Object.keys(n3).forEach(function(k2) {
|
|
60
|
+
var d2 = Object.getOwnPropertyDescriptor(n3, k2);
|
|
61
|
+
Object.defineProperty(a2, k2, d2.get ? d2 : {
|
|
62
62
|
enumerable: true,
|
|
63
63
|
get: function() {
|
|
64
|
-
return n3[
|
|
64
|
+
return n3[k2];
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
});
|
|
@@ -758,14 +758,14 @@ function requireRelativeToAbsoluteIri() {
|
|
|
758
758
|
if (hasRequiredRelativeToAbsoluteIri) return relativeToAbsoluteIri;
|
|
759
759
|
hasRequiredRelativeToAbsoluteIri = 1;
|
|
760
760
|
(function(exports2) {
|
|
761
|
-
var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2,
|
|
762
|
-
if (k22 === void 0) k22 =
|
|
761
|
+
var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
762
|
+
if (k22 === void 0) k22 = k2;
|
|
763
763
|
Object.defineProperty(o2, k22, { enumerable: true, get: function() {
|
|
764
|
-
return m2[
|
|
764
|
+
return m2[k2];
|
|
765
765
|
} });
|
|
766
|
-
} : function(o2, m2,
|
|
767
|
-
if (k22 === void 0) k22 =
|
|
768
|
-
o2[k22] = m2[
|
|
766
|
+
} : function(o2, m2, k2, k22) {
|
|
767
|
+
if (k22 === void 0) k22 = k2;
|
|
768
|
+
o2[k22] = m2[k2];
|
|
769
769
|
});
|
|
770
770
|
var __exportStar = relativeToAbsoluteIri && relativeToAbsoluteIri.__exportStar || function(m2, exports3) {
|
|
771
771
|
for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
|
|
@@ -1305,7 +1305,6 @@ function requireJsonldContextParser() {
|
|
|
1305
1305
|
return jsonldContextParser;
|
|
1306
1306
|
}
|
|
1307
1307
|
var jsonldContextParserExports = requireJsonldContextParser();
|
|
1308
|
-
const JSONLDContextParser = /* @__PURE__ */ getDefaultExportFromCjs(jsonldContextParserExports);
|
|
1309
1308
|
var loglevel$1 = { exports: {} };
|
|
1310
1309
|
var loglevel = loglevel$1.exports;
|
|
1311
1310
|
var hasRequiredLoglevel;
|
|
@@ -2578,25 +2577,25 @@ function requirePermuter() {
|
|
|
2578
2577
|
next() {
|
|
2579
2578
|
const { current, dir } = this;
|
|
2580
2579
|
const rval = current.slice();
|
|
2581
|
-
let
|
|
2580
|
+
let k2 = null;
|
|
2582
2581
|
let pos = 0;
|
|
2583
2582
|
const length = current.length;
|
|
2584
2583
|
for (let i3 = 0; i3 < length; ++i3) {
|
|
2585
2584
|
const element = current[i3];
|
|
2586
2585
|
const left = dir.get(element);
|
|
2587
|
-
if ((
|
|
2588
|
-
|
|
2586
|
+
if ((k2 === null || element > k2) && (left && i3 > 0 && element > current[i3 - 1] || !left && i3 < length - 1 && element > current[i3 + 1])) {
|
|
2587
|
+
k2 = element;
|
|
2589
2588
|
pos = i3;
|
|
2590
2589
|
}
|
|
2591
2590
|
}
|
|
2592
|
-
if (
|
|
2591
|
+
if (k2 === null) {
|
|
2593
2592
|
this.done = true;
|
|
2594
2593
|
} else {
|
|
2595
|
-
const swap = dir.get(
|
|
2594
|
+
const swap = dir.get(k2) ? pos - 1 : pos + 1;
|
|
2596
2595
|
current[pos] = current[swap];
|
|
2597
|
-
current[swap] =
|
|
2596
|
+
current[swap] = k2;
|
|
2598
2597
|
for (const element of current) {
|
|
2599
|
-
if (element >
|
|
2598
|
+
if (element > k2) {
|
|
2600
2599
|
dir.set(element, !dir.get(element));
|
|
2601
2600
|
}
|
|
2602
2601
|
}
|
|
@@ -3911,8 +3910,8 @@ function requireUtil() {
|
|
|
3911
3910
|
}
|
|
3912
3911
|
} else if (value instanceof Map) {
|
|
3913
3912
|
rval = /* @__PURE__ */ new Map();
|
|
3914
|
-
for (const [
|
|
3915
|
-
rval.set(
|
|
3913
|
+
for (const [k2, v2] of value) {
|
|
3914
|
+
rval.set(k2, api.clone(v2));
|
|
3916
3915
|
}
|
|
3917
3916
|
} else if (value instanceof Set) {
|
|
3918
3917
|
rval = /* @__PURE__ */ new Set();
|
|
@@ -4490,8 +4489,8 @@ function requireXhr() {
|
|
|
4490
4489
|
req.onload = () => resolve(req);
|
|
4491
4490
|
req.onerror = (err) => reject(err);
|
|
4492
4491
|
req.open("GET", url2, true);
|
|
4493
|
-
for (const
|
|
4494
|
-
req.setRequestHeader(
|
|
4492
|
+
for (const k2 in headers) {
|
|
4493
|
+
req.setRequestHeader(k2, headers[k2]);
|
|
4495
4494
|
}
|
|
4496
4495
|
req.send();
|
|
4497
4496
|
});
|
|
@@ -4559,7 +4558,7 @@ function requireYallist() {
|
|
|
4559
4558
|
self2.push(item);
|
|
4560
4559
|
});
|
|
4561
4560
|
} else if (arguments.length > 0) {
|
|
4562
|
-
for (var i3 = 0,
|
|
4561
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4563
4562
|
self2.push(arguments[i3]);
|
|
4564
4563
|
}
|
|
4565
4564
|
}
|
|
@@ -4628,13 +4627,13 @@ function requireYallist() {
|
|
|
4628
4627
|
this.length++;
|
|
4629
4628
|
};
|
|
4630
4629
|
Yallist.prototype.push = function() {
|
|
4631
|
-
for (var i3 = 0,
|
|
4630
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4632
4631
|
push(this, arguments[i3]);
|
|
4633
4632
|
}
|
|
4634
4633
|
return this.length;
|
|
4635
4634
|
};
|
|
4636
4635
|
Yallist.prototype.unshift = function() {
|
|
4637
|
-
for (var i3 = 0,
|
|
4636
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4638
4637
|
unshift(this, arguments[i3]);
|
|
4639
4638
|
}
|
|
4640
4639
|
return this.length;
|
|
@@ -5009,10 +5008,10 @@ function requireLruCache() {
|
|
|
5009
5008
|
}
|
|
5010
5009
|
}
|
|
5011
5010
|
keys() {
|
|
5012
|
-
return this[LRU_LIST].toArray().map((
|
|
5011
|
+
return this[LRU_LIST].toArray().map((k2) => k2.key);
|
|
5013
5012
|
}
|
|
5014
5013
|
values() {
|
|
5015
|
-
return this[LRU_LIST].toArray().map((
|
|
5014
|
+
return this[LRU_LIST].toArray().map((k2) => k2.value);
|
|
5016
5015
|
}
|
|
5017
5016
|
reset() {
|
|
5018
5017
|
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
@@ -5094,8 +5093,8 @@ function requireLruCache() {
|
|
|
5094
5093
|
load(arr) {
|
|
5095
5094
|
this.reset();
|
|
5096
5095
|
const now = Date.now();
|
|
5097
|
-
for (let
|
|
5098
|
-
const hit = arr[
|
|
5096
|
+
for (let l3 = arr.length - 1; l3 >= 0; l3--) {
|
|
5097
|
+
const hit = arr[l3];
|
|
5099
5098
|
const expiresAt = hit.e || 0;
|
|
5100
5099
|
if (expiresAt === 0)
|
|
5101
5100
|
this.set(hit.k, hit.v);
|
|
@@ -5921,7 +5920,7 @@ function requireContext() {
|
|
|
5921
5920
|
if (term === "@type" && _isObject(value) && (value["@container"] || "@set") === "@set" && api.processingMode(activeCtx, 1.1)) {
|
|
5922
5921
|
const validKeys2 = ["@container", "@id", "@protected"];
|
|
5923
5922
|
const keys2 = Object.keys(value);
|
|
5924
|
-
if (keys2.length === 0 || keys2.some((
|
|
5923
|
+
if (keys2.length === 0 || keys2.some((k2) => !validKeys2.includes(k2))) {
|
|
5925
5924
|
throw new JsonLdError(
|
|
5926
5925
|
"Invalid JSON-LD syntax; keywords cannot be overridden.",
|
|
5927
5926
|
"jsonld.SyntaxError",
|
|
@@ -7236,8 +7235,8 @@ function requireExpand() {
|
|
|
7236
7235
|
}
|
|
7237
7236
|
if (expandedProperty === "@type") {
|
|
7238
7237
|
if (_isObject(value)) {
|
|
7239
|
-
value = Object.fromEntries(Object.entries(value).map(([
|
|
7240
|
-
_expandIri(typeScopedContext,
|
|
7238
|
+
value = Object.fromEntries(Object.entries(value).map(([k2, v2]) => [
|
|
7239
|
+
_expandIri(typeScopedContext, k2, { vocab: true }),
|
|
7241
7240
|
_asArray(v2).map(
|
|
7242
7241
|
(vv) => _expandIri(
|
|
7243
7242
|
typeScopedContext,
|
|
@@ -7583,7 +7582,7 @@ function requireExpand() {
|
|
|
7583
7582
|
for (const key of nests) {
|
|
7584
7583
|
const nestedValues = _isArray(element[key]) ? element[key] : [element[key]];
|
|
7585
7584
|
for (const nv of nestedValues) {
|
|
7586
|
-
if (!_isObject(nv) || Object.keys(nv).some((
|
|
7585
|
+
if (!_isObject(nv) || Object.keys(nv).some((k2) => _expandIri(activeCtx, k2, { vocab: true }, options) === "@value")) {
|
|
7587
7586
|
throw new JsonLdError(
|
|
7588
7587
|
"Invalid JSON-LD syntax; nested value must be a node object.",
|
|
7589
7588
|
"jsonld.SyntaxError",
|
|
@@ -9203,8 +9202,8 @@ function requireFrame() {
|
|
|
9203
9202
|
const l1 = value["@language"];
|
|
9204
9203
|
const v2 = pattern["@value"] ? types2.isArray(pattern["@value"]) ? pattern["@value"] : [pattern["@value"]] : [];
|
|
9205
9204
|
const t2 = pattern["@type"] ? types2.isArray(pattern["@type"]) ? pattern["@type"] : [pattern["@type"]] : [];
|
|
9206
|
-
const
|
|
9207
|
-
if (v2.length === 0 && t2.length === 0 &&
|
|
9205
|
+
const l22 = pattern["@language"] ? types2.isArray(pattern["@language"]) ? pattern["@language"] : [pattern["@language"]] : [];
|
|
9206
|
+
if (v2.length === 0 && t2.length === 0 && l22.length === 0) {
|
|
9208
9207
|
return true;
|
|
9209
9208
|
}
|
|
9210
9209
|
if (!(v2.includes(v1) || types2.isEmptyObject(v2[0]))) {
|
|
@@ -9213,7 +9212,7 @@ function requireFrame() {
|
|
|
9213
9212
|
if (!(!t1 && t2.length === 0 || t2.includes(t1) || t1 && types2.isEmptyObject(t2[0]))) {
|
|
9214
9213
|
return false;
|
|
9215
9214
|
}
|
|
9216
|
-
if (!(!l1 &&
|
|
9215
|
+
if (!(!l1 && l22.length === 0 || l22.includes(l1) || l1 && types2.isEmptyObject(l22[0]))) {
|
|
9217
9216
|
return false;
|
|
9218
9217
|
}
|
|
9219
9218
|
return true;
|
|
@@ -10799,7 +10798,7 @@ function requireJsonld() {
|
|
|
10799
10798
|
}
|
|
10800
10799
|
var jsonldExports = requireJsonld();
|
|
10801
10800
|
const jsonld = /* @__PURE__ */ getDefaultExportFromCjs(jsonldExports);
|
|
10802
|
-
const ContextParser$1 =
|
|
10801
|
+
const ContextParser$1 = jsonldContextParserExports.ContextParser;
|
|
10803
10802
|
class CustomGetter {
|
|
10804
10803
|
// search attributes to give to server
|
|
10805
10804
|
constructor(resourceId, resource, clientContext, serverContext, parentId = "", serverPagination = {}, serverSearch = {}) {
|
|
@@ -10901,6 +10900,14 @@ class CustomGetter {
|
|
|
10901
10900
|
return resource ? await resource[path2.join(".")] : void 0;
|
|
10902
10901
|
}
|
|
10903
10902
|
}
|
|
10903
|
+
static getEmptyResource(id, clientContext, parentContext) {
|
|
10904
|
+
return new CustomGetter(
|
|
10905
|
+
id,
|
|
10906
|
+
{ "@id": id },
|
|
10907
|
+
clientContext,
|
|
10908
|
+
parentContext
|
|
10909
|
+
).getProxy();
|
|
10910
|
+
}
|
|
10904
10911
|
/**
|
|
10905
10912
|
* Return value depending of the current language
|
|
10906
10913
|
* @param value
|
|
@@ -11134,7 +11141,142 @@ class CustomGetter {
|
|
|
11134
11141
|
});
|
|
11135
11142
|
}
|
|
11136
11143
|
}
|
|
11137
|
-
|
|
11144
|
+
class CacheManager {
|
|
11145
|
+
constructor() {
|
|
11146
|
+
__publicField(this, "resourceCache", /* @__PURE__ */ new Map());
|
|
11147
|
+
__publicField(this, "urlToIdMap", /* @__PURE__ */ new Map());
|
|
11148
|
+
}
|
|
11149
|
+
/**
|
|
11150
|
+
* Retrieves a cached resource based on the URL it was originally fetched from.
|
|
11151
|
+
* Internally resolves the associated @id and returns the corresponding resource.
|
|
11152
|
+
*
|
|
11153
|
+
* @param url - The original URL used to fetch the resource.
|
|
11154
|
+
* @returns The cached resource, or undefined if not found.
|
|
11155
|
+
*/
|
|
11156
|
+
getByUrl(url2) {
|
|
11157
|
+
const id = this.urlToIdMap.get(url2);
|
|
11158
|
+
if (!id) return void 0;
|
|
11159
|
+
return this.resourceCache.get(id);
|
|
11160
|
+
}
|
|
11161
|
+
hasUrlMatch(url2) {
|
|
11162
|
+
if (!this.urlToIdMap.get(url2)) return false;
|
|
11163
|
+
return true;
|
|
11164
|
+
}
|
|
11165
|
+
/**
|
|
11166
|
+
* Retrieves a cached resource by its unique @id.
|
|
11167
|
+
*
|
|
11168
|
+
* @param id - The @id of the resource (can be a URI, URN, or UUID).
|
|
11169
|
+
* @returns The cached resource, or undefined if not found.
|
|
11170
|
+
*/
|
|
11171
|
+
getById(id) {
|
|
11172
|
+
return this.resourceCache.get(id);
|
|
11173
|
+
}
|
|
11174
|
+
/**
|
|
11175
|
+
* Retrieves a resource from the cache by either @id or fetch URL.
|
|
11176
|
+
* If the input is an ID, returns directly.
|
|
11177
|
+
* If it's a URL, attempts to resolve the associated @id first.
|
|
11178
|
+
*
|
|
11179
|
+
* @param idOrUrl - A resource @id or its original fetch URL.
|
|
11180
|
+
* @returns The cached resource, or undefined if not found.
|
|
11181
|
+
*/
|
|
11182
|
+
get(ref) {
|
|
11183
|
+
if (this.resourceCache.has(ref)) {
|
|
11184
|
+
return this.resourceCache.get(ref);
|
|
11185
|
+
}
|
|
11186
|
+
const id = this.urlToIdMap.get(ref);
|
|
11187
|
+
if (id) {
|
|
11188
|
+
return this.resourceCache.get(id);
|
|
11189
|
+
}
|
|
11190
|
+
return void 0;
|
|
11191
|
+
}
|
|
11192
|
+
length() {
|
|
11193
|
+
return this.resourceCache.size;
|
|
11194
|
+
}
|
|
11195
|
+
/**
|
|
11196
|
+
* Stores a resource in the cache and creates a mapping from the given URL to the resource's @id.
|
|
11197
|
+
*
|
|
11198
|
+
* @param url - The URL from which the resource was fetched.
|
|
11199
|
+
* @param resource - The JSON-LD resource to store. Must contain a valid @id.
|
|
11200
|
+
*/
|
|
11201
|
+
set(url2, resource) {
|
|
11202
|
+
const id = resource == null ? void 0 : resource["@id"];
|
|
11203
|
+
if (!id) {
|
|
11204
|
+
console.warn("[CacheManager] Resource has no @id", resource);
|
|
11205
|
+
return;
|
|
11206
|
+
}
|
|
11207
|
+
this.resourceCache.set(id, resource);
|
|
11208
|
+
this.urlToIdMap.set(url2, id);
|
|
11209
|
+
}
|
|
11210
|
+
/**
|
|
11211
|
+
* Links a data source URL or relative path to a given resource ID (`@id`)
|
|
11212
|
+
*
|
|
11213
|
+
* Used to establish a lookup path when the resource is first accessed by URL
|
|
11214
|
+
* and later by its actual `@id`.
|
|
11215
|
+
*
|
|
11216
|
+
* @param url - Data source (absolute or relative path).
|
|
11217
|
+
* @param emptyResource - The resource to associate with this URL. Must include a valid `@id`.
|
|
11218
|
+
*/
|
|
11219
|
+
linkUrlWithId(url2, emptyResource) {
|
|
11220
|
+
if (!isUrlOrRelativePath(url2)) return;
|
|
11221
|
+
if (this.hasUrlMatch(url2)) return;
|
|
11222
|
+
this.set(url2, emptyResource);
|
|
11223
|
+
}
|
|
11224
|
+
/**
|
|
11225
|
+
* Checks if a resource is cached.
|
|
11226
|
+
* Can be checked either by @id or by the original fetch URL.
|
|
11227
|
+
*
|
|
11228
|
+
* @param urlOrId - The @id or URL to check for.
|
|
11229
|
+
* @returns True if the resource exists in cache, false otherwise.
|
|
11230
|
+
*/
|
|
11231
|
+
has(urlOrId) {
|
|
11232
|
+
if (this.resourceCache.has(urlOrId)) return true;
|
|
11233
|
+
const id = this.urlToIdMap.get(urlOrId);
|
|
11234
|
+
return id ? this.resourceCache.has(id) : false;
|
|
11235
|
+
}
|
|
11236
|
+
/**
|
|
11237
|
+
* Returns the @id associated with a given fetch URL.
|
|
11238
|
+
*
|
|
11239
|
+
* @param url - The original fetch URL.
|
|
11240
|
+
* @returns The associated @id, or undefined if no mapping exists.
|
|
11241
|
+
*/
|
|
11242
|
+
getIdByUrl(url2) {
|
|
11243
|
+
return this.urlToIdMap.get(url2);
|
|
11244
|
+
}
|
|
11245
|
+
/**
|
|
11246
|
+
* Clears the entire cache and all URL-to-ID mappings.
|
|
11247
|
+
*/
|
|
11248
|
+
clear() {
|
|
11249
|
+
this.resourceCache.clear();
|
|
11250
|
+
this.urlToIdMap.clear();
|
|
11251
|
+
}
|
|
11252
|
+
/**
|
|
11253
|
+
* Removes a resource from the cache by @id or original fetch URL.
|
|
11254
|
+
* Both the resource and its URL mapping will be removed if applicable.
|
|
11255
|
+
*
|
|
11256
|
+
* @param idOrUrl - The @id or URL of the resource to delete.
|
|
11257
|
+
* @returns True if the resource was found and deleted, false otherwise.
|
|
11258
|
+
*/
|
|
11259
|
+
delete(idOrUrl) {
|
|
11260
|
+
if (this.resourceCache.has(idOrUrl)) {
|
|
11261
|
+
this.resourceCache.delete(idOrUrl);
|
|
11262
|
+
for (const [url2, id2] of this.urlToIdMap.entries()) {
|
|
11263
|
+
if (id2 === idOrUrl) {
|
|
11264
|
+
this.urlToIdMap.delete(url2);
|
|
11265
|
+
break;
|
|
11266
|
+
}
|
|
11267
|
+
}
|
|
11268
|
+
return true;
|
|
11269
|
+
}
|
|
11270
|
+
const id = this.urlToIdMap.get(idOrUrl);
|
|
11271
|
+
if (id && this.resourceCache.has(id)) {
|
|
11272
|
+
this.resourceCache.delete(id);
|
|
11273
|
+
this.urlToIdMap.delete(idOrUrl);
|
|
11274
|
+
return true;
|
|
11275
|
+
}
|
|
11276
|
+
return false;
|
|
11277
|
+
}
|
|
11278
|
+
}
|
|
11279
|
+
const ContextParser = jsonldContextParserExports.ContextParser;
|
|
11138
11280
|
const myParser = new ContextParser();
|
|
11139
11281
|
const base_context = {
|
|
11140
11282
|
"@vocab": "https://cdn.startinblox.com/owl#",
|
|
@@ -11187,7 +11329,7 @@ class Store {
|
|
|
11187
11329
|
return handler;
|
|
11188
11330
|
});
|
|
11189
11331
|
this.storeOptions = storeOptions;
|
|
11190
|
-
this.cache =
|
|
11332
|
+
this.cache = new CacheManager();
|
|
11191
11333
|
this.subscriptionIndex = /* @__PURE__ */ new Map();
|
|
11192
11334
|
this.subscriptionVirtualContainersIndex = /* @__PURE__ */ new Map();
|
|
11193
11335
|
this.loadingList = /* @__PURE__ */ new Set();
|
|
@@ -11331,25 +11473,34 @@ class Store {
|
|
|
11331
11473
|
* @param serverPagination - Server pagination query params
|
|
11332
11474
|
* @param serverSearch - Server search query params
|
|
11333
11475
|
*/
|
|
11334
|
-
async cacheGraph(
|
|
11335
|
-
|
|
11476
|
+
async cacheGraph(resources, clientContext, parentContext, parentId, serverPagination, serverSearch) {
|
|
11477
|
+
var _a3;
|
|
11478
|
+
this.cache.linkUrlWithId(
|
|
11479
|
+
parentId,
|
|
11480
|
+
CustomGetter.getEmptyResource(
|
|
11481
|
+
resources["@id"],
|
|
11482
|
+
clientContext,
|
|
11483
|
+
parentContext
|
|
11484
|
+
)
|
|
11485
|
+
);
|
|
11486
|
+
const flattenedResources = await jsonld.flatten(resources);
|
|
11336
11487
|
const compactedResources = await Promise.all(
|
|
11337
11488
|
flattenedResources.map((r3) => jsonld.compact(r3, {}))
|
|
11338
11489
|
);
|
|
11339
|
-
for (const
|
|
11340
|
-
const id =
|
|
11341
|
-
let key =
|
|
11342
|
-
if (!key) console.log("No key or id for resource:",
|
|
11490
|
+
for (const resource of compactedResources) {
|
|
11491
|
+
const id = resource["@id"] || resource.id;
|
|
11492
|
+
let key = resource["@id"] || resource.id;
|
|
11493
|
+
if (!key) console.log("No key or id for resource:", resource);
|
|
11343
11494
|
if (key === "/") key = parentId;
|
|
11344
11495
|
if (key.startsWith("_:b")) key = key + parentId;
|
|
11345
|
-
if (key === id &&
|
|
11496
|
+
if (key === id && resource["@type"] === this.getExpandedPredicate("ldp:Container", clientContext) || resource["@type"] === this.getExpandedPredicate("dcat:Catalog", clientContext)) {
|
|
11346
11497
|
if (serverPagination)
|
|
11347
11498
|
key = appendServerPaginationToIri(key, serverPagination);
|
|
11348
11499
|
if (serverSearch) key = appendServerSearchToIri(key, serverSearch);
|
|
11349
11500
|
}
|
|
11350
11501
|
const resourceProxy = new CustomGetter(
|
|
11351
11502
|
key,
|
|
11352
|
-
|
|
11503
|
+
resource,
|
|
11353
11504
|
clientContext,
|
|
11354
11505
|
parentContext,
|
|
11355
11506
|
parentId,
|
|
@@ -11359,7 +11510,7 @@ class Store {
|
|
|
11359
11510
|
if (resourceProxy.isContainer())
|
|
11360
11511
|
this.subscribeChildren(resourceProxy, id);
|
|
11361
11512
|
if (this.get(key)) {
|
|
11362
|
-
this.cache.get(key).merge(resourceProxy);
|
|
11513
|
+
(_a3 = this.cache.get(key)) == null ? void 0 : _a3.merge(resourceProxy);
|
|
11363
11514
|
} else {
|
|
11364
11515
|
this.cacheResource(key, resourceProxy);
|
|
11365
11516
|
}
|
|
@@ -11515,7 +11666,7 @@ class Store {
|
|
|
11515
11666
|
clearCache(id) {
|
|
11516
11667
|
if (this.cache.has(id)) {
|
|
11517
11668
|
const resource = this.cache.get(id);
|
|
11518
|
-
const predicate = resource["listPredicate"];
|
|
11669
|
+
const predicate = resource ? resource["listPredicate"] : null;
|
|
11519
11670
|
if (predicate) {
|
|
11520
11671
|
for (const child of predicate) {
|
|
11521
11672
|
if ((child == null ? void 0 : child["@type"]) && doesResourceContainList(child))
|
|
@@ -12098,7 +12249,7 @@ b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d$1("elementProp
|
|
|
12098
12249
|
* Copyright 2017 Google LLC
|
|
12099
12250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12100
12251
|
*/
|
|
12101
|
-
const t$1 = globalThis, i$4 = t$1.trustedTypes, s$2 = i$4 ? i$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h$2, n$2 = `<${o$3}>`, r$2 = document,
|
|
12252
|
+
const t$1 = globalThis, i$4 = t$1.trustedTypes, s$2 = i$4 ? i$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h$2, n$2 = `<${o$3}>`, r$2 = document, l2 = () => r$2.createComment(""), c$2 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f$2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
12102
12253
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r$2.createTreeWalker(r$2, 129);
|
|
12103
12254
|
function P$1(t2, i3) {
|
|
12104
12255
|
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -12106,15 +12257,15 @@ function P$1(t2, i3) {
|
|
|
12106
12257
|
}
|
|
12107
12258
|
const V = (t2, i3) => {
|
|
12108
12259
|
const s2 = t2.length - 1, o2 = [];
|
|
12109
|
-
let r3,
|
|
12260
|
+
let r3, l3 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", c2 = f$2;
|
|
12110
12261
|
for (let i4 = 0; i4 < s2; i4++) {
|
|
12111
12262
|
const s3 = t2[i4];
|
|
12112
12263
|
let a2, u2, d2 = -1, y2 = 0;
|
|
12113
12264
|
for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); ) y2 = c2.lastIndex, c2 === f$2 ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r3 = RegExp("</" + u2[2], "g")), c2 = m$1) : void 0 !== u2[3] && (c2 = m$1) : c2 === m$1 ? ">" === u2[0] ? (c2 = r3 ?? f$2, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$1 : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m$1 : c2 === v || c2 === _ ? c2 = f$2 : (c2 = m$1, r3 = void 0);
|
|
12114
12265
|
const x2 = c2 === m$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
12115
|
-
|
|
12266
|
+
l3 += c2 === f$2 ? s3 + n$2 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$2 + x2) : s3 + h$2 + (-2 === d2 ? i4 : x2);
|
|
12116
12267
|
}
|
|
12117
|
-
return [P$1(t2,
|
|
12268
|
+
return [P$1(t2, l3 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
12118
12269
|
};
|
|
12119
12270
|
class N {
|
|
12120
12271
|
constructor({ strings: t2, _$litType$: s2 }, n3) {
|
|
@@ -12130,14 +12281,14 @@ class N {
|
|
|
12130
12281
|
if (1 === r3.nodeType) {
|
|
12131
12282
|
if (r3.hasAttributes()) for (const t3 of r3.getAttributeNames()) if (t3.endsWith(e$2)) {
|
|
12132
12283
|
const i3 = v2[a2++], s3 = r3.getAttribute(t3).split(h$2), e2 = /([.?@])?(.*)/.exec(i3);
|
|
12133
|
-
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L :
|
|
12284
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r3.removeAttribute(t3);
|
|
12134
12285
|
} else t3.startsWith(h$2) && (d2.push({ type: 6, index: c2 }), r3.removeAttribute(t3));
|
|
12135
12286
|
if ($.test(r3.tagName)) {
|
|
12136
12287
|
const t3 = r3.textContent.split(h$2), s3 = t3.length - 1;
|
|
12137
12288
|
if (s3 > 0) {
|
|
12138
12289
|
r3.textContent = i$4 ? i$4.emptyScript : "";
|
|
12139
|
-
for (let i3 = 0; i3 < s3; i3++) r3.append(t3[i3],
|
|
12140
|
-
r3.append(t3[s3],
|
|
12290
|
+
for (let i3 = 0; i3 < s3; i3++) r3.append(t3[i3], l2()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
12291
|
+
r3.append(t3[s3], l2());
|
|
12141
12292
|
}
|
|
12142
12293
|
}
|
|
12143
12294
|
} else if (8 === r3.nodeType) if (r3.data === o$3) d2.push({ type: 2, index: c2 });
|
|
@@ -12173,13 +12324,13 @@ class M {
|
|
|
12173
12324
|
u(t2) {
|
|
12174
12325
|
const { el: { content: i3 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r$2).importNode(i3, true);
|
|
12175
12326
|
C.currentNode = e2;
|
|
12176
|
-
let h2 = C.nextNode(), o2 = 0, n3 = 0,
|
|
12177
|
-
for (; void 0 !==
|
|
12178
|
-
if (o2 ===
|
|
12327
|
+
let h2 = C.nextNode(), o2 = 0, n3 = 0, l3 = s2[0];
|
|
12328
|
+
for (; void 0 !== l3; ) {
|
|
12329
|
+
if (o2 === l3.index) {
|
|
12179
12330
|
let i4;
|
|
12180
|
-
2 ===
|
|
12331
|
+
2 === l3.type ? i4 = new R(h2, h2.nextSibling, this, t2) : 1 === l3.type ? i4 = new l3.ctor(h2, l3.name, l3.strings, this, t2) : 6 === l3.type && (i4 = new z(h2, this, t2)), this._$AV.push(i4), l3 = s2[++n3];
|
|
12181
12332
|
}
|
|
12182
|
-
o2 !== (
|
|
12333
|
+
o2 !== (l3 == null ? void 0 : l3.index) && (h2 = C.nextNode(), o2++);
|
|
12183
12334
|
}
|
|
12184
12335
|
return C.currentNode = r$2, e2;
|
|
12185
12336
|
}
|
|
@@ -12236,7 +12387,7 @@ class R {
|
|
|
12236
12387
|
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
12237
12388
|
const i3 = this._$AH;
|
|
12238
12389
|
let s2, e2 = 0;
|
|
12239
|
-
for (const h2 of t2) e2 === i3.length ? i3.push(s2 = new R(this.O(
|
|
12390
|
+
for (const h2 of t2) e2 === i3.length ? i3.push(s2 = new R(this.O(l2()), this.O(l2()), this, this.options)) : s2 = i3[e2], s2._$AI(h2), e2++;
|
|
12240
12391
|
e2 < i3.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i3.length = e2);
|
|
12241
12392
|
}
|
|
12242
12393
|
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
@@ -12251,7 +12402,7 @@ class R {
|
|
|
12251
12402
|
void 0 === this._$AM && (this._$Cv = t2, (_a3 = this._$AP) == null ? void 0 : _a3.call(this, t2));
|
|
12252
12403
|
}
|
|
12253
12404
|
}
|
|
12254
|
-
class
|
|
12405
|
+
class k {
|
|
12255
12406
|
get tagName() {
|
|
12256
12407
|
return this.element.tagName;
|
|
12257
12408
|
}
|
|
@@ -12276,7 +12427,7 @@ class k2 {
|
|
|
12276
12427
|
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
12277
12428
|
}
|
|
12278
12429
|
}
|
|
12279
|
-
class H extends
|
|
12430
|
+
class H extends k {
|
|
12280
12431
|
constructor() {
|
|
12281
12432
|
super(...arguments), this.type = 3;
|
|
12282
12433
|
}
|
|
@@ -12284,7 +12435,7 @@ class H extends k2 {
|
|
|
12284
12435
|
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
12285
12436
|
}
|
|
12286
12437
|
}
|
|
12287
|
-
class I extends
|
|
12438
|
+
class I extends k {
|
|
12288
12439
|
constructor() {
|
|
12289
12440
|
super(...arguments), this.type = 4;
|
|
12290
12441
|
}
|
|
@@ -12292,7 +12443,7 @@ class I extends k2 {
|
|
|
12292
12443
|
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
12293
12444
|
}
|
|
12294
12445
|
}
|
|
12295
|
-
class L extends
|
|
12446
|
+
class L extends k {
|
|
12296
12447
|
constructor(t2, i3, s2, e2, h2) {
|
|
12297
12448
|
super(t2, i3, s2, e2, h2), this.type = 5;
|
|
12298
12449
|
}
|
|
@@ -12324,7 +12475,7 @@ const B = (t2, i3, s2) => {
|
|
|
12324
12475
|
let h2 = e2._$litPart$;
|
|
12325
12476
|
if (void 0 === h2) {
|
|
12326
12477
|
const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
|
|
12327
|
-
e2._$litPart$ = h2 = new R(i3.insertBefore(
|
|
12478
|
+
e2._$litPart$ = h2 = new R(i3.insertBefore(l2(), t3), t3, void 0, s2 ?? {});
|
|
12328
12479
|
}
|
|
12329
12480
|
return h2._$AI(t2), h2;
|
|
12330
12481
|
};
|
|
@@ -12644,7 +12795,7 @@ const SolidAcChecker = {
|
|
|
12644
12795
|
populate: trackRenderAsync(async function() {
|
|
12645
12796
|
if (!this.resource) return;
|
|
12646
12797
|
let displayElement;
|
|
12647
|
-
const ContextParser2 =
|
|
12798
|
+
const ContextParser2 = jsonldContextParserExports.ContextParser;
|
|
12648
12799
|
const permissions = await this.resource.permissions;
|
|
12649
12800
|
if (this.permission) {
|
|
12650
12801
|
displayElement = permissions.some((p2) => {
|
|
@@ -12708,8 +12859,8 @@ function safeDispatchEvent(target, event) {
|
|
|
12708
12859
|
function createsStackingContext(el) {
|
|
12709
12860
|
while (el && el !== document.body) {
|
|
12710
12861
|
var s2 = window.getComputedStyle(el);
|
|
12711
|
-
var invalid = function(
|
|
12712
|
-
return !(s2[
|
|
12862
|
+
var invalid = function(k2, ok) {
|
|
12863
|
+
return !(s2[k2] === void 0 || s2[k2] === ok);
|
|
12713
12864
|
};
|
|
12714
12865
|
if (s2.opacity < 1 || invalid("zIndex", "auto") || invalid("transform", "none") || invalid("mixBlendMode", "normal") || invalid("filter", "none") || invalid("perspective", "none") || s2["isolation"] === "isolate" || s2.position === "fixed" || s2.webkitOverflowScrolling === "touch") {
|
|
12715
12866
|
return true;
|
|
@@ -17452,8 +17603,8 @@ function requireTinymce() {
|
|
|
17452
17603
|
const hasOwnProperty$22 = Object.hasOwnProperty;
|
|
17453
17604
|
const each$f = (obj, f2) => {
|
|
17454
17605
|
const props = keys2(obj);
|
|
17455
|
-
for (let
|
|
17456
|
-
const i3 = props[
|
|
17606
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
17607
|
+
const i3 = props[k2];
|
|
17457
17608
|
const x2 = obj[i3];
|
|
17458
17609
|
f2(x2, i3);
|
|
17459
17610
|
}
|
|
@@ -17523,7 +17674,7 @@ function requireTinymce() {
|
|
|
17523
17674
|
const toArray$1 = (obj) => {
|
|
17524
17675
|
if (!isArray2(obj)) {
|
|
17525
17676
|
const array2 = [];
|
|
17526
|
-
for (let i3 = 0,
|
|
17677
|
+
for (let i3 = 0, l3 = obj.length; i3 < l3; i3++) {
|
|
17527
17678
|
array2[i3] = obj[i3];
|
|
17528
17679
|
}
|
|
17529
17680
|
return array2;
|
|
@@ -17532,13 +17683,13 @@ function requireTinymce() {
|
|
|
17532
17683
|
}
|
|
17533
17684
|
};
|
|
17534
17685
|
const each$e = (o2, cb, s2) => {
|
|
17535
|
-
let n3,
|
|
17686
|
+
let n3, l3;
|
|
17536
17687
|
if (!o2) {
|
|
17537
17688
|
return false;
|
|
17538
17689
|
}
|
|
17539
17690
|
s2 = s2 || o2;
|
|
17540
17691
|
if (o2.length !== void 0) {
|
|
17541
|
-
for (n3 = 0,
|
|
17692
|
+
for (n3 = 0, l3 = o2.length; n3 < l3; n3++) {
|
|
17542
17693
|
if (cb.call(s2, o2[n3], n3, o2) === false) {
|
|
17543
17694
|
return false;
|
|
17544
17695
|
}
|
|
@@ -17572,7 +17723,7 @@ function requireTinymce() {
|
|
|
17572
17723
|
};
|
|
17573
17724
|
const indexOf = (a2, v2) => {
|
|
17574
17725
|
if (a2) {
|
|
17575
|
-
for (let i3 = 0,
|
|
17726
|
+
for (let i3 = 0, l3 = a2.length; i3 < l3; i3++) {
|
|
17576
17727
|
if (a2[i3] === v2) {
|
|
17577
17728
|
return i3;
|
|
17578
17729
|
}
|
|
@@ -17588,8 +17739,8 @@ function requireTinymce() {
|
|
|
17588
17739
|
return acc;
|
|
17589
17740
|
};
|
|
17590
17741
|
const findIndex$1 = (array2, predicate, thisArg) => {
|
|
17591
|
-
let i3,
|
|
17592
|
-
for (i3 = 0,
|
|
17742
|
+
let i3, l3;
|
|
17743
|
+
for (i3 = 0, l3 = array2.length; i3 < l3; i3++) {
|
|
17593
17744
|
if (predicate.call(thisArg, array2[i3], i3, array2)) {
|
|
17594
17745
|
return i3;
|
|
17595
17746
|
}
|
|
@@ -18030,10 +18181,10 @@ function requireTinymce() {
|
|
|
18030
18181
|
}
|
|
18031
18182
|
};
|
|
18032
18183
|
const resolve$2 = (n3, o2) => {
|
|
18033
|
-
let i3,
|
|
18184
|
+
let i3, l3;
|
|
18034
18185
|
o2 = o2 || window;
|
|
18035
18186
|
n3 = n3.split(".");
|
|
18036
|
-
for (i3 = 0,
|
|
18187
|
+
for (i3 = 0, l3 = n3.length; i3 < l3; i3++) {
|
|
18037
18188
|
o2 = o2[n3[i3]];
|
|
18038
18189
|
if (!o2) {
|
|
18039
18190
|
break;
|
|
@@ -18116,8 +18267,8 @@ function requireTinymce() {
|
|
|
18116
18267
|
};
|
|
18117
18268
|
const setAll$1 = (element, attrs) => {
|
|
18118
18269
|
const dom3 = element.dom;
|
|
18119
|
-
each$f(attrs, (v2,
|
|
18120
|
-
rawSet(dom3,
|
|
18270
|
+
each$f(attrs, (v2, k2) => {
|
|
18271
|
+
rawSet(dom3, k2, v2);
|
|
18121
18272
|
});
|
|
18122
18273
|
};
|
|
18123
18274
|
const get$9 = (element, key) => {
|
|
@@ -18378,8 +18529,8 @@ function requireTinymce() {
|
|
|
18378
18529
|
};
|
|
18379
18530
|
const setAll = (element, css) => {
|
|
18380
18531
|
const dom3 = element.dom;
|
|
18381
|
-
each$f(css, (v2,
|
|
18382
|
-
internalSet(dom3,
|
|
18532
|
+
each$f(css, (v2, k2) => {
|
|
18533
|
+
internalSet(dom3, k2, v2);
|
|
18383
18534
|
});
|
|
18384
18535
|
};
|
|
18385
18536
|
const get$7 = (element, property) => {
|
|
@@ -19624,7 +19775,7 @@ function requireTinymce() {
|
|
|
19624
19775
|
let ni = names.length;
|
|
19625
19776
|
while (ni--) {
|
|
19626
19777
|
const schemaItem = schema[names[ni]];
|
|
19627
|
-
for (let i3 = 0,
|
|
19778
|
+
for (let i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
19628
19779
|
schemaItem.attributes[attrs[i3]] = {};
|
|
19629
19780
|
schemaItem.attributesOrder.push(attrs[i3]);
|
|
19630
19781
|
}
|
|
@@ -20380,7 +20531,7 @@ function requireTinymce() {
|
|
|
20380
20531
|
let value2;
|
|
20381
20532
|
const styleList = validStyles[name2];
|
|
20382
20533
|
if (styleList) {
|
|
20383
|
-
for (let i4 = 0,
|
|
20534
|
+
for (let i4 = 0, l3 = styleList.length; i4 < l3; i4++) {
|
|
20384
20535
|
name2 = styleList[i4];
|
|
20385
20536
|
value2 = styles[name2];
|
|
20386
20537
|
if (value2) {
|
|
@@ -20741,7 +20892,7 @@ function requireTinymce() {
|
|
|
20741
20892
|
const container = this.events[id];
|
|
20742
20893
|
const callbackList = container && container[evt.type];
|
|
20743
20894
|
if (callbackList) {
|
|
20744
|
-
for (let i3 = 0,
|
|
20895
|
+
for (let i3 = 0, l3 = callbackList.length; i3 < l3; i3++) {
|
|
20745
20896
|
const callback = callbackList[i3];
|
|
20746
20897
|
if (callback && callback.func.call(callback.scope, evt) === false) {
|
|
20747
20898
|
evt.preventDefault();
|
|
@@ -27155,7 +27306,7 @@ function requireTinymce() {
|
|
|
27155
27306
|
if (selfAttrs = self2.attributes) {
|
|
27156
27307
|
const cloneAttrs = [];
|
|
27157
27308
|
cloneAttrs.map = {};
|
|
27158
|
-
for (let i3 = 0,
|
|
27309
|
+
for (let i3 = 0, l3 = selfAttrs.length; i3 < l3; i3++) {
|
|
27159
27310
|
const selfAttr = selfAttrs[i3];
|
|
27160
27311
|
if (selfAttr.name !== "id") {
|
|
27161
27312
|
cloneAttrs[cloneAttrs.length] = {
|
|
@@ -27483,7 +27634,7 @@ function requireTinymce() {
|
|
|
27483
27634
|
const htmlOutput = settings.element_format !== "xhtml";
|
|
27484
27635
|
return {
|
|
27485
27636
|
start: (name2, attrs, empty2) => {
|
|
27486
|
-
let i3,
|
|
27637
|
+
let i3, l3, attr, value2;
|
|
27487
27638
|
if (indent2 && indentBefore[name2] && html2.length > 0) {
|
|
27488
27639
|
value2 = html2[html2.length - 1];
|
|
27489
27640
|
if (value2.length > 0 && value2 !== "\n") {
|
|
@@ -27492,7 +27643,7 @@ function requireTinymce() {
|
|
|
27492
27643
|
}
|
|
27493
27644
|
html2.push("<", name2);
|
|
27494
27645
|
if (attrs) {
|
|
27495
|
-
for (i3 = 0,
|
|
27646
|
+
for (i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
27496
27647
|
attr = attrs[i3];
|
|
27497
27648
|
html2.push(" ", attr.name, '="', encode2(attr.value, true), '"');
|
|
27498
27649
|
}
|
|
@@ -27593,7 +27744,7 @@ function requireTinymce() {
|
|
|
27593
27744
|
sortedAttrs.map = {};
|
|
27594
27745
|
const elementRule = schema.getElementRule(node2.name);
|
|
27595
27746
|
if (elementRule) {
|
|
27596
|
-
for (let i3 = 0,
|
|
27747
|
+
for (let i3 = 0, l3 = elementRule.attributesOrder.length; i3 < l3; i3++) {
|
|
27597
27748
|
const attrName = elementRule.attributesOrder[i3];
|
|
27598
27749
|
if (attrName in attrs.map) {
|
|
27599
27750
|
const attrValue = attrs.map[attrName];
|
|
@@ -27604,7 +27755,7 @@ function requireTinymce() {
|
|
|
27604
27755
|
});
|
|
27605
27756
|
}
|
|
27606
27757
|
}
|
|
27607
|
-
for (let i3 = 0,
|
|
27758
|
+
for (let i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
27608
27759
|
const attrName = attrs[i3].name;
|
|
27609
27760
|
if (!(attrName in sortedAttrs.map)) {
|
|
27610
27761
|
const attrValue = attrs.map[attrName];
|
|
@@ -30148,7 +30299,7 @@ function requireTinymce() {
|
|
|
30148
30299
|
};
|
|
30149
30300
|
if (dom3.getContentEditable(selection.getNode()) === "false") {
|
|
30150
30301
|
node = selection.getNode();
|
|
30151
|
-
for (let i3 = 0,
|
|
30302
|
+
for (let i3 = 0, l3 = formatList.length; i3 < l3; i3++) {
|
|
30152
30303
|
const formatItem = formatList[i3];
|
|
30153
30304
|
if (formatItem.ceFalseOverride && isSelectorFormat(formatItem) && dom3.is(node, formatItem.selector)) {
|
|
30154
30305
|
setElementFormat(node, formatItem);
|
|
@@ -30390,14 +30541,14 @@ function requireTinymce() {
|
|
|
30390
30541
|
if (setPrototypeOf) {
|
|
30391
30542
|
setPrototypeOf(set3, null);
|
|
30392
30543
|
}
|
|
30393
|
-
var
|
|
30394
|
-
while (
|
|
30395
|
-
var element = array2[
|
|
30544
|
+
var l3 = array2.length;
|
|
30545
|
+
while (l3--) {
|
|
30546
|
+
var element = array2[l3];
|
|
30396
30547
|
if (typeof element === "string") {
|
|
30397
30548
|
var lcElement = stringToLowerCase(element);
|
|
30398
30549
|
if (lcElement !== element) {
|
|
30399
30550
|
if (!isFrozen(array2)) {
|
|
30400
|
-
array2[
|
|
30551
|
+
array2[l3] = lcElement;
|
|
30401
30552
|
}
|
|
30402
30553
|
element = lcElement;
|
|
30403
30554
|
}
|
|
@@ -31611,7 +31762,7 @@ function requireTinymce() {
|
|
|
31611
31762
|
var attr = void 0;
|
|
31612
31763
|
var value2 = void 0;
|
|
31613
31764
|
var lcName = void 0;
|
|
31614
|
-
var
|
|
31765
|
+
var l3 = void 0;
|
|
31615
31766
|
_executeHook("beforeSanitizeAttributes", currentNode, null);
|
|
31616
31767
|
var attributes = currentNode.attributes;
|
|
31617
31768
|
if (!attributes) {
|
|
@@ -31623,9 +31774,9 @@ function requireTinymce() {
|
|
|
31623
31774
|
keepAttr: true,
|
|
31624
31775
|
allowedAttributes: ALLOWED_ATTR
|
|
31625
31776
|
};
|
|
31626
|
-
|
|
31627
|
-
while (
|
|
31628
|
-
attr = attributes[
|
|
31777
|
+
l3 = attributes.length;
|
|
31778
|
+
while (l3--) {
|
|
31779
|
+
attr = attributes[l3];
|
|
31629
31780
|
var _attr = attr, name2 = _attr.name, namespaceURI = _attr.namespaceURI;
|
|
31630
31781
|
value2 = stringTrim(attr.value);
|
|
31631
31782
|
lcName = transformCaseFunc(name2);
|
|
@@ -32113,7 +32264,7 @@ function requireTinymce() {
|
|
|
32113
32264
|
const nonEmptyElements = schema.getNonEmptyElements();
|
|
32114
32265
|
const whitespaceElements = schema.getWhitespaceElements();
|
|
32115
32266
|
blockElements.body = 1;
|
|
32116
|
-
for (let i3 = 0,
|
|
32267
|
+
for (let i3 = 0, l3 = nodes.length; i3 < l3; i3++) {
|
|
32117
32268
|
let node = nodes[i3];
|
|
32118
32269
|
let parent2 = node.parent;
|
|
32119
32270
|
if (blockElements[node.parent.name] && node === parent2.lastChild) {
|
|
@@ -32425,11 +32576,11 @@ function requireTinymce() {
|
|
|
32425
32576
|
return false;
|
|
32426
32577
|
}
|
|
32427
32578
|
toRelPath(base2, path) {
|
|
32428
|
-
let breakPoint = 0, out = "", i3,
|
|
32579
|
+
let breakPoint = 0, out = "", i3, l3;
|
|
32429
32580
|
const normalizedBase = base2.substring(0, base2.lastIndexOf("/")).split("/");
|
|
32430
32581
|
const items = path.split("/");
|
|
32431
32582
|
if (normalizedBase.length >= items.length) {
|
|
32432
|
-
for (i3 = 0,
|
|
32583
|
+
for (i3 = 0, l3 = normalizedBase.length; i3 < l3; i3++) {
|
|
32433
32584
|
if (i3 >= items.length || normalizedBase[i3] !== items[i3]) {
|
|
32434
32585
|
breakPoint = i3 + 1;
|
|
32435
32586
|
break;
|
|
@@ -32437,7 +32588,7 @@ function requireTinymce() {
|
|
|
32437
32588
|
}
|
|
32438
32589
|
}
|
|
32439
32590
|
if (normalizedBase.length < items.length) {
|
|
32440
|
-
for (i3 = 0,
|
|
32591
|
+
for (i3 = 0, l3 = items.length; i3 < l3; i3++) {
|
|
32441
32592
|
if (i3 >= normalizedBase.length || normalizedBase[i3] !== items[i3]) {
|
|
32442
32593
|
breakPoint = i3 + 1;
|
|
32443
32594
|
break;
|
|
@@ -32447,10 +32598,10 @@ function requireTinymce() {
|
|
|
32447
32598
|
if (breakPoint === 1) {
|
|
32448
32599
|
return path;
|
|
32449
32600
|
}
|
|
32450
|
-
for (i3 = 0,
|
|
32601
|
+
for (i3 = 0, l3 = normalizedBase.length - (breakPoint - 1); i3 < l3; i3++) {
|
|
32451
32602
|
out += "../";
|
|
32452
32603
|
}
|
|
32453
|
-
for (i3 = breakPoint - 1,
|
|
32604
|
+
for (i3 = breakPoint - 1, l3 = items.length; i3 < l3; i3++) {
|
|
32454
32605
|
if (i3 !== breakPoint - 1) {
|
|
32455
32606
|
out += "/" + items[i3];
|
|
32456
32607
|
} else {
|
|
@@ -32464,9 +32615,9 @@ function requireTinymce() {
|
|
|
32464
32615
|
const tr = /\/$/.test(path) ? "/" : "";
|
|
32465
32616
|
let normalizedBase = base2.split("/");
|
|
32466
32617
|
const normalizedPath = path.split("/");
|
|
32467
|
-
each$5(normalizedBase, (
|
|
32468
|
-
if (
|
|
32469
|
-
o2.push(
|
|
32618
|
+
each$5(normalizedBase, (k2) => {
|
|
32619
|
+
if (k2) {
|
|
32620
|
+
o2.push(k2);
|
|
32470
32621
|
}
|
|
32471
32622
|
});
|
|
32472
32623
|
normalizedBase = o2;
|
|
@@ -33292,43 +33443,43 @@ function requireTinymce() {
|
|
|
33292
33443
|
const offset = (sum % 2 === 0 ? sum : sum + 1) / 2;
|
|
33293
33444
|
vDown[1 + offset] = start1;
|
|
33294
33445
|
vUp[1 + offset] = end1 + 1;
|
|
33295
|
-
let d2,
|
|
33446
|
+
let d2, k2, i3, x2, y2;
|
|
33296
33447
|
for (d2 = 0; d2 <= offset; ++d2) {
|
|
33297
|
-
for (
|
|
33298
|
-
i3 =
|
|
33299
|
-
if (
|
|
33448
|
+
for (k2 = -d2; k2 <= d2; k2 += 2) {
|
|
33449
|
+
i3 = k2 + offset;
|
|
33450
|
+
if (k2 === -d2 || k2 !== d2 && vDown[i3 - 1] < vDown[i3 + 1]) {
|
|
33300
33451
|
vDown[i3] = vDown[i3 + 1];
|
|
33301
33452
|
} else {
|
|
33302
33453
|
vDown[i3] = vDown[i3 - 1] + 1;
|
|
33303
33454
|
}
|
|
33304
33455
|
x2 = vDown[i3];
|
|
33305
|
-
y2 = x2 - start1 + start2 -
|
|
33456
|
+
y2 = x2 - start1 + start2 - k2;
|
|
33306
33457
|
while (x2 < end1 && y2 < end2 && left[x2] === right[y2]) {
|
|
33307
33458
|
vDown[i3] = ++x2;
|
|
33308
33459
|
++y2;
|
|
33309
33460
|
}
|
|
33310
|
-
if (delta % 2 !== 0 && delta - d2 <=
|
|
33461
|
+
if (delta % 2 !== 0 && delta - d2 <= k2 && k2 <= delta + d2) {
|
|
33311
33462
|
if (vUp[i3 - delta] <= vDown[i3]) {
|
|
33312
|
-
return buildSnake(vUp[i3 - delta],
|
|
33463
|
+
return buildSnake(vUp[i3 - delta], k2 + start1 - start2, end1, end2);
|
|
33313
33464
|
}
|
|
33314
33465
|
}
|
|
33315
33466
|
}
|
|
33316
|
-
for (
|
|
33317
|
-
i3 =
|
|
33318
|
-
if (
|
|
33467
|
+
for (k2 = delta - d2; k2 <= delta + d2; k2 += 2) {
|
|
33468
|
+
i3 = k2 + offset - delta;
|
|
33469
|
+
if (k2 === delta - d2 || k2 !== delta + d2 && vUp[i3 + 1] <= vUp[i3 - 1]) {
|
|
33319
33470
|
vUp[i3] = vUp[i3 + 1] - 1;
|
|
33320
33471
|
} else {
|
|
33321
33472
|
vUp[i3] = vUp[i3 - 1];
|
|
33322
33473
|
}
|
|
33323
33474
|
x2 = vUp[i3] - 1;
|
|
33324
|
-
y2 = x2 - start1 + start2 -
|
|
33475
|
+
y2 = x2 - start1 + start2 - k2;
|
|
33325
33476
|
while (x2 >= start1 && y2 >= start2 && left[x2] === right[y2]) {
|
|
33326
33477
|
vUp[i3] = x2--;
|
|
33327
33478
|
y2--;
|
|
33328
33479
|
}
|
|
33329
|
-
if (delta % 2 === 0 && -d2 <=
|
|
33480
|
+
if (delta % 2 === 0 && -d2 <= k2 && k2 <= d2) {
|
|
33330
33481
|
if (vUp[i3] <= vDown[i3 + delta]) {
|
|
33331
|
-
return buildSnake(vUp[i3],
|
|
33482
|
+
return buildSnake(vUp[i3], k2 + start1 - start2, end1, end2);
|
|
33332
33483
|
}
|
|
33333
33484
|
}
|
|
33334
33485
|
}
|
|
@@ -43918,7 +44069,7 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
|
|
|
43918
44069
|
}
|
|
43919
44070
|
const handlers = this.bindings[lcName];
|
|
43920
44071
|
if (handlers) {
|
|
43921
|
-
for (let i3 = 0,
|
|
44072
|
+
for (let i3 = 0, l3 = handlers.length; i3 < l3; i3++) {
|
|
43922
44073
|
const callback = handlers[i3];
|
|
43923
44074
|
if (callback.removed) {
|
|
43924
44075
|
continue;
|
|
@@ -45493,7 +45644,7 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
|
|
|
45493
45644
|
return keys3[index2];
|
|
45494
45645
|
},
|
|
45495
45646
|
removeItem: (key) => {
|
|
45496
|
-
keys3 = keys3.filter((
|
|
45647
|
+
keys3 = keys3.filter((k2) => k2 === key);
|
|
45497
45648
|
delete data2[key];
|
|
45498
45649
|
},
|
|
45499
45650
|
clear: () => {
|
|
@@ -45965,8 +46116,8 @@ function requireTheme() {
|
|
|
45965
46116
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
45966
46117
|
const each = (obj, f2) => {
|
|
45967
46118
|
const props = keys2(obj);
|
|
45968
|
-
for (let
|
|
45969
|
-
const i3 = props[
|
|
46119
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
46120
|
+
const i3 = props[k2];
|
|
45970
46121
|
const x2 = obj[i3];
|
|
45971
46122
|
f2(x2, i3);
|
|
45972
46123
|
}
|
|
@@ -46018,8 +46169,8 @@ function requireTheme() {
|
|
|
46018
46169
|
};
|
|
46019
46170
|
const find$4 = (obj, pred) => {
|
|
46020
46171
|
const props = keys2(obj);
|
|
46021
|
-
for (let
|
|
46022
|
-
const i3 = props[
|
|
46172
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
46173
|
+
const i3 = props[k2];
|
|
46023
46174
|
const x2 = obj[i3];
|
|
46024
46175
|
if (pred(x2, i3, obj)) {
|
|
46025
46176
|
return Optional.some(x2);
|
|
@@ -46252,8 +46403,8 @@ function requireTheme() {
|
|
|
46252
46403
|
};
|
|
46253
46404
|
const setAll$1 = (element2, attrs) => {
|
|
46254
46405
|
const dom3 = element2.dom;
|
|
46255
|
-
each(attrs, (v2,
|
|
46256
|
-
rawSet(dom3,
|
|
46406
|
+
each(attrs, (v2, k2) => {
|
|
46407
|
+
rawSet(dom3, k2, v2);
|
|
46257
46408
|
});
|
|
46258
46409
|
};
|
|
46259
46410
|
const get$f = (element2, key) => {
|
|
@@ -46292,17 +46443,17 @@ function requireTheme() {
|
|
|
46292
46443
|
};
|
|
46293
46444
|
const setAll = (element2, css) => {
|
|
46294
46445
|
const dom3 = element2.dom;
|
|
46295
|
-
each(css, (v2,
|
|
46296
|
-
internalSet(dom3,
|
|
46446
|
+
each(css, (v2, k2) => {
|
|
46447
|
+
internalSet(dom3, k2, v2);
|
|
46297
46448
|
});
|
|
46298
46449
|
};
|
|
46299
46450
|
const setOptions = (element2, css) => {
|
|
46300
46451
|
const dom3 = element2.dom;
|
|
46301
|
-
each(css, (v2,
|
|
46452
|
+
each(css, (v2, k2) => {
|
|
46302
46453
|
v2.fold(() => {
|
|
46303
|
-
internalRemove(dom3,
|
|
46454
|
+
internalRemove(dom3, k2);
|
|
46304
46455
|
}, (value2) => {
|
|
46305
|
-
internalSet(dom3,
|
|
46456
|
+
internalSet(dom3, k2, value2);
|
|
46306
46457
|
});
|
|
46307
46458
|
});
|
|
46308
46459
|
};
|
|
@@ -47270,7 +47421,7 @@ function requireTheme() {
|
|
|
47270
47421
|
}, {});
|
|
47271
47422
|
const extract2 = (path2, o2) => {
|
|
47272
47423
|
const keys3 = isBoolean2(o2) ? [] : getSetKeys(o2);
|
|
47273
|
-
const extra = filter$2(keys3, (
|
|
47424
|
+
const extra = filter$2(keys3, (k2) => !hasNonNullableKey(fieldNames, k2));
|
|
47274
47425
|
return extra.length === 0 ? delegate.extract(path2, o2) : unsupportedFields(path2, extra);
|
|
47275
47426
|
};
|
|
47276
47427
|
return {
|
|
@@ -47575,9 +47726,9 @@ function requireTheme() {
|
|
|
47575
47726
|
};
|
|
47576
47727
|
const exclude$1 = (obj, fields) => {
|
|
47577
47728
|
const r4 = {};
|
|
47578
|
-
each(obj, (v2,
|
|
47579
|
-
if (!contains$2(fields,
|
|
47580
|
-
r4[
|
|
47729
|
+
each(obj, (v2, k2) => {
|
|
47730
|
+
if (!contains$2(fields, k2)) {
|
|
47731
|
+
r4[k2] = v2;
|
|
47581
47732
|
}
|
|
47582
47733
|
});
|
|
47583
47734
|
return r4;
|
|
@@ -48336,8 +48487,8 @@ function requireTheme() {
|
|
|
48336
48487
|
const newKeys = keys2(newObj);
|
|
48337
48488
|
const oldKeys = keys2(oldObj);
|
|
48338
48489
|
const toRemove = difference(oldKeys, newKeys);
|
|
48339
|
-
const toSet = bifilter(newObj, (v2,
|
|
48340
|
-
return !has$2(oldObj,
|
|
48490
|
+
const toSet = bifilter(newObj, (v2, k2) => {
|
|
48491
|
+
return !has$2(oldObj, k2) || v2 !== oldObj[k2];
|
|
48341
48492
|
}).t;
|
|
48342
48493
|
return {
|
|
48343
48494
|
toRemove,
|
|
@@ -51066,7 +51217,7 @@ function requireTheme() {
|
|
|
51066
51217
|
const config3 = asRawOrDie$1("Sketcher for " + rawConfig.name, singleSchema, rawConfig);
|
|
51067
51218
|
const sketch2 = (spec) => single$1(config3.name, config3.configFields, config3.factory, spec);
|
|
51068
51219
|
const apis = map$1(config3.apis, makeApi);
|
|
51069
|
-
const extraApis = map$1(config3.extraApis, (f2,
|
|
51220
|
+
const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
|
|
51070
51221
|
return {
|
|
51071
51222
|
name: config3.name,
|
|
51072
51223
|
configFields: config3.configFields,
|
|
@@ -51080,7 +51231,7 @@ function requireTheme() {
|
|
|
51080
51231
|
const sketch2 = (spec) => composite$1(config3.name, config3.configFields, config3.partFields, config3.factory, spec);
|
|
51081
51232
|
const parts2 = generate$3(config3.name, config3.partFields);
|
|
51082
51233
|
const apis = map$1(config3.apis, makeApi);
|
|
51083
|
-
const extraApis = map$1(config3.extraApis, (f2,
|
|
51234
|
+
const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
|
|
51084
51235
|
return {
|
|
51085
51236
|
name: config3.name,
|
|
51086
51237
|
partFields: config3.partFields,
|
|
@@ -52492,9 +52643,9 @@ function requireTheme() {
|
|
|
52492
52643
|
partFields: parts$g(),
|
|
52493
52644
|
factory: make$7
|
|
52494
52645
|
});
|
|
52495
|
-
const transpose$1 = (obj) => tupleMap(obj, (v2,
|
|
52646
|
+
const transpose$1 = (obj) => tupleMap(obj, (v2, k2) => ({
|
|
52496
52647
|
k: v2,
|
|
52497
|
-
v:
|
|
52648
|
+
v: k2
|
|
52498
52649
|
}));
|
|
52499
52650
|
const trace = (items, byItem, byMenu, finish) => get$g(byMenu, finish).bind((triggerItem) => get$g(items, triggerItem).bind((triggerMenu) => {
|
|
52500
52651
|
const rest = trace(items, byItem, byMenu, triggerMenu);
|
|
@@ -52658,8 +52809,8 @@ function requireTheme() {
|
|
|
52658
52809
|
});
|
|
52659
52810
|
const updateAriaExpansions = (container, path2) => {
|
|
52660
52811
|
const parentItems = getSubmenuParents(container);
|
|
52661
|
-
each(parentItems, (v2,
|
|
52662
|
-
const expanded = contains$2(path2,
|
|
52812
|
+
each(parentItems, (v2, k2) => {
|
|
52813
|
+
const expanded = contains$2(path2, k2);
|
|
52663
52814
|
set$9(v2.element, "aria-expanded", expanded);
|
|
52664
52815
|
});
|
|
52665
52816
|
};
|
|
@@ -56250,10 +56401,10 @@ function requireTheme() {
|
|
|
56250
56401
|
const EventRegistry = () => {
|
|
56251
56402
|
const registry = {};
|
|
56252
56403
|
const registerId = (extraArgs, id, events3) => {
|
|
56253
|
-
each(events3, (v2,
|
|
56254
|
-
const handlers2 = registry[
|
|
56404
|
+
each(events3, (v2, k2) => {
|
|
56405
|
+
const handlers2 = registry[k2] !== void 0 ? registry[k2] : {};
|
|
56255
56406
|
handlers2[id] = curryArgs(v2, extraArgs);
|
|
56256
|
-
registry[
|
|
56407
|
+
registry[k2] = handlers2;
|
|
56257
56408
|
});
|
|
56258
56409
|
};
|
|
56259
56410
|
const findHandler = (handlers2, elem) => read$1(elem).bind((id) => get$g(handlers2, id)).map((descHandler) => eventHandler(elem, descHandler));
|
|
@@ -57652,7 +57803,7 @@ function requireTheme() {
|
|
|
57652
57803
|
return mouseEvent.clientX !== void 0 ? Optional.some(mouseEvent).map((me) => SugarPosition(me.clientX, me.clientY)) : Optional.none();
|
|
57653
57804
|
}
|
|
57654
57805
|
};
|
|
57655
|
-
const t2 = "top", r3 = "right", b2 = "bottom",
|
|
57806
|
+
const t2 = "top", r3 = "right", b2 = "bottom", l3 = "left";
|
|
57656
57807
|
const minX = (detail) => detail.model.minX;
|
|
57657
57808
|
const minY = (detail) => detail.model.minY;
|
|
57658
57809
|
const min1X = (detail) => detail.model.minX - 1;
|
|
@@ -57671,7 +57822,7 @@ function requireTheme() {
|
|
|
57671
57822
|
const snapStart = (detail) => detail.snapStart;
|
|
57672
57823
|
const rounded = (detail) => detail.rounded;
|
|
57673
57824
|
const hasEdge = (detail, edgeName) => detail[edgeName + "-edge"] !== void 0;
|
|
57674
|
-
const hasLEdge = (detail) => hasEdge(detail,
|
|
57825
|
+
const hasLEdge = (detail) => hasEdge(detail, l3);
|
|
57675
57826
|
const hasREdge = (detail) => hasEdge(detail, r3);
|
|
57676
57827
|
const hasTEdge = (detail) => hasEdge(detail, t2);
|
|
57677
57828
|
const hasBEdge = (detail) => hasEdge(detail, b2);
|
|
@@ -59193,7 +59344,7 @@ function requireTheme() {
|
|
|
59193
59344
|
reject("Unable to load data from image: " + image3.dom.src);
|
|
59194
59345
|
})
|
|
59195
59346
|
];
|
|
59196
|
-
const destroy = () => each$1(listeners, (
|
|
59347
|
+
const destroy = () => each$1(listeners, (l4) => l4.unbind());
|
|
59197
59348
|
if (image3.dom.complete) {
|
|
59198
59349
|
loaded();
|
|
59199
59350
|
}
|
|
@@ -70383,9 +70534,9 @@ function requireTheme() {
|
|
|
70383
70534
|
const newInternalData = validateData$1(access, mergedData);
|
|
70384
70535
|
const form = access.getFormWrapper();
|
|
70385
70536
|
Representing.setValue(form, newInternalData);
|
|
70386
|
-
each(menuItemStates, (v2,
|
|
70387
|
-
if (has$2(mergedData,
|
|
70388
|
-
v2.set(mergedData[
|
|
70537
|
+
each(menuItemStates, (v2, k2) => {
|
|
70538
|
+
if (has$2(mergedData, k2)) {
|
|
70539
|
+
v2.set(mergedData[k2]);
|
|
70389
70540
|
}
|
|
70390
70541
|
});
|
|
70391
70542
|
});
|
|
@@ -71317,8 +71468,8 @@ function requireModel() {
|
|
|
71317
71468
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
71318
71469
|
const each$1 = (obj, f2) => {
|
|
71319
71470
|
const props = keys2(obj);
|
|
71320
|
-
for (let
|
|
71321
|
-
const i3 = props[
|
|
71471
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
71472
|
+
const i3 = props[k2];
|
|
71322
71473
|
const x2 = obj[i3];
|
|
71323
71474
|
f2(x2, i3);
|
|
71324
71475
|
}
|
|
@@ -71406,16 +71557,16 @@ function requireModel() {
|
|
|
71406
71557
|
};
|
|
71407
71558
|
const setAll$1 = (element, attrs) => {
|
|
71408
71559
|
const dom2 = element.dom;
|
|
71409
|
-
each$1(attrs, (v2,
|
|
71410
|
-
rawSet(dom2,
|
|
71560
|
+
each$1(attrs, (v2, k2) => {
|
|
71561
|
+
rawSet(dom2, k2, v2);
|
|
71411
71562
|
});
|
|
71412
71563
|
};
|
|
71413
71564
|
const setOptions = (element, attrs) => {
|
|
71414
|
-
each$1(attrs, (v2,
|
|
71565
|
+
each$1(attrs, (v2, k2) => {
|
|
71415
71566
|
v2.fold(() => {
|
|
71416
|
-
remove$7(element,
|
|
71567
|
+
remove$7(element, k2);
|
|
71417
71568
|
}, (value2) => {
|
|
71418
|
-
rawSet(element.dom,
|
|
71569
|
+
rawSet(element.dom, k2, value2);
|
|
71419
71570
|
});
|
|
71420
71571
|
});
|
|
71421
71572
|
};
|
|
@@ -71855,8 +72006,8 @@ function requireModel() {
|
|
|
71855
72006
|
};
|
|
71856
72007
|
const setAll = (element, css2) => {
|
|
71857
72008
|
const dom2 = element.dom;
|
|
71858
|
-
each$1(css2, (v2,
|
|
71859
|
-
internalSet(dom2,
|
|
72009
|
+
each$1(css2, (v2, k2) => {
|
|
72010
|
+
internalSet(dom2, k2, v2);
|
|
71860
72011
|
});
|
|
71861
72012
|
};
|
|
71862
72013
|
const get$a = (element, property) => {
|
|
@@ -73136,11 +73287,11 @@ function requireModel() {
|
|
|
73136
73287
|
};
|
|
73137
73288
|
const replace$1 = (cell2, tag, attrs) => {
|
|
73138
73289
|
const replica = copy$2(cell2, tag);
|
|
73139
|
-
each$1(attrs, (v2,
|
|
73290
|
+
each$1(attrs, (v2, k2) => {
|
|
73140
73291
|
if (v2 === null) {
|
|
73141
|
-
remove$7(replica,
|
|
73292
|
+
remove$7(replica, k2);
|
|
73142
73293
|
} else {
|
|
73143
|
-
set$2(replica,
|
|
73294
|
+
set$2(replica, k2, v2);
|
|
73144
73295
|
}
|
|
73145
73296
|
});
|
|
73146
73297
|
return replica;
|
|
@@ -79302,8 +79453,8 @@ function requirePlugin$2() {
|
|
|
79302
79453
|
const keys2 = Object.keys;
|
|
79303
79454
|
const each = (obj, f2) => {
|
|
79304
79455
|
const props = keys2(obj);
|
|
79305
|
-
for (let
|
|
79306
|
-
const i3 = props[
|
|
79456
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
79457
|
+
const i3 = props[k2];
|
|
79307
79458
|
const x2 = obj[i3];
|
|
79308
79459
|
f2(x2, i3);
|
|
79309
79460
|
}
|
|
@@ -79333,8 +79484,8 @@ function requirePlugin$2() {
|
|
|
79333
79484
|
};
|
|
79334
79485
|
const setAll = (element, attrs) => {
|
|
79335
79486
|
const dom2 = element.dom;
|
|
79336
|
-
each(attrs, (v2,
|
|
79337
|
-
rawSet(dom2,
|
|
79487
|
+
each(attrs, (v2, k2) => {
|
|
79488
|
+
rawSet(dom2, k2, v2);
|
|
79338
79489
|
});
|
|
79339
79490
|
};
|
|
79340
79491
|
const clone$1 = (element) => foldl(element.dom.attributes, (acc, attr) => {
|
|
@@ -80384,7 +80535,7 @@ function requirePlugin$2() {
|
|
|
80384
80535
|
editor.dom.setStyles(parentList, update.styles);
|
|
80385
80536
|
}
|
|
80386
80537
|
if (isObject2(update.attrs)) {
|
|
80387
|
-
each(update.attrs, (v2,
|
|
80538
|
+
each(update.attrs, (v2, k2) => editor.dom.setAttrib(parentList, k2, v2));
|
|
80388
80539
|
}
|
|
80389
80540
|
});
|
|
80390
80541
|
};
|
|
@@ -80949,8 +81100,8 @@ function requirePlugin$1() {
|
|
|
80949
81100
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
80950
81101
|
const each = (obj, f2) => {
|
|
80951
81102
|
const props = keys2(obj);
|
|
80952
|
-
for (let
|
|
80953
|
-
const i3 = props[
|
|
81103
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
81104
|
+
const i3 = props[k2];
|
|
80954
81105
|
const x2 = obj[i3];
|
|
80955
81106
|
f2(x2, i3);
|
|
80956
81107
|
}
|
|
@@ -82408,11 +82559,11 @@ function requireShowdown() {
|
|
|
82408
82559
|
return txt.replace(/"/g, '"').replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
82409
82560
|
};
|
|
82410
82561
|
var rgxFindMatchPos = function(str, left, right, flags) {
|
|
82411
|
-
var f2 = flags || "", g2 = f2.indexOf("g") > -1, x2 = new RegExp(left + "|" + right, "g" + f2.replace(/g/g, "")),
|
|
82562
|
+
var f2 = flags || "", g2 = f2.indexOf("g") > -1, x2 = new RegExp(left + "|" + right, "g" + f2.replace(/g/g, "")), l3 = new RegExp(left, f2.replace(/g/g, "")), pos = [], t2, s2, m2, start, end;
|
|
82412
82563
|
do {
|
|
82413
82564
|
t2 = 0;
|
|
82414
82565
|
while (m2 = x2.exec(str)) {
|
|
82415
|
-
if (
|
|
82566
|
+
if (l3.test(m2[0])) {
|
|
82416
82567
|
if (!t2++) {
|
|
82417
82568
|
s2 = x2.lastIndex;
|
|
82418
82569
|
start = s2 - m2[0].length;
|
|
@@ -85560,13 +85711,13 @@ function decode$1(string2, exclude) {
|
|
|
85560
85711
|
const cache = getDecodeCache(exclude);
|
|
85561
85712
|
return string2.replace(/(%[a-f0-9]{2})+/gi, function(seq) {
|
|
85562
85713
|
let result = "";
|
|
85563
|
-
for (let i3 = 0,
|
|
85714
|
+
for (let i3 = 0, l3 = seq.length; i3 < l3; i3 += 3) {
|
|
85564
85715
|
const b1 = parseInt(seq.slice(i3 + 1, i3 + 3), 16);
|
|
85565
85716
|
if (b1 < 128) {
|
|
85566
85717
|
result += cache[b1];
|
|
85567
85718
|
continue;
|
|
85568
85719
|
}
|
|
85569
|
-
if ((b1 & 224) === 192 && i3 + 3 <
|
|
85720
|
+
if ((b1 & 224) === 192 && i3 + 3 < l3) {
|
|
85570
85721
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85571
85722
|
if ((b2 & 192) === 128) {
|
|
85572
85723
|
const chr = b1 << 6 & 1984 | b2 & 63;
|
|
@@ -85579,7 +85730,7 @@ function decode$1(string2, exclude) {
|
|
|
85579
85730
|
continue;
|
|
85580
85731
|
}
|
|
85581
85732
|
}
|
|
85582
|
-
if ((b1 & 240) === 224 && i3 + 6 <
|
|
85733
|
+
if ((b1 & 240) === 224 && i3 + 6 < l3) {
|
|
85583
85734
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85584
85735
|
const b3 = parseInt(seq.slice(i3 + 7, i3 + 9), 16);
|
|
85585
85736
|
if ((b2 & 192) === 128 && (b3 & 192) === 128) {
|
|
@@ -85593,7 +85744,7 @@ function decode$1(string2, exclude) {
|
|
|
85593
85744
|
continue;
|
|
85594
85745
|
}
|
|
85595
85746
|
}
|
|
85596
|
-
if ((b1 & 248) === 240 && i3 + 9 <
|
|
85747
|
+
if ((b1 & 248) === 240 && i3 + 9 < l3) {
|
|
85597
85748
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85598
85749
|
const b3 = parseInt(seq.slice(i3 + 7, i3 + 9), 16);
|
|
85599
85750
|
const b4 = parseInt(seq.slice(i3 + 10, i3 + 12), 16);
|
|
@@ -85646,9 +85797,9 @@ function encode$1(string2, exclude, keepEscaped) {
|
|
|
85646
85797
|
}
|
|
85647
85798
|
const cache = getEncodeCache(exclude);
|
|
85648
85799
|
let result = "";
|
|
85649
|
-
for (let i3 = 0,
|
|
85800
|
+
for (let i3 = 0, l3 = string2.length; i3 < l3; i3++) {
|
|
85650
85801
|
const code2 = string2.charCodeAt(i3);
|
|
85651
|
-
if (keepEscaped && code2 === 37 && i3 + 2 <
|
|
85802
|
+
if (keepEscaped && code2 === 37 && i3 + 2 < l3) {
|
|
85652
85803
|
if (/^[0-9a-f]{2}$/i.test(string2.slice(i3 + 1, i3 + 3))) {
|
|
85653
85804
|
result += string2.slice(i3, i3 + 3);
|
|
85654
85805
|
i3 += 2;
|
|
@@ -85660,7 +85811,7 @@ function encode$1(string2, exclude, keepEscaped) {
|
|
|
85660
85811
|
continue;
|
|
85661
85812
|
}
|
|
85662
85813
|
if (code2 >= 55296 && code2 <= 57343) {
|
|
85663
|
-
if (code2 >= 55296 && code2 <= 56319 && i3 + 1 <
|
|
85814
|
+
if (code2 >= 55296 && code2 <= 56319 && i3 + 1 < l3) {
|
|
85664
85815
|
const nextCode = string2.charCodeAt(i3 + 1);
|
|
85665
85816
|
if (nextCode >= 56320 && nextCode <= 57343) {
|
|
85666
85817
|
result += encodeURIComponent(string2[i3] + string2[i3 + 1]);
|
|
@@ -85803,14 +85954,14 @@ Url.prototype.parse = function(url2, slashesDenoteHost) {
|
|
|
85803
85954
|
const ipv6Hostname = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
85804
85955
|
if (!ipv6Hostname) {
|
|
85805
85956
|
const hostparts = this.hostname.split(/\./);
|
|
85806
|
-
for (let i3 = 0,
|
|
85957
|
+
for (let i3 = 0, l3 = hostparts.length; i3 < l3; i3++) {
|
|
85807
85958
|
const part = hostparts[i3];
|
|
85808
85959
|
if (!part) {
|
|
85809
85960
|
continue;
|
|
85810
85961
|
}
|
|
85811
85962
|
if (!part.match(hostnamePartPattern)) {
|
|
85812
85963
|
let newpart = "";
|
|
85813
|
-
for (let j2 = 0,
|
|
85964
|
+
for (let j2 = 0, k2 = part.length; j2 < k2; j2++) {
|
|
85814
85965
|
if (part.charCodeAt(j2) > 127) {
|
|
85815
85966
|
newpart += "x";
|
|
85816
85967
|
} else {
|
|
@@ -86774,12 +86925,12 @@ function Renderer() {
|
|
|
86774
86925
|
this.rules = assign$1({}, default_rules);
|
|
86775
86926
|
}
|
|
86776
86927
|
Renderer.prototype.renderAttrs = function renderAttrs(token) {
|
|
86777
|
-
let i3,
|
|
86928
|
+
let i3, l3, result;
|
|
86778
86929
|
if (!token.attrs) {
|
|
86779
86930
|
return "";
|
|
86780
86931
|
}
|
|
86781
86932
|
result = "";
|
|
86782
|
-
for (i3 = 0,
|
|
86933
|
+
for (i3 = 0, l3 = token.attrs.length; i3 < l3; i3++) {
|
|
86783
86934
|
result += " " + escapeHtml(token.attrs[i3][0]) + '="' + escapeHtml(token.attrs[i3][1]) + '"';
|
|
86784
86935
|
}
|
|
86785
86936
|
return result;
|
|
@@ -87094,7 +87245,7 @@ function block(state) {
|
|
|
87094
87245
|
}
|
|
87095
87246
|
function inline(state) {
|
|
87096
87247
|
const tokens = state.tokens;
|
|
87097
|
-
for (let i3 = 0,
|
|
87248
|
+
for (let i3 = 0, l3 = tokens.length; i3 < l3; i3++) {
|
|
87098
87249
|
const tok = tokens[i3];
|
|
87099
87250
|
if (tok.type === "inline") {
|
|
87100
87251
|
state.md.inline.parse(tok.content, state.md, state.env, tok.children);
|
|
@@ -87112,7 +87263,7 @@ function linkify$1(state) {
|
|
|
87112
87263
|
if (!state.md.options.linkify) {
|
|
87113
87264
|
return;
|
|
87114
87265
|
}
|
|
87115
|
-
for (let j2 = 0,
|
|
87266
|
+
for (let j2 = 0, l3 = blockTokens.length; j2 < l3; j2++) {
|
|
87116
87267
|
if (blockTokens[j2].type !== "inline" || !state.md.linkify.pretest(blockTokens[j2].content)) {
|
|
87117
87268
|
continue;
|
|
87118
87269
|
}
|
|
@@ -87407,8 +87558,8 @@ function smartquotes(state) {
|
|
|
87407
87558
|
function text_join(state) {
|
|
87408
87559
|
let curr, last;
|
|
87409
87560
|
const blockTokens = state.tokens;
|
|
87410
|
-
const
|
|
87411
|
-
for (let j2 = 0; j2 <
|
|
87561
|
+
const l3 = blockTokens.length;
|
|
87562
|
+
for (let j2 = 0; j2 < l3; j2++) {
|
|
87412
87563
|
if (blockTokens[j2].type !== "inline") continue;
|
|
87413
87564
|
const tokens = blockTokens[j2].children;
|
|
87414
87565
|
const max = tokens.length;
|
|
@@ -87451,7 +87602,7 @@ function Core() {
|
|
|
87451
87602
|
}
|
|
87452
87603
|
Core.prototype.process = function(state) {
|
|
87453
87604
|
const rules = this.ruler.getRules("");
|
|
87454
|
-
for (let i3 = 0,
|
|
87605
|
+
for (let i3 = 0, l3 = rules.length; i3 < l3; i3++) {
|
|
87455
87606
|
rules[i3](state);
|
|
87456
87607
|
}
|
|
87457
87608
|
};
|
|
@@ -87747,7 +87898,7 @@ function table(state, startLine, endLine, silent) {
|
|
|
87747
87898
|
break;
|
|
87748
87899
|
}
|
|
87749
87900
|
let terminate = false;
|
|
87750
|
-
for (let i3 = 0,
|
|
87901
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
87751
87902
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
87752
87903
|
terminate = true;
|
|
87753
87904
|
break;
|
|
@@ -87968,7 +88119,7 @@ function blockquote(state, startLine, endLine, silent) {
|
|
|
87968
88119
|
break;
|
|
87969
88120
|
}
|
|
87970
88121
|
let terminate = false;
|
|
87971
|
-
for (let i3 = 0,
|
|
88122
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
87972
88123
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
87973
88124
|
terminate = true;
|
|
87974
88125
|
break;
|
|
@@ -88096,7 +88247,7 @@ function skipOrderedListMarker(state, startLine) {
|
|
|
88096
88247
|
}
|
|
88097
88248
|
function markTightParagraphs(state, idx) {
|
|
88098
88249
|
const level2 = state.level + 2;
|
|
88099
|
-
for (let i3 = idx + 2,
|
|
88250
|
+
for (let i3 = idx + 2, l3 = state.tokens.length - 2; i3 < l3; i3++) {
|
|
88100
88251
|
if (state.tokens[i3].level === level2 && state.tokens[i3].type === "paragraph_open") {
|
|
88101
88252
|
state.tokens[i3 + 2].hidden = true;
|
|
88102
88253
|
state.tokens[i3].hidden = true;
|
|
@@ -88227,7 +88378,7 @@ function list(state, startLine, endLine, silent) {
|
|
|
88227
88378
|
break;
|
|
88228
88379
|
}
|
|
88229
88380
|
let terminate = false;
|
|
88230
|
-
for (let i3 = 0,
|
|
88381
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88231
88382
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88232
88383
|
terminate = true;
|
|
88233
88384
|
break;
|
|
@@ -88293,7 +88444,7 @@ function reference(state, startLine, _endLine, silent) {
|
|
|
88293
88444
|
const oldParentType = state.parentType;
|
|
88294
88445
|
state.parentType = "reference";
|
|
88295
88446
|
let terminate = false;
|
|
88296
|
-
for (let i3 = 0,
|
|
88447
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88297
88448
|
if (terminatorRules[i3](state, nextLine2, endLine, true)) {
|
|
88298
88449
|
terminate = true;
|
|
88299
88450
|
break;
|
|
@@ -88646,7 +88797,7 @@ function lheading(state, startLine, endLine) {
|
|
|
88646
88797
|
continue;
|
|
88647
88798
|
}
|
|
88648
88799
|
let terminate = false;
|
|
88649
|
-
for (let i3 = 0,
|
|
88800
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88650
88801
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88651
88802
|
terminate = true;
|
|
88652
88803
|
break;
|
|
@@ -88686,7 +88837,7 @@ function paragraph(state, startLine, endLine) {
|
|
|
88686
88837
|
continue;
|
|
88687
88838
|
}
|
|
88688
88839
|
let terminate = false;
|
|
88689
|
-
for (let i3 = 0,
|
|
88840
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88690
88841
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88691
88842
|
terminate = true;
|
|
88692
88843
|
break;
|
|
@@ -89839,8 +89990,8 @@ const defaultOptions$1 = {
|
|
|
89839
89990
|
fuzzyIP: false
|
|
89840
89991
|
};
|
|
89841
89992
|
function isOptionsObj(obj) {
|
|
89842
|
-
return Object.keys(obj || {}).reduce(function(acc,
|
|
89843
|
-
return acc || defaultOptions$1.hasOwnProperty(
|
|
89993
|
+
return Object.keys(obj || {}).reduce(function(acc, k2) {
|
|
89994
|
+
return acc || defaultOptions$1.hasOwnProperty(k2);
|
|
89844
89995
|
}, false);
|
|
89845
89996
|
}
|
|
89846
89997
|
const defaultSchemas = {
|
|
@@ -90233,13 +90384,13 @@ const digitToBasic = function(digit, flag) {
|
|
|
90233
90384
|
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
90234
90385
|
};
|
|
90235
90386
|
const adapt = function(delta, numPoints, firstTime) {
|
|
90236
|
-
let
|
|
90387
|
+
let k2 = 0;
|
|
90237
90388
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
90238
90389
|
delta += floor(delta / numPoints);
|
|
90239
|
-
for (; delta > baseMinusTMin * tMax >> 1;
|
|
90390
|
+
for (; delta > baseMinusTMin * tMax >> 1; k2 += base) {
|
|
90240
90391
|
delta = floor(delta / baseMinusTMin);
|
|
90241
90392
|
}
|
|
90242
|
-
return floor(
|
|
90393
|
+
return floor(k2 + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
90243
90394
|
};
|
|
90244
90395
|
const decode = function(input) {
|
|
90245
90396
|
const output = [];
|
|
@@ -90259,7 +90410,7 @@ const decode = function(input) {
|
|
|
90259
90410
|
}
|
|
90260
90411
|
for (let index2 = basic > 0 ? basic + 1 : 0; index2 < inputLength; ) {
|
|
90261
90412
|
const oldi = i3;
|
|
90262
|
-
for (let w = 1,
|
|
90413
|
+
for (let w = 1, k2 = base; ; k2 += base) {
|
|
90263
90414
|
if (index2 >= inputLength) {
|
|
90264
90415
|
error("invalid-input");
|
|
90265
90416
|
}
|
|
@@ -90271,7 +90422,7 @@ const decode = function(input) {
|
|
|
90271
90422
|
error("overflow");
|
|
90272
90423
|
}
|
|
90273
90424
|
i3 += digit * w;
|
|
90274
|
-
const t2 =
|
|
90425
|
+
const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
90275
90426
|
if (digit < t2) {
|
|
90276
90427
|
break;
|
|
90277
90428
|
}
|
|
@@ -90328,8 +90479,8 @@ const encode = function(input) {
|
|
|
90328
90479
|
}
|
|
90329
90480
|
if (currentValue === n3) {
|
|
90330
90481
|
let q = delta;
|
|
90331
|
-
for (let
|
|
90332
|
-
const t2 =
|
|
90482
|
+
for (let k2 = base; ; k2 += base) {
|
|
90483
|
+
const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
90333
90484
|
if (q < t2) {
|
|
90334
90485
|
break;
|
|
90335
90486
|
}
|
|
@@ -92862,15 +93013,15 @@ function requireDiff() {
|
|
|
92862
93013
|
}
|
|
92863
93014
|
}
|
|
92864
93015
|
}
|
|
92865
|
-
for (var
|
|
92866
|
-
var k2_offset = v_offset +
|
|
93016
|
+
for (var k2 = -d2 + k2start; k2 <= d2 - k2end; k2 += 2) {
|
|
93017
|
+
var k2_offset = v_offset + k2;
|
|
92867
93018
|
var x22;
|
|
92868
|
-
if (
|
|
93019
|
+
if (k2 === -d2 || k2 !== d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
|
|
92869
93020
|
x22 = v2[k2_offset + 1];
|
|
92870
93021
|
} else {
|
|
92871
93022
|
x22 = v2[k2_offset - 1] + 1;
|
|
92872
93023
|
}
|
|
92873
|
-
var y2 = x22 -
|
|
93024
|
+
var y2 = x22 - k2;
|
|
92874
93025
|
while (x22 < text1_length && y2 < text2_length && text1.charAt(text1_length - x22 - 1) === text2.charAt(text2_length - y2 - 1)) {
|
|
92875
93026
|
x22++;
|
|
92876
93027
|
y2++;
|
|
@@ -92881,7 +93032,7 @@ function requireDiff() {
|
|
|
92881
93032
|
} else if (y2 > text2_length) {
|
|
92882
93033
|
k2start += 2;
|
|
92883
93034
|
} else if (!front) {
|
|
92884
|
-
var k1_offset = v_offset + delta -
|
|
93035
|
+
var k1_offset = v_offset + delta - k2;
|
|
92885
93036
|
if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {
|
|
92886
93037
|
var x1 = v1[k1_offset];
|
|
92887
93038
|
var y1 = v_offset + x1 - k1_offset;
|
|
@@ -93263,18 +93414,18 @@ function requireDiff() {
|
|
|
93263
93414
|
if (!diffs[previous_equality][1]) {
|
|
93264
93415
|
diffs.splice(previous_equality, 1);
|
|
93265
93416
|
pointer--;
|
|
93266
|
-
var
|
|
93267
|
-
if (diffs[
|
|
93417
|
+
var k2 = previous_equality - 1;
|
|
93418
|
+
if (diffs[k2] && diffs[k2][0] === DIFF_INSERT) {
|
|
93268
93419
|
count_insert++;
|
|
93269
|
-
text_insert = diffs[
|
|
93270
|
-
|
|
93420
|
+
text_insert = diffs[k2][1] + text_insert;
|
|
93421
|
+
k2--;
|
|
93271
93422
|
}
|
|
93272
|
-
if (diffs[
|
|
93423
|
+
if (diffs[k2] && diffs[k2][0] === DIFF_DELETE) {
|
|
93273
93424
|
count_delete++;
|
|
93274
|
-
text_delete = diffs[
|
|
93275
|
-
|
|
93425
|
+
text_delete = diffs[k2][1] + text_delete;
|
|
93426
|
+
k2--;
|
|
93276
93427
|
}
|
|
93277
|
-
previous_equality =
|
|
93428
|
+
previous_equality = k2;
|
|
93278
93429
|
}
|
|
93279
93430
|
}
|
|
93280
93431
|
if (starts_with_pair_end(diffs[pointer][1])) {
|
|
@@ -95821,7 +95972,7 @@ function requireEventemitter3() {
|
|
|
95821
95972
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
95822
95973
|
if (!handlers) return [];
|
|
95823
95974
|
if (handlers.fn) return [handlers.fn];
|
|
95824
|
-
for (var i3 = 0,
|
|
95975
|
+
for (var i3 = 0, l3 = handlers.length, ee = new Array(l3); i3 < l3; i3++) {
|
|
95825
95976
|
ee[i3] = handlers[i3].fn;
|
|
95826
95977
|
}
|
|
95827
95978
|
return ee;
|
|
@@ -102902,7 +103053,7 @@ function requireOpLinkSanitizer() {
|
|
|
102902
103053
|
if (mod && mod.__esModule) return mod;
|
|
102903
103054
|
var result = {};
|
|
102904
103055
|
if (mod != null) {
|
|
102905
|
-
for (var
|
|
103056
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
102906
103057
|
}
|
|
102907
103058
|
result["default"] = mod;
|
|
102908
103059
|
return result;
|
|
@@ -103161,9 +103312,9 @@ function requireOpAttributeSanitizer() {
|
|
|
103161
103312
|
cleanAttrs.mention = mention;
|
|
103162
103313
|
}
|
|
103163
103314
|
}
|
|
103164
|
-
return Object.keys(dirtyAttrs).reduce(function(cleaned,
|
|
103165
|
-
if (sanitizedAttrs.indexOf(
|
|
103166
|
-
cleaned[
|
|
103315
|
+
return Object.keys(dirtyAttrs).reduce(function(cleaned, k2) {
|
|
103316
|
+
if (sanitizedAttrs.indexOf(k2) === -1) {
|
|
103317
|
+
cleaned[k2] = dirtyAttrs[k2];
|
|
103167
103318
|
}
|
|
103168
103319
|
return cleaned;
|
|
103169
103320
|
}, cleanAttrs);
|
|
@@ -103275,7 +103426,7 @@ function requireInsertOpDenormalizer() {
|
|
|
103275
103426
|
if (mod && mod.__esModule) return mod;
|
|
103276
103427
|
var result = {};
|
|
103277
103428
|
if (mod != null) {
|
|
103278
|
-
for (var
|
|
103429
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
103279
103430
|
}
|
|
103280
103431
|
result["default"] = mod;
|
|
103281
103432
|
return result;
|
|
@@ -103376,7 +103527,7 @@ function requireOpToHtmlConverter() {
|
|
|
103376
103527
|
if (mod && mod.__esModule) return mod;
|
|
103377
103528
|
var result = {};
|
|
103378
103529
|
if (mod != null) {
|
|
103379
|
-
for (var
|
|
103530
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
103380
103531
|
}
|
|
103381
103532
|
result["default"] = mod;
|
|
103382
103533
|
return result;
|
|
@@ -103534,8 +103685,8 @@ function requireOpToHtmlConverter() {
|
|
|
103534
103685
|
}
|
|
103535
103686
|
var makeAttr = this.makeAttr.bind(this);
|
|
103536
103687
|
var customTagAttributes = this.getCustomTagAttributes();
|
|
103537
|
-
var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(
|
|
103538
|
-
return makeAttr(
|
|
103688
|
+
var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(k2) {
|
|
103689
|
+
return makeAttr(k2, customTagAttributes[k2]);
|
|
103539
103690
|
}) : [];
|
|
103540
103691
|
var classes = this.getCssClasses();
|
|
103541
103692
|
var tagAttrs = classes.length ? customAttr.concat([makeAttr("class", classes.join(" "))]) : customAttr;
|
|
@@ -103582,8 +103733,8 @@ function requireOpToHtmlConverter() {
|
|
|
103582
103733
|
}
|
|
103583
103734
|
return tagAttrs;
|
|
103584
103735
|
};
|
|
103585
|
-
OpToHtmlConverter2.prototype.makeAttr = function(
|
|
103586
|
-
return { key:
|
|
103736
|
+
OpToHtmlConverter2.prototype.makeAttr = function(k2, v2) {
|
|
103737
|
+
return { key: k2, value: v2 };
|
|
103587
103738
|
};
|
|
103588
103739
|
OpToHtmlConverter2.prototype.getLinkAttrs = function() {
|
|
103589
103740
|
var tagAttrs = [];
|
|
@@ -104029,7 +104180,7 @@ function requireQuillDeltaToHtmlConverter() {
|
|
|
104029
104180
|
if (mod && mod.__esModule) return mod;
|
|
104030
104181
|
var result = {};
|
|
104031
104182
|
if (mod != null) {
|
|
104032
|
-
for (var
|
|
104183
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
104033
104184
|
}
|
|
104034
104185
|
result["default"] = mod;
|
|
104035
104186
|
return result;
|
|
@@ -109675,7 +109826,7 @@ export {
|
|
|
109675
109826
|
FederationMixin,
|
|
109676
109827
|
FilterMixin,
|
|
109677
109828
|
GrouperMixin,
|
|
109678
|
-
|
|
109829
|
+
l as Helpers,
|
|
109679
109830
|
HighlighterMixin,
|
|
109680
109831
|
ListMixin,
|
|
109681
109832
|
NextMixin,
|