1(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{"4RcR":function(n,l,t){"use strict";t.r(l);var e=t("CcnG"),u=t("mrSG"),r=function(){function n(n,l,t,e){this.route=n,this.npcProvider=l,this.storageService=t,this.navController=e,this.levelActionSheetOptions={header:"NPC Level"},this.classActionSheetOptions={header:"NPC Classes"},this.baseActionSheetOptions={header:"NPC Base Level"},this.ethnicityActionSheetOptions={header:"NPC Ethnicity"},this.randomEncounter=!1,this.base=!0,this.klasse="Random",this.level="4",this.ethnicity="Random",this.levelOptions=["1","2","3","4","5","6","7","8","9","10","11","12","13","14"],this.ethnicityOptions=["Random","Celdorean","Corcani","Jutlander","Kemeshi","Krysean","Kushtu","Nicean","Opelenean","Rornish","Shebatean","Skysos","Syrnasi","Somirean","Thrassian","Tirenean","Zaharan"],this.humanOnly=["Assassin","Bard","Bladedancer","Cleric","Explorer","Fighter","Mage","Thief"],this.allClasses=["Random","Assassin","Bard","Bladedancer","Cleric","Dwarven Craftpriest","Dwarven Vaultguard","Elven Nightblade","Elven Spellsword","Explorer","Fighter","Mage","Thief"],this.classOptions=this.allClasses}return n.prototype.ngOnInit=function(){return u.__awaiter(this,void 0,void 0,(function(){var n;return u.__generator(this,(function(l){switch(l.label){case 0:return this.id=this.route.snapshot.paramMap.get("id"),null===this.id?[3,2]:(n=this,[4,this.storageService.getNpcDataParameter(this.id)]);case 1:return n.npcParameterData=l.sent(),this.encounterNPC=this.npcParameterData.npcType,this.encounterLocation=this.npcParameterData.location,"NPC"===this.encounterNPC?this.generateRandomNpcPartyView():this.encounterNPC.startsWith("NPC")&&this.generateRandomEncounterView(),[3,3];case 2:this.generateRandomNpcView(),l.label=3;case 3:return[2]}}
1))}))},n.prototype.ngOnDestroy=function(){},n.prototype.reroll=function(){return u.__awaiter(this,void 0,void 0,(function(){var n;return u.__generator(this,(function(l){switch(l.label){case 0:return this.classOptions="Random"!==this.ethnicity?this.humanOnly:this.allClasses,n=this,[4,this.npcProvider.generateRandomEthnicNpc(+this.level,this.ethnicity,this.klasse,this.base)];case 1:return n.npcData=l.sent(),[2]}}))}))},n.prototype.generateRandomEncounterView=function(){return u.__awaiter(this,void 0,void 0,(function(){return u.__generator(this,(function(n){return this.klasse=this.encounterNPC.toString().split("NPC ")[1],void 0!==this.encounterLocation&&(this.randomEncounter=!0),this.cityEncounter="City"===this.encounterLocation,this.reroll(),[2]}))}))},n.prototype.storeNpc=function(){return u.__awaiter(this,void 0,void 0,(function(){return u.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storageService.setParameter("NPC",{npcType:"NPC",npc:this.npcData})];case 1:return n.sent(),[2]}}))}))},n.prototype.generateRandomNpcView=function(){return u.__awaiter(this,void 0,void 0,(function(){return u.__generator(this,(function(n){return this.reroll(),[2]}))}))},n.prototype.generateRandomNpcPartyView=function(){return u.__awaiter(this,void 0,void 0,(function(){return u.__generator(this,(function(n){return this.npcData=this.npcParameterData.npc,[2]}))}))},n.prototype.goBack=function(){null!=this.npcParameterData&&(this.npcParameterData.parameterID.startsWith("NPC")||this.storageService.deleteEntry(this.npcParameterData.parameterID)),this.navController.back()},n.prototype.save=function(){this.storeNpc()},n}(),i=function(){return function(){}}(),a=t("pMnS"),o=t("oBZk"),s=t("ZZ/e"),c=t("Ip0R"),b=t("gIcY"),p=t("ZYCi"),g=t("lx0+"),h=t("n90K"),d=e.Bb({encapsulation:0,styles:[[""]],data:{}});function f(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,5,"div",[],null,null,null,null,null)),(n()(),e.Db(1,0,null,null,4,"ion-label",[["text-wrap",""]],null,null,null,o.kb,o.u)),e.Cb(2,49152,null,0,s.O,[e.j,e.p,e.H],null,null),e.Cb(3,16384,null,0,s.e,[e.p],null,null),(n()(),e.Db(4,0,null,0,1,"h5",[],null,null,null,null,null)),(n()(),e.Vb(-1,null,["Base level = 7 - Marketclass"]))],null,null)}function C(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,5,"div",[],null,null,null,null,null)),(n()(),e.Db(1,0,null,null,4,"ion-label",[["text-wrap",""]],null,null,null,o.kb,o.u)),e.Cb(2,49152,null,0,s.O,[e.j,e.p,e.H],null,null),e.Cb(3,16384,null,0,s.e,[e.p],null,null),(n()(),e.Db(4,0,null,0,1,"h5",[],null,null,null,null,null)),(n()(),e.Vb(-1,null,["Base level = Highest level of the nearest dungeon"]))],null,null)}function v(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,2,"ion-select-option",[],null,null,null,o.wb,o.H)),e.Cb(1,49152,null,0,s.pb,[e.j,e.p,e.H],{value:[0,"value"]},null),(n()(),e.Vb(2,0,["",""]))],(function(n,l){n(l,1,0,l.context.$implicit)}),(function(n,l){n(l,2,0,l.context.$implicit)}))}function m(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,2,"ion-select-option",[],null,null,null,o.wb,o.H)),e.Cb(1,49152,null,0,s.pb,[e.j,e.p,e.H],{value:[0,"value"]},null),(n()(),e.Vb(2,0,["",""]))],(function(n,l){n(l,1,0,l.context.$implicit)}),(function(n,l){n(l,2,0,l.context.$implicit)}))}function y(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,3,"div",[],null,null,null,null,null)),(n()(),e.Db(1,0,null,null,2,"ion-label",[],null,null,null,o.kb,o.u)),e.Cb(2,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["~Base level"]))],null,null)}function D(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,3,"div",[],null,null,null,null,null)),(n()(),e.Db(1,0,null,null,2,"ion-label",[],null,null,null,o.kb,o.u)),e.Cb(2,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Fixed level"]))],null,null)}function P(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,2,"ion-select-option",[],null,null,null,o.wb,o.H)),e.Cb(1,49152,null,0,s.pb,[e.j,e.p,e.H],{value:[0,"value"]},null),(n()(),e.Vb(2,0,["",""]))],(function(n,l){n(l,1,0,l.context.$implicit)}),(function(n,l){n(l,2,0,l.context.$implicit)}))}function _(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,4,"ion-row",[],null,
1null,null,o.ub,o.E)),e.Cb(1,49152,null,0,s.kb,[e.j,e.p,e.H],null,null),(n()(),e.Db(2,0,null,0,2,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(3,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Vb(4,0,["",""]))],null,(function(n,l){n(l,4,0,l.context.$implicit)}))}function x(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,7,"div",[],null,null,null,null,null)),(n()(),e.Db(1,0,null,null,2,"ion-label",[["stacked",""]],null,null,null,o.kb,o.u)),e.Cb(2,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Desc:"])),(n()(),e.Db(4,0,null,null,3,"ion-grid",[],null,null,null,o.bb,o.l)),e.Cb(5,49152,null,0,s.B,[e.j,e.p,e.H],null,null),(n()(),e.sb(16777216,null,0,1,null,_)),e.Cb(7,278528,null,0,c.h,[e.Y,e.U,e.z],{ngForOf:[0,"ngForOf"]},null)],(function(n,l){n(l,7,0,l.parent.context.$implicit.description)}),null)}function w(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,23,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var u=!0;return"submit"===l&&(u=!1!==e.Pb(n,2).onSubmit(t)&&u),"reset"===l&&(u=!1!==e.Pb(n,2).onReset()&&u),u}),null,null)),e.Cb(1,16384,null,0,b.x,[],null,null),e.Cb(2,4210688,null,0,b.p,[[8,null],[8,null]],null,null),e.Sb(2048,null,b.a,null,[b.p]),e.Cb(4,16384,null,0,b.o,[[4,b.a]],null,null),(n()(),e.Db(5,0,null,null,18,"ion-list",[["no-lines",""]],null,null,null,o.mb,o.v)),e.Cb(6,49152,null,0,s.P,[e.j,e.p,e.H],null,null),(n()(),e.Db(7,0,null,0,2,"ion-label",[["stacked",""]],null,null,null,o.kb,o.u)),e.Cb(8,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Stats:"])),(n()(),e.Db(10,0,null,0,11,"ion-item",[],null,null,null,o.jb,o.p)),e.Cb(11,49152,null,0,s.I,[e.j,e.p,e.H],null,null),(n()(),e.Vb(12,0,[" ",": "," ","; Str ",", Int ",", Wis ",", Dex ",", Con ",", Cha ",";"])),(n()(),e.Db(13,0,null,0,0,"br",[],null,null,null,null,null)),(n()(),e.Vb(14,0,[" MV ","', AC ",", HP ",", ",";"])),(n()(),e.Db(15,0,null,0,0,"br",[],null,null,null,null,null)),(n()(),e.Vb(16,0,[" SVP "," SVD "," SVB "," SVW "," SVS ",", ML ",", AL ",", XP ",";"])),(n()(),e.Db(17,0,null,0,0,"br",[],null,null,null,null,null)),(n()(),e.Vb(18,0,[" Abilities: "," "," "," ",";"])),(n()(),e.Db(19,0,null,0,0,"br",[],null,null,null,null,null)),(n()(),e.Vb(20,0,[" Equipment (~"," Stone): "," "," ",";"])),(n()(),e.Db(21,0,null,0,0,"br",[],null,null,null,null,null)),(n()(),e.sb(16777216,null,0,1,null,x)),e.Cb(23,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"]},null)],(function(n,l){n(l,23,0,""!=l.context.$implicit.description)}),(function(n,l){n(l,0,0,e.Pb(l,4).ngClassUntouched,e.Pb(l,4).ngClassTouched,e.Pb(l,4).ngClassPristine,e.Pb(l,4).ngClassDirty,e.Pb(l,4).ngClassValid,e.Pb(l,4).ngClassInvalid,e.Pb(l,4).ngClassPending),n(l,12,0,l.context.$implicit.name,l.context.$implicit.klasse,l.context.$implicit.level,l.context.$implicit.str,l.context.$implicit.int,l.context.$implicit.wis,l.context.$implicit.dex,l.context.$implicit.con,l.context.$implicit.cha),n(l,14,0,l.context.$implicit.movement,l.context.$implicit.ac,l.context.$implicit.hp,l.context.$implicit.weaponStats),n(l,16,0,l.context.$implicit.save[0],l.context.$implicit.save[1],l.context.$implicit.save[2],l.context.$implicit.save[3],l.context.$implicit.save[4],l.context.$implicit.morale,l.context.$implicit.alignment,l.context.$implicit.xp),n(l,18,0,l.context.$implicit.classAbilities,l.context.$implicit.spellsPerDayString,l.context.$implicit.proficiencies,l.context.$implicit.thiefSkills),n(l,20,0,l.context.$implicit.encumbrance,l.context.$implicit.equipment,l.context.$implicit.magicItems,l.context.$implicit.treasure)}))}function N(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,1,"div",[],null,null,null,null,null)),(n()(),e.Vb(-1,null,["Loading ..."]))],null,null)}function S(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,11,"ion-header",[],null,null,null,o.cb,o.m)),e.Cb(1,49152,null,0,s.C,[e.j,e.p,e.H],null,null),(n()(),e.Db(2,0,null,0,9,"ion-toolbar",[],null,
1null,null,o.Fb,o.P)),e.Cb(3,49152,null,0,s.Db,[e.j,e.p,e.H],null,null),(n()(),e.Db(4,0,null,0,2,"ion-title",[],null,null,null,o.Db,o.N)),e.Cb(5,49152,null,0,s.Bb,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Random NPC"])),(n()(),e.Db(7,0,null,0,4,"ion-buttons",[["slot","start"]],null,null,null,o.U,o.e)),e.Cb(8,49152,null,0,s.m,[e.j,e.p,e.H],null,null),(n()(),e.Db(9,0,null,0,2,"ion-back-button",[["defaultHref","/"]],null,[[null,"click"]],(function(n,l,t){var u=!0,r=n.component;return"click"===l&&(u=!1!==e.Pb(n,11).onClick(t)&&u),"click"===l&&(u=!1!==r.goBack()&&u),u}),o.S,o.c)),e.Cb(10,49152,null,0,s.h,[e.j,e.p,e.H],{defaultHref:[0,"defaultHref"]},null),e.Cb(11,16384,null,0,s.i,[[2,s.jb],s.Jb],{defaultHref:[0,"defaultHref"]},null),(n()(),e.Db(12,0,null,null,91,"ion-content",[["padding",""]],null,null,null,o.Y,o.i)),e.Cb(13,49152,null,0,s.v,[e.j,e.p,e.H],null,null),e.Cb(14,16384,null,0,s.e,[e.p],null,null),(n()(),e.Db(15,0,null,0,8,"ion-grid",[],null,null,null,o.bb,o.l)),e.Cb(16,49152,null,0,s.B,[e.j,e.p,e.H],null,null),(n()(),e.Db(17,0,null,0,6,"ion-row",[],null,null,null,o.ub,o.E)),e.Cb(18,49152,null,0,s.kb,[e.j,e.p,e.H],null,null),(n()(),e.Db(19,0,null,0,4,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(20,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(21,0,null,0,2,"ion-button",[],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.save()&&e),e}),o.T,o.d)),e.Cb(22,49152,null,0,s.l,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Save encounter"])),(n()(),e.Db(24,0,null,0,77,"ion-grid",[],null,null,null,o.bb,o.l)),e.Cb(25,49152,null,0,s.B,[e.j,e.p,e.H],null,null),(n()(),e.sb(16777216,null,0,1,null,f)),e.Cb(27,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"]},null),(n()(),e.sb(16777216,null,0,1,null,C)),e.Cb(29,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"]},null),(n()(),e.Db(30,0,null,0,4,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(31,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(32,0,null,0,2,"ion-button",[],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.reroll()&&e),e}),o.T,o.d)),e.Cb(33,49152,null,0,s.l,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Generate"])),(n()(),e.Db(35,0,null,0,33,"ion-row",[],null,null,null,o.ub,o.E)),e.Cb(36,49152,null,0,s.kb,[e.j,e.p,e.H],null,null),(n()(),e.Db(37,0,null,0,15,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(38,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(39,0,null,0,13,"ion-item",[],null,null,null,o.jb,o.p)),e.Cb(40,49152,null,0,s.I,[e.j,e.p,e.H],null,null),(n()(),e.Db(41,0,null,0,2,"ion-label",[],null,null,null,o.kb,o.u)),e.Cb(42,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["NPC Class:"])),(n()(),e.Db(44,0,null,0,8,"ion-select",[["interface","action-sheet"],["name","npcClass"],["placeholder","Select One"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(n,l,t){var u=!0,r=n.component;return"ionBlur"===l&&(u=!1!==e.Pb(n,45)._handleBlurEvent(t.target)&&u),"ionChange"===l&&(u=!1!==e.Pb(n,45)._handleChangeEvent(t.target)&&u),"ngModelChange"===l&&(u=!1!==(r.klasse=t)&&u),u}),o.xb,o.G)),e.Cb(45,16384,null,0,s.Nb,[e.p],null,null),e.Sb(1024,null,b.l,(function(n){return[n]}),[s.Nb]),e.Cb(47,671744,null,0,b.q,[[8,null],[8,null],[8,null],[6,b.l]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),e.Sb(2048,null,b.m,null,[b.q]),e.Cb(49,16384,null,0,b.n,[[4,b.m]],null,null),e.Cb(50,49152,null,0,s.ob,[e.j,e.p,e.H],{interface:[0,"interface"],interfaceOptions:[1,"interfaceOptions"],name:[2,"name"],placeholder:[3,"placeholder"],selectedText:[4,"selectedText"]},null),(n()(),e.sb(16777216,null,0,1,null,v)),e.Cb(52,278528,null,0,c.h,[e.Y,e.U,e.z],{ngForOf:[0,"ngForOf"]},null),(n()(),e.Db(53,0,null,0,15,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(54,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(55,0,null,0,13,"ion-item",[],null,null,null,o.jb,o.p)),e.Cb(56,49152,null,0,s.I,[e.j,e.p,e.H],null,null),(n()(),e.Db(57,0,null,0,2,"ion-label",[],null,
1null,null,o.kb,o.u)),e.Cb(58,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["NPC Level:"])),(n()(),e.Db(60,0,null,0,8,"ion-select",[["interface","action-sheet"],["name","baseLevel"],["placeholder","Select One"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(n,l,t){var u=!0,r=n.component;return"ionBlur"===l&&(u=!1!==e.Pb(n,61)._handleBlurEvent(t.target)&&u),"ionChange"===l&&(u=!1!==e.Pb(n,61)._handleChangeEvent(t.target)&&u),"ngModelChange"===l&&(u=!1!==(r.level=t)&&u),u}),o.xb,o.G)),e.Cb(61,16384,null,0,s.Nb,[e.p],null,null),e.Sb(1024,null,b.l,(function(n){return[n]}),[s.Nb]),e.Cb(63,671744,null,0,b.q,[[8,null],[8,null],[8,null],[6,b.l]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),e.Sb(2048,null,b.m,null,[b.q]),e.Cb(65,16384,null,0,b.n,[[4,b.m]],null,null),e.Cb(66,49152,null,0,s.ob,[e.j,e.p,e.H],{interface:[0,"interface"],interfaceOptions:[1,"interfaceOptions"],name:[2,"name"],placeholder:[3,"placeholder"],selectedText:[4,"selectedText"]},null),(n()(),e.sb(16777216,null,0,1,null,m)),e.Cb(68,278528,null,0,c.h,[e.Y,e.U,e.z],{ngForOf:[0,"ngForOf"]},null),(n()(),e.Db(69,0,null,0,32,"ion-row",[],null,null,null,o.ub,o.E)),e.Cb(70,49152,null,0,s.kb,[e.j,e.p,e.H],null,null),(n()(),e.Db(71,0,null,0,14,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(72,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(73,0,null,0,12,"ion-item",[],null,null,null,o.jb,o.p)),e.Cb(74,49152,null,0,s.I,[e.j,e.p,e.H],null,null),(n()(),e.Db(75,0,null,0,6,"ion-toggle",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(n,l,t){var u=!0,r=n.component;return"ionBlur"===l&&(u=!1!==e.Pb(n,76)._handleBlurEvent(t.target)&&u),"ionChange"===l&&(u=!1!==e.Pb(n,76)._handleIonChange(t.target)&&u),"ngModelChange"===l&&(u=!1!==(r.base=t)&&u),u}),o.Eb,o.O)),e.Cb(76,16384,null,0,s.c,[e.p],null,null),e.Sb(1024,null,b.l,(function(n){return[n]}),[s.c]),e.Cb(78,671744,null,0,b.q,[[8,null],[8,null],[8,null],[6,b.l]],{model:[0,"model"]},{update:"ngModelChange"}),e.Sb(2048,null,b.m,null,[b.q]),e.Cb(80,16384,null,0,b.n,[[4,b.m]],null,null),e.Cb(81,49152,null,0,s.Cb,[e.j,e.p,e.H],null,null),(n()(),e.sb(16777216,null,0,1,null,y)),e.Cb(83,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"]},null),(n()(),e.sb(16777216,null,0,1,null,D)),e.Cb(85,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"]},null),(n()(),e.Db(86,0,null,0,15,"ion-col",[],null,null,null,o.X,o.h)),e.Cb(87,49152,null,0,s.u,[e.j,e.p,e.H],null,null),(n()(),e.Db(88,0,null,0,13,"ion-item",[],null,null,null,o.jb,o.p)),e.Cb(89,49152,null,0,s.I,[e.j,e.p,e.H],null,null),(n()(),e.Db(90,0,null,0,2,"ion-label",[],null,null,null,o.kb,o.u)),e.Cb(91,49152,null,0,s.O,[e.j,e.p,e.H],null,null),(n()(),e.Vb(-1,0,["Ethnicity:"])),(n()(),e.Db(93,0,null,0,8,"ion-select",[["interface","action-sheet"],["name","npcEthnicity"],["placeholder","Select One"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(n,l,t){var u=!0,r=n.component;return"ionBlur"===l&&(u=!1!==e.Pb(n,94)._handleBlurEvent(t.target)&&u),"ionChange"===l&&(u=!1!==e.Pb(n,94)._handleChangeEvent(t.target)&&u),"ngModelChange"===l&&(u=!1!==(r.ethnicity=t)&&u),u}),o.xb,o.G)),e.Cb(94,16384,null,0,s.Nb,[e.p],null,null),e.Sb(1024,null,b.l,(function(n){return[n]}),[s.Nb]),e.Cb(96,671744,null,0,b.q,[[8,null],[8,null],[8,null],[6,b.l]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),e.Sb(2048,null,b.m,null,[b.q]),e.Cb(98,16384,null,0,b.n,[[4,b.m]],null,null),e.Cb(99,49152,null,0,s.ob,[e.j,e.p,e.H],{interface:[0,"interface"],interfaceOptions:[1,"interfaceOptions"],name:[2,"name"],placeholder:[3,"placeholder"],selectedText:[4,"selectedText"]},null),(n()(),e.sb(16777216,null,0,1,null,P)),e.Cb(101,278528,null,0,c.h,[e.Y,e.U,e.z],{ngForOf:[0,"ngForOf"]},null),(n()(),e.sb(16777216,null,0,1,null,w)),e.Cb(103,16384,null,0,c.i,[e.Y,e.U],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(n()(),e.sb(0,[["loading",2]],null,0,null,N))],(function(n,l){var t=l.component;n(l,10,0,"/"),n(l,11,0,"/"),n(l,27,0,t.randomEncounter&&t.cityEncounter),n(l,29,0,t.randomEncounter&&!t.cityEncounter),n(l,47,0,"npcClass",t.klasse),n(l,50,
10,"action-sheet",t.classActionSheetOptions,"npcClass","Select One",t.klasse),n(l,52,0,t.classOptions),n(l,63,0,"baseLevel",t.level),n(l,66,0,"action-sheet",t.levelActionSheetOptions,"baseLevel","Select One",t.level),n(l,68,0,t.levelOptions),n(l,78,0,t.base),n(l,83,0,t.base),n(l,85,0,!t.base),n(l,96,0,"npcEthnicity",t.ethnicity),n(l,99,0,"action-sheet",t.ethnicityActionSheetOptions,"npcEthnicity","Select One",t.ethnicity),n(l,101,0,t.ethnicityOptions),n(l,103,0,t.npcData,e.Pb(l,104))}),(function(n,l){n(l,44,0,e.Pb(l,49).ngClassUntouched,e.Pb(l,49).ngClassTouched,e.Pb(l,49).ngClassPristine,e.Pb(l,49).ngClassDirty,e.Pb(l,49).ngClassValid,e.Pb(l,49).ngClassInvalid,e.Pb(l,49).ngClassPending),n(l,60,0,e.Pb(l,65).ngClassUntouched,e.Pb(l,65).ngClassTouched,e.Pb(l,65).ngClassPristine,e.Pb(l,65).ngClassDirty,e.Pb(l,65).ngClassValid,e.Pb(l,65).ngClassInvalid,e.Pb(l,65).ngClassPending),n(l,75,0,e.Pb(l,80).ngClassUntouched,e.Pb(l,80).ngClassTouched,e.Pb(l,80).ngClassPristine,e.Pb(l,80).ngClassDirty,e.Pb(l,80).ngClassValid,e.Pb(l,80).ngClassInvalid,e.Pb(l,80).ngClassPending),n(l,93,0,e.Pb(l,98).ngClassUntouched,e.Pb(l,98).ngClassTouched,e.Pb(l,98).ngClassPristine,e.Pb(l,98).ngClassDirty,e.Pb(l,98).ngClassValid,e.Pb(l,98).ngClassInvalid,e.Pb(l,98).ngClassPending)}))}function O(n){return e.Wb(0,[(n()(),e.Db(0,0,null,null,1,"app-random-npc",[],null,null,null,S,d)),e.Cb(1,245760,null,0,r,[p.a,g.a,h.a,s.Jb],null,null)],(function(n,l){n(l,1,0)}),null)}var H=e.zb("app-random-npc",r,O,{},{},[]);t.d(l,"RandomNpcPageModuleNgFactory",(function(){return j}));var j=e.Ab(i,[],(function(n){return e.Mb([e.Nb(512,e.m,e.lb,[[8,[a.a,H]],[3,e.m],e.F]),e.Nb(4608,c.k,c.j,[e.B,[2,c.r]]),e.Nb(4608,b.v,b.v,[]),e.Nb(4608,s.b,s.b,[e.H,e.g]),e.Nb(4608,s.Ib,s.Ib,[s.b,e.m,e.x]),e.Nb(4608,s.Kb,s.Kb,[s.b,e.m,e.x]),e.Nb(1073742336,c.b,c.b,[]),e.Nb(1073742336,b.u,b.u,[]),e.Nb(1073742336,b.j,b.j,[]),e.Nb(1073742336,s.Fb,s.Fb,[]),e.Nb(1073742336,p.p,p.p,[[2,p.u],[2,p.m]]),e.Nb(1073742336,i,i,[]),e.Nb(1024,p.k,(function(){return[[{path:"",component:r}]]}),[])])}))},n90K:function(n,l,t){"use strict";var e=t("mrSG"),u=t("iw74"),r=t("CcnG"),i=function(){function n(){}return n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var l=16*Math.random()|0;return("x"===n?l:3&l|8).toString(16)}))},n.ngInjectableDef=r.ac({factory:function(){return new n},token:n,providedIn:"root"}),n}();t.d(l,"a",(function(){return a}));var a=function(){function n(n){this.storage=n,this.storage=new u.b({name:"AcksApp"})}return n.prototype.getStorage=function(){return this.storage.get("AcksApp")},n.prototype.setDiceList=function(n){var l=[];n.forEach((function(n){l.push({dice:n.name})}));var t=JSON.stringify(l);this.storage.set("AcksApp",t)},n.prototype.clearDiceList=function(){var n=JSON.stringify([]);this.storage.set("AcksApp",n)},n.prototype.setParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.getParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2,"No entry"]}}))}))},n.prototype.setTreasureDataParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.getTreasureDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2]}}
1))}))},n.prototype.setNpcDataParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.getNpcDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2]}}))}))},n.prototype.setMonsterDataParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.getMonsterDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2]}}
1))}))},n.prototype.setEncounterDataParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.modifyEncounterDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(l){return this.storage.set(n.parameterID,JSON.stringify(n)),[2]}))}))},n.prototype.getEncounterDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2]}}))}))},n.prototype.getStoredEncounterDataArray=function(){return e.__awaiter(this,void 0,void 0,(function(){var n,l,t,u,r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.keys()];case 1:n=e.sent(),l=[],t=["Encounter"],u=0,e.label=2;case 2:return u<n.length?t.includes(n[u].split("-")[0])?[4,this.storage.get(n[u])]:[3,7]:[3,8];case 3:return e.sent(),[4,this.storage.get(n[u])];case 4:return null==e.sent()?[3,7]:(a=(i=JSON).parse,[4,this.storage.get(n[u])]);case 5:return[4,a.apply(i,[e.sent()])];case 6:null!=(r=e.sent()).savedEncounter&&l.push(r),e.label=7;case 7:return u++,[3,2];case 8:return[2,l]}}))}))},n.prototype.getStoredNPCDataArray=function(){return e.__awaiter(this,void 0,void 0,(function(){var n,l,t,u,r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.keys()];case 1:n=e.sent(),l=[],t=["NPC","NPC Henchman"],u=0,e.label=2;case 2:return u<n.length?t.includes(n[u].split("-")[0])?[4,this.storage.get(n[u])]:[3,7]:[3,8];case 3:return e.sent(),[4,this.storage.get(n[u])];case 4:return null==e.sent()?[3,7]:(a=(i=JSON).parse,[4,this.storage.get(n[u])]);case 5:return[4,a.apply(i,[e.sent()])];case 6:null!=(r=e.sent()).npc&&l.push(r),e.label=7;case 7:return u++,[3,2];case 8:return[2,l]}}))}))},n.prototype.getStoredNPCPartyDataArray=function(){return e.__awaiter(this,void 0,void 0,(function(){var n,l,t,u,r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.keys()];case 1:n=e.sent(),l=[],t=["NpcParty"],u=0,e.label=2;case 2:return u<n.length?t.includes(n[u].split("-")[0])?[4,this.storage.get(n[u])]:[3,7]:[3,8];case 3:return e.sent(),[4,this.storage.get(n[u])];case 4:return null==e.sent()?[3,7]:(a=(i=JSON).parse,[4,this.storage.get(n[u])]);case 5:return[4,a.apply(i,[e.sent()])];case 6:(r=e.sent()).npcList.length>0&&l.push(r),e.label=7;case 7:return u++,[3,2];case 8:return[2,l]}}))}))},n.prototype.getEncounterList=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.keys()];case 1:return[2,n.sent()]}}))}))},n.prototype.setDragonDataParameter=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){return t=n+"-"+i.newGuid(),l.parameterID=t,this.storage.set(t,JSON.stringify(l)),[2,t]}))}))},n.prototype.getDragonDataParameter=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,5]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[4,t.apply(l,[e.sent()])];case 4:return[2,e.sent()];case 5:return[2]}}
1))}))},n.prototype.setStringArray=function(n,l){return e.__awaiter(this,void 0,void 0,(function(){var t,u,r;return e.__generator(this,(function(e){switch(e.label){case 0:return u=(t=this.storage).set,r=[n],[4,JSON.stringify(l)];case 1:return u.apply(t,r.concat([e.sent()])),[2,!0]}}))}))},n.prototype.getStringArray=function(n){return e.__awaiter(this,void 0,void 0,(function(){var l,t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(n)];case 1:return e.sent(),[4,this.storage.get(n)];case 2:return null==e.sent()?[3,4]:(t=(l=JSON).parse,[4,this.storage.get(n)]);case 3:return[2,t.apply(l,[e.sent()])];case 4:return[2,[]]}}))}))},n.prototype.deleteEntry=function(n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(l){return this.storage.remove(n),[2,!0]}))}))},n.ngInjectableDef=r.ac({factory:function(){return new n(r.bc(u.b))},token:n,providedIn:"root"}),n}()}}]);
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.