handlebars.runtime.js 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563
  1. /**!
  2. @license
  3. handlebars v4.7.8
  4. Copyright (C) 2011-2019 by Yehuda Katz
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in
  12. all copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. THE SOFTWARE.
  20. */
  21. (function webpackUniversalModuleDefinition(root, factory) {
  22. if(typeof exports === 'object' && typeof module === 'object')
  23. module.exports = factory();
  24. else if(typeof define === 'function' && define.amd)
  25. define([], factory);
  26. else if(typeof exports === 'object')
  27. exports["Handlebars"] = factory();
  28. else
  29. root["Handlebars"] = factory();
  30. })(this, function() {
  31. return /******/ (function(modules) { // webpackBootstrap
  32. /******/ // The module cache
  33. /******/ var installedModules = {};
  34. /******/ // The require function
  35. /******/ function __webpack_require__(moduleId) {
  36. /******/ // Check if module is in cache
  37. /******/ if(installedModules[moduleId])
  38. /******/ return installedModules[moduleId].exports;
  39. /******/ // Create a new module (and put it into the cache)
  40. /******/ var module = installedModules[moduleId] = {
  41. /******/ exports: {},
  42. /******/ id: moduleId,
  43. /******/ loaded: false
  44. /******/ };
  45. /******/ // Execute the module function
  46. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  47. /******/ // Flag the module as loaded
  48. /******/ module.loaded = true;
  49. /******/ // Return the exports of the module
  50. /******/ return module.exports;
  51. /******/ }
  52. /******/ // expose the modules object (__webpack_modules__)
  53. /******/ __webpack_require__.m = modules;
  54. /******/ // expose the module cache
  55. /******/ __webpack_require__.c = installedModules;
  56. /******/ // __webpack_public_path__
  57. /******/ __webpack_require__.p = "";
  58. /******/ // Load entry module and return exports
  59. /******/ return __webpack_require__(0);
  60. /******/ })
  61. /************************************************************************/
  62. /******/ ([
  63. /* 0 */
  64. /***/ (function(module, exports, __webpack_require__) {
  65. 'use strict';
  66. var _interopRequireWildcard = __webpack_require__(1)['default'];
  67. var _interopRequireDefault = __webpack_require__(2)['default'];
  68. exports.__esModule = true;
  69. var _handlebarsBase = __webpack_require__(3);
  70. var base = _interopRequireWildcard(_handlebarsBase);
  71. // Each of these augment the Handlebars object. No need to setup here.
  72. // (This is done to easily share code between commonjs and browse envs)
  73. var _handlebarsSafeString = __webpack_require__(76);
  74. var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
  75. var _handlebarsException = __webpack_require__(5);
  76. var _handlebarsException2 = _interopRequireDefault(_handlebarsException);
  77. var _handlebarsUtils = __webpack_require__(4);
  78. var Utils = _interopRequireWildcard(_handlebarsUtils);
  79. var _handlebarsRuntime = __webpack_require__(77);
  80. var runtime = _interopRequireWildcard(_handlebarsRuntime);
  81. var _handlebarsNoConflict = __webpack_require__(82);
  82. var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
  83. // For compatibility and usage outside of module systems, make the Handlebars object a namespace
  84. function create() {
  85. var hb = new base.HandlebarsEnvironment();
  86. Utils.extend(hb, base);
  87. hb.SafeString = _handlebarsSafeString2['default'];
  88. hb.Exception = _handlebarsException2['default'];
  89. hb.Utils = Utils;
  90. hb.escapeExpression = Utils.escapeExpression;
  91. hb.VM = runtime;
  92. hb.template = function (spec) {
  93. return runtime.template(spec, hb);
  94. };
  95. return hb;
  96. }
  97. var inst = create();
  98. inst.create = create;
  99. _handlebarsNoConflict2['default'](inst);
  100. inst['default'] = inst;
  101. exports['default'] = inst;
  102. module.exports = exports['default'];
  103. /***/ }),
  104. /* 1 */
  105. /***/ (function(module, exports) {
  106. "use strict";
  107. exports["default"] = function (obj) {
  108. if (obj && obj.__esModule) {
  109. return obj;
  110. } else {
  111. var newObj = {};
  112. if (obj != null) {
  113. for (var key in obj) {
  114. if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
  115. }
  116. }
  117. newObj["default"] = obj;
  118. return newObj;
  119. }
  120. };
  121. exports.__esModule = true;
  122. /***/ }),
  123. /* 2 */
  124. /***/ (function(module, exports) {
  125. "use strict";
  126. exports["default"] = function (obj) {
  127. return obj && obj.__esModule ? obj : {
  128. "default": obj
  129. };
  130. };
  131. exports.__esModule = true;
  132. /***/ }),
  133. /* 3 */
  134. /***/ (function(module, exports, __webpack_require__) {
  135. 'use strict';
  136. var _interopRequireDefault = __webpack_require__(2)['default'];
  137. exports.__esModule = true;
  138. exports.HandlebarsEnvironment = HandlebarsEnvironment;
  139. var _utils = __webpack_require__(4);
  140. var _exception = __webpack_require__(5);
  141. var _exception2 = _interopRequireDefault(_exception);
  142. var _helpers = __webpack_require__(9);
  143. var _decorators = __webpack_require__(69);
  144. var _logger = __webpack_require__(71);
  145. var _logger2 = _interopRequireDefault(_logger);
  146. var _internalProtoAccess = __webpack_require__(72);
  147. var VERSION = '4.7.8';
  148. exports.VERSION = VERSION;
  149. var COMPILER_REVISION = 8;
  150. exports.COMPILER_REVISION = COMPILER_REVISION;
  151. var LAST_COMPATIBLE_COMPILER_REVISION = 7;
  152. exports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;
  153. var REVISION_CHANGES = {
  154. 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it
  155. 2: '== 1.0.0-rc.3',
  156. 3: '== 1.0.0-rc.4',
  157. 4: '== 1.x.x',
  158. 5: '== 2.0.0-alpha.x',
  159. 6: '>= 2.0.0-beta.1',
  160. 7: '>= 4.0.0 <4.3.0',
  161. 8: '>= 4.3.0'
  162. };
  163. exports.REVISION_CHANGES = REVISION_CHANGES;
  164. var objectType = '[object Object]';
  165. function HandlebarsEnvironment(helpers, partials, decorators) {
  166. this.helpers = helpers || {};
  167. this.partials = partials || {};
  168. this.decorators = decorators || {};
  169. _helpers.registerDefaultHelpers(this);
  170. _decorators.registerDefaultDecorators(this);
  171. }
  172. HandlebarsEnvironment.prototype = {
  173. constructor: HandlebarsEnvironment,
  174. logger: _logger2['default'],
  175. log: _logger2['default'].log,
  176. registerHelper: function registerHelper(name, fn) {
  177. if (_utils.toString.call(name) === objectType) {
  178. if (fn) {
  179. throw new _exception2['default']('Arg not supported with multiple helpers');
  180. }
  181. _utils.extend(this.helpers, name);
  182. } else {
  183. this.helpers[name] = fn;
  184. }
  185. },
  186. unregisterHelper: function unregisterHelper(name) {
  187. delete this.helpers[name];
  188. },
  189. registerPartial: function registerPartial(name, partial) {
  190. if (_utils.toString.call(name) === objectType) {
  191. _utils.extend(this.partials, name);
  192. } else {
  193. if (typeof partial === 'undefined') {
  194. throw new _exception2['default']('Attempting to register a partial called "' + name + '" as undefined');
  195. }
  196. this.partials[name] = partial;
  197. }
  198. },
  199. unregisterPartial: function unregisterPartial(name) {
  200. delete this.partials[name];
  201. },
  202. registerDecorator: function registerDecorator(name, fn) {
  203. if (_utils.toString.call(name) === objectType) {
  204. if (fn) {
  205. throw new _exception2['default']('Arg not supported with multiple decorators');
  206. }
  207. _utils.extend(this.decorators, name);
  208. } else {
  209. this.decorators[name] = fn;
  210. }
  211. },
  212. unregisterDecorator: function unregisterDecorator(name) {
  213. delete this.decorators[name];
  214. },
  215. /**
  216. * Reset the memory of illegal property accesses that have already been logged.
  217. * @deprecated should only be used in handlebars test-cases
  218. */
  219. resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {
  220. _internalProtoAccess.resetLoggedProperties();
  221. }
  222. };
  223. var log = _logger2['default'].log;
  224. exports.log = log;
  225. exports.createFrame = _utils.createFrame;
  226. exports.logger = _logger2['default'];
  227. /***/ }),
  228. /* 4 */
  229. /***/ (function(module, exports) {
  230. 'use strict';
  231. exports.__esModule = true;
  232. exports.extend = extend;
  233. exports.indexOf = indexOf;
  234. exports.escapeExpression = escapeExpression;
  235. exports.isEmpty = isEmpty;
  236. exports.createFrame = createFrame;
  237. exports.blockParams = blockParams;
  238. exports.appendContextPath = appendContextPath;
  239. var escape = {
  240. '&': '&amp;',
  241. '<': '&lt;',
  242. '>': '&gt;',
  243. '"': '&quot;',
  244. "'": '&#x27;',
  245. '`': '&#x60;',
  246. '=': '&#x3D;'
  247. };
  248. var badChars = /[&<>"'`=]/g,
  249. possible = /[&<>"'`=]/;
  250. function escapeChar(chr) {
  251. return escape[chr];
  252. }
  253. function extend(obj /* , ...source */) {
  254. for (var i = 1; i < arguments.length; i++) {
  255. for (var key in arguments[i]) {
  256. if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
  257. obj[key] = arguments[i][key];
  258. }
  259. }
  260. }
  261. return obj;
  262. }
  263. var toString = Object.prototype.toString;
  264. exports.toString = toString;
  265. // Sourced from lodash
  266. // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
  267. /* eslint-disable func-style */
  268. var isFunction = function isFunction(value) {
  269. return typeof value === 'function';
  270. };
  271. // fallback for older versions of Chrome and Safari
  272. /* istanbul ignore next */
  273. if (isFunction(/x/)) {
  274. exports.isFunction = isFunction = function (value) {
  275. return typeof value === 'function' && toString.call(value) === '[object Function]';
  276. };
  277. }
  278. exports.isFunction = isFunction;
  279. /* eslint-enable func-style */
  280. /* istanbul ignore next */
  281. var isArray = Array.isArray || function (value) {
  282. return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;
  283. };
  284. exports.isArray = isArray;
  285. // Older IE versions do not directly support indexOf so we must implement our own, sadly.
  286. function indexOf(array, value) {
  287. for (var i = 0, len = array.length; i < len; i++) {
  288. if (array[i] === value) {
  289. return i;
  290. }
  291. }
  292. return -1;
  293. }
  294. function escapeExpression(string) {
  295. if (typeof string !== 'string') {
  296. // don't escape SafeStrings, since they're already safe
  297. if (string && string.toHTML) {
  298. return string.toHTML();
  299. } else if (string == null) {
  300. return '';
  301. } else if (!string) {
  302. return string + '';
  303. }
  304. // Force a string conversion as this will be done by the append regardless and
  305. // the regex test will do this transparently behind the scenes, causing issues if
  306. // an object's to string has escaped characters in it.
  307. string = '' + string;
  308. }
  309. if (!possible.test(string)) {
  310. return string;
  311. }
  312. return string.replace(badChars, escapeChar);
  313. }
  314. function isEmpty(value) {
  315. if (!value && value !== 0) {
  316. return true;
  317. } else if (isArray(value) && value.length === 0) {
  318. return true;
  319. } else {
  320. return false;
  321. }
  322. }
  323. function createFrame(object) {
  324. var frame = extend({}, object);
  325. frame._parent = object;
  326. return frame;
  327. }
  328. function blockParams(params, ids) {
  329. params.path = ids;
  330. return params;
  331. }
  332. function appendContextPath(contextPath, id) {
  333. return (contextPath ? contextPath + '.' : '') + id;
  334. }
  335. /***/ }),
  336. /* 5 */
  337. /***/ (function(module, exports, __webpack_require__) {
  338. 'use strict';
  339. var _Object$defineProperty = __webpack_require__(6)['default'];
  340. exports.__esModule = true;
  341. var errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];
  342. function Exception(message, node) {
  343. var loc = node && node.loc,
  344. line = undefined,
  345. endLineNumber = undefined,
  346. column = undefined,
  347. endColumn = undefined;
  348. if (loc) {
  349. line = loc.start.line;
  350. endLineNumber = loc.end.line;
  351. column = loc.start.column;
  352. endColumn = loc.end.column;
  353. message += ' - ' + line + ':' + column;
  354. }
  355. var tmp = Error.prototype.constructor.call(this, message);
  356. // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
  357. for (var idx = 0; idx < errorProps.length; idx++) {
  358. this[errorProps[idx]] = tmp[errorProps[idx]];
  359. }
  360. /* istanbul ignore else */
  361. if (Error.captureStackTrace) {
  362. Error.captureStackTrace(this, Exception);
  363. }
  364. try {
  365. if (loc) {
  366. this.lineNumber = line;
  367. this.endLineNumber = endLineNumber;
  368. // Work around issue under safari where we can't directly set the column value
  369. /* istanbul ignore next */
  370. if (_Object$defineProperty) {
  371. Object.defineProperty(this, 'column', {
  372. value: column,
  373. enumerable: true
  374. });
  375. Object.defineProperty(this, 'endColumn', {
  376. value: endColumn,
  377. enumerable: true
  378. });
  379. } else {
  380. this.column = column;
  381. this.endColumn = endColumn;
  382. }
  383. }
  384. } catch (nop) {
  385. /* Ignore if the browser is very particular */
  386. }
  387. }
  388. Exception.prototype = new Error();
  389. exports['default'] = Exception;
  390. module.exports = exports['default'];
  391. /***/ }),
  392. /* 6 */
  393. /***/ (function(module, exports, __webpack_require__) {
  394. module.exports = { "default": __webpack_require__(7), __esModule: true };
  395. /***/ }),
  396. /* 7 */
  397. /***/ (function(module, exports, __webpack_require__) {
  398. var $ = __webpack_require__(8);
  399. module.exports = function defineProperty(it, key, desc){
  400. return $.setDesc(it, key, desc);
  401. };
  402. /***/ }),
  403. /* 8 */
  404. /***/ (function(module, exports) {
  405. var $Object = Object;
  406. module.exports = {
  407. create: $Object.create,
  408. getProto: $Object.getPrototypeOf,
  409. isEnum: {}.propertyIsEnumerable,
  410. getDesc: $Object.getOwnPropertyDescriptor,
  411. setDesc: $Object.defineProperty,
  412. setDescs: $Object.defineProperties,
  413. getKeys: $Object.keys,
  414. getNames: $Object.getOwnPropertyNames,
  415. getSymbols: $Object.getOwnPropertySymbols,
  416. each: [].forEach
  417. };
  418. /***/ }),
  419. /* 9 */
  420. /***/ (function(module, exports, __webpack_require__) {
  421. 'use strict';
  422. var _interopRequireDefault = __webpack_require__(2)['default'];
  423. exports.__esModule = true;
  424. exports.registerDefaultHelpers = registerDefaultHelpers;
  425. exports.moveHelperToHooks = moveHelperToHooks;
  426. var _helpersBlockHelperMissing = __webpack_require__(10);
  427. var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);
  428. var _helpersEach = __webpack_require__(11);
  429. var _helpersEach2 = _interopRequireDefault(_helpersEach);
  430. var _helpersHelperMissing = __webpack_require__(64);
  431. var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);
  432. var _helpersIf = __webpack_require__(65);
  433. var _helpersIf2 = _interopRequireDefault(_helpersIf);
  434. var _helpersLog = __webpack_require__(66);
  435. var _helpersLog2 = _interopRequireDefault(_helpersLog);
  436. var _helpersLookup = __webpack_require__(67);
  437. var _helpersLookup2 = _interopRequireDefault(_helpersLookup);
  438. var _helpersWith = __webpack_require__(68);
  439. var _helpersWith2 = _interopRequireDefault(_helpersWith);
  440. function registerDefaultHelpers(instance) {
  441. _helpersBlockHelperMissing2['default'](instance);
  442. _helpersEach2['default'](instance);
  443. _helpersHelperMissing2['default'](instance);
  444. _helpersIf2['default'](instance);
  445. _helpersLog2['default'](instance);
  446. _helpersLookup2['default'](instance);
  447. _helpersWith2['default'](instance);
  448. }
  449. function moveHelperToHooks(instance, helperName, keepHelper) {
  450. if (instance.helpers[helperName]) {
  451. instance.hooks[helperName] = instance.helpers[helperName];
  452. if (!keepHelper) {
  453. delete instance.helpers[helperName];
  454. }
  455. }
  456. }
  457. /***/ }),
  458. /* 10 */
  459. /***/ (function(module, exports, __webpack_require__) {
  460. 'use strict';
  461. exports.__esModule = true;
  462. var _utils = __webpack_require__(4);
  463. exports['default'] = function (instance) {
  464. instance.registerHelper('blockHelperMissing', function (context, options) {
  465. var inverse = options.inverse,
  466. fn = options.fn;
  467. if (context === true) {
  468. return fn(this);
  469. } else if (context === false || context == null) {
  470. return inverse(this);
  471. } else if (_utils.isArray(context)) {
  472. if (context.length > 0) {
  473. if (options.ids) {
  474. options.ids = [options.name];
  475. }
  476. return instance.helpers.each(context, options);
  477. } else {
  478. return inverse(this);
  479. }
  480. } else {
  481. if (options.data && options.ids) {
  482. var data = _utils.createFrame(options.data);
  483. data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);
  484. options = { data: data };
  485. }
  486. return fn(context, options);
  487. }
  488. });
  489. };
  490. module.exports = exports['default'];
  491. /***/ }),
  492. /* 11 */
  493. /***/ (function(module, exports, __webpack_require__) {
  494. 'use strict';
  495. var _Symbol = __webpack_require__(12)['default'];
  496. var _Symbol$iterator = __webpack_require__(42)['default'];
  497. var _getIterator = __webpack_require__(54)['default'];
  498. var _Object$keys = __webpack_require__(59)['default'];
  499. var _interopRequireDefault = __webpack_require__(2)['default'];
  500. exports.__esModule = true;
  501. var _utils = __webpack_require__(4);
  502. var _exception = __webpack_require__(5);
  503. var _exception2 = _interopRequireDefault(_exception);
  504. exports['default'] = function (instance) {
  505. instance.registerHelper('each', function (context, options) {
  506. if (!options) {
  507. throw new _exception2['default']('Must pass iterator to #each');
  508. }
  509. var fn = options.fn,
  510. inverse = options.inverse,
  511. i = 0,
  512. ret = '',
  513. data = undefined,
  514. contextPath = undefined;
  515. if (options.data && options.ids) {
  516. contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';
  517. }
  518. if (_utils.isFunction(context)) {
  519. context = context.call(this);
  520. }
  521. if (options.data) {
  522. data = _utils.createFrame(options.data);
  523. }
  524. function execIteration(field, index, last) {
  525. if (data) {
  526. data.key = field;
  527. data.index = index;
  528. data.first = index === 0;
  529. data.last = !!last;
  530. if (contextPath) {
  531. data.contextPath = contextPath + field;
  532. }
  533. }
  534. ret = ret + fn(context[field], {
  535. data: data,
  536. blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])
  537. });
  538. }
  539. if (context && typeof context === 'object') {
  540. if (_utils.isArray(context)) {
  541. for (var j = context.length; i < j; i++) {
  542. if (i in context) {
  543. execIteration(i, i, i === context.length - 1);
  544. }
  545. }
  546. } else if (typeof _Symbol === 'function' && context[_Symbol$iterator]) {
  547. var newContext = [];
  548. var iterator = _getIterator(context);
  549. for (var it = iterator.next(); !it.done; it = iterator.next()) {
  550. newContext.push(it.value);
  551. }
  552. context = newContext;
  553. for (var j = context.length; i < j; i++) {
  554. execIteration(i, i, i === context.length - 1);
  555. }
  556. } else {
  557. (function () {
  558. var priorKey = undefined;
  559. _Object$keys(context).forEach(function (key) {
  560. // We're running the iterations one step out of sync so we can detect
  561. // the last iteration without have to scan the object twice and create
  562. // an itermediate keys array.
  563. if (priorKey !== undefined) {
  564. execIteration(priorKey, i - 1);
  565. }
  566. priorKey = key;
  567. i++;
  568. });
  569. if (priorKey !== undefined) {
  570. execIteration(priorKey, i - 1, true);
  571. }
  572. })();
  573. }
  574. }
  575. if (i === 0) {
  576. ret = inverse(this);
  577. }
  578. return ret;
  579. });
  580. };
  581. module.exports = exports['default'];
  582. /***/ }),
  583. /* 12 */
  584. /***/ (function(module, exports, __webpack_require__) {
  585. module.exports = { "default": __webpack_require__(13), __esModule: true };
  586. /***/ }),
  587. /* 13 */
  588. /***/ (function(module, exports, __webpack_require__) {
  589. __webpack_require__(14);
  590. __webpack_require__(41);
  591. module.exports = __webpack_require__(20).Symbol;
  592. /***/ }),
  593. /* 14 */
  594. /***/ (function(module, exports, __webpack_require__) {
  595. 'use strict';
  596. // ECMAScript 6 symbols shim
  597. var $ = __webpack_require__(8)
  598. , global = __webpack_require__(15)
  599. , has = __webpack_require__(16)
  600. , DESCRIPTORS = __webpack_require__(17)
  601. , $export = __webpack_require__(19)
  602. , redefine = __webpack_require__(23)
  603. , $fails = __webpack_require__(18)
  604. , shared = __webpack_require__(26)
  605. , setToStringTag = __webpack_require__(27)
  606. , uid = __webpack_require__(29)
  607. , wks = __webpack_require__(28)
  608. , keyOf = __webpack_require__(30)
  609. , $names = __webpack_require__(35)
  610. , enumKeys = __webpack_require__(36)
  611. , isArray = __webpack_require__(37)
  612. , anObject = __webpack_require__(38)
  613. , toIObject = __webpack_require__(31)
  614. , createDesc = __webpack_require__(25)
  615. , getDesc = $.getDesc
  616. , setDesc = $.setDesc
  617. , _create = $.create
  618. , getNames = $names.get
  619. , $Symbol = global.Symbol
  620. , $JSON = global.JSON
  621. , _stringify = $JSON && $JSON.stringify
  622. , setter = false
  623. , HIDDEN = wks('_hidden')
  624. , isEnum = $.isEnum
  625. , SymbolRegistry = shared('symbol-registry')
  626. , AllSymbols = shared('symbols')
  627. , useNative = typeof $Symbol == 'function'
  628. , ObjectProto = Object.prototype;
  629. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  630. var setSymbolDesc = DESCRIPTORS && $fails(function(){
  631. return _create(setDesc({}, 'a', {
  632. get: function(){ return setDesc(this, 'a', {value: 7}).a; }
  633. })).a != 7;
  634. }) ? function(it, key, D){
  635. var protoDesc = getDesc(ObjectProto, key);
  636. if(protoDesc)delete ObjectProto[key];
  637. setDesc(it, key, D);
  638. if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);
  639. } : setDesc;
  640. var wrap = function(tag){
  641. var sym = AllSymbols[tag] = _create($Symbol.prototype);
  642. sym._k = tag;
  643. DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {
  644. configurable: true,
  645. set: function(value){
  646. if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
  647. setSymbolDesc(this, tag, createDesc(1, value));
  648. }
  649. });
  650. return sym;
  651. };
  652. var isSymbol = function(it){
  653. return typeof it == 'symbol';
  654. };
  655. var $defineProperty = function defineProperty(it, key, D){
  656. if(D && has(AllSymbols, key)){
  657. if(!D.enumerable){
  658. if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));
  659. it[HIDDEN][key] = true;
  660. } else {
  661. if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
  662. D = _create(D, {enumerable: createDesc(0, false)});
  663. } return setSymbolDesc(it, key, D);
  664. } return setDesc(it, key, D);
  665. };
  666. var $defineProperties = function defineProperties(it, P){
  667. anObject(it);
  668. var keys = enumKeys(P = toIObject(P))
  669. , i = 0
  670. , l = keys.length
  671. , key;
  672. while(l > i)$defineProperty(it, key = keys[i++], P[key]);
  673. return it;
  674. };
  675. var $create = function create(it, P){
  676. return P === undefined ? _create(it) : $defineProperties(_create(it), P);
  677. };
  678. var $propertyIsEnumerable = function propertyIsEnumerable(key){
  679. var E = isEnum.call(this, key);
  680. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]
  681. ? E : true;
  682. };
  683. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
  684. var D = getDesc(it = toIObject(it), key);
  685. if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
  686. return D;
  687. };
  688. var $getOwnPropertyNames = function getOwnPropertyNames(it){
  689. var names = getNames(toIObject(it))
  690. , result = []
  691. , i = 0
  692. , key;
  693. while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);
  694. return result;
  695. };
  696. var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
  697. var names = getNames(toIObject(it))
  698. , result = []
  699. , i = 0
  700. , key;
  701. while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);
  702. return result;
  703. };
  704. var $stringify = function stringify(it){
  705. if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
  706. var args = [it]
  707. , i = 1
  708. , $$ = arguments
  709. , replacer, $replacer;
  710. while($$.length > i)args.push($$[i++]);
  711. replacer = args[1];
  712. if(typeof replacer == 'function')$replacer = replacer;
  713. if($replacer || !isArray(replacer))replacer = function(key, value){
  714. if($replacer)value = $replacer.call(this, key, value);
  715. if(!isSymbol(value))return value;
  716. };
  717. args[1] = replacer;
  718. return _stringify.apply($JSON, args);
  719. };
  720. var buggyJSON = $fails(function(){
  721. var S = $Symbol();
  722. // MS Edge converts symbol values to JSON as {}
  723. // WebKit converts symbol values to JSON as null
  724. // V8 throws on boxed symbols
  725. return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
  726. });
  727. // 19.4.1.1 Symbol([description])
  728. if(!useNative){
  729. $Symbol = function Symbol(){
  730. if(isSymbol(this))throw TypeError('Symbol is not a constructor');
  731. return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));
  732. };
  733. redefine($Symbol.prototype, 'toString', function toString(){
  734. return this._k;
  735. });
  736. isSymbol = function(it){
  737. return it instanceof $Symbol;
  738. };
  739. $.create = $create;
  740. $.isEnum = $propertyIsEnumerable;
  741. $.getDesc = $getOwnPropertyDescriptor;
  742. $.setDesc = $defineProperty;
  743. $.setDescs = $defineProperties;
  744. $.getNames = $names.get = $getOwnPropertyNames;
  745. $.getSymbols = $getOwnPropertySymbols;
  746. if(DESCRIPTORS && !__webpack_require__(40)){
  747. redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  748. }
  749. }
  750. var symbolStatics = {
  751. // 19.4.2.1 Symbol.for(key)
  752. 'for': function(key){
  753. return has(SymbolRegistry, key += '')
  754. ? SymbolRegistry[key]
  755. : SymbolRegistry[key] = $Symbol(key);
  756. },
  757. // 19.4.2.5 Symbol.keyFor(sym)
  758. keyFor: function keyFor(key){
  759. return keyOf(SymbolRegistry, key);
  760. },
  761. useSetter: function(){ setter = true; },
  762. useSimple: function(){ setter = false; }
  763. };
  764. // 19.4.2.2 Symbol.hasInstance
  765. // 19.4.2.3 Symbol.isConcatSpreadable
  766. // 19.4.2.4 Symbol.iterator
  767. // 19.4.2.6 Symbol.match
  768. // 19.4.2.8 Symbol.replace
  769. // 19.4.2.9 Symbol.search
  770. // 19.4.2.10 Symbol.species
  771. // 19.4.2.11 Symbol.split
  772. // 19.4.2.12 Symbol.toPrimitive
  773. // 19.4.2.13 Symbol.toStringTag
  774. // 19.4.2.14 Symbol.unscopables
  775. $.each.call((
  776. 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
  777. 'species,split,toPrimitive,toStringTag,unscopables'
  778. ).split(','), function(it){
  779. var sym = wks(it);
  780. symbolStatics[it] = useNative ? sym : wrap(sym);
  781. });
  782. setter = true;
  783. $export($export.G + $export.W, {Symbol: $Symbol});
  784. $export($export.S, 'Symbol', symbolStatics);
  785. $export($export.S + $export.F * !useNative, 'Object', {
  786. // 19.1.2.2 Object.create(O [, Properties])
  787. create: $create,
  788. // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  789. defineProperty: $defineProperty,
  790. // 19.1.2.3 Object.defineProperties(O, Properties)
  791. defineProperties: $defineProperties,
  792. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  793. getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  794. // 19.1.2.7 Object.getOwnPropertyNames(O)
  795. getOwnPropertyNames: $getOwnPropertyNames,
  796. // 19.1.2.8 Object.getOwnPropertySymbols(O)
  797. getOwnPropertySymbols: $getOwnPropertySymbols
  798. });
  799. // 24.3.2 JSON.stringify(value [, replacer [, space]])
  800. $JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});
  801. // 19.4.3.5 Symbol.prototype[@@toStringTag]
  802. setToStringTag($Symbol, 'Symbol');
  803. // 20.2.1.9 Math[@@toStringTag]
  804. setToStringTag(Math, 'Math', true);
  805. // 24.3.3 JSON[@@toStringTag]
  806. setToStringTag(global.JSON, 'JSON', true);
  807. /***/ }),
  808. /* 15 */
  809. /***/ (function(module, exports) {
  810. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  811. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  812. ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
  813. if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
  814. /***/ }),
  815. /* 16 */
  816. /***/ (function(module, exports) {
  817. var hasOwnProperty = {}.hasOwnProperty;
  818. module.exports = function(it, key){
  819. return hasOwnProperty.call(it, key);
  820. };
  821. /***/ }),
  822. /* 17 */
  823. /***/ (function(module, exports, __webpack_require__) {
  824. // Thank's IE8 for his funny defineProperty
  825. module.exports = !__webpack_require__(18)(function(){
  826. return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
  827. });
  828. /***/ }),
  829. /* 18 */
  830. /***/ (function(module, exports) {
  831. module.exports = function(exec){
  832. try {
  833. return !!exec();
  834. } catch(e){
  835. return true;
  836. }
  837. };
  838. /***/ }),
  839. /* 19 */
  840. /***/ (function(module, exports, __webpack_require__) {
  841. var global = __webpack_require__(15)
  842. , core = __webpack_require__(20)
  843. , ctx = __webpack_require__(21)
  844. , PROTOTYPE = 'prototype';
  845. var $export = function(type, name, source){
  846. var IS_FORCED = type & $export.F
  847. , IS_GLOBAL = type & $export.G
  848. , IS_STATIC = type & $export.S
  849. , IS_PROTO = type & $export.P
  850. , IS_BIND = type & $export.B
  851. , IS_WRAP = type & $export.W
  852. , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
  853. , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
  854. , key, own, out;
  855. if(IS_GLOBAL)source = name;
  856. for(key in source){
  857. // contains in native
  858. own = !IS_FORCED && target && key in target;
  859. if(own && key in exports)continue;
  860. // export native or passed
  861. out = own ? target[key] : source[key];
  862. // prevent global pollution for namespaces
  863. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  864. // bind timers to global for call from export context
  865. : IS_BIND && own ? ctx(out, global)
  866. // wrap global constructors for prevent change them in library
  867. : IS_WRAP && target[key] == out ? (function(C){
  868. var F = function(param){
  869. return this instanceof C ? new C(param) : C(param);
  870. };
  871. F[PROTOTYPE] = C[PROTOTYPE];
  872. return F;
  873. // make static versions for prototype methods
  874. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  875. if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;
  876. }
  877. };
  878. // type bitmap
  879. $export.F = 1; // forced
  880. $export.G = 2; // global
  881. $export.S = 4; // static
  882. $export.P = 8; // proto
  883. $export.B = 16; // bind
  884. $export.W = 32; // wrap
  885. module.exports = $export;
  886. /***/ }),
  887. /* 20 */
  888. /***/ (function(module, exports) {
  889. var core = module.exports = {version: '1.2.6'};
  890. if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
  891. /***/ }),
  892. /* 21 */
  893. /***/ (function(module, exports, __webpack_require__) {
  894. // optional / simple context binding
  895. var aFunction = __webpack_require__(22);
  896. module.exports = function(fn, that, length){
  897. aFunction(fn);
  898. if(that === undefined)return fn;
  899. switch(length){
  900. case 1: return function(a){
  901. return fn.call(that, a);
  902. };
  903. case 2: return function(a, b){
  904. return fn.call(that, a, b);
  905. };
  906. case 3: return function(a, b, c){
  907. return fn.call(that, a, b, c);
  908. };
  909. }
  910. return function(/* ...args */){
  911. return fn.apply(that, arguments);
  912. };
  913. };
  914. /***/ }),
  915. /* 22 */
  916. /***/ (function(module, exports) {
  917. module.exports = function(it){
  918. if(typeof it != 'function')throw TypeError(it + ' is not a function!');
  919. return it;
  920. };
  921. /***/ }),
  922. /* 23 */
  923. /***/ (function(module, exports, __webpack_require__) {
  924. module.exports = __webpack_require__(24);
  925. /***/ }),
  926. /* 24 */
  927. /***/ (function(module, exports, __webpack_require__) {
  928. var $ = __webpack_require__(8)
  929. , createDesc = __webpack_require__(25);
  930. module.exports = __webpack_require__(17) ? function(object, key, value){
  931. return $.setDesc(object, key, createDesc(1, value));
  932. } : function(object, key, value){
  933. object[key] = value;
  934. return object;
  935. };
  936. /***/ }),
  937. /* 25 */
  938. /***/ (function(module, exports) {
  939. module.exports = function(bitmap, value){
  940. return {
  941. enumerable : !(bitmap & 1),
  942. configurable: !(bitmap & 2),
  943. writable : !(bitmap & 4),
  944. value : value
  945. };
  946. };
  947. /***/ }),
  948. /* 26 */
  949. /***/ (function(module, exports, __webpack_require__) {
  950. var global = __webpack_require__(15)
  951. , SHARED = '__core-js_shared__'
  952. , store = global[SHARED] || (global[SHARED] = {});
  953. module.exports = function(key){
  954. return store[key] || (store[key] = {});
  955. };
  956. /***/ }),
  957. /* 27 */
  958. /***/ (function(module, exports, __webpack_require__) {
  959. var def = __webpack_require__(8).setDesc
  960. , has = __webpack_require__(16)
  961. , TAG = __webpack_require__(28)('toStringTag');
  962. module.exports = function(it, tag, stat){
  963. if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
  964. };
  965. /***/ }),
  966. /* 28 */
  967. /***/ (function(module, exports, __webpack_require__) {
  968. var store = __webpack_require__(26)('wks')
  969. , uid = __webpack_require__(29)
  970. , Symbol = __webpack_require__(15).Symbol;
  971. module.exports = function(name){
  972. return store[name] || (store[name] =
  973. Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));
  974. };
  975. /***/ }),
  976. /* 29 */
  977. /***/ (function(module, exports) {
  978. var id = 0
  979. , px = Math.random();
  980. module.exports = function(key){
  981. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  982. };
  983. /***/ }),
  984. /* 30 */
  985. /***/ (function(module, exports, __webpack_require__) {
  986. var $ = __webpack_require__(8)
  987. , toIObject = __webpack_require__(31);
  988. module.exports = function(object, el){
  989. var O = toIObject(object)
  990. , keys = $.getKeys(O)
  991. , length = keys.length
  992. , index = 0
  993. , key;
  994. while(length > index)if(O[key = keys[index++]] === el)return key;
  995. };
  996. /***/ }),
  997. /* 31 */
  998. /***/ (function(module, exports, __webpack_require__) {
  999. // to indexed object, toObject with fallback for non-array-like ES3 strings
  1000. var IObject = __webpack_require__(32)
  1001. , defined = __webpack_require__(34);
  1002. module.exports = function(it){
  1003. return IObject(defined(it));
  1004. };
  1005. /***/ }),
  1006. /* 32 */
  1007. /***/ (function(module, exports, __webpack_require__) {
  1008. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1009. var cof = __webpack_require__(33);
  1010. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
  1011. return cof(it) == 'String' ? it.split('') : Object(it);
  1012. };
  1013. /***/ }),
  1014. /* 33 */
  1015. /***/ (function(module, exports) {
  1016. var toString = {}.toString;
  1017. module.exports = function(it){
  1018. return toString.call(it).slice(8, -1);
  1019. };
  1020. /***/ }),
  1021. /* 34 */
  1022. /***/ (function(module, exports) {
  1023. // 7.2.1 RequireObjectCoercible(argument)
  1024. module.exports = function(it){
  1025. if(it == undefined)throw TypeError("Can't call method on " + it);
  1026. return it;
  1027. };
  1028. /***/ }),
  1029. /* 35 */
  1030. /***/ (function(module, exports, __webpack_require__) {
  1031. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  1032. var toIObject = __webpack_require__(31)
  1033. , getNames = __webpack_require__(8).getNames
  1034. , toString = {}.toString;
  1035. var windowNames = typeof window == 'object' && Object.getOwnPropertyNames
  1036. ? Object.getOwnPropertyNames(window) : [];
  1037. var getWindowNames = function(it){
  1038. try {
  1039. return getNames(it);
  1040. } catch(e){
  1041. return windowNames.slice();
  1042. }
  1043. };
  1044. module.exports.get = function getOwnPropertyNames(it){
  1045. if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);
  1046. return getNames(toIObject(it));
  1047. };
  1048. /***/ }),
  1049. /* 36 */
  1050. /***/ (function(module, exports, __webpack_require__) {
  1051. // all enumerable object keys, includes symbols
  1052. var $ = __webpack_require__(8);
  1053. module.exports = function(it){
  1054. var keys = $.getKeys(it)
  1055. , getSymbols = $.getSymbols;
  1056. if(getSymbols){
  1057. var symbols = getSymbols(it)
  1058. , isEnum = $.isEnum
  1059. , i = 0
  1060. , key;
  1061. while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);
  1062. }
  1063. return keys;
  1064. };
  1065. /***/ }),
  1066. /* 37 */
  1067. /***/ (function(module, exports, __webpack_require__) {
  1068. // 7.2.2 IsArray(argument)
  1069. var cof = __webpack_require__(33);
  1070. module.exports = Array.isArray || function(arg){
  1071. return cof(arg) == 'Array';
  1072. };
  1073. /***/ }),
  1074. /* 38 */
  1075. /***/ (function(module, exports, __webpack_require__) {
  1076. var isObject = __webpack_require__(39);
  1077. module.exports = function(it){
  1078. if(!isObject(it))throw TypeError(it + ' is not an object!');
  1079. return it;
  1080. };
  1081. /***/ }),
  1082. /* 39 */
  1083. /***/ (function(module, exports) {
  1084. module.exports = function(it){
  1085. return typeof it === 'object' ? it !== null : typeof it === 'function';
  1086. };
  1087. /***/ }),
  1088. /* 40 */
  1089. /***/ (function(module, exports) {
  1090. module.exports = true;
  1091. /***/ }),
  1092. /* 41 */
  1093. /***/ (function(module, exports) {
  1094. /***/ }),
  1095. /* 42 */
  1096. /***/ (function(module, exports, __webpack_require__) {
  1097. module.exports = { "default": __webpack_require__(43), __esModule: true };
  1098. /***/ }),
  1099. /* 43 */
  1100. /***/ (function(module, exports, __webpack_require__) {
  1101. __webpack_require__(44);
  1102. __webpack_require__(50);
  1103. module.exports = __webpack_require__(28)('iterator');
  1104. /***/ }),
  1105. /* 44 */
  1106. /***/ (function(module, exports, __webpack_require__) {
  1107. 'use strict';
  1108. var $at = __webpack_require__(45)(true);
  1109. // 21.1.3.27 String.prototype[@@iterator]()
  1110. __webpack_require__(47)(String, 'String', function(iterated){
  1111. this._t = String(iterated); // target
  1112. this._i = 0; // next index
  1113. // 21.1.5.2.1 %StringIteratorPrototype%.next()
  1114. }, function(){
  1115. var O = this._t
  1116. , index = this._i
  1117. , point;
  1118. if(index >= O.length)return {value: undefined, done: true};
  1119. point = $at(O, index);
  1120. this._i += point.length;
  1121. return {value: point, done: false};
  1122. });
  1123. /***/ }),
  1124. /* 45 */
  1125. /***/ (function(module, exports, __webpack_require__) {
  1126. var toInteger = __webpack_require__(46)
  1127. , defined = __webpack_require__(34);
  1128. // true -> String#at
  1129. // false -> String#codePointAt
  1130. module.exports = function(TO_STRING){
  1131. return function(that, pos){
  1132. var s = String(defined(that))
  1133. , i = toInteger(pos)
  1134. , l = s.length
  1135. , a, b;
  1136. if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
  1137. a = s.charCodeAt(i);
  1138. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
  1139. ? TO_STRING ? s.charAt(i) : a
  1140. : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  1141. };
  1142. };
  1143. /***/ }),
  1144. /* 46 */
  1145. /***/ (function(module, exports) {
  1146. // 7.1.4 ToInteger
  1147. var ceil = Math.ceil
  1148. , floor = Math.floor;
  1149. module.exports = function(it){
  1150. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1151. };
  1152. /***/ }),
  1153. /* 47 */
  1154. /***/ (function(module, exports, __webpack_require__) {
  1155. 'use strict';
  1156. var LIBRARY = __webpack_require__(40)
  1157. , $export = __webpack_require__(19)
  1158. , redefine = __webpack_require__(23)
  1159. , hide = __webpack_require__(24)
  1160. , has = __webpack_require__(16)
  1161. , Iterators = __webpack_require__(48)
  1162. , $iterCreate = __webpack_require__(49)
  1163. , setToStringTag = __webpack_require__(27)
  1164. , getProto = __webpack_require__(8).getProto
  1165. , ITERATOR = __webpack_require__(28)('iterator')
  1166. , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
  1167. , FF_ITERATOR = '@@iterator'
  1168. , KEYS = 'keys'
  1169. , VALUES = 'values';
  1170. var returnThis = function(){ return this; };
  1171. module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
  1172. $iterCreate(Constructor, NAME, next);
  1173. var getMethod = function(kind){
  1174. if(!BUGGY && kind in proto)return proto[kind];
  1175. switch(kind){
  1176. case KEYS: return function keys(){ return new Constructor(this, kind); };
  1177. case VALUES: return function values(){ return new Constructor(this, kind); };
  1178. } return function entries(){ return new Constructor(this, kind); };
  1179. };
  1180. var TAG = NAME + ' Iterator'
  1181. , DEF_VALUES = DEFAULT == VALUES
  1182. , VALUES_BUG = false
  1183. , proto = Base.prototype
  1184. , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
  1185. , $default = $native || getMethod(DEFAULT)
  1186. , methods, key;
  1187. // Fix native
  1188. if($native){
  1189. var IteratorPrototype = getProto($default.call(new Base));
  1190. // Set @@toStringTag to native iterators
  1191. setToStringTag(IteratorPrototype, TAG, true);
  1192. // FF fix
  1193. if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
  1194. // fix Array#{values, @@iterator}.name in V8 / FF
  1195. if(DEF_VALUES && $native.name !== VALUES){
  1196. VALUES_BUG = true;
  1197. $default = function values(){ return $native.call(this); };
  1198. }
  1199. }
  1200. // Define iterator
  1201. if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
  1202. hide(proto, ITERATOR, $default);
  1203. }
  1204. // Plug for library
  1205. Iterators[NAME] = $default;
  1206. Iterators[TAG] = returnThis;
  1207. if(DEFAULT){
  1208. methods = {
  1209. values: DEF_VALUES ? $default : getMethod(VALUES),
  1210. keys: IS_SET ? $default : getMethod(KEYS),
  1211. entries: !DEF_VALUES ? $default : getMethod('entries')
  1212. };
  1213. if(FORCED)for(key in methods){
  1214. if(!(key in proto))redefine(proto, key, methods[key]);
  1215. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  1216. }
  1217. return methods;
  1218. };
  1219. /***/ }),
  1220. /* 48 */
  1221. /***/ (function(module, exports) {
  1222. module.exports = {};
  1223. /***/ }),
  1224. /* 49 */
  1225. /***/ (function(module, exports, __webpack_require__) {
  1226. 'use strict';
  1227. var $ = __webpack_require__(8)
  1228. , descriptor = __webpack_require__(25)
  1229. , setToStringTag = __webpack_require__(27)
  1230. , IteratorPrototype = {};
  1231. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1232. __webpack_require__(24)(IteratorPrototype, __webpack_require__(28)('iterator'), function(){ return this; });
  1233. module.exports = function(Constructor, NAME, next){
  1234. Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});
  1235. setToStringTag(Constructor, NAME + ' Iterator');
  1236. };
  1237. /***/ }),
  1238. /* 50 */
  1239. /***/ (function(module, exports, __webpack_require__) {
  1240. __webpack_require__(51);
  1241. var Iterators = __webpack_require__(48);
  1242. Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;
  1243. /***/ }),
  1244. /* 51 */
  1245. /***/ (function(module, exports, __webpack_require__) {
  1246. 'use strict';
  1247. var addToUnscopables = __webpack_require__(52)
  1248. , step = __webpack_require__(53)
  1249. , Iterators = __webpack_require__(48)
  1250. , toIObject = __webpack_require__(31);
  1251. // 22.1.3.4 Array.prototype.entries()
  1252. // 22.1.3.13 Array.prototype.keys()
  1253. // 22.1.3.29 Array.prototype.values()
  1254. // 22.1.3.30 Array.prototype[@@iterator]()
  1255. module.exports = __webpack_require__(47)(Array, 'Array', function(iterated, kind){
  1256. this._t = toIObject(iterated); // target
  1257. this._i = 0; // next index
  1258. this._k = kind; // kind
  1259. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  1260. }, function(){
  1261. var O = this._t
  1262. , kind = this._k
  1263. , index = this._i++;
  1264. if(!O || index >= O.length){
  1265. this._t = undefined;
  1266. return step(1);
  1267. }
  1268. if(kind == 'keys' )return step(0, index);
  1269. if(kind == 'values')return step(0, O[index]);
  1270. return step(0, [index, O[index]]);
  1271. }, 'values');
  1272. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  1273. Iterators.Arguments = Iterators.Array;
  1274. addToUnscopables('keys');
  1275. addToUnscopables('values');
  1276. addToUnscopables('entries');
  1277. /***/ }),
  1278. /* 52 */
  1279. /***/ (function(module, exports) {
  1280. module.exports = function(){ /* empty */ };
  1281. /***/ }),
  1282. /* 53 */
  1283. /***/ (function(module, exports) {
  1284. module.exports = function(done, value){
  1285. return {value: value, done: !!done};
  1286. };
  1287. /***/ }),
  1288. /* 54 */
  1289. /***/ (function(module, exports, __webpack_require__) {
  1290. module.exports = { "default": __webpack_require__(55), __esModule: true };
  1291. /***/ }),
  1292. /* 55 */
  1293. /***/ (function(module, exports, __webpack_require__) {
  1294. __webpack_require__(50);
  1295. __webpack_require__(44);
  1296. module.exports = __webpack_require__(56);
  1297. /***/ }),
  1298. /* 56 */
  1299. /***/ (function(module, exports, __webpack_require__) {
  1300. var anObject = __webpack_require__(38)
  1301. , get = __webpack_require__(57);
  1302. module.exports = __webpack_require__(20).getIterator = function(it){
  1303. var iterFn = get(it);
  1304. if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');
  1305. return anObject(iterFn.call(it));
  1306. };
  1307. /***/ }),
  1308. /* 57 */
  1309. /***/ (function(module, exports, __webpack_require__) {
  1310. var classof = __webpack_require__(58)
  1311. , ITERATOR = __webpack_require__(28)('iterator')
  1312. , Iterators = __webpack_require__(48);
  1313. module.exports = __webpack_require__(20).getIteratorMethod = function(it){
  1314. if(it != undefined)return it[ITERATOR]
  1315. || it['@@iterator']
  1316. || Iterators[classof(it)];
  1317. };
  1318. /***/ }),
  1319. /* 58 */
  1320. /***/ (function(module, exports, __webpack_require__) {
  1321. // getting tag from 19.1.3.6 Object.prototype.toString()
  1322. var cof = __webpack_require__(33)
  1323. , TAG = __webpack_require__(28)('toStringTag')
  1324. // ES3 wrong here
  1325. , ARG = cof(function(){ return arguments; }()) == 'Arguments';
  1326. module.exports = function(it){
  1327. var O, T, B;
  1328. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1329. // @@toStringTag case
  1330. : typeof (T = (O = Object(it))[TAG]) == 'string' ? T
  1331. // builtinTag case
  1332. : ARG ? cof(O)
  1333. // ES3 arguments fallback
  1334. : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  1335. };
  1336. /***/ }),
  1337. /* 59 */
  1338. /***/ (function(module, exports, __webpack_require__) {
  1339. module.exports = { "default": __webpack_require__(60), __esModule: true };
  1340. /***/ }),
  1341. /* 60 */
  1342. /***/ (function(module, exports, __webpack_require__) {
  1343. __webpack_require__(61);
  1344. module.exports = __webpack_require__(20).Object.keys;
  1345. /***/ }),
  1346. /* 61 */
  1347. /***/ (function(module, exports, __webpack_require__) {
  1348. // 19.1.2.14 Object.keys(O)
  1349. var toObject = __webpack_require__(62);
  1350. __webpack_require__(63)('keys', function($keys){
  1351. return function keys(it){
  1352. return $keys(toObject(it));
  1353. };
  1354. });
  1355. /***/ }),
  1356. /* 62 */
  1357. /***/ (function(module, exports, __webpack_require__) {
  1358. // 7.1.13 ToObject(argument)
  1359. var defined = __webpack_require__(34);
  1360. module.exports = function(it){
  1361. return Object(defined(it));
  1362. };
  1363. /***/ }),
  1364. /* 63 */
  1365. /***/ (function(module, exports, __webpack_require__) {
  1366. // most Object methods by ES6 should accept primitives
  1367. var $export = __webpack_require__(19)
  1368. , core = __webpack_require__(20)
  1369. , fails = __webpack_require__(18);
  1370. module.exports = function(KEY, exec){
  1371. var fn = (core.Object || {})[KEY] || Object[KEY]
  1372. , exp = {};
  1373. exp[KEY] = exec(fn);
  1374. $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
  1375. };
  1376. /***/ }),
  1377. /* 64 */
  1378. /***/ (function(module, exports, __webpack_require__) {
  1379. 'use strict';
  1380. var _interopRequireDefault = __webpack_require__(2)['default'];
  1381. exports.__esModule = true;
  1382. var _exception = __webpack_require__(5);
  1383. var _exception2 = _interopRequireDefault(_exception);
  1384. exports['default'] = function (instance) {
  1385. instance.registerHelper('helperMissing', function () /* [args, ]options */{
  1386. if (arguments.length === 1) {
  1387. // A missing field in a {{foo}} construct.
  1388. return undefined;
  1389. } else {
  1390. // Someone is actually trying to call something, blow up.
  1391. throw new _exception2['default']('Missing helper: "' + arguments[arguments.length - 1].name + '"');
  1392. }
  1393. });
  1394. };
  1395. module.exports = exports['default'];
  1396. /***/ }),
  1397. /* 65 */
  1398. /***/ (function(module, exports, __webpack_require__) {
  1399. 'use strict';
  1400. var _interopRequireDefault = __webpack_require__(2)['default'];
  1401. exports.__esModule = true;
  1402. var _utils = __webpack_require__(4);
  1403. var _exception = __webpack_require__(5);
  1404. var _exception2 = _interopRequireDefault(_exception);
  1405. exports['default'] = function (instance) {
  1406. instance.registerHelper('if', function (conditional, options) {
  1407. if (arguments.length != 2) {
  1408. throw new _exception2['default']('#if requires exactly one argument');
  1409. }
  1410. if (_utils.isFunction(conditional)) {
  1411. conditional = conditional.call(this);
  1412. }
  1413. // Default behavior is to render the positive path if the value is truthy and not empty.
  1414. // The `includeZero` option may be set to treat the condtional as purely not empty based on the
  1415. // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.
  1416. if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {
  1417. return options.inverse(this);
  1418. } else {
  1419. return options.fn(this);
  1420. }
  1421. });
  1422. instance.registerHelper('unless', function (conditional, options) {
  1423. if (arguments.length != 2) {
  1424. throw new _exception2['default']('#unless requires exactly one argument');
  1425. }
  1426. return instance.helpers['if'].call(this, conditional, {
  1427. fn: options.inverse,
  1428. inverse: options.fn,
  1429. hash: options.hash
  1430. });
  1431. });
  1432. };
  1433. module.exports = exports['default'];
  1434. /***/ }),
  1435. /* 66 */
  1436. /***/ (function(module, exports) {
  1437. 'use strict';
  1438. exports.__esModule = true;
  1439. exports['default'] = function (instance) {
  1440. instance.registerHelper('log', function () /* message, options */{
  1441. var args = [undefined],
  1442. options = arguments[arguments.length - 1];
  1443. for (var i = 0; i < arguments.length - 1; i++) {
  1444. args.push(arguments[i]);
  1445. }
  1446. var level = 1;
  1447. if (options.hash.level != null) {
  1448. level = options.hash.level;
  1449. } else if (options.data && options.data.level != null) {
  1450. level = options.data.level;
  1451. }
  1452. args[0] = level;
  1453. instance.log.apply(instance, args);
  1454. });
  1455. };
  1456. module.exports = exports['default'];
  1457. /***/ }),
  1458. /* 67 */
  1459. /***/ (function(module, exports) {
  1460. 'use strict';
  1461. exports.__esModule = true;
  1462. exports['default'] = function (instance) {
  1463. instance.registerHelper('lookup', function (obj, field, options) {
  1464. if (!obj) {
  1465. // Note for 5.0: Change to "obj == null" in 5.0
  1466. return obj;
  1467. }
  1468. return options.lookupProperty(obj, field);
  1469. });
  1470. };
  1471. module.exports = exports['default'];
  1472. /***/ }),
  1473. /* 68 */
  1474. /***/ (function(module, exports, __webpack_require__) {
  1475. 'use strict';
  1476. var _interopRequireDefault = __webpack_require__(2)['default'];
  1477. exports.__esModule = true;
  1478. var _utils = __webpack_require__(4);
  1479. var _exception = __webpack_require__(5);
  1480. var _exception2 = _interopRequireDefault(_exception);
  1481. exports['default'] = function (instance) {
  1482. instance.registerHelper('with', function (context, options) {
  1483. if (arguments.length != 2) {
  1484. throw new _exception2['default']('#with requires exactly one argument');
  1485. }
  1486. if (_utils.isFunction(context)) {
  1487. context = context.call(this);
  1488. }
  1489. var fn = options.fn;
  1490. if (!_utils.isEmpty(context)) {
  1491. var data = options.data;
  1492. if (options.data && options.ids) {
  1493. data = _utils.createFrame(options.data);
  1494. data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);
  1495. }
  1496. return fn(context, {
  1497. data: data,
  1498. blockParams: _utils.blockParams([context], [data && data.contextPath])
  1499. });
  1500. } else {
  1501. return options.inverse(this);
  1502. }
  1503. });
  1504. };
  1505. module.exports = exports['default'];
  1506. /***/ }),
  1507. /* 69 */
  1508. /***/ (function(module, exports, __webpack_require__) {
  1509. 'use strict';
  1510. var _interopRequireDefault = __webpack_require__(2)['default'];
  1511. exports.__esModule = true;
  1512. exports.registerDefaultDecorators = registerDefaultDecorators;
  1513. var _decoratorsInline = __webpack_require__(70);
  1514. var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);
  1515. function registerDefaultDecorators(instance) {
  1516. _decoratorsInline2['default'](instance);
  1517. }
  1518. /***/ }),
  1519. /* 70 */
  1520. /***/ (function(module, exports, __webpack_require__) {
  1521. 'use strict';
  1522. exports.__esModule = true;
  1523. var _utils = __webpack_require__(4);
  1524. exports['default'] = function (instance) {
  1525. instance.registerDecorator('inline', function (fn, props, container, options) {
  1526. var ret = fn;
  1527. if (!props.partials) {
  1528. props.partials = {};
  1529. ret = function (context, options) {
  1530. // Create a new partials stack frame prior to exec.
  1531. var original = container.partials;
  1532. container.partials = _utils.extend({}, original, props.partials);
  1533. var ret = fn(context, options);
  1534. container.partials = original;
  1535. return ret;
  1536. };
  1537. }
  1538. props.partials[options.args[0]] = options.fn;
  1539. return ret;
  1540. });
  1541. };
  1542. module.exports = exports['default'];
  1543. /***/ }),
  1544. /* 71 */
  1545. /***/ (function(module, exports, __webpack_require__) {
  1546. 'use strict';
  1547. exports.__esModule = true;
  1548. var _utils = __webpack_require__(4);
  1549. var logger = {
  1550. methodMap: ['debug', 'info', 'warn', 'error'],
  1551. level: 'info',
  1552. // Maps a given level value to the `methodMap` indexes above.
  1553. lookupLevel: function lookupLevel(level) {
  1554. if (typeof level === 'string') {
  1555. var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());
  1556. if (levelMap >= 0) {
  1557. level = levelMap;
  1558. } else {
  1559. level = parseInt(level, 10);
  1560. }
  1561. }
  1562. return level;
  1563. },
  1564. // Can be overridden in the host environment
  1565. log: function log(level) {
  1566. level = logger.lookupLevel(level);
  1567. if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {
  1568. var method = logger.methodMap[level];
  1569. // eslint-disable-next-line no-console
  1570. if (!console[method]) {
  1571. method = 'log';
  1572. }
  1573. for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  1574. message[_key - 1] = arguments[_key];
  1575. }
  1576. console[method].apply(console, message); // eslint-disable-line no-console
  1577. }
  1578. }
  1579. };
  1580. exports['default'] = logger;
  1581. module.exports = exports['default'];
  1582. /***/ }),
  1583. /* 72 */
  1584. /***/ (function(module, exports, __webpack_require__) {
  1585. 'use strict';
  1586. var _Object$create = __webpack_require__(73)['default'];
  1587. var _Object$keys = __webpack_require__(59)['default'];
  1588. var _interopRequireDefault = __webpack_require__(2)['default'];
  1589. exports.__esModule = true;
  1590. exports.createProtoAccessControl = createProtoAccessControl;
  1591. exports.resultIsAllowed = resultIsAllowed;
  1592. exports.resetLoggedProperties = resetLoggedProperties;
  1593. var _createNewLookupObject = __webpack_require__(75);
  1594. var _logger = __webpack_require__(71);
  1595. var _logger2 = _interopRequireDefault(_logger);
  1596. var loggedProperties = _Object$create(null);
  1597. function createProtoAccessControl(runtimeOptions) {
  1598. var defaultMethodWhiteList = _Object$create(null);
  1599. defaultMethodWhiteList['constructor'] = false;
  1600. defaultMethodWhiteList['__defineGetter__'] = false;
  1601. defaultMethodWhiteList['__defineSetter__'] = false;
  1602. defaultMethodWhiteList['__lookupGetter__'] = false;
  1603. var defaultPropertyWhiteList = _Object$create(null);
  1604. // eslint-disable-next-line no-proto
  1605. defaultPropertyWhiteList['__proto__'] = false;
  1606. return {
  1607. properties: {
  1608. whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
  1609. defaultValue: runtimeOptions.allowProtoPropertiesByDefault
  1610. },
  1611. methods: {
  1612. whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
  1613. defaultValue: runtimeOptions.allowProtoMethodsByDefault
  1614. }
  1615. };
  1616. }
  1617. function resultIsAllowed(result, protoAccessControl, propertyName) {
  1618. if (typeof result === 'function') {
  1619. return checkWhiteList(protoAccessControl.methods, propertyName);
  1620. } else {
  1621. return checkWhiteList(protoAccessControl.properties, propertyName);
  1622. }
  1623. }
  1624. function checkWhiteList(protoAccessControlForType, propertyName) {
  1625. if (protoAccessControlForType.whitelist[propertyName] !== undefined) {
  1626. return protoAccessControlForType.whitelist[propertyName] === true;
  1627. }
  1628. if (protoAccessControlForType.defaultValue !== undefined) {
  1629. return protoAccessControlForType.defaultValue;
  1630. }
  1631. logUnexpecedPropertyAccessOnce(propertyName);
  1632. return false;
  1633. }
  1634. function logUnexpecedPropertyAccessOnce(propertyName) {
  1635. if (loggedProperties[propertyName] !== true) {
  1636. loggedProperties[propertyName] = true;
  1637. _logger2['default'].log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');
  1638. }
  1639. }
  1640. function resetLoggedProperties() {
  1641. _Object$keys(loggedProperties).forEach(function (propertyName) {
  1642. delete loggedProperties[propertyName];
  1643. });
  1644. }
  1645. /***/ }),
  1646. /* 73 */
  1647. /***/ (function(module, exports, __webpack_require__) {
  1648. module.exports = { "default": __webpack_require__(74), __esModule: true };
  1649. /***/ }),
  1650. /* 74 */
  1651. /***/ (function(module, exports, __webpack_require__) {
  1652. var $ = __webpack_require__(8);
  1653. module.exports = function create(P, D){
  1654. return $.create(P, D);
  1655. };
  1656. /***/ }),
  1657. /* 75 */
  1658. /***/ (function(module, exports, __webpack_require__) {
  1659. 'use strict';
  1660. var _Object$create = __webpack_require__(73)['default'];
  1661. exports.__esModule = true;
  1662. exports.createNewLookupObject = createNewLookupObject;
  1663. var _utils = __webpack_require__(4);
  1664. /**
  1665. * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
  1666. * The resulting object can be used with "object[property]" to check if a property exists
  1667. * @param {...object} sources a varargs parameter of source objects that will be merged
  1668. * @returns {object}
  1669. */
  1670. function createNewLookupObject() {
  1671. for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
  1672. sources[_key] = arguments[_key];
  1673. }
  1674. return _utils.extend.apply(undefined, [_Object$create(null)].concat(sources));
  1675. }
  1676. /***/ }),
  1677. /* 76 */
  1678. /***/ (function(module, exports) {
  1679. // Build out our basic SafeString type
  1680. 'use strict';
  1681. exports.__esModule = true;
  1682. function SafeString(string) {
  1683. this.string = string;
  1684. }
  1685. SafeString.prototype.toString = SafeString.prototype.toHTML = function () {
  1686. return '' + this.string;
  1687. };
  1688. exports['default'] = SafeString;
  1689. module.exports = exports['default'];
  1690. /***/ }),
  1691. /* 77 */
  1692. /***/ (function(module, exports, __webpack_require__) {
  1693. 'use strict';
  1694. var _Object$seal = __webpack_require__(78)['default'];
  1695. var _Object$keys = __webpack_require__(59)['default'];
  1696. var _interopRequireWildcard = __webpack_require__(1)['default'];
  1697. var _interopRequireDefault = __webpack_require__(2)['default'];
  1698. exports.__esModule = true;
  1699. exports.checkRevision = checkRevision;
  1700. exports.template = template;
  1701. exports.wrapProgram = wrapProgram;
  1702. exports.resolvePartial = resolvePartial;
  1703. exports.invokePartial = invokePartial;
  1704. exports.noop = noop;
  1705. var _utils = __webpack_require__(4);
  1706. var Utils = _interopRequireWildcard(_utils);
  1707. var _exception = __webpack_require__(5);
  1708. var _exception2 = _interopRequireDefault(_exception);
  1709. var _base = __webpack_require__(3);
  1710. var _helpers = __webpack_require__(9);
  1711. var _internalWrapHelper = __webpack_require__(81);
  1712. var _internalProtoAccess = __webpack_require__(72);
  1713. function checkRevision(compilerInfo) {
  1714. var compilerRevision = compilerInfo && compilerInfo[0] || 1,
  1715. currentRevision = _base.COMPILER_REVISION;
  1716. if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {
  1717. return;
  1718. }
  1719. if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {
  1720. var runtimeVersions = _base.REVISION_CHANGES[currentRevision],
  1721. compilerVersions = _base.REVISION_CHANGES[compilerRevision];
  1722. throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');
  1723. } else {
  1724. // Use the embedded version info since the runtime doesn't know about this revision yet
  1725. throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');
  1726. }
  1727. }
  1728. function template(templateSpec, env) {
  1729. /* istanbul ignore next */
  1730. if (!env) {
  1731. throw new _exception2['default']('No environment passed to template');
  1732. }
  1733. if (!templateSpec || !templateSpec.main) {
  1734. throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);
  1735. }
  1736. templateSpec.main.decorator = templateSpec.main_d;
  1737. // Note: Using env.VM references rather than local var references throughout this section to allow
  1738. // for external users to override these as pseudo-supported APIs.
  1739. env.VM.checkRevision(templateSpec.compiler);
  1740. // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)
  1741. var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
  1742. function invokePartialWrapper(partial, context, options) {
  1743. if (options.hash) {
  1744. context = Utils.extend({}, context, options.hash);
  1745. if (options.ids) {
  1746. options.ids[0] = true;
  1747. }
  1748. }
  1749. partial = env.VM.resolvePartial.call(this, partial, context, options);
  1750. var extendedOptions = Utils.extend({}, options, {
  1751. hooks: this.hooks,
  1752. protoAccessControl: this.protoAccessControl
  1753. });
  1754. var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
  1755. if (result == null && env.compile) {
  1756. options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
  1757. result = options.partials[options.name](context, extendedOptions);
  1758. }
  1759. if (result != null) {
  1760. if (options.indent) {
  1761. var lines = result.split('\n');
  1762. for (var i = 0, l = lines.length; i < l; i++) {
  1763. if (!lines[i] && i + 1 === l) {
  1764. break;
  1765. }
  1766. lines[i] = options.indent + lines[i];
  1767. }
  1768. result = lines.join('\n');
  1769. }
  1770. return result;
  1771. } else {
  1772. throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');
  1773. }
  1774. }
  1775. // Just add water
  1776. var container = {
  1777. strict: function strict(obj, name, loc) {
  1778. if (!obj || !(name in obj)) {
  1779. throw new _exception2['default']('"' + name + '" not defined in ' + obj, {
  1780. loc: loc
  1781. });
  1782. }
  1783. return container.lookupProperty(obj, name);
  1784. },
  1785. lookupProperty: function lookupProperty(parent, propertyName) {
  1786. var result = parent[propertyName];
  1787. if (result == null) {
  1788. return result;
  1789. }
  1790. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  1791. return result;
  1792. }
  1793. if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {
  1794. return result;
  1795. }
  1796. return undefined;
  1797. },
  1798. lookup: function lookup(depths, name) {
  1799. var len = depths.length;
  1800. for (var i = 0; i < len; i++) {
  1801. var result = depths[i] && container.lookupProperty(depths[i], name);
  1802. if (result != null) {
  1803. return depths[i][name];
  1804. }
  1805. }
  1806. },
  1807. lambda: function lambda(current, context) {
  1808. return typeof current === 'function' ? current.call(context) : current;
  1809. },
  1810. escapeExpression: Utils.escapeExpression,
  1811. invokePartial: invokePartialWrapper,
  1812. fn: function fn(i) {
  1813. var ret = templateSpec[i];
  1814. ret.decorator = templateSpec[i + '_d'];
  1815. return ret;
  1816. },
  1817. programs: [],
  1818. program: function program(i, data, declaredBlockParams, blockParams, depths) {
  1819. var programWrapper = this.programs[i],
  1820. fn = this.fn(i);
  1821. if (data || depths || blockParams || declaredBlockParams) {
  1822. programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);
  1823. } else if (!programWrapper) {
  1824. programWrapper = this.programs[i] = wrapProgram(this, i, fn);
  1825. }
  1826. return programWrapper;
  1827. },
  1828. data: function data(value, depth) {
  1829. while (value && depth--) {
  1830. value = value._parent;
  1831. }
  1832. return value;
  1833. },
  1834. mergeIfNeeded: function mergeIfNeeded(param, common) {
  1835. var obj = param || common;
  1836. if (param && common && param !== common) {
  1837. obj = Utils.extend({}, common, param);
  1838. }
  1839. return obj;
  1840. },
  1841. // An empty object to use as replacement for null-contexts
  1842. nullContext: _Object$seal({}),
  1843. noop: env.VM.noop,
  1844. compilerInfo: templateSpec.compiler
  1845. };
  1846. function ret(context) {
  1847. var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  1848. var data = options.data;
  1849. ret._setup(options);
  1850. if (!options.partial && templateSpec.useData) {
  1851. data = initData(context, data);
  1852. }
  1853. var depths = undefined,
  1854. blockParams = templateSpec.useBlockParams ? [] : undefined;
  1855. if (templateSpec.useDepths) {
  1856. if (options.depths) {
  1857. depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;
  1858. } else {
  1859. depths = [context];
  1860. }
  1861. }
  1862. function main(context /*, options*/) {
  1863. return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);
  1864. }
  1865. main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
  1866. return main(context, options);
  1867. }
  1868. ret.isTop = true;
  1869. ret._setup = function (options) {
  1870. if (!options.partial) {
  1871. var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
  1872. wrapHelpersToPassLookupProperty(mergedHelpers, container);
  1873. container.helpers = mergedHelpers;
  1874. if (templateSpec.usePartial) {
  1875. // Use mergeIfNeeded here to prevent compiling global partials multiple times
  1876. container.partials = container.mergeIfNeeded(options.partials, env.partials);
  1877. }
  1878. if (templateSpec.usePartial || templateSpec.useDecorators) {
  1879. container.decorators = Utils.extend({}, env.decorators, options.decorators);
  1880. }
  1881. container.hooks = {};
  1882. container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
  1883. var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;
  1884. _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);
  1885. _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);
  1886. } else {
  1887. container.protoAccessControl = options.protoAccessControl; // internal option
  1888. container.helpers = options.helpers;
  1889. container.partials = options.partials;
  1890. container.decorators = options.decorators;
  1891. container.hooks = options.hooks;
  1892. }
  1893. };
  1894. ret._child = function (i, data, blockParams, depths) {
  1895. if (templateSpec.useBlockParams && !blockParams) {
  1896. throw new _exception2['default']('must pass block params');
  1897. }
  1898. if (templateSpec.useDepths && !depths) {
  1899. throw new _exception2['default']('must pass parent depths');
  1900. }
  1901. return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);
  1902. };
  1903. return ret;
  1904. }
  1905. function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {
  1906. function prog(context) {
  1907. var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  1908. var currentDepths = depths;
  1909. if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {
  1910. currentDepths = [context].concat(depths);
  1911. }
  1912. return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);
  1913. }
  1914. prog = executeDecorators(fn, prog, container, depths, data, blockParams);
  1915. prog.program = i;
  1916. prog.depth = depths ? depths.length : 0;
  1917. prog.blockParams = declaredBlockParams || 0;
  1918. return prog;
  1919. }
  1920. /**
  1921. * This is currently part of the official API, therefore implementation details should not be changed.
  1922. */
  1923. function resolvePartial(partial, context, options) {
  1924. if (!partial) {
  1925. if (options.name === '@partial-block') {
  1926. partial = options.data['partial-block'];
  1927. } else {
  1928. partial = options.partials[options.name];
  1929. }
  1930. } else if (!partial.call && !options.name) {
  1931. // This is a dynamic partial that returned a string
  1932. options.name = partial;
  1933. partial = options.partials[partial];
  1934. }
  1935. return partial;
  1936. }
  1937. function invokePartial(partial, context, options) {
  1938. // Use the current closure context to save the partial-block if this partial
  1939. var currentPartialBlock = options.data && options.data['partial-block'];
  1940. options.partial = true;
  1941. if (options.ids) {
  1942. options.data.contextPath = options.ids[0] || options.data.contextPath;
  1943. }
  1944. var partialBlock = undefined;
  1945. if (options.fn && options.fn !== noop) {
  1946. (function () {
  1947. options.data = _base.createFrame(options.data);
  1948. // Wrapper function to get access to currentPartialBlock from the closure
  1949. var fn = options.fn;
  1950. partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {
  1951. var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  1952. // Restore the partial-block from the closure for the execution of the block
  1953. // i.e. the part inside the block of the partial call.
  1954. options.data = _base.createFrame(options.data);
  1955. options.data['partial-block'] = currentPartialBlock;
  1956. return fn(context, options);
  1957. };
  1958. if (fn.partials) {
  1959. options.partials = Utils.extend({}, options.partials, fn.partials);
  1960. }
  1961. })();
  1962. }
  1963. if (partial === undefined && partialBlock) {
  1964. partial = partialBlock;
  1965. }
  1966. if (partial === undefined) {
  1967. throw new _exception2['default']('The partial ' + options.name + ' could not be found');
  1968. } else if (partial instanceof Function) {
  1969. return partial(context, options);
  1970. }
  1971. }
  1972. function noop() {
  1973. return '';
  1974. }
  1975. function initData(context, data) {
  1976. if (!data || !('root' in data)) {
  1977. data = data ? _base.createFrame(data) : {};
  1978. data.root = context;
  1979. }
  1980. return data;
  1981. }
  1982. function executeDecorators(fn, prog, container, depths, data, blockParams) {
  1983. if (fn.decorator) {
  1984. var props = {};
  1985. prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);
  1986. Utils.extend(prog, props);
  1987. }
  1988. return prog;
  1989. }
  1990. function wrapHelpersToPassLookupProperty(mergedHelpers, container) {
  1991. _Object$keys(mergedHelpers).forEach(function (helperName) {
  1992. var helper = mergedHelpers[helperName];
  1993. mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
  1994. });
  1995. }
  1996. function passLookupPropertyOption(helper, container) {
  1997. var lookupProperty = container.lookupProperty;
  1998. return _internalWrapHelper.wrapHelper(helper, function (options) {
  1999. return Utils.extend({ lookupProperty: lookupProperty }, options);
  2000. });
  2001. }
  2002. /***/ }),
  2003. /* 78 */
  2004. /***/ (function(module, exports, __webpack_require__) {
  2005. module.exports = { "default": __webpack_require__(79), __esModule: true };
  2006. /***/ }),
  2007. /* 79 */
  2008. /***/ (function(module, exports, __webpack_require__) {
  2009. __webpack_require__(80);
  2010. module.exports = __webpack_require__(20).Object.seal;
  2011. /***/ }),
  2012. /* 80 */
  2013. /***/ (function(module, exports, __webpack_require__) {
  2014. // 19.1.2.17 Object.seal(O)
  2015. var isObject = __webpack_require__(39);
  2016. __webpack_require__(63)('seal', function($seal){
  2017. return function seal(it){
  2018. return $seal && isObject(it) ? $seal(it) : it;
  2019. };
  2020. });
  2021. /***/ }),
  2022. /* 81 */
  2023. /***/ (function(module, exports) {
  2024. 'use strict';
  2025. exports.__esModule = true;
  2026. exports.wrapHelper = wrapHelper;
  2027. function wrapHelper(helper, transformOptionsFn) {
  2028. if (typeof helper !== 'function') {
  2029. // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639
  2030. // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function.
  2031. return helper;
  2032. }
  2033. var wrapper = function wrapper() /* dynamic arguments */{
  2034. var options = arguments[arguments.length - 1];
  2035. arguments[arguments.length - 1] = transformOptionsFn(options);
  2036. return helper.apply(this, arguments);
  2037. };
  2038. return wrapper;
  2039. }
  2040. /***/ }),
  2041. /* 82 */
  2042. /***/ (function(module, exports) {
  2043. /* global globalThis */
  2044. 'use strict';
  2045. exports.__esModule = true;
  2046. exports['default'] = function (Handlebars) {
  2047. /* istanbul ignore next */
  2048. // https://mathiasbynens.be/notes/globalthis
  2049. (function () {
  2050. if (typeof globalThis === 'object') return;
  2051. Object.prototype.__defineGetter__('__magic__', function () {
  2052. return this;
  2053. });
  2054. __magic__.globalThis = __magic__; // eslint-disable-line no-undef
  2055. delete Object.prototype.__magic__;
  2056. })();
  2057. var $Handlebars = globalThis.Handlebars;
  2058. /* istanbul ignore next */
  2059. Handlebars.noConflict = function () {
  2060. if (globalThis.Handlebars === Handlebars) {
  2061. globalThis.Handlebars = $Handlebars;
  2062. }
  2063. return Handlebars;
  2064. };
  2065. };
  2066. module.exports = exports['default'];
  2067. /***/ })
  2068. /******/ ])
  2069. });
  2070. ;