Liferay.Loader.define("liferay!object-js-components-web$codemirror@5.65.12/addon/mode/loadmode",["module","exports","require","../../lib/codemirror"],(function(e,o,r){var n,t=void 0;window;n=function(e,o){e.modeURL||(e.modeURL="../mode/%N/%N.js");var n={};function ensureDeps(o,r,n){var t=e.modes[o],i=t&&t.dependencies;if(!i)return r();for(var d=[],a=0;a<i.length;++a)e.modes.hasOwnProperty(i[a])||d.push(i[a]);if(!d.length)return r();var s=function splitCallback(e,o){var r=o;return function(){0==--r&&e()}}(r,d.length);for(a=0;a<d.length;++a)e.requireMode(d[a],s,n)}e.requireMode=function(t,i,d){if("string"!=typeof t&&(t=t.name),e.modes.hasOwnProperty(t))return ensureDeps(t,i,d);if(n.hasOwnProperty(t))return n[t].push(i);var a=d&&d.path?d.path(t):e.modeURL.replace(/%N/g,t);if(d&&d.loadMode)d.loadMode(a,(function(){ensureDeps(t,i,d)}));else if("plain"==o){var s=document.createElement("script");s.src=a;var u=document.getElementsByTagName("script")[0],c=n[t]=[i];e.on(s,"load",(function(){ensureDeps(t,(function(){for(var e=0;e<c.length;++e)c[e]()}),d)})),u.parentNode.insertBefore(s,u)}else"cjs"==o?(r(a),i()):"amd"==o&&requirejs([a],i)},e.autoLoadMode=function(o,r,n){e.modes.hasOwnProperty(r)||e.requireMode(r,(function(){o.setOption("mode",o.getOption("mode"))}),n)}},"object"==typeof o&&"object"==typeof e?n(r("../../lib/codemirror"),"cjs"):"function"==typeof t&&t.amd?t(["../../lib/codemirror"],(function(e){n(e,"amd")})):n(CodeMirror,"plain")}));
//# sourceMappingURL=loadmode.js.map