!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("htmlhint")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","htmlhint"],e):e(CodeMirror,window.HTMLHint)}(function(c,s){"use strict";var f={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!1,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0};c.registerHelper("lint","html",function(e,r){var o=[];if(s&&!s.verify&&(s=void 0!==s.default?s.default:s.HTMLHint),!(s=s||window.HTMLHint))return window.console&&window.console.error("Error: HTMLHint not found, not defined on window, or not available through define/require, CodeMirror HTML linting cannot run."),o;for(var t=s.verify(e,r&&r.rules||f),i=0;i<t.length;i++){var n=t[i],a=n.line-1,l=n.line-1,d=n.col-1,u=n.col;o.push({from:c.Pos(a,d),to:c.Pos(l,u),message:n.message,severity:n.type})}return o})});