local MAJOR_VERSION = "QuestItemStarterDB"
local MINOR_VERSION = 90000 + tonumber(string.match("$Revision: 1 $", "%d+"))

local lib = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not lib then return end

lib.QuestItemStarterIDs = {
	["1307"] = true,	-- Gold Pickup Schedule
	["1357"] = true,	-- Captain Sanders' Treasure Map
	["1962"] = true,	-- Glowing Shadowhide Pendant
	["1971"] = true,	-- Furlbrow's Deed
	["1972"] = true,	-- Westfall Deed
	["2794"] = true,	-- An Old History Book
	["2837"] = true,	-- Thurman's Letter
	["2839"] = true,	-- A Letter to Yvette
	["2874"] = true,	-- An Unsent Letter
	["3317"] = true,	-- A Talking Head
	["3668"] = true,	-- Assassin's Contract
	["3706"] = true,	-- Ensorcelled Parchment
	["3985"] = true,	-- Monogrammed Sash
	["4056"] = true,	-- Cortello's Riddle
	["4098"] = true,	-- Carefully Folded Note
	["4433"] = true,	-- Waterlogged Envelope
	["4613"] = true,	-- Corroded Black Box
	["4614"] = true,	-- Pendant of Myzrael
	["4854"] = true,	-- Demon Scarred Cloak
	["4881"] = true,	-- Aged Envelope
	["4903"] = true,	-- Eye of Burning Shadow
	["4926"] = true,	-- Chen's Empty Keg
	["5102"] = true,	-- Owatanka's Tailspike
	["5103"] = true,	-- Washte Pawne's Feather
	["5099"] = true,	-- Hoof of Lakota'mani
	["5138"] = true,	-- Harvester's Head
	["5179"] = true,	-- Moss-Twined Heart
	["5352"] = true,	-- Book: The Powers Below
	["5790"] = true,	-- Lonebrow's Journal
	["5877"] = true,	-- Cracked Silithid Carapace
	["6172"] = true,	-- Lost Supplies
	["6196"] = true,	-- Noboru's Cudgel
	["6497"] = true,	-- Simple Parchment
	["6775"] = true,	-- Tome of Divinity
	["6776"] = true,	-- Tome of Valor
	["6916"] = true,	-- Tome of Divinity
	["7666"] = true,	-- Shattered Necklace
	["8244"] = true,	-- Flawless Draenethyst Sphere
	["8524"] = true,	-- Model 4711-FTZ Power Source
	["8623"] = true,	-- OOX-17/TN Distress Beacon
	["8704"] = true,	-- OOX-09/HL Distress Beacon
	["8705"] = true,	-- OOX-22/FE Distress Beacon
	["9250"] = true,	-- Ship Schedule
	["9254"] = true,	-- Cuergo's Treasure Map
	["9326"] = true,	-- Grime-Encrusted Ring
	["9370"] = true,	-- Gordunni Scroll
	["10000"] = true,	-- Margol's Horn
	["10441"] = true,	-- Glowing Shard
	["10454"] = true,	-- Essence of Eranikus
	["10589"] = true,	-- Oathstone of Ysera's Dragonflight
	["10593"] = true,	-- Imperfect Draenethyst Fragment
	["10621"] = true,	-- Runed Scroll
	["11116"] = true,	-- A Mangled Journal
	["11463"] = true,	-- Undelivered Parcel
	["11668"] = true,	-- Flute of Xavaric
	["11818"] = true,	-- Grimesilt Outhouse Key
	["12563"] = true,	-- Warlord Goretooth's Command
	["12564"] = true,	-- Assassination Note
	["12558"] = true,	-- Blue-feathered Necklace
	["12771"] = true,	-- Empty Firewater Flask
	["12780"] = true,	-- General Drakkisath's Command
	["12842"] = true,	-- Crudely-Written Log
	["13140"] = true,	-- Blood Red Key
	["13250"] = true,	-- Head of Balnazzar
	["13920"] = true,	-- Healthy Dragon Scale
	["14646"] = true,	-- Goldshire Gift Voucher
	["14647"] = true,	-- Kharanos Gift Voucher
	["14648"] = true,	-- Dolanaar Gift Voucher
	["14649"] = true,	-- Razor Hill Gift Voucher
	["14650"] = true,	-- Bloodhoof Village Gift Voucher
	["14651"] = true,	-- Brill Gift Voucher
	["16303"] = true,	-- Ursangous' Paw
	["16304"] = true,	-- Shadumbra's Head
	["16305"] = true,	-- Sharptalon's Claw
	["16408"] = true,	-- Befouled Water Globe
	["16790"] = true,	-- Damp Note
	["16782"] = true,	-- Strange Water Globe
	["17008"] = true,	-- Small Scroll
	["17126"] = true,	-- Elegant Letter
	["18356"] = true,	-- Garona: A Study on Stealth and Treachery
	["18357"] = true,	-- Codex of Defense
	["18358"] = true,	-- The Arcanist's Cookbook
	["18359"] = true,	-- The Light and How to Swing It
	["18360"] = true,	-- Harnessing Shadows
	["18361"] = true,	-- The Greatest Race of Hunters
	["18362"] = true,	-- Holy Bologna: What the Light Won't Tell You
	["18363"] = true,	-- Frost Shock and You
	["18364"] = true,	-- The Emerald Dream
	["18401"] = true,	-- Foror's Compendium of Dragon Slaying
	["18422"] = true,	-- Head of Onyxia
	["18423"] = true,	-- Head of Onyxia
	["18565"] = true,	-- Vessel of Rebirth DEPRECATED
	["18628"] = true,	-- Thorium Brotherhood Contract
	["18703"] = true,	-- Ancient Petrified Leaf
	["18706"] = true,	-- Arena Master
	["18769"] = true,	-- Enchanted Thorium Platemail
	["18770"] = true,	-- Enchanted Thorium Platemail
	["18771"] = true,	-- Enchanted Thorium Platemail
	["18950"] = true,	-- Chambermaid Pillaclencher's Pillow
	["18972"] = true,	-- Perfect Yeti Hide
	["18969"] = true,	-- Pristine Yeti Hide
	["18987"] = true,	-- Blackhand's Command
	["19002"] = true,	-- Head of Nefarian
	["19003"] = true,	-- Head of Nefarian
	["19802"] = true,	-- Heart of Hakkar
	["19016"] = true,	-- Vessel of Rebirth
	["19018"] = true,	-- Dormant Wind Kissed Blade
	["19228"] = true,	-- Beasts Deck
	["19267"] = true,	-- Elementals Deck
	["19257"] = true,	-- Warlords Deck
	["19277"] = true,	-- Portals Deck
	["19423"] = true,	-- Sayge's Fortune #23
	["19424"] = true,	-- Sayge's Fortune #24
	["19443"] = true,	-- Sayge's Fortune #25
	["19452"] = true,	-- Sayge's Fortune #27
	["20310"] = true,	-- Flayed Demon Skin
	["20461"] = true,	-- Brann Bronzebeard's Lost Letter
	["20483"] = true,	-- Tainted Arcane Sliver
	["20644"] = true,	-- Nightmare Engulfed Object
	["20741"] = true,	-- Deadwood Ritual Totem
	["20742"] = true,	-- Winterfall Ritual Totem
	["20806"] = true,	-- Logistics Task Briefing X
	["20807"] = true,	-- Logistics Task Briefing I
	["20939"] = true,	-- Logistics Task Briefing II
	["20940"] = true,	-- Logistics Task Briefing III
	["20941"] = true,	-- Combat Task Briefing XII
	["20942"] = true,	-- Combat Task Briefing III
	["20943"] = true,	-- Tactical Task Briefing X
	["20944"] = true,	-- Tactical Task Briefing IX
	["20945"] = true,	-- Tactical Task Briefing II
	["20947"] = true,	-- Tactical Task Briefing IV
	["20948"] = true,	-- Tactical Task Briefing V
	["20949"] = true,	-- Magical Ledger
	["21165"] = true,	-- Tactical Task Briefing VI
	["21166"] = true,	-- Tactical Task Briefing VII
	["21167"] = true,	-- Tactical Task Briefing VIII
	["21220"] = true,	-- Head of Ossirian the Unscarred
	["21221"] = true,	-- Eye of C'Thun
	["21230"] = true,	-- Ancient Qiraji Artifact
	["21245"] = true,	-- Tactical Task Briefing I
	["21248"] = true,	-- Combat Task Briefing IV
	["21249"] = true,	-- Combat Task Briefing V
	["21250"] = true,	-- Combat Task Briefing VI
	["21251"] = true,	-- Combat Task Briefing VII
	["21252"] = true,	-- Combat Task Briefing VIII
	["21253"] = true,	-- Combat Task Briefing IX
	["21255"] = true,	-- Combat Task Briefing X
	["21256"] = true,	-- Combat Task Briefing XI
	["21257"] = true,	-- Logistics Task Briefing IV
	["21258"] = true,	-- Logistics Task Briefing IV
	["21259"] = true,	-- Logistics Task Briefing V
	["21260"] = true,	-- Logistics Task Briefing VI
	["21261"] = true,	-- Logistics Task Briefing VI
	["21262"] = true,	-- Logistics Task Briefing VIII
	["21263"] = true,	-- Logistics Task Briefing VII
	["21264"] = true,	-- Logistics Task Briefing VII
	["21265"] = true,	-- Logistics Task Briefing IX
	["21378"] = true,	-- Logistics Task Briefing I
	["21379"] = true,	-- Logistics Task Briefing II
	["21380"] = true,	-- Logistics Task Briefing III
	["21381"] = true,	-- Logistics Task Briefing IX
	["21382"] = true,	-- Logistics Task Briefing V
	["21384"] = true,	-- Logistics Task Briefing VIII
	["21385"] = true,	-- Logistics Task Briefing X
	["21514"] = true,	-- Logistics Task Briefing XI
	["21749"] = true,	-- Combat Task Briefing I
	["21750"] = true,	-- Combat Task Briefing II
	["21751"] = true,	-- Tactical Task Briefing III
	["22520"] = true,	-- The Phylactery of Kel'Thuzad
	["22600"] = true,	-- Craftsman's Writ - Dense Weightstone
	["22601"] = true,	-- Craftsman's Writ - Imperial Plate Chest
	["22602"] = true,	-- Craftsman's Writ - Volcanic Hammer
	["22603"] = true,	-- Craftsman's Writ - Huge Thorium Battleaxe
	["22604"] = true,	-- Craftsman's Writ - Radiant Circlet
	["22605"] = true,	-- Craftsman's Writ - Wicked Leather Headband
	["22606"] = true,	-- Craftsman's Writ - Rugged Armor Kit
	["22607"] = true,	-- Craftsman's Writ - Wicked Leather Belt
	["22608"] = true,	-- Craftsman's Writ - Runic Leather Pants
	["22609"] = true,	-- Craftsman's Writ - Brightcloth Pants
	["22610"] = true,	-- Craftsman's Writ - Runecloth Boots
	["22611"] = true,	-- Craftsman's Writ - Runecloth Bag
	["22612"] = true,	-- Craftsman's Writ - Runecloth Robe
	["22613"] = true,	-- Craftsman's Writ - Goblin Sapper Charge
	["22614"] = true,	-- Craftsman's Writ - Thorium Grenade
	["22615"] = true,	-- Craftsman's Writ - Gnomish Battle Chicken
	["22616"] = true,	-- Craftsman's Writ - Thorium Tube
	["22617"] = true,	-- Craftsman's Writ - Major Mana Potion
	["22618"] = true,	-- Craftsman's Writ - Major Healing Potion
	["22620"] = true,	-- Craftsman's Writ - Greater Arcane Protection Potion
	["22621"] = true,	-- Craftsman's Writ - Potion of Petrification
	["22622"] = true,	-- Craftsman's Writ - Stonescale Eel
	["22623"] = true,	-- Craftsman's Writ - Plated Armorfish
	["22624"] = true,	-- Craftsman's Writ - Lightning Eel
	["22719"] = true,	-- Omarion's Handbook
	["22727"] = true,	-- Frame of Atiesh
	["22723"] = true,	-- A Letter from the Keeper of the Rolls
	["22970"] = true,	-- A Bloodstained Envelope
	["22977"] = true,	-- A Torn Letter
	["22972"] = true,	-- A Careworn Note
	["22973"] = true,	-- A Crumpled Missive
	["22974"] = true,	-- A Ragged Page
	["22975"] = true,	-- A Smudged Document
	["23179"] = true,	-- Flame of Orgrimmar
	["23180"] = true,	-- Flame of Thunder Bluff
	["23181"] = true,	-- Flame of the Undercity
	["23182"] = true,	-- Flame of Stormwind
	["23183"] = true,	-- Flame of Ironforge
	["23184"] = true,	-- Flame of Darnassus
}

-- Keys that are quest items and they are not tagged as quest items.
lib.QuestItemKeyIDs = {
	["2629"] = true,	-- Intrepid Strongbox Key
	["2719"] = true,	-- Small Brass Key
	["3467"] = true,	-- Dull Iron Key
	["3499"] = true,	-- Burnished Gold Key
	["3704"] = true,	-- Rusted Iron Key
	["3930"] = true,	-- Maury's Key
	["4103"] = true,	-- Shackle Key
	["4483"] = true,	-- Burning Key
	["4484"] = true,	-- Cresting Key
	["4485"] = true,	-- Thundering Key
	["5089"] = true,	-- Console Key
	["5475"] = true,	-- Wooden Key
	["5050"] = true,	-- Ignition Key
	["5851"] = true,	-- Cozzle's Key
	["7923"] = true,	-- Defias Tower Key
	["8072"] = true,	-- Silixiz's Tower Key
	["9299"] = true,	-- Thermaplugg's Safe Combination
	["10757"] = true,	-- Ward of the Defiler
	["11079"] = true,	-- Gor'tesh's Lopped Off Head
	["12301"] = true,	-- Bamboo Cage Key
	["20022"] = true,	-- Azure Key
}

-- For some reason these are tagged as quest items. They are not.
lib.InvalidQuestItemIDs = {
	["18169"] = true,	-- Flame Mantle of the Dawn
	["18170"] = true,	-- Frost Mantle of the Dawn
	["18171"] = true,	-- Arcane Mantle of the Dawn
	["18172"] = true,	-- Nature Mantle of the Dawn
	["18173"] = true,	-- Shadow Mantle of the Dawn
	["18182"] = true,	-- Chromatic Mantle of the Dawn
	["20076"] = true,	-- Zandalar Signet of Mojo
	["20078"] = true,	-- Zandalar Signet of Serenity
	["20077"] = true,	-- Zandalar Signet of Might
	["23545"] = true,	-- Power of the Scourge
	["23547"] = true,	-- Resilience of the Scourge
	["23548"] = true,	-- Might of the Scourge
	["23549"] = true,	-- Fortitude of the Scourge
}