@pie-element/passage 2.17.0 → 2.18.0
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/CHANGELOG.md +16 -0
- package/configure/CHANGELOG.md +16 -0
- package/configure/lib/defaults.js +2 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/design.js +1 -12
- package/configure/lib/design.js.map +1 -1
- package/configure/lib/index.js +2 -2
- package/configure/lib/index.js.map +1 -1
- package/configure/package.json +1 -1
- package/controller/CHANGELOG.md +11 -0
- package/controller/lib/index.js +0 -2
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/print.js +2 -2
- package/lib/print.js.map +1 -1
- package/module/configure.js +4295 -4301
- package/module/controller.js +0 -694
- package/module/element.js +6 -0
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +2 -2
package/module/controller.js
CHANGED
|
@@ -1,697 +1,3 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
/** Detect free variable `global` from Node.js. */
|
|
4
|
-
|
|
5
|
-
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
6
|
-
|
|
7
|
-
var _freeGlobal = freeGlobal$1;
|
|
8
|
-
|
|
9
|
-
var freeGlobal = _freeGlobal;
|
|
10
|
-
|
|
11
|
-
/** Detect free variable `self`. */
|
|
12
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
13
|
-
|
|
14
|
-
/** Used as a reference to the global object. */
|
|
15
|
-
var root$8 = freeGlobal || freeSelf || Function('return this')();
|
|
16
|
-
|
|
17
|
-
var _root = root$8;
|
|
18
|
-
|
|
19
|
-
var root$7 = _root;
|
|
20
|
-
|
|
21
|
-
/** Built-in value references. */
|
|
22
|
-
var Symbol$3 = root$7.Symbol;
|
|
23
|
-
|
|
24
|
-
var _Symbol = Symbol$3;
|
|
25
|
-
|
|
26
|
-
var Symbol$2 = _Symbol;
|
|
27
|
-
|
|
28
|
-
/** Used for built-in method references. */
|
|
29
|
-
var objectProto$3 = Object.prototype;
|
|
30
|
-
|
|
31
|
-
/** Used to check objects for own properties. */
|
|
32
|
-
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Used to resolve the
|
|
36
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
37
|
-
* of values.
|
|
38
|
-
*/
|
|
39
|
-
var nativeObjectToString$1 = objectProto$3.toString;
|
|
40
|
-
|
|
41
|
-
/** Built-in value references. */
|
|
42
|
-
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
46
|
-
*
|
|
47
|
-
* @private
|
|
48
|
-
* @param {*} value The value to query.
|
|
49
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
50
|
-
*/
|
|
51
|
-
function getRawTag$1(value) {
|
|
52
|
-
var isOwn = hasOwnProperty$2.call(value, symToStringTag$1),
|
|
53
|
-
tag = value[symToStringTag$1];
|
|
54
|
-
|
|
55
|
-
try {
|
|
56
|
-
value[symToStringTag$1] = undefined;
|
|
57
|
-
var unmasked = true;
|
|
58
|
-
} catch (e) {}
|
|
59
|
-
|
|
60
|
-
var result = nativeObjectToString$1.call(value);
|
|
61
|
-
if (unmasked) {
|
|
62
|
-
if (isOwn) {
|
|
63
|
-
value[symToStringTag$1] = tag;
|
|
64
|
-
} else {
|
|
65
|
-
delete value[symToStringTag$1];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return result;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
var _getRawTag = getRawTag$1;
|
|
72
|
-
|
|
73
|
-
/** Used for built-in method references. */
|
|
74
|
-
|
|
75
|
-
var objectProto$2 = Object.prototype;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Used to resolve the
|
|
79
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
80
|
-
* of values.
|
|
81
|
-
*/
|
|
82
|
-
var nativeObjectToString = objectProto$2.toString;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
86
|
-
*
|
|
87
|
-
* @private
|
|
88
|
-
* @param {*} value The value to convert.
|
|
89
|
-
* @returns {string} Returns the converted string.
|
|
90
|
-
*/
|
|
91
|
-
function objectToString$1(value) {
|
|
92
|
-
return nativeObjectToString.call(value);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
var _objectToString = objectToString$1;
|
|
96
|
-
|
|
97
|
-
var Symbol$1 = _Symbol,
|
|
98
|
-
getRawTag = _getRawTag,
|
|
99
|
-
objectToString = _objectToString;
|
|
100
|
-
|
|
101
|
-
/** `Object#toString` result references. */
|
|
102
|
-
var nullTag = '[object Null]',
|
|
103
|
-
undefinedTag = '[object Undefined]';
|
|
104
|
-
|
|
105
|
-
/** Built-in value references. */
|
|
106
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
110
|
-
*
|
|
111
|
-
* @private
|
|
112
|
-
* @param {*} value The value to query.
|
|
113
|
-
* @returns {string} Returns the `toStringTag`.
|
|
114
|
-
*/
|
|
115
|
-
function baseGetTag$3(value) {
|
|
116
|
-
if (value == null) {
|
|
117
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
118
|
-
}
|
|
119
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
120
|
-
? getRawTag(value)
|
|
121
|
-
: objectToString(value);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
var _baseGetTag = baseGetTag$3;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Checks if `value` is the
|
|
128
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
129
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
130
|
-
*
|
|
131
|
-
* @static
|
|
132
|
-
* @memberOf _
|
|
133
|
-
* @since 0.1.0
|
|
134
|
-
* @category Lang
|
|
135
|
-
* @param {*} value The value to check.
|
|
136
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
137
|
-
* @example
|
|
138
|
-
*
|
|
139
|
-
* _.isObject({});
|
|
140
|
-
* // => true
|
|
141
|
-
*
|
|
142
|
-
* _.isObject([1, 2, 3]);
|
|
143
|
-
* // => true
|
|
144
|
-
*
|
|
145
|
-
* _.isObject(_.noop);
|
|
146
|
-
* // => true
|
|
147
|
-
*
|
|
148
|
-
* _.isObject(null);
|
|
149
|
-
* // => false
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
function isObject$2(value) {
|
|
153
|
-
var type = typeof value;
|
|
154
|
-
return value != null && (type == 'object' || type == 'function');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
var isObject_1 = isObject$2;
|
|
158
|
-
|
|
159
|
-
var baseGetTag$2 = _baseGetTag,
|
|
160
|
-
isObject$1 = isObject_1;
|
|
161
|
-
|
|
162
|
-
/** `Object#toString` result references. */
|
|
163
|
-
var asyncTag = '[object AsyncFunction]',
|
|
164
|
-
funcTag = '[object Function]',
|
|
165
|
-
genTag = '[object GeneratorFunction]',
|
|
166
|
-
proxyTag = '[object Proxy]';
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Checks if `value` is classified as a `Function` object.
|
|
170
|
-
*
|
|
171
|
-
* @static
|
|
172
|
-
* @memberOf _
|
|
173
|
-
* @since 0.1.0
|
|
174
|
-
* @category Lang
|
|
175
|
-
* @param {*} value The value to check.
|
|
176
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
177
|
-
* @example
|
|
178
|
-
*
|
|
179
|
-
* _.isFunction(_);
|
|
180
|
-
* // => true
|
|
181
|
-
*
|
|
182
|
-
* _.isFunction(/abc/);
|
|
183
|
-
* // => false
|
|
184
|
-
*/
|
|
185
|
-
function isFunction$1(value) {
|
|
186
|
-
if (!isObject$1(value)) {
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
190
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
191
|
-
var tag = baseGetTag$2(value);
|
|
192
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
var isFunction_1 = isFunction$1;
|
|
196
|
-
|
|
197
|
-
var root$6 = _root;
|
|
198
|
-
|
|
199
|
-
/** Used to detect overreaching core-js shims. */
|
|
200
|
-
var coreJsData$1 = root$6['__core-js_shared__'];
|
|
201
|
-
|
|
202
|
-
var _coreJsData = coreJsData$1;
|
|
203
|
-
|
|
204
|
-
var coreJsData = _coreJsData;
|
|
205
|
-
|
|
206
|
-
/** Used to detect methods masquerading as native. */
|
|
207
|
-
var maskSrcKey = (function() {
|
|
208
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
209
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
210
|
-
}());
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Checks if `func` has its source masked.
|
|
214
|
-
*
|
|
215
|
-
* @private
|
|
216
|
-
* @param {Function} func The function to check.
|
|
217
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
218
|
-
*/
|
|
219
|
-
function isMasked$1(func) {
|
|
220
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
var _isMasked = isMasked$1;
|
|
224
|
-
|
|
225
|
-
/** Used for built-in method references. */
|
|
226
|
-
|
|
227
|
-
var funcProto$1 = Function.prototype;
|
|
228
|
-
|
|
229
|
-
/** Used to resolve the decompiled source of functions. */
|
|
230
|
-
var funcToString$1 = funcProto$1.toString;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Converts `func` to its source code.
|
|
234
|
-
*
|
|
235
|
-
* @private
|
|
236
|
-
* @param {Function} func The function to convert.
|
|
237
|
-
* @returns {string} Returns the source code.
|
|
238
|
-
*/
|
|
239
|
-
function toSource$2(func) {
|
|
240
|
-
if (func != null) {
|
|
241
|
-
try {
|
|
242
|
-
return funcToString$1.call(func);
|
|
243
|
-
} catch (e) {}
|
|
244
|
-
try {
|
|
245
|
-
return (func + '');
|
|
246
|
-
} catch (e) {}
|
|
247
|
-
}
|
|
248
|
-
return '';
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
var _toSource = toSource$2;
|
|
252
|
-
|
|
253
|
-
var isFunction = isFunction_1,
|
|
254
|
-
isMasked = _isMasked,
|
|
255
|
-
isObject = isObject_1,
|
|
256
|
-
toSource$1 = _toSource;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Used to match `RegExp`
|
|
260
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
261
|
-
*/
|
|
262
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
263
|
-
|
|
264
|
-
/** Used to detect host constructors (Safari). */
|
|
265
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
266
|
-
|
|
267
|
-
/** Used for built-in method references. */
|
|
268
|
-
var funcProto = Function.prototype,
|
|
269
|
-
objectProto$1 = Object.prototype;
|
|
270
|
-
|
|
271
|
-
/** Used to resolve the decompiled source of functions. */
|
|
272
|
-
var funcToString = funcProto.toString;
|
|
273
|
-
|
|
274
|
-
/** Used to check objects for own properties. */
|
|
275
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
276
|
-
|
|
277
|
-
/** Used to detect if a method is native. */
|
|
278
|
-
var reIsNative = RegExp('^' +
|
|
279
|
-
funcToString.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
|
|
280
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
281
|
-
);
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
285
|
-
*
|
|
286
|
-
* @private
|
|
287
|
-
* @param {*} value The value to check.
|
|
288
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
289
|
-
* else `false`.
|
|
290
|
-
*/
|
|
291
|
-
function baseIsNative$1(value) {
|
|
292
|
-
if (!isObject(value) || isMasked(value)) {
|
|
293
|
-
return false;
|
|
294
|
-
}
|
|
295
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
296
|
-
return pattern.test(toSource$1(value));
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
var _baseIsNative = baseIsNative$1;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Gets the value at `key` of `object`.
|
|
303
|
-
*
|
|
304
|
-
* @private
|
|
305
|
-
* @param {Object} [object] The object to query.
|
|
306
|
-
* @param {string} key The key of the property to get.
|
|
307
|
-
* @returns {*} Returns the property value.
|
|
308
|
-
*/
|
|
309
|
-
|
|
310
|
-
function getValue$1(object, key) {
|
|
311
|
-
return object == null ? undefined : object[key];
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
var _getValue = getValue$1;
|
|
315
|
-
|
|
316
|
-
var baseIsNative = _baseIsNative,
|
|
317
|
-
getValue = _getValue;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Gets the native function at `key` of `object`.
|
|
321
|
-
*
|
|
322
|
-
* @private
|
|
323
|
-
* @param {Object} object The object to query.
|
|
324
|
-
* @param {string} key The key of the method to get.
|
|
325
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
326
|
-
*/
|
|
327
|
-
function getNative$7(object, key) {
|
|
328
|
-
var value = getValue(object, key);
|
|
329
|
-
return baseIsNative(value) ? value : undefined;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
var _getNative = getNative$7;
|
|
333
|
-
|
|
334
|
-
var getNative$6 = _getNative,
|
|
335
|
-
root$5 = _root;
|
|
336
|
-
|
|
337
|
-
/* Built-in method references that are verified to be native. */
|
|
338
|
-
var Map$1 = getNative$6(root$5, 'Map');
|
|
339
|
-
|
|
340
|
-
var _Map = Map$1;
|
|
341
|
-
|
|
342
|
-
var getNative$5 = _getNative;
|
|
343
|
-
|
|
344
|
-
/* Built-in method references that are verified to be native. */
|
|
345
|
-
getNative$5(Object, 'create');
|
|
346
|
-
|
|
347
|
-
var getNative$4 = _getNative;
|
|
348
|
-
|
|
349
|
-
((function() {
|
|
350
|
-
try {
|
|
351
|
-
var func = getNative$4(Object, 'defineProperty');
|
|
352
|
-
func({}, '', {});
|
|
353
|
-
return func;
|
|
354
|
-
} catch (e) {}
|
|
355
|
-
})());
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
359
|
-
* and has a `typeof` result of "object".
|
|
360
|
-
*
|
|
361
|
-
* @static
|
|
362
|
-
* @memberOf _
|
|
363
|
-
* @since 4.0.0
|
|
364
|
-
* @category Lang
|
|
365
|
-
* @param {*} value The value to check.
|
|
366
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
367
|
-
* @example
|
|
368
|
-
*
|
|
369
|
-
* _.isObjectLike({});
|
|
370
|
-
* // => true
|
|
371
|
-
*
|
|
372
|
-
* _.isObjectLike([1, 2, 3]);
|
|
373
|
-
* // => true
|
|
374
|
-
*
|
|
375
|
-
* _.isObjectLike(_.noop);
|
|
376
|
-
* // => false
|
|
377
|
-
*
|
|
378
|
-
* _.isObjectLike(null);
|
|
379
|
-
* // => false
|
|
380
|
-
*/
|
|
381
|
-
|
|
382
|
-
function isObjectLike$2(value) {
|
|
383
|
-
return value != null && typeof value == 'object';
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
var isObjectLike_1 = isObjectLike$2;
|
|
387
|
-
|
|
388
|
-
var baseGetTag$1 = _baseGetTag,
|
|
389
|
-
isObjectLike$1 = isObjectLike_1;
|
|
390
|
-
|
|
391
|
-
/** `Object#toString` result references. */
|
|
392
|
-
var argsTag = '[object Arguments]';
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* The base implementation of `_.isArguments`.
|
|
396
|
-
*
|
|
397
|
-
* @private
|
|
398
|
-
* @param {*} value The value to check.
|
|
399
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
400
|
-
*/
|
|
401
|
-
function baseIsArguments$1(value) {
|
|
402
|
-
return isObjectLike$1(value) && baseGetTag$1(value) == argsTag;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
406
|
-
|
|
407
|
-
var baseIsArguments = _baseIsArguments,
|
|
408
|
-
isObjectLike = isObjectLike_1;
|
|
409
|
-
|
|
410
|
-
/** Used for built-in method references. */
|
|
411
|
-
var objectProto = Object.prototype;
|
|
412
|
-
|
|
413
|
-
/** Used to check objects for own properties. */
|
|
414
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
415
|
-
|
|
416
|
-
/** Built-in value references. */
|
|
417
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* Checks if `value` is likely an `arguments` object.
|
|
421
|
-
*
|
|
422
|
-
* @static
|
|
423
|
-
* @memberOf _
|
|
424
|
-
* @since 0.1.0
|
|
425
|
-
* @category Lang
|
|
426
|
-
* @param {*} value The value to check.
|
|
427
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
428
|
-
* else `false`.
|
|
429
|
-
* @example
|
|
430
|
-
*
|
|
431
|
-
* _.isArguments(function() { return arguments; }());
|
|
432
|
-
* // => true
|
|
433
|
-
*
|
|
434
|
-
* _.isArguments([1, 2, 3]);
|
|
435
|
-
* // => false
|
|
436
|
-
*/
|
|
437
|
-
baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
438
|
-
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
439
|
-
!propertyIsEnumerable.call(value, 'callee');
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
var isBuffer = {exports: {}};
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* This method returns `false`.
|
|
446
|
-
*
|
|
447
|
-
* @static
|
|
448
|
-
* @memberOf _
|
|
449
|
-
* @since 4.13.0
|
|
450
|
-
* @category Util
|
|
451
|
-
* @returns {boolean} Returns `false`.
|
|
452
|
-
* @example
|
|
453
|
-
*
|
|
454
|
-
* _.times(2, _.stubFalse);
|
|
455
|
-
* // => [false, false]
|
|
456
|
-
*/
|
|
457
|
-
|
|
458
|
-
function stubFalse() {
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
var stubFalse_1 = stubFalse;
|
|
463
|
-
|
|
464
|
-
(function (module, exports) {
|
|
465
|
-
var root = _root,
|
|
466
|
-
stubFalse = stubFalse_1;
|
|
467
|
-
|
|
468
|
-
/** Detect free variable `exports`. */
|
|
469
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
470
|
-
|
|
471
|
-
/** Detect free variable `module`. */
|
|
472
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
473
|
-
|
|
474
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
475
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
476
|
-
|
|
477
|
-
/** Built-in value references. */
|
|
478
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
479
|
-
|
|
480
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
481
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Checks if `value` is a buffer.
|
|
485
|
-
*
|
|
486
|
-
* @static
|
|
487
|
-
* @memberOf _
|
|
488
|
-
* @since 4.3.0
|
|
489
|
-
* @category Lang
|
|
490
|
-
* @param {*} value The value to check.
|
|
491
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
492
|
-
* @example
|
|
493
|
-
*
|
|
494
|
-
* _.isBuffer(new Buffer(2));
|
|
495
|
-
* // => true
|
|
496
|
-
*
|
|
497
|
-
* _.isBuffer(new Uint8Array(2));
|
|
498
|
-
* // => false
|
|
499
|
-
*/
|
|
500
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
501
|
-
|
|
502
|
-
module.exports = isBuffer;
|
|
503
|
-
}(isBuffer, isBuffer.exports));
|
|
504
|
-
|
|
505
|
-
var _nodeUtil = {exports: {}};
|
|
506
|
-
|
|
507
|
-
(function (module, exports) {
|
|
508
|
-
var freeGlobal = _freeGlobal;
|
|
509
|
-
|
|
510
|
-
/** Detect free variable `exports`. */
|
|
511
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
512
|
-
|
|
513
|
-
/** Detect free variable `module`. */
|
|
514
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
515
|
-
|
|
516
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
517
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
518
|
-
|
|
519
|
-
/** Detect free variable `process` from Node.js. */
|
|
520
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
521
|
-
|
|
522
|
-
/** Used to access faster Node.js helpers. */
|
|
523
|
-
var nodeUtil = (function() {
|
|
524
|
-
try {
|
|
525
|
-
// Use `util.types` for Node.js 10+.
|
|
526
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
527
|
-
|
|
528
|
-
if (types) {
|
|
529
|
-
return types;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
533
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
534
|
-
} catch (e) {}
|
|
535
|
-
}());
|
|
536
|
-
|
|
537
|
-
module.exports = nodeUtil;
|
|
538
|
-
}(_nodeUtil, _nodeUtil.exports));
|
|
539
|
-
|
|
540
|
-
var nodeUtil$2 = _nodeUtil.exports;
|
|
541
|
-
|
|
542
|
-
/* Node.js helper references. */
|
|
543
|
-
nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
544
|
-
|
|
545
|
-
var _cloneBuffer = {exports: {}};
|
|
546
|
-
|
|
547
|
-
(function (module, exports) {
|
|
548
|
-
var root = _root;
|
|
549
|
-
|
|
550
|
-
/** Detect free variable `exports`. */
|
|
551
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
552
|
-
|
|
553
|
-
/** Detect free variable `module`. */
|
|
554
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
555
|
-
|
|
556
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
557
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
558
|
-
|
|
559
|
-
/** Built-in value references. */
|
|
560
|
-
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
561
|
-
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Creates a clone of `buffer`.
|
|
565
|
-
*
|
|
566
|
-
* @private
|
|
567
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
568
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
569
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
570
|
-
*/
|
|
571
|
-
function cloneBuffer(buffer, isDeep) {
|
|
572
|
-
if (isDeep) {
|
|
573
|
-
return buffer.slice();
|
|
574
|
-
}
|
|
575
|
-
var length = buffer.length,
|
|
576
|
-
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
577
|
-
|
|
578
|
-
buffer.copy(result);
|
|
579
|
-
return result;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
module.exports = cloneBuffer;
|
|
583
|
-
}(_cloneBuffer, _cloneBuffer.exports));
|
|
584
|
-
|
|
585
|
-
var getNative$3 = _getNative,
|
|
586
|
-
root$4 = _root;
|
|
587
|
-
|
|
588
|
-
/* Built-in method references that are verified to be native. */
|
|
589
|
-
var DataView$1 = getNative$3(root$4, 'DataView');
|
|
590
|
-
|
|
591
|
-
var _DataView = DataView$1;
|
|
592
|
-
|
|
593
|
-
var getNative$2 = _getNative,
|
|
594
|
-
root$3 = _root;
|
|
595
|
-
|
|
596
|
-
/* Built-in method references that are verified to be native. */
|
|
597
|
-
var Promise$2 = getNative$2(root$3, 'Promise');
|
|
598
|
-
|
|
599
|
-
var _Promise = Promise$2;
|
|
600
|
-
|
|
601
|
-
var getNative$1 = _getNative,
|
|
602
|
-
root$2 = _root;
|
|
603
|
-
|
|
604
|
-
/* Built-in method references that are verified to be native. */
|
|
605
|
-
var Set$1 = getNative$1(root$2, 'Set');
|
|
606
|
-
|
|
607
|
-
var _Set = Set$1;
|
|
608
|
-
|
|
609
|
-
var getNative = _getNative,
|
|
610
|
-
root$1 = _root;
|
|
611
|
-
|
|
612
|
-
/* Built-in method references that are verified to be native. */
|
|
613
|
-
var WeakMap$1 = getNative(root$1, 'WeakMap');
|
|
614
|
-
|
|
615
|
-
var _WeakMap = WeakMap$1;
|
|
616
|
-
|
|
617
|
-
var DataView = _DataView,
|
|
618
|
-
Map = _Map,
|
|
619
|
-
Promise$1 = _Promise,
|
|
620
|
-
Set = _Set,
|
|
621
|
-
WeakMap = _WeakMap,
|
|
622
|
-
baseGetTag = _baseGetTag,
|
|
623
|
-
toSource = _toSource;
|
|
624
|
-
|
|
625
|
-
/** `Object#toString` result references. */
|
|
626
|
-
var mapTag = '[object Map]',
|
|
627
|
-
objectTag = '[object Object]',
|
|
628
|
-
promiseTag = '[object Promise]',
|
|
629
|
-
setTag = '[object Set]',
|
|
630
|
-
weakMapTag = '[object WeakMap]';
|
|
631
|
-
|
|
632
|
-
var dataViewTag = '[object DataView]';
|
|
633
|
-
|
|
634
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
635
|
-
var dataViewCtorString = toSource(DataView),
|
|
636
|
-
mapCtorString = toSource(Map),
|
|
637
|
-
promiseCtorString = toSource(Promise$1),
|
|
638
|
-
setCtorString = toSource(Set),
|
|
639
|
-
weakMapCtorString = toSource(WeakMap);
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Gets the `toStringTag` of `value`.
|
|
643
|
-
*
|
|
644
|
-
* @private
|
|
645
|
-
* @param {*} value The value to query.
|
|
646
|
-
* @returns {string} Returns the `toStringTag`.
|
|
647
|
-
*/
|
|
648
|
-
var getTag = baseGetTag;
|
|
649
|
-
|
|
650
|
-
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
651
|
-
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
652
|
-
(Map && getTag(new Map) != mapTag) ||
|
|
653
|
-
(Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
|
|
654
|
-
(Set && getTag(new Set) != setTag) ||
|
|
655
|
-
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
656
|
-
getTag = function(value) {
|
|
657
|
-
var result = baseGetTag(value),
|
|
658
|
-
Ctor = result == objectTag ? value.constructor : undefined,
|
|
659
|
-
ctorString = Ctor ? toSource(Ctor) : '';
|
|
660
|
-
|
|
661
|
-
if (ctorString) {
|
|
662
|
-
switch (ctorString) {
|
|
663
|
-
case dataViewCtorString: return dataViewTag;
|
|
664
|
-
case mapCtorString: return mapTag;
|
|
665
|
-
case promiseCtorString: return promiseTag;
|
|
666
|
-
case setCtorString: return setTag;
|
|
667
|
-
case weakMapCtorString: return weakMapTag;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
return result;
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
var root = _root;
|
|
675
|
-
|
|
676
|
-
/** Built-in value references. */
|
|
677
|
-
root.Uint8Array;
|
|
678
|
-
|
|
679
|
-
var Symbol = _Symbol;
|
|
680
|
-
|
|
681
|
-
/** Used to convert symbols to primitives and strings. */
|
|
682
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined;
|
|
683
|
-
symbolProto ? symbolProto.valueOf : undefined;
|
|
684
|
-
|
|
685
|
-
var nodeUtil$1 = _nodeUtil.exports;
|
|
686
|
-
|
|
687
|
-
/* Node.js helper references. */
|
|
688
|
-
nodeUtil$1 && nodeUtil$1.isMap;
|
|
689
|
-
|
|
690
|
-
var nodeUtil = _nodeUtil.exports;
|
|
691
|
-
|
|
692
|
-
/* Node.js helper references. */
|
|
693
|
-
nodeUtil && nodeUtil.isSet;
|
|
694
|
-
|
|
695
1
|
var defaults = {
|
|
696
2
|
teacherInstructionsEnabled: false,
|
|
697
3
|
titleEnabled: true,
|
package/module/element.js
CHANGED
|
@@ -8891,9 +8891,15 @@ class PiePassage extends HTMLElement {
|
|
|
8891
8891
|
};
|
|
8892
8892
|
this._session = null;
|
|
8893
8893
|
}
|
|
8894
|
+
setLangAttribute() {
|
|
8895
|
+
const language = this._model && typeof this._model.language ? this._model.language : '';
|
|
8896
|
+
const lang = language ? language.slice(0, 2) : 'en';
|
|
8897
|
+
this.setAttribute('lang', lang);
|
|
8898
|
+
}
|
|
8894
8899
|
set model(s) {
|
|
8895
8900
|
this._model = s;
|
|
8896
8901
|
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), this._session, !!this._model));
|
|
8902
|
+
this.setLangAttribute();
|
|
8897
8903
|
this._render();
|
|
8898
8904
|
}
|
|
8899
8905
|
set session(s) {
|
package/module/index.html
CHANGED