CoreFiles by mySites.guru
source-es5.min.js1 lines, 11,352 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
19a12872030a7c213b17bdb7d4249fbf
sha1
4fed7e3a467eb177221206b3b6411fd2eba678b3
sha256
378735b9e6cb84459f7feeb1f5dee0e90a645e90270e50f76432a13786f9ffad
!function(){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:b(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f={};function h(){}function p(){}function m(){}var v={};u(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(S([])));g&&g!==r&&n.call(g,a)&&(v=g);var w=m.prototype=h.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var s=d(t[o],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function b(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=C(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function C(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=d(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=m,o(w,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=S,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function e(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}if(!window.parent.Joomla||"function"!=typeof window.parent.Joomla.getOptions)throw new Error("Joomla API not found");var r,n,o,i=window.parent.Joomla.getOptions("system.paths").rootFull+"/media/vendor/codemirror",a={jsFiles:["lib/codemirror.min.js","addon/edit/matchbrackets.min.js","mode/xml/xml.min.js","mode/javascript/javascript.min.js","mode/css/css.min.js","mode/htmlmixed/htmlmixed.min.js","addon/dialog/dialog.min.js","addon/search/searchcursor.min.js","addon/search/search.min.js","addon/selection/active-line.min.js"],cssFiles:["lib/codemirror.css","addon/dialog/dialog.css"]},c=/macintosh|mac os/i.test(navigator.userAgent),s=function(){var r,n=(r=t().mark((function e(r){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,e){var n=document.createElement("script");n.src=r,n.onload=function(){return t()},n.onerror=function(){return e(new Error("Failed to load the script "+r))},document.head.appendChild(n)})));case 1:case"end":return t.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,i){var a=r.apply(t,n);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))});return function(t){return n.apply(this,arguments)}}();window.tinymceHighlighterSubmit=function(){var t="&#x0;",e=o.isDirty,r=o.doc;r.somethingSelected()&&r.setCursor(r.getCursor()),r.replaceSelection(t);var i=o.getCursor(),a=r.getLine(i.line);0!==function(t,e){for(var r=0,n=t.indexOf(e)-1;n>=0;n-=1)switch(t.charAt(n)){case"<":r-=1;break;case">":case"&":r+=1}return r}(a,t)&&(a=a.replace(t,""),r.replaceRange(a,window.CodeMirror.Pos(i.line,0),window.CodeMirror.Pos(i.line)));var c=o.getValue(),s=new RegExp("<script(.*?)>(.*?)&#x0;(.*?)<\/script>","ms"),u=new RegExp("<style(.*?)>(.*?)&#x0;(.*?)</style>","ms"),l=new RegExp("<[^>]*(&#x0;).*>|^(&#x0;)|(&#x0;)$");-1!==c.search(s)||-1!==c.search(u)||-1!==c.search(l)?n.setContent(c.replace(t,"")):n.setContent(c.replace(t,'<span id="CmCaReT"></span>')),n.isNotDirty=!e,e&&n.nodeChanged();var d=n.dom.select("span#CmCaReT")[0];d&&(n.selection.scrollIntoView(d),n.selection.setCursorLocation(d,0),n.dom.remove(d))},document.addEventListener("keydown",(function(t){var e=t||window.event;("key"in e?"Escape"===e.key||"Esc"===e.key:27===e.keyCode)&&r.activeEditor.windowManager.close()}));if(!(r=window.parent.tinymce))throw new Error("tinyMCE not found");var u=(n=r.activeEditor).options.get("codemirror");u.fullscreen&&(a.jsFiles.push("addon/display/fullscreen.min.js"),a.cssFiles.push("addon/display/fullscreen.css")),(a=Object.assign({},a,u)).cssFiles.forEach((function(t){var e=document.createElement("link");e.rel="stylesheet",e.href=i+"/"+t,document.head.appendChild(e)})),a.jsFiles.reduce((function(t,e){return t.then((function(){return s(i+"/"+e)}))}),Promise.resolve(!0)).then((function(){a.config.theme&&(document.documentElement.className+=a.config.theme.replace(/(^|\s)\s*/g," cm-s-")),function(){if("function"!=typeof window.CodeMirror)throw new Error('CodeMirror not found in "'+a.path+'", aborting...');var t=window.parent.document.querySelectorAll(".tox-dialog__footer")[0],e=window.parent.document.createElement("div"),i='<td style="font-size:11px;background:#777;color:#fff;padding:0 4px">',s='<td style="font-size:11px;padding-right:5px">';e.innerHTML='\n<table cellspacing="0" cellpadding="0" style="border-spacing:4px">\n  <tr>\n    '+i+(c?"&#8984;-F":"Ctrl-F</td>")+s+r.translate("Start search")+"</td>\n    "+i+(c?"&#8984;-G":"Ctrl-G")+"</td>\n    "+s+r.translate("Find next")+"</td>\n    "+i+(c?"&#8984;-Alt-F":"Shift-Ctrl-F")+"</td>\n    "+s+r.translate("Find previous")+"</td>\n  </tr>\n  <tr>\n    "+i+(c?"&#8984;-Alt-F":"Shift-Ctrl-F")+"</td>\n    "+s+r.translate("Replace")+"</td>\n    "+i+(c?"Shift-&#8984;-Alt-F":"Shift-Ctrl-R")+"</td>\n    "+s+r.translate("Replace all")+"</td>\n  </tr>\n</table>",t.insertAdjacentElement("afterbegin",e);var u=n.getContent({source_view:!0});u=u.replace(/<span\s+style="display: none;"\s+class="CmCaReT"([^>]*)>([^<]*)<\/span>/gm,String.fromCharCode(0)),n.dom.remove(n.dom.select(".CmCaReT")),r.each(n.contextToolbars,(function(t){t.panel&&t.panel.hide()})),window.CodeMirror.defineInitHook((function(t){t.focus();var e=t.getSearchCursor(String.fromCharCode(0),!1);if(e.findNext()&&(t.setCursor(e.to()),e.replace("")),n.options.get("codemirror").indentOnInit){var r=t.lineCount();t.operation((function(){for(var e=0;e<r;++e)t.indentLine(e)}))}})),a.config.value=u,(o=window.CodeMirror(document.body,a.config)).isDirty=!1,o.on("change",(function(t){t.isDirty=!0})),o.setSize("100%","100%"),o.refresh()}()}))}();

No other release has this exact content. See every version of this file.