mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use Handlebars 4.0.12
Use 4.0.12 for both versions of Handlebars (runtime and not)
This commit is contained in:
6
vendor/assets/javascripts/handlebars.js
vendored
6
vendor/assets/javascripts/handlebars.js
vendored
@@ -1630,7 +1630,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
|
||||
productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 1], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
|
||||
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$
|
||||
/**/) {
|
||||
/*``*/) {
|
||||
|
||||
var $0 = $$.length - 1;
|
||||
switch (yystate) {
|
||||
@@ -2168,7 +2168,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
} };
|
||||
lexer.options = {};
|
||||
lexer.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START
|
||||
/**/) {
|
||||
/*``*/) {
|
||||
|
||||
function strip(start, end) {
|
||||
return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng - end);
|
||||
@@ -4835,4 +4835,4 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/***/ })
|
||||
/******/ ])
|
||||
});
|
||||
;
|
||||
;
|
||||
392
vendor/assets/javascripts/handlebars.runtime.js
vendored
392
vendor/assets/javascripts/handlebars.runtime.js
vendored
@@ -1,8 +1,9 @@
|
||||
/*!
|
||||
/**!
|
||||
|
||||
handlebars v4.0.5
|
||||
@license
|
||||
handlebars v4.0.12
|
||||
|
||||
Copyright (C) 2011-2015 by Yehuda Katz
|
||||
Copyright (C) 2011-2017 by Yehuda Katz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -22,7 +23,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
@license
|
||||
*/
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
@@ -78,7 +78,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/************************************************************************/
|
||||
/******/ ([
|
||||
/* 0 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -95,7 +95,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
// Each of these augment the Handlebars object. No need to setup here.
|
||||
// (This is done to easily share code between commonjs and browse envs)
|
||||
|
||||
var _handlebarsSafeString = __webpack_require__(17);
|
||||
var _handlebarsSafeString = __webpack_require__(20);
|
||||
|
||||
var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
|
||||
|
||||
@@ -107,11 +107,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
var Utils = _interopRequireWildcard(_handlebarsUtils);
|
||||
|
||||
var _handlebarsRuntime = __webpack_require__(18);
|
||||
var _handlebarsRuntime = __webpack_require__(21);
|
||||
|
||||
var runtime = _interopRequireWildcard(_handlebarsRuntime);
|
||||
|
||||
var _handlebarsNoConflict = __webpack_require__(19);
|
||||
var _handlebarsNoConflict = __webpack_require__(33);
|
||||
|
||||
var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
|
||||
|
||||
@@ -143,9 +143,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports['default'] = inst;
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
@@ -168,9 +168,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
@@ -182,9 +182,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -199,15 +199,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
var _exception2 = _interopRequireDefault(_exception);
|
||||
|
||||
var _helpers = __webpack_require__(6);
|
||||
var _helpers = __webpack_require__(9);
|
||||
|
||||
var _decorators = __webpack_require__(14);
|
||||
var _decorators = __webpack_require__(17);
|
||||
|
||||
var _logger = __webpack_require__(16);
|
||||
var _logger = __webpack_require__(19);
|
||||
|
||||
var _logger2 = _interopRequireDefault(_logger);
|
||||
|
||||
var VERSION = '4.0.5';
|
||||
var VERSION = '4.0.12';
|
||||
exports.VERSION = VERSION;
|
||||
var COMPILER_REVISION = 7;
|
||||
|
||||
@@ -289,9 +289,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports.createFrame = _utils.createFrame;
|
||||
exports.logger = _logger2['default'];
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 4 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -417,12 +417,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
return (contextPath ? contextPath + '.' : '') + id;
|
||||
}
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 5 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var _Object$defineProperty = __webpack_require__(6)['default'];
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
|
||||
@@ -450,9 +452,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
Error.captureStackTrace(this, Exception);
|
||||
}
|
||||
|
||||
if (loc) {
|
||||
this.lineNumber = line;
|
||||
this.column = column;
|
||||
try {
|
||||
if (loc) {
|
||||
this.lineNumber = line;
|
||||
|
||||
// Work around issue under safari where we can't directly set the column value
|
||||
/* istanbul ignore next */
|
||||
if (_Object$defineProperty) {
|
||||
Object.defineProperty(this, 'column', {
|
||||
value: column,
|
||||
enumerable: true
|
||||
});
|
||||
} else {
|
||||
this.column = column;
|
||||
}
|
||||
}
|
||||
} catch (nop) {
|
||||
/* Ignore if the browser is very particular */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -461,9 +477,42 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports['default'] = Exception;
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/***/ }),
|
||||
/* 6 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = { "default": __webpack_require__(7), __esModule: true };
|
||||
|
||||
/***/ }),
|
||||
/* 7 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $ = __webpack_require__(8);
|
||||
module.exports = function defineProperty(it, key, desc){
|
||||
return $.setDesc(it, key, desc);
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 8 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var $Object = Object;
|
||||
module.exports = {
|
||||
create: $Object.create,
|
||||
getProto: $Object.getPrototypeOf,
|
||||
isEnum: {}.propertyIsEnumerable,
|
||||
getDesc: $Object.getOwnPropertyDescriptor,
|
||||
setDesc: $Object.defineProperty,
|
||||
setDescs: $Object.defineProperties,
|
||||
getKeys: $Object.keys,
|
||||
getNames: $Object.getOwnPropertyNames,
|
||||
getSymbols: $Object.getOwnPropertySymbols,
|
||||
each: [].forEach
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 9 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -472,31 +521,31 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports.__esModule = true;
|
||||
exports.registerDefaultHelpers = registerDefaultHelpers;
|
||||
|
||||
var _helpersBlockHelperMissing = __webpack_require__(7);
|
||||
var _helpersBlockHelperMissing = __webpack_require__(10);
|
||||
|
||||
var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);
|
||||
|
||||
var _helpersEach = __webpack_require__(8);
|
||||
var _helpersEach = __webpack_require__(11);
|
||||
|
||||
var _helpersEach2 = _interopRequireDefault(_helpersEach);
|
||||
|
||||
var _helpersHelperMissing = __webpack_require__(9);
|
||||
var _helpersHelperMissing = __webpack_require__(12);
|
||||
|
||||
var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);
|
||||
|
||||
var _helpersIf = __webpack_require__(10);
|
||||
var _helpersIf = __webpack_require__(13);
|
||||
|
||||
var _helpersIf2 = _interopRequireDefault(_helpersIf);
|
||||
|
||||
var _helpersLog = __webpack_require__(11);
|
||||
var _helpersLog = __webpack_require__(14);
|
||||
|
||||
var _helpersLog2 = _interopRequireDefault(_helpersLog);
|
||||
|
||||
var _helpersLookup = __webpack_require__(12);
|
||||
var _helpersLookup = __webpack_require__(15);
|
||||
|
||||
var _helpersLookup2 = _interopRequireDefault(_helpersLookup);
|
||||
|
||||
var _helpersWith = __webpack_require__(13);
|
||||
var _helpersWith = __webpack_require__(16);
|
||||
|
||||
var _helpersWith2 = _interopRequireDefault(_helpersWith);
|
||||
|
||||
@@ -510,9 +559,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
_helpersWith2['default'](instance);
|
||||
}
|
||||
|
||||
/***/ },
|
||||
/* 7 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 10 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -553,9 +602,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 8 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 11 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -650,9 +699,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 9 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 12 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -678,9 +727,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 10 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 13 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -711,9 +760,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 11 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ }),
|
||||
/* 14 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -741,9 +790,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 12 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ }),
|
||||
/* 15 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -757,9 +806,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 13 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 16 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -794,9 +843,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 14 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 17 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -805,7 +854,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports.__esModule = true;
|
||||
exports.registerDefaultDecorators = registerDefaultDecorators;
|
||||
|
||||
var _decoratorsInline = __webpack_require__(15);
|
||||
var _decoratorsInline = __webpack_require__(18);
|
||||
|
||||
var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);
|
||||
|
||||
@@ -813,9 +862,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
_decoratorsInline2['default'](instance);
|
||||
}
|
||||
|
||||
/***/ },
|
||||
/* 15 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 18 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -846,9 +895,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 16 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 19 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -897,9 +946,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports['default'] = logger;
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 17 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ }),
|
||||
/* 20 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
// Build out our basic SafeString type
|
||||
'use strict';
|
||||
@@ -916,12 +965,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
exports['default'] = SafeString;
|
||||
module.exports = exports['default'];
|
||||
|
||||
/***/ },
|
||||
/* 18 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
/***/ }),
|
||||
/* 21 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var _Object$seal = __webpack_require__(22)['default'];
|
||||
|
||||
var _interopRequireWildcard = __webpack_require__(1)['default'];
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(2)['default'];
|
||||
@@ -1064,6 +1115,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
return obj;
|
||||
},
|
||||
// An empty object to use as replacement for null-contexts
|
||||
nullContext: _Object$seal({}),
|
||||
|
||||
noop: env.VM.noop,
|
||||
compilerInfo: templateSpec.compiler
|
||||
@@ -1082,7 +1135,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
blockParams = templateSpec.useBlockParams ? [] : undefined;
|
||||
if (templateSpec.useDepths) {
|
||||
if (options.depths) {
|
||||
depths = context !== options.depths[0] ? [context].concat(options.depths) : options.depths;
|
||||
depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;
|
||||
} else {
|
||||
depths = [context];
|
||||
}
|
||||
@@ -1131,7 +1184,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
||||
|
||||
var currentDepths = depths;
|
||||
if (depths && context !== depths[0]) {
|
||||
if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {
|
||||
currentDepths = [context].concat(depths);
|
||||
}
|
||||
|
||||
@@ -1162,6 +1215,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
}
|
||||
|
||||
function invokePartial(partial, context, options) {
|
||||
// Use the current closure context to save the partial-block if this partial
|
||||
var currentPartialBlock = options.data && options.data['partial-block'];
|
||||
options.partial = true;
|
||||
if (options.ids) {
|
||||
options.data.contextPath = options.ids[0] || options.data.contextPath;
|
||||
@@ -1169,12 +1224,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
var partialBlock = undefined;
|
||||
if (options.fn && options.fn !== noop) {
|
||||
options.data = _base.createFrame(options.data);
|
||||
partialBlock = options.data['partial-block'] = options.fn;
|
||||
(function () {
|
||||
options.data = _base.createFrame(options.data);
|
||||
// Wrapper function to get access to currentPartialBlock from the closure
|
||||
var fn = options.fn;
|
||||
partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {
|
||||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
||||
|
||||
if (partialBlock.partials) {
|
||||
options.partials = Utils.extend({}, options.partials, partialBlock.partials);
|
||||
}
|
||||
// Restore the partial-block from the closure for the execution of the block
|
||||
// i.e. the part inside the block of the partial call.
|
||||
options.data = _base.createFrame(options.data);
|
||||
options.data['partial-block'] = currentPartialBlock;
|
||||
return fn(context, options);
|
||||
};
|
||||
if (fn.partials) {
|
||||
options.partials = Utils.extend({}, options.partials, fn.partials);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
if (partial === undefined && partialBlock) {
|
||||
@@ -1209,9 +1275,171 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
return prog;
|
||||
}
|
||||
|
||||
/***/ },
|
||||
/* 19 */
|
||||
/***/ function(module, exports) {
|
||||
/***/ }),
|
||||
/* 22 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = { "default": __webpack_require__(23), __esModule: true };
|
||||
|
||||
/***/ }),
|
||||
/* 23 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
__webpack_require__(24);
|
||||
module.exports = __webpack_require__(29).Object.seal;
|
||||
|
||||
/***/ }),
|
||||
/* 24 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// 19.1.2.17 Object.seal(O)
|
||||
var isObject = __webpack_require__(25);
|
||||
|
||||
__webpack_require__(26)('seal', function($seal){
|
||||
return function seal(it){
|
||||
return $seal && isObject(it) ? $seal(it) : it;
|
||||
};
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
/* 25 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(it){
|
||||
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 26 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// most Object methods by ES6 should accept primitives
|
||||
var $export = __webpack_require__(27)
|
||||
, core = __webpack_require__(29)
|
||||
, fails = __webpack_require__(32);
|
||||
module.exports = function(KEY, exec){
|
||||
var fn = (core.Object || {})[KEY] || Object[KEY]
|
||||
, exp = {};
|
||||
exp[KEY] = exec(fn);
|
||||
$export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 27 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var global = __webpack_require__(28)
|
||||
, core = __webpack_require__(29)
|
||||
, ctx = __webpack_require__(30)
|
||||
, PROTOTYPE = 'prototype';
|
||||
|
||||
var $export = function(type, name, source){
|
||||
var IS_FORCED = type & $export.F
|
||||
, IS_GLOBAL = type & $export.G
|
||||
, IS_STATIC = type & $export.S
|
||||
, IS_PROTO = type & $export.P
|
||||
, IS_BIND = type & $export.B
|
||||
, IS_WRAP = type & $export.W
|
||||
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
|
||||
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
|
||||
, key, own, out;
|
||||
if(IS_GLOBAL)source = name;
|
||||
for(key in source){
|
||||
// contains in native
|
||||
own = !IS_FORCED && target && key in target;
|
||||
if(own && key in exports)continue;
|
||||
// export native or passed
|
||||
out = own ? target[key] : source[key];
|
||||
// prevent global pollution for namespaces
|
||||
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
||||
// bind timers to global for call from export context
|
||||
: IS_BIND && own ? ctx(out, global)
|
||||
// wrap global constructors for prevent change them in library
|
||||
: IS_WRAP && target[key] == out ? (function(C){
|
||||
var F = function(param){
|
||||
return this instanceof C ? new C(param) : C(param);
|
||||
};
|
||||
F[PROTOTYPE] = C[PROTOTYPE];
|
||||
return F;
|
||||
// make static versions for prototype methods
|
||||
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
||||
if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;
|
||||
}
|
||||
};
|
||||
// type bitmap
|
||||
$export.F = 1; // forced
|
||||
$export.G = 2; // global
|
||||
$export.S = 4; // static
|
||||
$export.P = 8; // proto
|
||||
$export.B = 16; // bind
|
||||
$export.W = 32; // wrap
|
||||
module.exports = $export;
|
||||
|
||||
/***/ }),
|
||||
/* 28 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
||||
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
||||
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
|
||||
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
|
||||
|
||||
/***/ }),
|
||||
/* 29 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var core = module.exports = {version: '1.2.6'};
|
||||
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
|
||||
|
||||
/***/ }),
|
||||
/* 30 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// optional / simple context binding
|
||||
var aFunction = __webpack_require__(31);
|
||||
module.exports = function(fn, that, length){
|
||||
aFunction(fn);
|
||||
if(that === undefined)return fn;
|
||||
switch(length){
|
||||
case 1: return function(a){
|
||||
return fn.call(that, a);
|
||||
};
|
||||
case 2: return function(a, b){
|
||||
return fn.call(that, a, b);
|
||||
};
|
||||
case 3: return function(a, b, c){
|
||||
return fn.call(that, a, b, c);
|
||||
};
|
||||
}
|
||||
return function(/* ...args */){
|
||||
return fn.apply(that, arguments);
|
||||
};
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 31 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(it){
|
||||
if(typeof it != 'function')throw TypeError(it + ' is not a function!');
|
||||
return it;
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 32 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(exec){
|
||||
try {
|
||||
return !!exec();
|
||||
} catch(e){
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 33 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(global) {/* global window */
|
||||
'use strict';
|
||||
@@ -1234,7 +1462,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
module.exports = exports['default'];
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
||||
|
||||
/***/ }
|
||||
/***/ })
|
||||
/******/ ])
|
||||
});
|
||||
;
|
||||
Reference in New Issue
Block a user