{"version":3,"sources":["jsdelivr-header.js","/npm/@policyco/tinymce-word-paste-filter@0.6.4/standalone/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,WAAa,QAAQ,mBACrB,OAAS,QAAQ,eAEjB,WAAa,SAMb,OAAS,CACX,SAAU,CAAC,EACX,IAAK,CACD,WAAY,WAAW,MACvB,eAAgB,WAAW,WAOnC,SAAkB,SAAU,EAAK,GAAgB,OAAO,CAAc,GAEtE,OAAO,QAAU,SAAwB,EAAS,GAC9C,OAAK,WAAW,cAAc,GAIvB,WAAW,WAAW,OAAQ,EAAS,GAHnC,CAIf","file":"/npm/@policyco/tinymce-word-paste-filter@0.6.4/standalone/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@policyco/tinymce-word-paste-filter@0.6.4/standalone/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","const WordFilter = require('./WordFilter.js');\nconst Styles = require('./Styles.js');\n\nconst StylesTool = Styles();\n\n/*\n    create a mock editor object, expected by plugin;\n    must include Styles de/serializers\n*/\nconst editor = {\n    settings: {},\n    dom: {\n        parseStyle: StylesTool.parse,\n        serializeStyle: StylesTool.serialize,\n    }\n};\n\n/*\n    also mock the param function required by editor\n*/\neditor.getParam = function (key, defaultValue) { return defaultValue; }\n\nmodule.exports = function CleanWordHTML (content, options) {\n    if (!WordFilter.isWordContent(content)) {\n        return content;\n    }\n\n    return WordFilter.preProcess(editor, content, options);\n}\n"]}