1 |
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("js-yaml")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.yamlFront=t(require("js-yaml")):e.yamlFront=t(e.jsyaml)}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFront=function(e,t){return o(e,t,!1)},t.safeLoadFront=function(e,t){return o(e,t,!0)};var r=n(0);function o(e,t,n){var o=t&&t.contentKeyName?t.contentKeyName:"__content",u=/^(-{3}(?:\n|\r)([\w\W]+?)(?:\n|\r)-{3})?([\w\W]*)*/.exec(e),c={},f=void 0;return(f=u[2])&&(c="{"===f.charAt(0)?JSON.parse(f):n?r.safeLoad(f,t):r.load(f,t)),c[o]=u[3]||"",c}}])});
|