{"version":3,"sources":["jsdelivr-header.js","/npm/roastra@1.0.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,aAAc,kBAAsB,CAAE,KAAM,QACnD,MAAM,QACL,WAAA,CAAY,IACY,IAAnB,EAAQ,OACX,KAAK,OAAS,MAEd,KAAK,OAAS,MAGM,IAAjB,EAAQ,WAAmC,IAAjB,EAAQ,MACrC,KAAK,KAAO,MACZ,KAAK,OAAS,OAEd,KAAK,KAAO,EAAQ,KAGW,SAA5B,KAAK,KAAK,gBACb,KAAK,OAAS,OAGf,KAAK,QAAU,CAChB,CACA,GAAA,CAAI,GACH,IAAI,EACQ,CACV,SAAS,UACR,KAAK,MAAM,KAAK,SAAW,SAAS,UAAU,SAE/C,SAAS,UACR,KAAK,MAAM,KAAK,SAAW,SAAS,UAAU,SAE/C,SAAS,UACR,KAAK,MAAM,KAAK,SAAW,SAAS,UAAU,UAT7C,EAYK,SAAS,OAChB,KAAK,MAAM,KAAK,SAAW,SAAS,OAAO,SAbzC,EAeK,SAAS,OAChB,KAAK,MAAM,KAAK,SAAW,SAAS,OAAO,SAhBzC,EAmBF,SAAS,YACR,KAAK,MAAM,KAAK,SAAW,SAAS,YAAY,SAK/C,EAAS,CACZ,SAHc,GAAG,KAAK,QAAQ,KAAK,UAAU,EAAY,WAAW,EAAY,MAAM,QAAe,EAAY,MAAM,KAAY,IAInI,KAAM,KAAK,MAOZ,MAJwB,mBAAb,GACV,EAAS,GAGH,CACR,iBAGc","file":"/npm/roastra@1.0.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/roastra@1.0.4/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import wordList from \"./words.json\" assert { type: \"json\" };\r\nclass Roastra {\r\n\tconstructor(options) {\r\n\t\tif (options.plural === true) {\r\n\t\t\tthis.plural = \"are\";\r\n\t\t} else {\r\n\t\t\tthis.plural = \"is\";\r\n\t\t}\r\n\r\n\t\tif (options.name === false || options.name === undefined) {\r\n\t\t\tthis.name = \"You\";\r\n\t\t\tthis.plural = \"are\";\r\n\t\t} else {\r\n\t\t\tthis.name = options.name;\r\n\t\t}\r\n\r\n\t\tif (this.name.toLowerCase() === \"they\") {\r\n\t\t\tthis.plural = \"are\";\r\n\t\t}\r\n\r\n\t\tthis.options = options;\r\n\t}\r\n\tGet(callback) {\r\n\t\tvar t = {\r\n\t\t\tadjective: [\r\n\t\t\t\twordList.adjective[\r\n\t\t\t\t\tMath.floor(Math.random() * wordList.adjective.length)\r\n\t\t\t\t],\r\n\t\t\t\twordList.adjective[\r\n\t\t\t\t\tMath.floor(Math.random() * wordList.adjective.length)\r\n\t\t\t\t],\r\n\t\t\t\twordList.adjective[\r\n\t\t\t\t\tMath.floor(Math.random() * wordList.adjective.length)\r\n\t\t\t\t],\r\n\t\t\t],\r\n\t\t\tamount: wordList.amount[\r\n\t\t\t\tMath.floor(Math.random() * wordList.amount.length)\r\n\t\t\t],\r\n\t\t\tanimal: wordList.animal[\r\n\t\t\t\tMath.floor(Math.random() * wordList.animal.length)\r\n\t\t\t],\r\n\t\t\tanimal_part:\r\n\t\t\t\twordList.animal_part[\r\n\t\t\t\t\tMath.floor(Math.random() * wordList.animal_part.length)\r\n\t\t\t\t],\r\n\t\t};\r\n\t\tvar sentance = `${this.name} ${this.plural} ${t.adjective[0]} as a ${t.adjective[1]} ${t.amount} of ${t.adjective[2]} ${t.animal} ${t.animal_part}`;\r\n\r\n\t\tvar result = {\r\n\t\t\tsentance,\r\n\t\t\tname: this.name,\r\n\t\t};\r\n\r\n\t\tif (typeof callback === \"function\") {\r\n\t\t\tcallback(result);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}\r\n}\r\n\r\nexport default Roastra;\r\n"]}