!function(){"use strict";vart,e,n,r,i,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.EditorManager"),m=tinymce.util.Tools.resolve("tinymce.Env"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){returnt.getParam("importcss_merge_classes")},u=function(t){returnt.getParam("importcss_exclusive")},h=function(t){returnt.getParam("importcss_selector_converter")},l=function(t){returnt.getParam("importcss_selector_filter")},p=function(t){returnt.getParam("importcss_groups")},_=function(t){returnt.getParam("importcss_append")},O=function(t){returnt.getParam("importcss_file_filter")},s=function(t){returnfunction(){returnt}},a=s(!1),y=s(!0),g=function(){returnx},x=(r={fold:function(t,e){returnt()},is:a,isSome:a,isNone:y,getOr:n=function(t){returnt},getOrThunk:e=function(t){returnt()},getOrDie:function(t){thrownewError(t||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:e,map:g,ap:g,each:function(){},bind:g,flatten:g,exists:a,forall:y,filter:g,equals:t=function(t){returnt.isNone()},equals_:t,toArray:function(){return[]},toString:s("none()")},Object.freeze&&Object.freeze(r),r),T=(i="function",function(t){returnfunction(t){if(null===t)return"null";vare=typeoft;return"object"===e&&Array.prototype.isPrototypeOf(t)?"array":"object"===e&&String.prototype.isPrototypeOf(t)?"string":e}(t)===i}),b=Array.prototype.push,k=function(t,e){returnfunction(t){for(vare=[],n=0,r=t.length;n<r;++n){if(!Array.prototype.isPrototypeOf(t[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+t);b.apply(e,t[n])}returne}(function(t,e){for(varn=t.length,r=newArray(n),i=0;i<n;i++){varo=t[i];r[i]=e(o,i,t)}returnr}(t,e))},P=(Array.prototype.slice,T(Array.from)&&Array.from,function(e){return"string"==typeofe?function(t){return-1!==t.indexOf(e)}:einstanceofRegExp?function(t){returne.test(t)}:e}),S=function(c,t,s){vara=[],n={};functionl(t,e){varn,r,i,o=t.href;if(r=o,i=m.cacheSuffix,"string"==typeofr&&(r=r.replace("?"+i,"").replace("&"+i,"")),(o=r)&&s(o,e)&&!function(t,e){varn=t.settings,r=!1!==n.skin&&(n.skin||"oxide");if(r){vari=n.skin_url?t.documentBaseURI.toAbsolute(n.skin_url):f.baseURL+"/skins/ui/"+r,o=f.baseURL+"/skins/content/";returne===i+"/content"+(t.inline?".inline":"")+".min.css"||-1!==e.indexOf(o)}return!1}(c,o)){d.each(t.imports,function(t){l(t,!0)});try{n=t.cssRules||t.rules}catch(u){}d.each(n,function(t){t.styleSheet?l(t.styleSheet,!0):t.selectorText&&d.each(t.selectorText.split(","),function(t){a.push(d.trim(t))})})}}d.each(c.contentCSS,function(t){n[t]=!0}),s||(s=function(t,e){returne||n[t]});try{d.each(t.styleSheets,function(t){l(t)})}catch(e){}returna},A=function(t,e){varn,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(e);if(r){vari=r[1],o=r[2].substr(1).split(".").join(" "),u=d.makeMap("a,img");returnr[1]?(n={title:e},t.schema.getTextBlockElements()[i]?n.block=i:t.schema.getBlockElements()[i]||u[i.toLowerCase()]?n.selector=i:n.inline=i):r[2]&&(n={inline:"span",title:e.substr(1),classes:o}),!1!==c(t)?n.classes=o:n.attributes={"class":o},n}},w=function(t,e){returnnull===e||!1!==u(t)},E=A,I=function(g){g.on("init",function(t){vare,n,r,i,o=(e=[],n=[],r={},{addItemToGroup:function(t,e){r[t]?r[t].push(e):(n.push(t),r[t]=[e])},addItem:function(t){e.push(t)},toFormats:function(){returnk(n,function(t){vare=r[t];return0===e.length?[]:[{title:t,items:e}]}).concat(e)}}),y={},u=P(l(g)),c=(i=p(g),d.map(i,function(t){returnd.extend({},t,{original:t,selectors:{},filter:P(t.filter),item:{text:t.title,menu:[]}})})),s=function(t,e){if(f=t,p=y,!(w(g,m=e)?finp:finm.selectors)){s=t,l=y,w(g,a=e)?l[s]=!0:a.selectors[s]=!0;varn=(o=(i=g).plugins.importcss,u=t,((c=e)&&c.selector_converter?c.selector_converter:h(i)?h(i):function(){returnA(i,u)}).call(o,u,c));if(n){varr=n.name||v.DOM.uniqueId();returng.formatter.register(r,n),d.extend({},{title:n.title,format:r})}}vari,o,u,c,s,a,l,f,m,p;returnnull};d.each(S(g,