1const LicenseSearch={};LicenseSearch._URL="https://backend.lilyviewapp.com/license/search",LicenseSearch._Params={Email:"email"},LicenseSearch.fetch=async function(e,t){const s={method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify({email:e})};let n=await JSONResponse.fetch(LicenseSearch._URL,s);if(!n){t.licenseSearchDidFail(RequestStatus.newError(RequestStatus.Error.Offline,null,LicenseSearch._URL,s));return}if(n.status()!=200){if(n.hasNotFoundError(LicenseSearch._Params.Email)){t.licenseSearchDidFailNotFound();return}t.licenseSearchDidFail(RequestStatus.newError(RequestStatus.Error.Status,new Error(n.toString()),LicenseSearch._URL,s));return}t.licenseSearchDidComplete(n.data())};function SearchFront(){this._form=new DialogForm(document.getElementById("search-form"),[new DialogEmailInputPage(document.getElementById("input"),this,"input-email"),new DialogPage(document.getElementById("success"),this),new DialogPage(document.getElementById("not-found"),this),new DialogProgressPage(document.getElementById("progress")),new DialogErrorPage(document.getElementById("error-script"),this),new DialogPage(document.getElementById("error"),this)]),this._form.setPageFromSelf(defPageIndex),ThisPage.dialogFormStack().rootFrame().setForm(this._form)}SearchFront.prototype.pageDelegateDidSubmit=function(){switch(this._form.pageIndex()){case SearchFront._Page.Input:this._form.pages(SearchFront._Page.Progress).setMessage(RequestStatus.newProgress(RequestStatus.Progress.Searching)),this._form.setPageFromCurrent(SearchFront._Page.Progress);let e=this._form.pages(SearchFront._Page.Input);return LicenseSearch.fetch(e.email(),this),!0;case SearchFront._Page.ErrorScript:{let e=this._form.pages(SearchFront._Page.ErrorScript);return e.retriable()?this._form.setPageFromCurrent(SearchFront._Page.Input):location.reload(),!0}case SearchFront._Page.Success:case SearchFront._Page.NotFound:return this._form.setPageFromCurrent(SearchFront._Page.Input),!0}return!1},SearchFront.prototype.licenseSearchDidFail=function(e){this._form.pages(SearchFront._Page.ErrorScript).setMessage(e),this._form.setPageFromCurrent(SearchFront._Page.ErrorScript)},SearchFront.prototype.licenseSearchDidFailNotFound=function(){this._form.setPageFromCurrent(SearchFront._Page.NotFound)},SearchFront.prototype.licenseSearchDidComplete=function(){this._form.setPageFromCurrent(SearchFront._Page.Success)},Object.setPrototypeOf(Page.prototype,StaticPage.prototype);function Page(){StaticPage.call(this),this._front=new SearchFront}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.