"use strict" function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}define("client-app/app",["exports","@ember/application","ember-resolver","ember-load-initializers","client-app/config/environment"],(function(e,t,r,n,o){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r1?c:c[0]}}}catch(p){r.e(p)}finally{r.f()}return(0,i.htmlSafe)((0,n.buildHashString)(t,!1,this.expanded||[]))}},{key:"click",value:function(e){var t=e.target,r=t.dataset.key;(o.default.get("env_expandable_keys")||[]).includes(r)&&t.classList.contains("expand-list")&&(e.preventDefault(),this.expanded?this.expanded.pushObject(r):this.set("expanded",[r]))}}])&&p(t.prototype,r),a&&p(t,a),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.default),v(l.prototype,"currentEnv",[a],Object.getOwnPropertyDescriptor(l.prototype,"currentEnv"),l.prototype),v(l.prototype,"isEnvArray",[u],Object.getOwnPropertyDescriptor(l.prototype,"isEnvArray"),l.prototype),v(l.prototype,"html",[c],Object.getOwnPropertyDescriptor(l.prototype,"html"),l.prototype),l) e.default=b})),define("client-app/components/fa-icon",["exports","@fortawesome/ember-fontawesome/components/fa-icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("client-app/components/message-info",["exports","@ember/object/computed","@ember/component","@ember/object","client-app/lib/preload"],(function(e,t,r,n,o){var i,a,u,c,l function s(e,t){for(var r=0;rt||(this.divider.style.bottom="".concat(r-5,"px"),this.events.trigger("panelResized",r))}},{key:"performDrag",value:function(e){(0,o.throttle)(this,this.throttledPerformDrag,e,25)}},{key:"throttledPerformDrag",value:function(e){this.resizing&&this.divideView(e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY)}},{key:"endDrag",value:function(){var e=document.getElementById("overlay") e&&e.parentElement.removeChild(e),this.set("resizing",!1),localStorage&&(localStorage.logster_divider_bottom=parseInt(this.divider.style.bottom,10)) for(var t=0,r=b;t=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function y(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){y(i,n,o,a,u,"next",e)}function u(e){y(i,n,o,a,u,"throw",e)}a(void 0)}))}}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return if("string"==typeof e)return v(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) "Object"===r&&e.constructor&&(r=e.constructor.name) if("Map"===r||"Set"===r)return Array.from(e) if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.method return delete e.method,(0,i.ajax)("/patterns/".concat(this.key,".json"),{method:t,data:e})}},{key:"finallyBlock",value:function(e){e.set("saving",!1)}},{key:"catchBlock",value:function(e,t){t.responseText?e.set("error",t.responseText):e.set("error","Unknown error occurred. Please see dev console.")}},{key:"requestInit",value:function(e){e.setProperties({saving:!0,error:null})}},{key:"create",value:function(){this.newPatterns||this.set("newPatterns",[]),this.newPatterns.pushObject(o.default.create({isNew:!0}))}},{key:"trash",value:(c=d(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isNew){e.next=4 break}return this.newPatterns.removeObject(t),t.destroy(),e.abrupt("return") case 4:return this.requestInit(t),e.prev=5,e.next=8,this.makeAPICall({method:"DELETE",pattern:t.value}) case 8:this.patterns.removeObject(t),t.destroy(),e.next=15 break case 12:e.prev=12,e.t0=e.catch(5),this.catchBlock(t,e.t0) case 15:return e.prev=15,this.finallyBlock(t),e.finish(15) case 18:case"end":return e.stop()}}),e,this,[[5,12,15,18]])}))),function(e){return c.apply(this,arguments)})},{key:"save",value:(u=d(p().mark((function e(t){var r,n return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.requestInit(t),e.prev=1,!t.isNew){e.next=12 break}return e.next=5,this.makeAPICall({method:"POST",pattern:t.valueBuffer,retroactive:!!t.retroactive}) case 5:r=e.sent,t.updateValue(r.pattern),t.set("isNew",!1),this.patterns.pushObject(t),this.newPatterns.removeObject(t),e.next=17 break case 12:return e.next=14,this.makeAPICall({method:"PUT",pattern:t.value,new_pattern:t.valueBuffer}) case 14:n=e.sent,t.updateValue(n.pattern),t.set("count",0) case 17:e.next=22 break case 19:e.prev=19,e.t0=e.catch(1),this.catchBlock(t,e.t0) case 22:return e.prev=22,this.finallyBlock(t),e.finish(22) case 25:case"end":return e.stop()}}),e,this,[[1,19,22,25]])}))),function(e){return u.apply(this,arguments)})},{key:"resetCount",value:(a=d(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.set("saving",!0),e.prev=1,e.next=4,(0,i.ajax)("/reset-count.json",{method:"PUT",data:{pattern:t.value,hard:!!t.hard}}) case 4:t.set("count",0),e.next=10 break case 7:e.prev=7,e.t0=e.catch(1),this.catchBlock(t,e.t0) case 10:return e.prev=10,this.finallyBlock(t),e.finish(10) case 13:case"end":return e.stop()}}),e,this,[[1,7,10,13]])}))),function(e){return a.apply(this,arguments)})},{key:"checkboxChanged",value:function(e){e.toggleProperty("retroactive")}}],r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.default),s=x(l.prototype,"immutable",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=x(l.prototype,"showCounter",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x(l.prototype,"allPatterns",[c],Object.getOwnPropertyDescriptor(l.prototype,"allPatterns"),l.prototype),x(l.prototype,"create",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"create"),l.prototype),x(l.prototype,"trash",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"trash"),l.prototype),x(l.prototype,"save",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"save"),l.prototype),x(l.prototype,"resetCount",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"resetCount"),l.prototype),x(l.prototype,"checkboxChanged",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"checkboxChanged"),l.prototype),l) e.default=k})),define("client-app/components/tab-contents",["exports","@ember-decorators/component","@ember/component"],(function(e,t,r){var n function o(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function v(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){h(i,n,o,a,u,"next",e)}function u(e){h(i,n,o,a,u,"throw",e)}a(void 0)}))}}function b(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function m(e,t){for(var r=0;r1}},{key:"searchTerm",get:function(){return this.search?(this.doSearch(this.search),this.search):null}},{key:"doSearch",value:(h=v(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.model.set("search",t),this.loading=!0,e.next=4,this.model.reload() case 4:this.loading=!1,this.model.updateSelectedRow() case 6:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"resizePanels",value:function(e){var t=document.getElementById("bottom-panel"),r=document.getElementById("top-panel") t.style.height="".concat(e-13,"px"),r.style.bottom="".concat(e+12,"px")}},{key:"expandMessage",value:function(e){e.expand()}},{key:"selectRowAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} this.model.selectRow(e,t)}},{key:"handleCheckboxChange",value:function(e,t){t.target.checked?this.rowMessagesForGroupingPattern=[].concat(p(this.rowMessagesForGroupingPattern),[e.message]):this.rowMessagesForGroupingPattern=this.rowMessagesForGroupingPattern.filter((function(t){return t!==e.message}))}},{key:"tabChangedAction",value:function(e){this.model.tabChanged(e)}},{key:"showMoreBefore",value:function(){this.model.showMoreBefore()}},{key:"loadMore",value:function(){return this.model.loadMore()}},{key:"clear",value:(y=v(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Clear the logs?\n\nCancel = No, OK = Clear")){e.next=5 break}return e.next=3,(0,o.ajax)("/clear",{type:"POST"}) case 3:this.model.reload(),this.loading=!1 case 5:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"removeMessage",value:function(e){var t=this.model.currentRow.group?this.model.currentRow:null,r=this.model.rows,n=t?r.indexOf(t):r.indexOf(e) e.destroy(),e.set("selected",!1),this.model.set("total",this.model.total-1) var o=!1,i=0 t?(i=t.messages.indexOf(e),t.messages.removeObject(e),i=Math.min(i,t.messages.length-1),0===t.messages.length&&(r.removeObject(t),o=!0)):(r.removeObject(e),o=!0),o?n>0?this.model.selectRow(r[n-1]):this.model.total>0?this.model.selectRow(r[0]):this.model.reload():t&&this.model.selectRow(r[n],{messageIndex:i})}},{key:"solveMessage",value:function(e){this.model.solve(e)}},{key:"groupedMessageChangedAction",value:function(e){this.model.groupedMessageChanged(e)}},{key:"envChangedAction",value:function(e){this.model.envChanged(e)}},{key:"updateFilter",value:(c=v(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.toggleProperty(t),this.model.set(t,this[t]),(0,o.setLocalStorage)(t,this[t]),this.loading=!0,e.next=6,this.model.reload() case 6:this.loading=!1,this.model.updateSelectedRow() case 8:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateSearch",value:function(e){var r=e.target.value r!==this.search&&(r&&1===r.length||(0,t.debounce)(this,this.doSearch,r,250))}},{key:"toggleGroupingPatternFromSelectedRows",value:function(){this.buildingGroupingPattern=!this.buildingGroupingPattern,this.rowMessagesForGroupingPattern=[]}},{key:"createGroupingPatternFromSelectedRows",value:(u=v(d().mark((function e(){var t return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.findLongestMatchingPrefix(this.rowMessagesForGroupingPattern),!(t=this.escapeRegExp(t)).trim().length||!confirm('Do you want to create the grouping pattern\n\n"'.concat(t,'"\n\nCancel = No, OK = Create'))){e.next=10 break}return e.next=5,(0,o.ajax)("/patterns/grouping.json",{method:"POST",data:{pattern:t}}) case 5:this.rowMessagesForGroupingPattern=[],this.buildingGroupingPattern=!1,this.model.reload(),e.next=11 break case 10:t.trim().length||alert("Can not create a grouping pattern with the given rows") case 11:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"findLongestMatchingPrefix",value:function(e){for(var t=e.reduce((function(e,t){return t.length=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function p(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=r.default.APP.version,i=t.versionOnly||t.hideSha,a=t.shaOnly||t.hideVersion,u=null return i&&(t.showExtended&&(u=o.match(n.versionExtendedRegExp)),u||(u=o.match(n.versionRegExp))),a&&(u=o.match(n.shaRegExp)),u?u[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=o,e.default=void 0 var i=(0,t.helper)(o) e.default=i})),define("client-app/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("client-app/helpers/logster-url",["exports","@ember/component/helper","client-app/lib/preload"],(function(e,t,r){function n(e){var t=e[0] return"/"!==t[0]&&(t="/".concat(t)),(0,r.getRootPath)()+t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.logsterUrl=n var o=(0,t.helper)(n) e.default=o})),define("client-app/helpers/or",["exports","@ember/component/helper"],(function(e,t){function r(e){return e.some((function(e){return e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.or=r var n=(0,t.helper)(r) e.default=n})),define("client-app/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var r=t.default e.default=r})),define("client-app/initializers/app-init",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag" function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(L){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),u=new S(n||[]) return i(a,"_invoke",{value:P(e,r,u)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=f var y={} function d(){}function h(){}function v(){}var b={} s(b,u,(function(){return this})) var m=Object.getPrototypeOf,g=m&&m(m(E([]))) g&&g!==t&&r.call(g,u)&&(b=g) var w=v.prototype=d.prototype=Object.create(b) function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function o(i,a,u,c){var l=p(e[i],e,a) if("throw"!==l.type){var s=l.arg,f=s.value return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return o("throw",e,u,c)}))}c(l.arg)}var a i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function P(e,t,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 R()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var u=_(a,r) if(u){if(u===y)continue return u}}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 c=p(e,t,r) if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===y)continue return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y var o=p(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function x(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[u] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},e}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return u.apply(this,arguments)}function u(){var e return e=o().mark((function e(n){var i,a,u,c,l,s,f,p return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.resolveRegistration("config:environment"),(0,r.setRootPath)(i.rootURL.replace(/\/$/,"")),"development"!==i.environment){e.next=18 break}return n.deferReadiness(),e.prev=4,e.next=7,(0,t.ajax)("/development-preload.json") case 7:a=e.sent,document.getElementById("preloaded-data").setAttribute("data-preloaded",JSON.stringify(a)),e.next=15 break case 12:e.prev=12,e.t0=e.catch(4),console.error("Fetching preload data failed.",e.t0) case 15:return e.prev=15,n.advanceReadiness(),e.finish(15) case 18:moment.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"secs",m:"a min",mm:"%d mins",h:"an hr",hh:"%d hrs",d:"a day",dd:"%d days",M:"a mth",MM:"%d mths",y:"a yr",yy:"%d yrs"}}),l=0,s=["","webkit","ms","moz","ms"] case 20:if(!(l=0;--n){var i=this.tryEntries[n],a=i.completion if("root"===i.tryLoc)return r("end") if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r] if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(null!=r){var n,o,i,a,u=[],c=!0,l=!1 try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(!e)return if("string"==typeof e)return a(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) "Object"===r&&e.constructor&&(r=e.constructor.name) if("Map"===r||"Set"===r)return Array.from(e) if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:[] if(!r)return"" for(var u=[],c=[],l=t.default.get("env_expandable_keys")||[],s=0,p=Object.entries(r);s3?"".concat(f(b[0]),', ').concat(d,"").concat(w,""))}else u.push("".concat(f(d),"").concat(f(b),""))}for(var O=0,j=c;O"),u.push("")),u.push("
".concat(f(P),"").concat(e(_,!0),"
")}return"").concat(u.join("\n"),"
")},e.clone=function(e){for(var t={},r=0,n=Object.entries(e);r":">",'"':""","'":"'","/":"/"} function f(e){return String(e).replace(/[&<>"'/]/g,(function(e){return s[e]}))}function p(e,r){return new Promise((function(n,o){r||(r={}) var a=new XMLHttpRequest if(e=(0,t.getRootPath)()+e,r.data)for(var u=0,c=Object.entries(r.data);u=200&&e<300||304===e){var t=a.getResponseHeader("Content-Type"),r=a.responseText;/\bjson\b/.test(t)&&(r=JSON.parse(r)),n(r)}else o(a)}},a.send()}))}function y(){var e return e=r().mark((function e(n,o){var i return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=t.default.get(n.replace(".json","")))){e.next=5 break}return e.abrupt("return",i) case 5:return e.next=7,p(n,o) case 7:return e.abrupt("return",e.sent) case 8:case"end":return e.stop()}}),e)})),y=function(){var t=this,r=arguments return new Promise((function(n,i){var a=e.apply(t,r) function u(e){o(a,n,i,u,c,"next",e)}function c(e){o(a,n,i,u,c,"throw",e)}u(void 0)}))},y.apply(this,arguments)}function d(){return void 0!==u?document[u]:!document.hasFocus}function h(e){var t=moment(e),r=moment() return t.diff(r.startOf("day"))>0?t.format("h:mm a"):t.diff(r.startOf("week"))>0?t.format("dd h:mm a"):t.diff(r.startOf("year"))>0?t.format("D MMM h:mm a"):t.format("D MMM YY")}function v(e){return"["+e.map((function(e){return null===e?"null":Array.isArray(e)?v(e):f(e.toString())})).join(", ")+"]"}})),define("client-app/models/group",["exports","@ember/object/computed","client-app/models/message","@ember/object","client-app/lib/utilities"],(function(e,t,r,n,o){var i,a,u,c,l function s(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function f(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag" function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(R){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new k(o||[]) return n(a,"_invoke",{value:j(e,r,u)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}e.wrap=l var f={} function p(){}function y(){}function d(){}var v={} c(v,i,(function(){return this})) var b=Object.getPrototypeOf,m=b&&b(b(S([]))) m&&m!==t&&r.call(m,i)&&(v=m) var g=d.prototype=p.prototype=Object.create(v) function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,u){var c=s(e[n],e,i) if("throw"!==c.type){var l=c.arg,f=l.value return f&&"object"==_typeof(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function j(e,t,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 E()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var u=P(a,r) if(u){if(u===f)continue return u}}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 c=s(e,t,r) if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f var o=s(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function v(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function b(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){v(i,n,o,a,u,"next",e)}function u(e){v(i,n,o,a,u,"throw",e)}a(void 0)}))}}function m(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r0||e&&e.length<6}},{key:"moreBefore",get:function(){return this.rows.length>=50&&this.canLoadMore}},{key:"totalBefore",get:function(){return this.total-this.rows.length}},{key:"regexSearch",get:function(){var e=this.search if(e&&e.length>2&&"/"===e[0]){var t=e.match(/\/(.*)\/(.*)/) if(t&&3===t.length)try{return new RegExp(t[1],t[2])}catch(r){}}return null}},{key:"solve",value:(p=b(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.solve() case 2:this.reload() case 3:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"selectRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.currentRow r&&r.set("selected",!1),e.set("selected",!0) var n=t.messageIndex||0,o=n===this.currentGroupedMessagesPosition this.setProperties({currentRow:e,loadingEnv:!1,currentGroupedMessagesPosition:n,currentEnvPosition:0}),o&&this.notifyPropertyChange("currentGroupedMessagesPosition") var i=this.currentMessage&&!this.currentMessage.env this.fetchEnv({force:i})}},{key:"tabChanged",value:function(e){this.setProperties({currentTab:e,loadingEnv:!1}),this.fetchEnv()}},{key:"groupedMessageChanged",value:function(e){this.setProperties({currentGroupedMessagesPosition:e,currentEnvPosition:0}) var t=this.currentMessage&&!this.currentMessage.env this.fetchEnv({force:t})}},{key:"envChanged",value:function(e){this.set("currentEnvPosition",e),this.fetchEnv()}},{key:"fetchEnv",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.currentMessage if(t.force||r&&!r.env&&"env"===this.currentTab)return this.set("loadingEnv",!0),r.fetchEnv().finally((function(){return e.set("loadingEnv",!1)}))}},{key:"findEquivalentMessageIndex",value:function(e){var t,r=0 return null!=e&&e.group&&null!==(t=this.currentRow)&&void 0!==t&&t.group&&e.key===this.currentRow.key&&(r=e.messages.mapBy("key").indexOf(this.currentMessage.key),r=Math.max(0,r)),r}},{key:"updateSelectedRow",value:function(){var e,t=null===(e=this.currentRow)||void 0===e?void 0:e.key if(t&&this.rows){var r=this.rows.find((function(e){return e.key===t})) if(r){var n=this.findEquivalentMessageIndex(r) this.selectRow(r,{messageIndex:n})}else this.setProperties({currentRow:null,currentEnvPosition:0,currentGroupedMessagesPosition:0})}}},{key:"load",value:(f=b(h().mark((function e(r){var n,i,a,u,c,l,s,f,p,y return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r||(r={}),n={filter:this.filter.join("_")},this.search&&this.search.length>0&&(n.search=this.search,this.regexSearch&&(n.regex_search="true")),r.before&&(n.before=r.before,r.knownGroups&&(n.known_groups=r.knownGroups)),r.after&&(n.after=r.after),this.set("loading",!0),e.prev=6,e.next=9,(0,t.ajax)("/messages.json",{data:n,method:"POST"}) case 9:if(i=e.sent,0===(0,o.compare)(i.filter,this.filter)){e.next=12 break}return e.abrupt("return") case 12:if(0===(0,o.compare)(i.search,this.search)){e.next=14 break}return e.abrupt("return") case 14:if(!(i.messages.length>0)){e.next=56 break}if(a=this.toObjects(i.messages),!r.before){e.next=20 break}this.rows.unshiftObjects(a),e.next=56 break case 20:u=d(a),e.prev=21,u.s() case 23:if((c=u.n()).done){e.next=46 break}l=c.value,s=d(this.rows),e.prev=26,s.s() case 28:if((f=s.n()).done){e.next=36 break}if((p=f.value).key===l.key){e.next=32 break}return e.abrupt("continue",34) case 32:this.rows.removeObject(p),this.currentRow===p&&(y=this.findEquivalentMessageIndex(l),this.selectRow(l,{messageIndex:y})) case 34:e.next=28 break case 36:e.next=41 break case 38:e.prev=38,e.t0=e.catch(26),s.e(e.t0) case 41:return e.prev=41,s.f(),e.finish(41) case 44:e.next=23 break case 46:e.next=51 break case 48:e.prev=48,e.t1=e.catch(21),u.e(e.t1) case 51:return e.prev=51,u.f(),e.finish(51) case 54:this.rows.addObjects(a),a.length>0&&(0,t.increaseTitleCount)(a.length) case 56:return this.set("total",i.total),e.abrupt("return",i) case 58:return e.prev=58,this.set("loading",!1),e.finish(58) case 61:case"end":return e.stop()}}),e,this,[[6,,58,61],[21,48,51,54],[26,38,41,44]])}))),function(e){return f.apply(this,arguments)})},{key:"reload",value:(s=b(h().mark((function e(){var t return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.set("total",0),this.rows.clear(),e.next=4,this.load() case 4:t=e.sent,this.updateCanLoadMore(t) case 6:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"updateCanLoadMore",value:function(e){e&&(e.messages.length<50?this.set("canLoadMore",!1):this.set("canLoadMore",!0))}},{key:"loadMore",value:function(){if(0!==this.rows.length){var e=this.rows[this.rows.length-1],t=e.group?e.row_id:e.key this.load({after:t})}else this.load({})}},{key:"showMoreBefore",value:(l=b(h().mark((function e(){var t,r,n,o return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.rows[0],r=t.group?t.row_id:t.key,n=this.rows.filterBy("group").mapBy("regex"),e.next=5,this.load({before:r,knownGroups:n}) case 5:o=e.sent,this.updateCanLoadMore(o) case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"toObjects",value:function(e){return e.map((function(e){return e.group?n.default.create(e):r.default.create(e)}))}}],u&&m(i.prototype,u),c&&m(i,c),Object.defineProperty(i,"prototype",{writable:!1}),v}(i.default),x(y.prototype,"filter",[u],Object.getOwnPropertyDescriptor(y.prototype,"filter"),y.prototype),x(y.prototype,"currentMessage",[c],Object.getOwnPropertyDescriptor(y.prototype,"currentMessage"),y.prototype),x(y.prototype,"hideCountInLoadMore",[l],Object.getOwnPropertyDescriptor(y.prototype,"hideCountInLoadMore"),y.prototype),x(y.prototype,"moreBefore",[s],Object.getOwnPropertyDescriptor(y.prototype,"moreBefore"),y.prototype),x(y.prototype,"totalBefore",[f],Object.getOwnPropertyDescriptor(y.prototype,"totalBefore"),y.prototype),x(y.prototype,"regexSearch",[p],Object.getOwnPropertyDescriptor(y.prototype,"regexSearch"),y.prototype),y) e.default=L})) define("client-app/models/message",["exports","@ember/object/computed","@ember/object","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,r,n,o){var i,a,u,c,l,s,f,p,y,d function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag" function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(R){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new k(o||[]) return n(a,"_invoke",{value:j(e,r,u)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}e.wrap=l var f={} function p(){}function y(){}function d(){}var v={} c(v,i,(function(){return this})) var b=Object.getPrototypeOf,m=b&&b(b(S([]))) m&&m!==t&&r.call(m,i)&&(v=m) var g=d.prototype=p.prototype=Object.create(v) function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,u){var c=s(e[n],e,i) if("throw"!==c.type){var l=c.arg,f=l.value return f&&"object"==_typeof(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,u)}))}u(c.arg)}var i n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function j(e,t,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 E()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var u=P(a,r) if(u){if(u===f)continue return u}}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 c=s(e,t,r) if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f var o=s(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc") if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function v(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function b(e,t){for(var r=0;rthis.MAX_LEN}},{key:"shareUrl",get:function(){return"".concat((0,o.getRootPath)(),"/show/").concat(this.key)}},{key:"displayMessage",get:function(){var e=this.message return!this.expanded&&this.message.length>this.MAX_LEN&&(e=this.message.substr(0,this.MAX_LEN)),e}},{key:"canSolve",get:function(){return(Array.isArray(this.env)?this.env.map((function(e){return e.application_version})).compact().join(""):this.env&&this.env.application_version)&&this.backtrace&&this.backtrace.length>0}},{key:"rowClass",get:function(){switch(this.severity){case 0:return"debug" case 1:return"info" case 2:return"warn" case 3:return"error" case 4:return"fatal" default:return"unknown"}}},{key:"glyph",get:function(){switch(this.severity){case 0:case 1:return"" case 2:return"exclamation-circle" case 3:case 4:return"times-circle" default:return"question-circle"}}},{key:"prefix",get:function(){return"fas"}},{key:"klass",get:function(){switch(this.severity){case 0:case 1:return"" case 2:return"warning" case 3:return"error" case 4:return"fatal" default:return"unknown"}}},{key:"fetchEnv",value:(a=h().mark((function e(){var t return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.ajax)("/fetch-env/".concat(this.key,".json")) case 2:t=e.sent,this.set("env",t) case 4:case"end":return e.stop()}}),e,this)})),u=function(){var e=this,t=arguments return new Promise((function(r,n){var o=a.apply(e,t) function i(e){v(o,r,n,i,u,"next",e)}function u(e){v(o,r,n,i,u,"throw",e)}i(void 0)}))},function(){return u.apply(this,arguments)})},{key:"expand",value:function(){this.set("expanded",!0)}},{key:"solve",value:function(){return(0,n.ajax)("/solve/".concat(this.key),{type:"PUT"})}},{key:"destroy",value:function(){return(0,n.ajax)("/message/".concat(this.key),{type:"DELETE"})}},{key:"protect",value:function(){return this.set("protected",!0),(0,n.ajax)("/protect/".concat(this.key),{type:"PUT"})}},{key:"unprotect",value:function(){return this.set("protected",!1),(0,n.ajax)("/unprotect/".concat(this.key),{type:"DELETE"})}}],r&&b(t.prototype,r),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default),d=P(y.prototype,"showCount",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(y.prototype,"hasMore",[a],Object.getOwnPropertyDescriptor(y.prototype,"hasMore"),y.prototype),P(y.prototype,"shareUrl",[u],Object.getOwnPropertyDescriptor(y.prototype,"shareUrl"),y.prototype),P(y.prototype,"displayMessage",[c],Object.getOwnPropertyDescriptor(y.prototype,"displayMessage"),y.prototype),P(y.prototype,"canSolve",[l],Object.getOwnPropertyDescriptor(y.prototype,"canSolve"),y.prototype),P(y.prototype,"rowClass",[s],Object.getOwnPropertyDescriptor(y.prototype,"rowClass"),y.prototype),P(y.prototype,"glyph",[f],Object.getOwnPropertyDescriptor(y.prototype,"glyph"),y.prototype),P(y.prototype,"klass",[p],Object.getOwnPropertyDescriptor(y.prototype,"klass"),y.prototype),y) e.default=_})),define("client-app/models/pattern-item",["exports","@ember/object/computed","@ember/object"],(function(e,t,r){var n,o,i,a function u(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r0 e.setProperties({showCodedSuppression:l,codedSuppression:o,customSuppression:a,grouping:u})}}],l&&o(t.prototype,l),s&&o(t,s),Object.defineProperty(t,"prototype",{writable:!1}),p}(t.default) e.default=l})),define("client-app/routes/show",["exports","@ember/routing/route","client-app/models/message","client-app/lib/utilities"],(function(e,t,r,n){function o(e,t){for(var r=0;r