define("pretty-text/pretty-text",["exports","pretty-text/engines/discourse-markdown-it"],function(a,e){"use strict";function n(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function t(){}function o(a){var n=a.siteSettings,t=a.getURL,o=a.lookupAvatar,i=a.lookupPrimaryUserGroup,r=a.getTopicInfo,s=a.topicId,l=a.categoryHashtagLookup,c=a.userId,m=a.getCurrentUser,u=a.currentUser,g=a.lookupAvatarByPostNumber,d=a.lookupPrimaryUserGroupByPostNumber,h=a.formatUsername,p=a.emojiUnicodeReplacer,f=a.lookupUploadUrls,w=a.previewing,b=a.linkify,k=a.censoredWords,y=a.disableEmojis,v={"bold-italics":!0,"auto-link":!0,mentions:!0,bbcode:!0,quote:!0,html:!0,"category-hashtag":!0,onebox:!0,linkify:!1!==b,newline:!n.traditional_markdown_linebreaks};a.features&&(v=_.merge(v,a.features));var x={sanitize:!0,getURL:t,features:v,lookupAvatar:o,lookupPrimaryUserGroup:i,getTopicInfo:r,topicId:s,categoryHashtagLookup:l,userId:c,getCurrentUser:m,currentUser:u,lookupAvatarByPostNumber:g,lookupPrimaryUserGroupByPostNumber:d,formatUsername:h,emojiUnicodeReplacer:p,lookupUploadUrls:f,censoredWords:k,allowedHrefSchemes:n.allowed_href_schemes?n.allowed_href_schemes.split("|"):null,allowedIframes:n.allowed_iframes?n.allowed_iframes.split("|"):[],markdownIt:!0,injectLineNumbersToPreview:n.enable_advanced_editor_preview_sync,previewing:w,disableEmojis:y};return(0,e.setup)(x,n,a),x}Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.registerOption=t,a.buildOptions=o;var i=function(){function a(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}return function(e,n,t){return n&&a(e.prototype,n),t&&a(e,t),e}}(),r=function(){function a(e){n(this,a),e||(e=o({siteSettings:{}})),this.opts=e}return i(a,[{key:"disableSanitizer",value:function(){this.opts.sanitizer=this.opts.discourse.sanitizer=function(a){return a}}},{key:"cook",value:function(a){if(!a||0===a.length)return"";return(0,e.cook)(a,this.opts)||""}},{key<