{"version":3,"sources":["jsdelivr-header.js","/npm/fin-hypergrid-client-module-wrapper@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACIA,SAAS,QAAQ,GAEb,IAAI,EAAS,EAAS,QAClB,mEACC,EAAS,OAAS,oBAAsB,IAEzC,EAAS,EAAS,SACjB,EAAS,OAAS,IAAM,IAAzB,mQASJ,SAAS,EAAM,GACX,OAAO,EAAE,QAAQ,gBAAgB,SAAS,EAAO,GAC7C,KAAM,KAAM,GACR,MAAM,IAAI,MAAM,qBAAuB,EAAI,mBAE/C,OAAO,EAAS,EACpB,GACJ,CAVA,KAAK,OAAS,EAAM,GACpB,KAAK,OAAS,EAAM,EAUxB,CAGA,QAAQ,UAAU,KAAO,SAAS,GAC9B,OAAO,KAAK,OAAS,EAAO,KAAK,MACrC,EAGA,OAAO,QAAU","file":"/npm/fin-hypergrid-client-module-wrapper@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/fin-hypergrid-client-module-wrapper@2.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * Create wrapper strings.\n * @param {object} manifest\n * @param {string} manifest.name - module name\n * @param {string} manifest.version - Merged into standard header and footer.\n * @param {boolean} [manifest.isJSON] - If truthy, wraps contents in `module.exports=` and `;`.\n * @param {string} [manifest.header] - Custom header (typically paired with a custom footer).\n * @param {string} [manifest.footer] - Custom footer (typically paired with a custom header).\n * @constructor\n */\nfunction Wrapper(manifest) {\n\n    var header = manifest.header ||\n        '(function(require, module, exports) { // ${name}@${version}\\n\\n' +\n        (manifest.isJSON ? 'module.exports = ' : '');\n\n    var footer = manifest.footer ||\n        (manifest.isJSON ? ';' : '') +\n        '\\n\\n})(fin.Hypergrid.require, fin.Hypergrid.modules, fin.Hypergrid.modules.exports = {});\\n' +\n        'fin.Hypergrid.modules.exports.\\$\\$VERSION = \\'${version}\\';\\n' +\n        'fin.Hypergrid.modules[\\'${name}\\'] = fin.Hypergrid.modules.exports;\\n' +\n        'delete fin.Hypergrid.modules.exports;\\n\\n';\n\n    this.header = merge(header);\n    this.footer = merge(footer);\n\n    function merge(s) {\n        return s.replace(/\\$\\{(\\w+)\\}/g, function(match, p1) {\n            if (!(p1 in manifest)) {\n                throw new Error('Expected manifest.' + p1 +' to be defined.');\n            }\n            return manifest[p1];\n        });\n    }\n}\n\n\nWrapper.prototype.wrap = function(code) {\n    return this.header + code + this.footer;\n};\n\n\nmodule.exports = Wrapper;\n"]}