@flesh-and-blood/search 2.0.41 → 2.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Wr=Object.create;var le=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames,yt=Object.getOwnPropertySymbols,Kr=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var vt=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))bt.call(t,r)&&vt(e,r,t[r]);if(yt)for(var r of yt(t))Ur.call(t,r)&&vt(e,r,t[r]);return e};var Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yr=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},At=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gr(t))!bt.call(e,n)&&n!==r&&le(e,n,{get:()=>t[n],enumerable:!(i=jr(t,n))||i.enumerable});return e};var G=(e,t,r)=>(r=e!=null?Wr(Kr(e)):{},At(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),Vr=e=>At(le({},"__esModule",{value:!0}),e);var K=Mt((za,$t)=>{var fe=Object.defineProperty,Qr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))kt.call(t,r)&&Ft(e,r,t[r]);if(Ct)for(var r of Ct(t))qr.call(t,r)&&Ft(e,r,t[r]);return e},ti=(e,t)=>Qr(e,Xr(t)),ri=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},ii=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zr(t))!kt.call(e,n)&&n!==r&&fe(e,n,{get:()=>t[n],enumerable:!(i=Jr(t,n))||i.enumerable});return e},ni=e=>ii(fe({},"__esModule",{value:!0}),e),St={};ri(St,{Class:()=>Lt,Foiling:()=>Tt,Format:()=>wt,Fusion:()=>Pt,Hero:()=>Ot,Keyword:()=>Nt,Rarity:()=>Bt,Release:()=>Rt,ReleaseEdition:()=>It,Subtype:()=>Et,Talent:()=>Dt,Treatment:()=>xt,Type:()=>_t,fullSetIdentifiers:()=>zt,setIdentifierToSetMappings:()=>Ht,setToSetIdentifierMappings:()=>ai});$t.exports=ni(St);var Tt=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(Tt||{}),xt=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.DS="Double Sided",e.EA="Extended Art",e.FA="Full Art",e))(xt||{}),Lt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(Lt||{}),wt=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))(wt||{}),Pt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Pt||{}),Bt=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))(Bt||{}),Rt=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.DromaiBlitzDeck="Dromai Blitz Deck",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.IraWelcomeDeck="Ira Welcome Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.Promos="Promos",e))(Rt||{}),It=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(It||{}),Dt=(e=>(e.Royal="Royal",e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Shadow="Shadow",e))(Dt||{}),_t=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(_t||{}),Et=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Et||{}),Ot=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Fai="Fai",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Ot||{}),Nt=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(Nt||{}),zt={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters"},Ht=ti(ei({},zt),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),_e={};for(let[e,t]of Object.entries(Ht)){let r=_e[t];r?r.push(e):_e[t]=[e]}var ai=_e});var ar=Mt((Ha,nr)=>{"use strict";function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(i){Ne(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,t,r){return t&&jt(e.prototype,t),r&&jt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ze(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function ze(e,t){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,t)}function oi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function si(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function li(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return si(e)}function J(e){var t=oi();return function(){var i=me(e),n;if(t){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return li(this,n)}}function te(e){return ci(e)||ui(e)||pi(e)||di()}function ci(e){if(Array.isArray(e))return He(e)}function ui(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,t){if(e){if(typeof e=="string")return He(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return He(e,t)}}function He(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function di(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e){return Array.isArray?Array.isArray(e):Xt(e)==="[object Array]"}var hi=1/0;function fi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-hi?"-0":t}function gi(e){return e==null?"":fi(e)}function $(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function mi(e){return e===!0||e===!1||yi(e)&&Xt(e)=="[object Boolean]"}function Jt(e){return Oe(e)==="object"}function yi(e){return Jt(e)&&e!==null}function N(e){return e!=null}function Ee(e){return!e.trim().length}function Xt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var vi="Incorrect 'index' type",bi=function(t){return"Invalid value for key ".concat(t)},Mi=function(t){return"Pattern length exceeds max of ".concat(t,".")},Ai=function(t){return"Missing ".concat(t," property in key")},Ci=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},Gt=Object.prototype.hasOwnProperty,Fi=function(){function e(t){var r=this;_(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=Zt(n);i+=a.weight,r._keys.push(a),r._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return E(e,[{key:"get",value:function(r){return this._keyMap[r]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function Zt(e){var t=null,r=null,i=null,n=1,a=null;if($(e)||U(e))i=e,t=Kt(e),r=$e(e);else{if(!Gt.call(e,"name"))throw new Error(Ai("name"));var s=e.name;if(i=s,Gt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ci(s));t=Kt(s),r=$e(s),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function Kt(e){return U(e)?e:e.split(".")}function $e(e){return U(e)?e.join("."):e}function ki(e,t){var r=[],i=!1,n=function a(s,o,c){if(N(s))if(!o[c])r.push(s);else{var u=o[c],p=s[u];if(!N(p))return;if(c===o.length-1&&($(p)||Qt(p)||mi(p)))r.push(gi(p));else if(U(p)){i=!0;for(var f=0,d=p.length;f<d;f+=1)a(p[f],o,c+1)}else o.length&&a(p,o,c+1)}};return n(e,$(t)?t.split("."):t,0),i?r:r[0]}var Si={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ti={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,r){return t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1}},xi={location:0,threshold:.6,distance:100},Li={useExtendedSearch:!1,getFn:ki,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},C=ne(ne(ne(ne({},Ti),Si),xi),Li),wi=/[^ ]+/g;function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,r=new Map,i=Math.pow(10,t);return{get:function(a){var s=a.match(wi).length;if(r.has(s))return r.get(s);var o=1/Math.pow(s,.5*e),c=parseFloat(Math.round(o*i)/i);return r.set(s,c),c},clear:function(){r.clear()}}}var Ue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?C.getFn:r,n=t.fieldNormWeight,a=n===void 0?C.fieldNormWeight:n;_(this,e),this.norm=Pi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return E(e,[{key:"setSources",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=r}},{key:"setIndexRecords",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=r}},{key:"setKeys",value:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){r._keysMap[n.id]=a})}},{key:"create",value:function(){var r=this;this.isCreated||!this.docs.length||(this.isCreated=!0,$(this.docs[0])?this.docs.forEach(function(i,n){r._addString(i,n)}):this.docs.forEach(function(i,n){r._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(r){var i=this.size();$(r)?this._addString(r,i):this._addObject(r,i)}},{key:"removeAt",value:function(r){this.records.splice(r,1);for(var i=r,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(r,i){return r[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(r,i){if(!(!N(r)||Ee(r))){var n={v:r,i,n:this.norm.get(r)};this.records.push(n)}}},{key:"_addObject",value:function(r,i){var n=this,a={i,$:{}};this.keys.forEach(function(s,o){var c=s.getFn?s.getFn(r):n.getFn(r,s.path);if(N(c)){if(U(c))(function(){for(var p=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var d=f.pop(),m=d.nestedArrIndex,y=d.value;if(N(y))if($(y)&&!Ee(y)){var g={v:y,i:m,n:n.norm.get(y)};p.push(g)}else U(y)&&y.forEach(function(h,v){f.push({nestedArrIndex:v,value:h})})}a.$[o]=p})();else if($(c)&&!Ee(c)){var u={v:c,n:n.norm.get(c)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function qt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?C.getFn:i,a=r.fieldNormWeight,s=a===void 0?C.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Zt)),o.setSources(t),o.create(),o}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getFn,i=r===void 0?C.getFn:r,n=t.fieldNormWeight,a=n===void 0?C.fieldNormWeight:n,s=e.keys,o=e.records,c=new Ue({getFn:i,fieldNormWeight:a});return c.setKeys(s),c.setIndexRecords(o),c}function ge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.errors,i=r===void 0?0:r,n=t.currentLocation,a=n===void 0?0:n,s=t.expectedLocation,o=s===void 0?0:s,c=t.distance,u=c===void 0?C.distance:c,p=t.ignoreLocation,f=p===void 0?C.ignoreLocation:p,d=i/e.length;if(f)return d;var m=Math.abs(o-a);return u?d+m/u:m?1:d}function Ri(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C.minMatchCharLength,r=[],i=-1,n=-1,a=0,s=e.length;a<s;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=t&&r.push([i,n]),i=-1)}return e[a-1]&&a-i>=t&&r.push([i,a-1]),r}var ee=32;function Ii(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?C.location:n,s=i.distance,o=s===void 0?C.distance:s,c=i.threshold,u=c===void 0?C.threshold:c,p=i.findAllMatches,f=p===void 0?C.findAllMatches:p,d=i.minMatchCharLength,m=d===void 0?C.minMatchCharLength:d,y=i.includeMatches,g=y===void 0?C.includeMatches:y,h=i.ignoreLocation,v=h===void 0?C.ignoreLocation:h;if(t.length>ee)throw new Error(Mi(ee));for(var M=t.length,b=e.length,T=Math.max(0,Math.min(a,b)),L=u,S=T,w=m>1||g,I=w?Array(b):[],D;(D=e.indexOf(t,S))>-1;){var Y=ge(t,{currentLocation:D,expectedLocation:T,distance:o,ignoreLocation:v});if(L=Math.min(Y,L),S=D+M,w)for(var O=0;O<M;)I[D+O]=1,O+=1}S=-1;for(var B=[],z=1,re=M+b,zr=1<<M-1,q=0;q<M;q+=1){for(var pe=0,V=re;pe<V;){var Hr=ge(t,{errors:q,currentLocation:T+V,expectedLocation:T,distance:o,ignoreLocation:v});Hr<=L?pe=V:re=V,V=Math.floor((re-pe)/2+pe)}re=V;var ft=Math.max(1,T-V+1),Ie=f?b:Math.min(T+V,b)+M,ie=Array(Ie+2);ie[Ie+1]=(1<<q)-1;for(var H=Ie;H>=ft;H-=1){var de=H-1,gt=r[e.charAt(de)];if(w&&(I[de]=+!!gt),ie[H]=(ie[H+1]<<1|1)>,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&zr&&(z=ge(t,{errors:q,currentLocation:de,expectedLocation:T,distance:o,ignoreLocation:v}),z<=L)){if(L=z,S=de,S<=T)break;ft=Math.max(1,2*T-S)}}var $r=ge(t,{errors:q+1,currentLocation:T,expectedLocation:T,distance:o,ignoreLocation:v});if($r>L)break;B=ie}var De={isMatch:S>=0,score:Math.max(.001,z)};if(w){var mt=Ri(I,m);mt.length?g&&(De.indices=mt):De.isMatch=!1}return De}function Di(e){for(var t={},r=0,i=e.length;r<i;r+=1){var n=e.charAt(r);t[n]=(t[n]||0)|1<<i-r-1}return t}var er=function(){function e(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?C.location:n,s=i.threshold,o=s===void 0?C.threshold:s,c=i.distance,u=c===void 0?C.distance:c,p=i.includeMatches,f=p===void 0?C.includeMatches:p,d=i.findAllMatches,m=d===void 0?C.findAllMatches:d,y=i.minMatchCharLength,g=y===void 0?C.minMatchCharLength:y,h=i.isCaseSensitive,v=h===void 0?C.isCaseSensitive:h,M=i.ignoreLocation,b=M===void 0?C.ignoreLocation:M;if(_(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:b},this.pattern=v?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var T=function(O,B){r.chunks.push({pattern:O,alphabet:Di(O),startIndex:B})},L=this.pattern.length;if(L>ee){for(var S=0,w=L%ee,I=L-w;S<I;)T(this.pattern.substr(S,ee),S),S+=ee;if(w){var D=L-ee;T(this.pattern.substr(D),D)}}else T(this.pattern,0)}}return E(e,[{key:"searchIn",value:function(r){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(r=r.toLowerCase()),this.pattern===r){var s={isMatch:!0,score:0};return a&&(s.indices=[[0,r.length-1]]),s}var o=this.options,c=o.location,u=o.distance,p=o.threshold,f=o.findAllMatches,d=o.minMatchCharLength,m=o.ignoreLocation,y=[],g=0,h=!1;this.chunks.forEach(function(M){var b=M.pattern,T=M.alphabet,L=M.startIndex,S=Ii(r,b,T,{location:c+L,distance:u,threshold:p,findAllMatches:f,minMatchCharLength:d,includeMatches:a,ignoreLocation:m}),w=S.isMatch,I=S.score,D=S.indices;w&&(h=!0),g+=I,w&&D&&(y=[].concat(te(y),te(D)))});var v={isMatch:h,score:h?g/this.chunks.length:1};return h&&a&&(v.indices=y),v}}]),e}(),X=function(){function e(t){_(this,e),this.pattern=t}return E(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(r){return Ut(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return Ut(r,this.singleRegex)}}]),e}();function Ut(e,t){var r=e.match(t);return r?r[1]:null}var _i=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),r}(X),Ei=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),s=a===-1;return{isMatch:s,score:s?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),r}(X),Oi=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),r}(X),Ni=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),r}(X),zi=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),r}(X),Hi=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(X),tr=function(e){Q(r,e);var t=J(r);function r(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?C.location:s,c=a.threshold,u=c===void 0?C.threshold:c,p=a.distance,f=p===void 0?C.distance:p,d=a.includeMatches,m=d===void 0?C.includeMatches:d,y=a.findAllMatches,g=y===void 0?C.findAllMatches:y,h=a.minMatchCharLength,v=h===void 0?C.minMatchCharLength:h,M=a.isCaseSensitive,b=M===void 0?C.isCaseSensitive:M,T=a.ignoreLocation,L=T===void 0?C.ignoreLocation:T;return _(this,r),n=t.call(this,i),n._bitapSearch=new er(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:g,minMatchCharLength:v,isCaseSensitive:b,ignoreLocation:L}),n}return E(r,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),r}(X),rr=function(e){Q(r,e);var t=J(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{key:"search",value:function(n){for(var a=0,s,o=[],c=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+c,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(X),We=[_i,rr,Oi,Ni,Hi,zi,Ei,tr],Yt=We.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Wi="|";function ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(Wi).map(function(r){for(var i=r.trim().split($i).filter(function(y){return y&&!!y.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],c=!1,u=-1;!c&&++u<Yt;){var p=We[u],f=p.isMultiMatch(o);f&&(n.push(new p(f,t)),c=!0)}if(!c)for(u=-1;++u<Yt;){var d=We[u],m=d.isSingleMatch(o);if(m){n.push(new d(m,t));break}}}return n})}var Gi=new Set([tr.type,rr.type]),Ki=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?C.isCaseSensitive:i,a=r.includeMatches,s=a===void 0?C.includeMatches:a,o=r.minMatchCharLength,c=o===void 0?C.minMatchCharLength:o,u=r.ignoreLocation,p=u===void 0?C.ignoreLocation:u,f=r.findAllMatches,d=f===void 0?C.findAllMatches:f,m=r.location,y=m===void 0?C.location:m,g=r.threshold,h=g===void 0?C.threshold:g,v=r.distance,M=v===void 0?C.distance:v;_(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:c,findAllMatches:d,ignoreLocation:p,location:y,threshold:h,distance:M},this.pattern=n?t:t.toLowerCase(),this.query=ji(this.pattern,this.options)}return E(e,[{key:"searchIn",value:function(r){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,s=n.isCaseSensitive;r=s?r:r.toLowerCase();for(var o=0,c=[],u=0,p=0,f=i.length;p<f;p+=1){var d=i[p];c.length=0,o=0;for(var m=0,y=d.length;m<y;m+=1){var g=d[m],h=g.search(r),v=h.isMatch,M=h.indices,b=h.score;if(v){if(o+=1,u+=b,a){var T=g.constructor.type;Gi.has(T)?c=[].concat(te(c),te(M)):c.push(M)}}else{u=0,o=0,c.length=0;break}}if(o){var L={isMatch:!0,score:u/o};return a&&(L.indices=c),L}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(r,i){return i.useExtendedSearch}}]),e}(),ye=[];function Ui(){ye.push.apply(ye,arguments)}function je(e,t){for(var r=0,i=ye.length;r<i;r+=1){var n=ye[r];if(n.condition(e,t))return new n(e,t)}return new er(e,t)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(t){return!!(t[ve.AND]||t[ve.OR])},Yi=function(t){return!!t[Ge.PATH]},Vi=function(t){return!U(t)&&Jt(t)&&!Ke(t)},Vt=function(t){return Ne({},ve.AND,Object.keys(t).map(function(r){return Ne({},r,t[r])}))};function ir(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.auto,n=i===void 0?!0:i,a=function s(o){var c=Object.keys(o),u=Yi(o);if(!u&&c.length>1&&!Ke(o))return s(Vt(o));if(Vi(o)){var p=u?o[Ge.PATH]:c[0],f=u?o[Ge.PATTERN]:o[p];if(!$(f))throw new Error(bi(p));var d={keyId:$e(p),pattern:f};return n&&(d.searcher=je(f,t)),d}var m={children:[],operator:c[0]};return c.forEach(function(y){var g=o[y];U(g)&&g.forEach(function(h){m.children.push(s(h))})}),m};return Ke(e)||(e=Vt(e)),a(e)}function Qi(e,t){var r=t.ignoreFieldNorm,i=r===void 0?C.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,c=s.norm,u=s.score,p=o?o.weight:null;a*=Math.pow(u===0&&p?Number.EPSILON:u,(p||1)*(i?1:c))}),n.score=a})}function Ji(e,t){var r=e.matches;t.matches=[],N(r)&&r.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,s={indices:n,value:a};i.key&&(s.key=i.key.src),i.idx>-1&&(s.refIndex=i.idx),t.matches.push(s)}})}function Xi(e,t){t.score=e.score}function Zi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.includeMatches,n=i===void 0?C.includeMatches:i,a=r.includeScore,s=a===void 0?C.includeScore:a,o=[];return n&&o.push(Ji),s&&o.push(Xi),e.map(function(c){var u=c.idx,p={item:t[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,p)}),p})}var ae=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;_(this,e),this.options=ne(ne({},C),r),this.options.useExtendedSearch,this._keyStore=new Fi(this.options.keys),this.setCollection(t,i)}return E(e,[{key:"setCollection",value:function(r,i){if(this._docs=r,i&&!(i instanceof Ue))throw new Error(vi);this._myIndex=i||qt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(r){N(r)&&(this._docs.push(r),this._myIndex.add(r))}},{key:"remove",value:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var s=this._docs[n];r(s,n)&&(this.removeAt(n),n-=1,a-=1,i.push(s))}return i}},{key:"removeAt",value:function(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,s=this.options,o=s.includeMatches,c=s.includeScore,u=s.shouldSort,p=s.sortFn,f=s.ignoreFieldNorm,d=$(r)?$(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Qi(d,{ignoreFieldNorm:f}),u&&d.sort(p),Qt(a)&&a>-1&&(d=d.slice(0,a)),Zi(d,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(r){var i=je(r,this.options),n=this._myIndex.records,a=[];return n.forEach(function(s){var o=s.v,c=s.i,u=s.n;if(N(o)){var p=i.searchIn(o),f=p.isMatch,d=p.score,m=p.indices;f&&a.push({item:o,idx:c,matches:[{score:d,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=ir(r,this.options),a=function u(p,f,d){if(!p.children){var m=p.keyId,y=p.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return g&&g.length?[{idx:d,item:f,matches:g}]:[]}for(var h=[],v=0,M=p.children.length;v<M;v+=1){var b=p.children[v],T=u(b,f,d);if(T.length)h.push.apply(h,te(T));else if(p.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},c=[];return s.forEach(function(u){var p=u.$,f=u.i;if(N(p)){var d=a(n,p,f);d.length&&(o[f]||(o[f]={idx:f,item:p,matches:[]},c.push(o[f])),d.forEach(function(m){var y,g=m.matches;(y=o[f].matches).push.apply(y,te(g))}))}}),c}},{key:"_searchObjectList",value:function(r){var i=this,n=je(r,this.options),a=this._myIndex,s=a.keys,o=a.records,c=[];return o.forEach(function(u){var p=u.$,f=u.i;if(N(p)){var d=[];s.forEach(function(m,y){d.push.apply(d,te(i._findMatches({key:m,value:p[y],searcher:n})))}),d.length&&c.push({idx:f,item:p,matches:d})}}),c}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!N(n))return[];var s=[];if(U(n))n.forEach(function(m){var y=m.v,g=m.i,h=m.n;if(N(y)){var v=a.searchIn(y),M=v.isMatch,b=v.score,T=v.indices;M&&s.push({score:b,key:i,value:y,idx:g,norm:h,indices:T})}});else{var o=n.v,c=n.n,u=a.searchIn(o),p=u.isMatch,f=u.score,d=u.indices;p&&s.push({score:f,key:i,value:o,norm:c,indices:d})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=qt;ae.parseIndex=Bi;ae.config=C;ae.parseQuery=ir;Ui(Ki);var qi=ae;nr.exports=qi});var Oa={};Yr(Oa,{PUNCTUATION:()=>x,abbreviations:()=>Qe,availableExclusions:()=>Br,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Ve,default:()=>Dr,filterCard:()=>_r,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>Me,getAbbreviationByCard:()=>en,getCardByName:()=>lt,getDeckFilters:()=>ia,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>Ia,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>ht,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Ea,heroHasFilters:()=>na,shorthands:()=>rt});module.exports=Vr(Oa);var P=G(K()),ct=G(ar());var be=G(K()),Ye=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Ve=[{heroes:[be.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[be.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[be.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var x=/[!"#$%&'’()+,-./:;<=>?@[\]^_`|~]/g;var k=G(K());var Me=e=>Qe.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),en=e=>Qe.find(({card:t})=>t.toLowerCase()===e.name.toLowerCase()),Qe=[{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["\u{1F382}","Cake"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["C&C","CnC"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["PJs","Pajamas"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var l=G(K());var Se=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,t=[])=>{let r=[...e,l.Class.Generic];return t.length>0&&r.push(l.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},tn(t)]},F=(e,t=[])=>{let r=Object.values(l.Hero).filter(i=>i!==e&&!t.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:r,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:r,excluded:!0,isOr:!0}]},tn=e=>{let t=Object.values(l.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},Te=[l.Talent.Draconic],rn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice,l.Talent.Lightning],nn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice],an=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Lightning],on=[l.Talent.Elemental,l.Talent.Ice],sn=[l.Talent.Elemental,l.Talent.Ice,l.Talent.Lightning],Ze=[l.Talent.Light],qe=[l.Talent.Shadow],ln=[...A([l.Class.Assassin]),...F(l.Hero.Arakni)],cn=[...A([l.Class.Ranger]),...F(l.Hero.Azalea)],un=[...A([l.Class.Ninja]),...F(l.Hero.Benji)],pn=[...A([l.Class.Guardian]),...F(l.Hero.Betsy)],dn=[...A([l.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...F(l.Hero.Boltyn)],hn=[...A([l.Class.Guardian]),...F(l.Hero.Bravo)],fn=[...A([l.Class.Guardian]),...F(l.Hero.Brevant)],gn=[...A([l.Class.Runeblade],an),...F(l.Hero.Briar)],mn=[...A([l.Class.Runeblade],qe),...F(l.Hero.Chane)],yn=[...A([l.Class.Mechanologist]),...F(l.Hero.Dash)],Je=[...A([l.Class.Mechanologist]),...F(l.Hero.DataDoll)],or=[...A([l.Class.Warrior]),...F(l.Hero.Dorinthea)],vn=[...A([l.Class.Illusionist],Te),...F(l.Hero.Dromai,[l.Hero.Fai])],bn=[...A([l.Class.Warrior,l.Class.Wizard],Te),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[l.Type.Action,l.Type.AttackReaction,l.Type.DefenseReaction,l.Type.Instant,l.Type.Mentor,l.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...F(l.Hero.Emperor)],Mn=[...A([l.Class.Ninja],Te),...F(l.Hero.Fai,[l.Hero.Dromai])],sr=[...A([l.Class.Merchant]),...F(l.Hero.GenisWotchuneed)],An=[...A([l.Class.Ninja]),...F(l.Hero.Ira)],lr=[...A([l.Class.Wizard],on),...F(l.Hero.Iyslander)],Cn=[...A([l.Class.Wizard])],Fn=[...A([l.Class.Warrior]),...F(l.Hero.Kassai)],kn=[...A([l.Class.Ninja]),...F(l.Hero.Katsu)],Sn=[...A([l.Class.Merchant]),...F(l.Hero.Kavdaen)],Tn=[...A([l.Class.Brute]),...F(l.Hero.Kayo)],xn=[...A([l.Class.Brute],qe),...F(l.Hero.Levia)],Ln=[...A([l.Class.Ranger],sn),...F(l.Hero.Lexi)],wn=[...A([l.Class.Mechanologist]),...F(l.Hero.Maxx)],Pn=[...A([l.Class.Bard]),...F(l.Hero.Melody)],Bn=[...A([l.Class.Guardian],nn),...F(l.Hero.Oldhim)],Rn=[...A([l.Class.Warrior]),...F(l.Hero.Olympia)],In=[...A([l.Class.Illusionist],Ze),...F(l.Hero.Prism)],Dn=[...A([l.Class.Brute]),...F(l.Hero.Rhinar)],_n=[...A([l.Class.Ranger]),...F(l.Hero.Riptide)],En=[...A([l.Class.Merchant]),...F(l.Hero.Ruudi)],On=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Nn=[...A([l.Class.Merchant]),...F(l.Hero.Squizzy)],zn=[...A([l.Class.Guardian],rn),...F(l.Hero.Bravo)],Hn=[...A([l.Class.Adjudicator],Te),...F(l.Hero.Taipanis)],$n=[...A([]),...F(l.Hero.Taylor)],Wn=[...A([l.Class.Mechanologist]),...F(l.Hero.Teklovossen)],jn=[...A([l.Class.Adjudicator],Ze),...F(l.Hero.Theryon)],Gn=[...A([l.Class.Assassin]),...F(l.Hero.Uzuri)],Kn=[...A([l.Class.Guardian]),...F(l.Hero.Valda)],Un=[...A([l.Class.Guardian]),...F(l.Hero.Victor)],Yn=[...A([l.Class.Runeblade]),...F(l.Hero.Viserai)],Vn=[...A([l.Class.Runeblade],qe),...F(l.Hero.Vynnset)],Qn=[...A([l.Class.Bard]),...F(l.Hero.Yorick)],Jn=[...A([l.Class.Guardian]),...F(l.Hero.Yoji)],Xn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],cr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Zn=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Ae=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],oe=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],qn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Xe=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ce={blitz:Xn,"blitz ll":cr,"blitz living legend":cr,clash:Zn,cc:Ae,classic:Ae,"classic constructed":Ae,ll:oe,"living legend":oe,"cc ll":oe,"ll cc":oe,"classic constructed ll":oe,"classic constructed living legend":oe,constructed:Ae,commoner:qn,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:ln,azalea:cn,benji:un,betsy:pn,boltyn:dn,bravo:hn,brevant:fn,briar:gn,chane:mn,dash:yn,data:Je,"data doll":Je,datadoll:Je,dori:or,dorinthea:or,dromai:vn,emperor:bn,fai:Mn,genis:sr,geniswotchuneed:sr,ira:An,iyslander:lr,islander:lr,kano:Cn,kassai:Fn,katsu:kn,kavdaen:Sn,kayo:Tn,levia:xn,lexi:Ln,maxx:wn,melody:Pn,oldhim:Bn,olympia:Rn,prism:In,rhinar:Dn,riptide:_n,ruudi:En,shiyana:On,squizzy:Nn,starvo:zn,taipanis:Hn,taylor:$n,teklovossen:Wn,theryon:jn,uzuri:Gn,valda:Kn,victor:Un,viserai:Yn,vynnset:Vn,yorick:Qn,yoji:Jn},Ce=["common","rare","super rare","majestic","legendary","fabled"],ea=(e,t,r)=>{let i=[];if(!t)i.push(...e);else for(let n of e)switch(t){case">=":let a=!1;for(let u of Ce)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let s=!1;for(let u of Ce)s?i.push(u):u===n&&(s=!0);break;case"<=":let o=!1;for(let u of Ce.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let c=!1;for(let u of Ce.slice().reverse())c?i.push(u):u===n&&(c=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},ta=(e,t)=>{let r=[];for(let i of e)if(ce[i]){let n=ce[i];for(let a of n){let s=he({},a);t&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),r.push(s)}}return r},et=(e,t,r,i)=>{let n=[];return oa(t)?n.push(...ta(r,e)):la(t)&&n.push(ea(r,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],W=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Fe=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],Z=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(l.Talent).map(e=>e.toLowerCase())}],ra={"!co":se,"-co":se,"!cost":se,"-cost":se,"!color":se,"-color":se,"!b":W,"-b":W,"!block":W,"-block":W,"!d":W,"-d":W,"!def":W,"-def":W,"!defense":W,"-defense":W,"!pitch":Fe,"-pitch":Fe,"!p":Fe,"-p":Fe,"!attack":Z,"-attack":Z,"!power":Z,"-power":Z,"!pwr":Z,"-pwr":Z,"!pow":Z,"-pow":Z,"!talents":ke,"-talents":ke,"!tal":ke,"-tal":ke},tt=e=>{let t=[],r=ra[e];return r&&t.push(...r),t},ia=(e,t)=>[...ce[e.toLowerCase()],...t?ce[t.toLowerCase()]:[]],na=e=>{var t;return((t=ce[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},aa=["l","legal","hero"],oa=e=>aa.includes(e),sa=["r","rarity"],la=e=>sa.includes(e);var rt={aa:["st:attack"],ab:['k:"arcane barrier"'],ar:['t:"attack reaction"'],dr:['t:"defense reaction"'],ga:['k:"go again"'],naa:["t:action","st:nonattack"],poppers:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],popper:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],sv:['k:"spellvoid"']};var Pr=[">=",">","<=","<"],Br=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},ca={property:"n/a"},ur={property:"classes",isArray:!0,partialMatch:!0},pr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},dr={nestedProperty:"foiling",property:"printings",isArray:!0},hr={property:"fusions",isArray:!0},fr={property:"intellect",isNumber:!0},gr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},mr={property:"life",specialProperty:"specialLife",isNumber:!0},yr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},xe={property:"power",specialProperty:"specialPower",isNumber:!0},vr={property:"n/a",isMeta:!0},ua={property:"n/a"},pa={property:"n/a"},br={property:"restrictedFormats",isArray:!0,partialMatch:!0},Mr={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Ar={property:"subtypes",isArray:!0},Cr={property:"types",isArray:!0},Fr={property:"talents",isArray:!0},da={property:"functionalText",isString:!0,partialMatch:!0},ha={property:"typeText",isString:!0,partialMatch:!0},we={nestedProperty:"treatment",property:"printings",isArray:!0},Pe={a:it,artist:it,art:it,attack:xe,b:ue,block:ue,c:ur,class:ur,chain:ca,co:pr,cost:pr,color:at,d:ue,def:ue,defense:ue,f:hr,fusion:hr,foil:dr,foiling:dr,i:fr,intellect:fr,k:gr,keyword:gr,l:nt,legal:nt,hero:nt,li:mr,life:mr,n:yr,name:yr,p:at,pitch:at,pwr:xe,pow:xe,power:xe,r:vr,rarity:vr,referencedby:ua,references:pa,rf:br,restricted:br,s:Mr,set:Mr,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Ar,subtype:Ar,t:Cr,type:Cr,tal:Fr,talent:Fr,text:da,treat:we,treatment:we,var:we,variation:we,x:ha},fa=[{text:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(x,"")}],ga=e=>{var n;let t=[],r=e.trim().toLowerCase();for(let{text:a,override:s}of fa)r.includes(a)&&(r=r.replace(a,s));if((n=Me(r))==null?void 0:n.card)t.push(r);else{let a=r.split(/[ ]+/),s="",o=0;for(let c of a)o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&c.split('"').length===2?(s+=" "+c,o++):o===0&&s===""?t.push(c):o===1&&(s+=" "+c);o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0)}return t},ma=[k.Hero.Briar,k.Hero.Emperor,k.Hero.Prism,k.Hero.Shiyana,k.Hero.Taylor],st=(e,t)=>{var f;let r=ga(e),i=[];for(let d of r){let m=rt[d];m?i.push(...m):i.push(d)}let n=[],a=[],s=[],o=[],c=[],u=[],p={isClash:!1,heroes:[]};for(let d of i)if(Sa(d)){let[m,y]=d.split(":"),{modifier:g,values:h,isAnd:v,isOr:M}=Fa(y),{filterKey:b,excluded:T,isMeta:L}=ka(m);if(L){if(["rarity","r"].includes(b)&&(h=Ca(h)),["legal","l","hero"].includes(b)){for(let S of ma)y.includes(S.toLowerCase())&&(p.heroes.includes(S)||p.heroes.push(S));y.includes("clash")&&(p.isClash=!0)}n.push(...et(T,b,h,g))}else{if(["chain"].includes(b)){let S=B=>B.name.toLowerCase().replaceAll(x,""),w=h.map(B=>lt(B,t)).filter(B=>!!B).map(S),I=new Set(w);b="name",M=!0;let D=20,Y=0,O=B=>{if(!B.types.includes(k.Type.Hero)){let z=S(B);I.add(z),w.includes(z)||w.push(z)}};for(let B of w){if(Y>D)break;let{referencedBy:z,references:re}=Be(B,t);re.forEach(O),Y===0&&z.forEach(O),Y++}h=Array.from(I)}else if(["referencedby","references"].includes(b)){let S=b,w=[...h].filter(I=>!!I);h=[],b="name",M=!0;for(let I of w){let{referencedBy:D,references:Y}=Be(I,t);["referencedby"].includes(S)?h.push(...Y.map(({name:O})=>O.toLowerCase().replaceAll(x,""))):["references"].includes(S)&&h.push(...D.map(({name:O})=>O.toLowerCase().replaceAll(x,"")))}}else["art","artist"].includes(b)?a=h:["foiling","foil"].includes(b)?(o=Ma(h),h=o.map(S=>S.toLowerCase())):["treat","treatment","var","variation"].includes(b)?(u=Aa(h),h=u.map(S=>S.toLowerCase())):["set","s"].includes(b)?(c=ya(h),h=c.map(S=>S.toLowerCase().replaceAll(x,""))):["pitch","p","color"].includes(b)&&(h=ba(h));Pe[b]&&n.push({filterToPropertyMapping:Pe[b],values:h,isAnd:v,isOr:M,modifier:g,excluded:T})}}else if(d){let m=(f=Me(d))==null?void 0:f.card,y=tt(d);m?s.push(`"${m.toLowerCase().replace(x,"")}"`):y&&y.length>0?n.push(...y):s.push(d.replace(x,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:c,treatments:u},keywords:s,specialConditions:p}},ya=e=>{let t=[];for(let r of e)t.push(...va(r));return t},va=e=>{let t=[],r=Object.values(k.Release).find(i=>i.toLowerCase().replaceAll(x,"")===e);if(r&&t.push(r),t.length===0){let i=k.setIdentifierToSetMappings[e];i&&t.push(i)}if(t.length===0){let i=Object.values(k.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&t.push(...i)}return t},ot={blue:3,yellow:2,red:1,white:0},ba=e=>{let t=[];for(let r of e)ot[r]||ot[r]===0?t.push(ot[r].toString()):t.push(r);return t},kr={r:k.Foiling.R,rf:k.Foiling.R,rainbow:k.Foiling.R,c:k.Foiling.C,cf:k.Foiling.C,cold:k.Foiling.C,g:k.Foiling.G,gf:k.Foiling.G,gold:k.Foiling.G},Ma=e=>{let t=[];for(let r of e)kr[r]&&t.push(kr[r]);return t},Sr={aa:k.Treatment.AA,alt:k.Treatment.AA,"alt art":k.Treatment.AA,ab:k.Treatment.AB,"alt border":k.Treatment.AB,at:k.Treatment.AT,"alt text":k.Treatment.AT,ds:k.Treatment.DS,"double sided":k.Treatment.DS,ea:k.Treatment.EA,extended:k.Treatment.EA,"extended art":k.Treatment.EA,fa:k.Treatment.FA,full:k.Treatment.FA,"full art":k.Treatment.FA},Aa=e=>{let t=[];for(let r of e)Sr[r]?t.push(Sr[r]):k.Treatment[r.toUpperCase()]&&t.push(k.Treatment[r.toUpperCase()]);return t},Tr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},Ca=e=>{let t=[];for(let r of e)Tr[r]?t.push(Tr[r]):t.push(r);return t},Fa=e=>{let t=[],r,i,n=Pr.find(a=>e.includes(a));if(n){let[,a]=e.split(n);xr(a)?(r=!0,t.push(...a.trim().split("+").map(s=>s.replace(x,"")))):Lr(a)?(i=!0,t.push(...a.trim().split(",").map(s=>s.replace(x,"")))):t.push(a.trim().replace(x,""))}else xr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(x,"")))):Lr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(x,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(x,"")):t.push(e.trim().replace(x,""));return{modifier:n,values:t,isAnd:r,isOr:i}},ka=e=>{let t=Ta(e);if(t){let[,r]=e.split(t);return{excluded:!0,filterKey:r,isMeta:wr(r)}}else return{excluded:!1,filterKey:e,isMeta:wr(e)}},Sa=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Lr=e=>e.indexOf(",")>=0,wr=e=>{var t;return!!((t=Pe[e])!=null&&t.isMeta)},Ta=e=>{var t;return(t=Br.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var R=G(K()),Rr={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[R.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artist:"Hoodwill",identifier:"FNG000",image:"FNG000",print:"FNG000",set:R.Release.Promos},{artist:"Hoodwill",identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${R.Treatment.FA}`,set:R.Release.Promos,treatment:R.Treatment.FA}],name:"Fangs A Lot",rarities:[R.Rarity.Rare],rarity:R.Rarity.Rare,sets:[R.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[R.Subtype.Attack],types:[R.Type.Action],typeText:"Generic Action - Attack"},Ir=[{keyword:Rr.name.toLowerCase(),card:Rr}];var ut=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(t,this.cards),c=s.join(" "),u=r?Ir.filter(g=>g.keyword===c):[];if(u.length>0?i=u.map(({card:g})=>g):s.length?i=this.fuse.search(c).map(g=>g.item):i=[...this.cards],n.length&&(i=i.filter(g=>g&&_r(g,n,o)),n.some(({excluded:g,values:h})=>!g&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(g=>!g.young)),n.some(({excluded:g,values:h})=>!g&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(g=>{let{types:h,young:v}=g;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let g="";if(a.releases.length===1)try{let h=a.releases[0];g=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}g?i.sort((h,v)=>{var T,L;let M=(T=h.setIdentifiers.find(S=>S.includes(g)))==null?void 0:T.replace(g,""),b=(L=v.setIdentifiers.find(S=>S.includes(g)))==null?void 0:L.replace(g,"");return M&&b?M.localeCompare(b):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let g=[],h=[],v=s.map(M=>M.toLowerCase().replace(x,"")).join(" ");for(let M of i)M.name.toLowerCase().replace(x,"")===v?g.push(M):h.push(M);i=[...g,...h]}let p,{artists:f,foilings:d,releases:m,treatments:y}=a;return(f.length>0||d.length>0||m.length>0||y.length>0)&&(p=i.map(g=>{let h=g.printings.filter(v=>{let M=!!v.image,b=f.length===0||f.some(w=>v.artist.replace(x,"").toLowerCase().includes(w)),T=d.length===0||d.includes(v.foiling),L=m.length===0||m.includes(v.set),S=y.length===0||y.includes(v.treatment);return M&&b&&T&&L&&S});return he({matchingPrintings:h},g)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:p||i}};let r={getFn:(i,n)=>{let a=ct.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(s=>s.replace(x,"")):a.replace(x,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...t],this.fuse=new ct.default([...t],r)}},Dr=ut,_r=(e,t,r)=>{let i=!0;for(let n of t){let{isNumber:a,isString:s,isArray:o,isBoolean:c,property:u}=n.filterToPropertyMapping;if((a&&!xa(e,n)||s&&!La(e,n)||o&&!wa(e,n)||c&&!Pa(e,n))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(u)){let y=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(b=>e.rarities.includes(b)),g=!1;for(let{cardIdentifiers:b,heroes:T}of Ve)for(let L of r.heroes)T.includes(L)&&b.includes(e.cardIdentifier)&&(g=!0);let h=!!e.specializations&&e.specializations.length>0||g,v=[P.Type.Mentor,P.Type.Weapon].some(b=>e.types.includes(b)),M=Ye.includes(e.name);!i&&!M&&(h||v)&&y&&(i=!0),M&&(i=!1)}r.isClash&&r.heroes.includes(P.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&r.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(u)&&e.specializations&&e.specializations.length>0&&(i=!0);let d=e.types.includes(P.Type.Equipment);if(!i&&r.heroes.includes(P.Hero.Taylor)&&d&&d&&(i=!0),!i)break}return i},xa=(e,t)=>{var r;if(Re(t,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=pt(e,t);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(d=>o>=parseInt(d));return a?!c:c;case">":let u=i==null?void 0:i.some(d=>o>parseInt(d));return a?!u:u;case"<=":let p=i==null?void 0:i.some(d=>o<=parseInt(d));return a?!p:p;case"<":let f=i==null?void 0:i.some(d=>o<parseInt(d));return a?!f:f;default:return!1}else{let c=i==null?void 0:i.some(u=>o===parseInt(u));return a?!c:c}else{let c=(r=Ra(e,t))==null?void 0:r.toLowerCase(),u=s?i==null?void 0:i.some(p=>c==null?void 0:c.includes(p)):i==null?void 0:i.some(p=>c===p);return a?!u:u}}else return!0},La=(e,t)=>{var r;if(Re(t,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=(r=pt(e,t))==null?void 0:r.replaceAll(x,"");if(s){let c=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!c:c}else{let c=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!c:c}}else return!0},wa=(e,t)=>{if(Re(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,s=Ba(e,t).map(o=>o==null?void 0:o.replaceAll(x,""));if(a){let o=i?r.every(u=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(u))):r.some(u=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(u))),c=s.length===0;return n?!o||c:o}else{let o=i?r.every(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c)):r.some(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},Pa=(e,t)=>{if(Re(t,e)){let{excluded:r}=t,i=pt(e,t);return r?!i:i}else return!0},pt=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.property]},Ba=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},Ra=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.specialProperty]},Re=({cardTypes:e},{types:t,subtypes:r})=>!e||(e==null?void 0:e.some(i=>t.map(n=>n.toLowerCase()).includes(i.toLowerCase())||r.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var lt=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(x,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),r};var j=G(K()),Ia=e=>{let t=e.filter(o=>o.types.includes(j.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),r=t.filter(o=>!o.young&&!o.classes.includes(j.Class.Adjudicator)),i=t.filter(o=>{let c=o.rarities.some(p=>p!==j.Rarity.Promo),u=o.sets.some(p=>p!==j.Release.Promos);return c||u}),n=t.filter(o=>{let c=o.rarities.every(p=>p===j.Rarity.Promo),u=o.sets.every(p=>p===j.Release.Promos);return c&&u}),a=t.filter(o=>o.young),s=a.filter(({hero:o})=>!r.find(c=>c.hero===o));return{all:t,adult:r,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var Nr=G(K());var dt=G(K()),Da={"Dawnblade, Resplendent":"Dawnblade"},Er=e=>Da[e.name]||e.name,Or=e=>{var t;return(t=e.functionalText)==null?void 0:t.replaceAll(e.name,"")},Be=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(x,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),ht(r,t)},ht=(e,t)=>{var a,s;let r=[],i=[],n=[];if(e){let o=[],c=[],u=Er(e);for(let p of t){let f=Er(p),d=u===f,m=e.pitch!==p.pitch;if(d&&m)r.push(p);else if(!d){let y=e.name==="Seismic Surge",g=(a=p.keywords)==null?void 0:a.includes(dt.Keyword.Heave),h=y&&g,v=Or(p),M=v==null?void 0:v.includes(u),b=Or(e),T=b==null?void 0:b.includes(f);(M||h)&&o.push(p);let L=p.name==="Seismic Surge",S=(s=e.keywords)==null?void 0:s.includes(dt.Keyword.Heave);(T||L&&S)&&c.push(p)}}for(let p of o)i.push(p);for(let p of c){let f=p.name;u!==f&&!c.some(d=>{let m=d.name;return m!==f&&m.includes(f)})&&n.push(p)}}return{otherPitches:r,referencedBy:i,references:n}},_a=["cash-in-yellow"],Ea=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!_a.includes(a))){let{references:a}=ht(n,t);for(let s of a.filter(o=>{let c=o.name==="Hyper Driver",u=r===Nr.Hero.Maxx;return!c||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
|
|
1
|
+
var jr=Object.create;var le=Object.defineProperty;var Gr=Object.getOwnPropertyDescriptor;var Kr=Object.getOwnPropertyNames,yt=Object.getOwnPropertySymbols,Ur=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var vt=(e,r,t)=>r in e?le(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,he=(e,r)=>{for(var t in r||(r={}))bt.call(r,t)&&vt(e,t,r[t]);if(yt)for(var t of yt(r))Yr.call(r,t)&&vt(e,t,r[t]);return e};var At=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vr=(e,r)=>{for(var t in r)le(e,t,{get:r[t],enumerable:!0})},Mt=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Kr(r))!bt.call(e,n)&&n!==t&&le(e,n,{get:()=>r[n],enumerable:!(i=Gr(r,n))||i.enumerable});return e};var $=(e,r,t)=>(t=e!=null?jr(Ur(e)):{},Mt(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e)),Qr=e=>Mt(le({},"__esModule",{value:!0}),e);var W=At(($a,$t)=>{var fe=Object.defineProperty,Jr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,Ft=(e,r,t)=>r in e?fe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ti=(e,r)=>{for(var t in r||(r={}))kt.call(r,t)&&Ft(e,t,r[t]);if(Ct)for(var t of Ct(r))ei.call(r,t)&&Ft(e,t,r[t]);return e},ri=(e,r)=>Jr(e,Zr(r)),ii=(e,r)=>{for(var t in r)fe(e,t,{get:r[t],enumerable:!0})},ni=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of qr(r))!kt.call(e,n)&&n!==t&&fe(e,n,{get:()=>r[n],enumerable:!(i=Xr(r,n))||i.enumerable});return e},ai=e=>ni(fe({},"__esModule",{value:!0}),e),St={};ii(St,{Class:()=>Lt,Foiling:()=>Tt,Format:()=>wt,Fusion:()=>Pt,Hero:()=>Ot,Keyword:()=>Nt,Rarity:()=>Bt,Release:()=>Rt,ReleaseEdition:()=>It,Subtype:()=>Et,Talent:()=>Dt,Treatment:()=>xt,Type:()=>_t,fullSetIdentifiers:()=>zt,setIdentifierToSetMappings:()=>Ht,setToSetIdentifierMappings:()=>oi});$t.exports=ai(St);var Tt=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(Tt||{}),xt=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.DS="Double Sided",e.EA="Extended Art",e.FA="Full Art",e))(xt||{}),Lt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(Lt||{}),wt=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))(wt||{}),Pt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Pt||{}),Bt=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))(Bt||{}),Rt=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.DromaiBlitzDeck="Dromai Blitz Deck",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.IraWelcomeDeck="Ira Welcome Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.Promos="Promos",e))(Rt||{}),It=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(It||{}),Dt=(e=>(e.Royal="Royal",e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Shadow="Shadow",e))(Dt||{}),_t=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(_t||{}),Et=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Et||{}),Ot=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Fai="Fai",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Ot||{}),Nt=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(Nt||{}),zt={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters"},Ht=ri(ti({},zt),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),_e={};for(let[e,r]of Object.entries(Ht)){let t=_e[r];t?t.push(e):_e[r]=[e]}var oi=_e});var ar=At((Wa,nr)=>{"use strict";function Wt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function ne(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Wt(Object(t),!0).forEach(function(i){Ne(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wt(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oe(e)}function _(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function jt(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,r,t){return r&&jt(e.prototype,r),t&&jt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Q(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),r&&ze(e,r)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},me(e)}function ze(e,r){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,r)}function si(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function li(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function J(e){var r=si();return function(){var i=me(e),n;if(r){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return ci(this,n)}}function te(e){return ui(e)||di(e)||pi(e)||hi()}function ui(e){if(Array.isArray(e))return He(e)}function di(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,r){if(e){if(typeof e=="string")return He(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return He(e,r)}}function He(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}function hi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e){return Array.isArray?Array.isArray(e):Xt(e)==="[object Array]"}var fi=1/0;function gi(e){if(typeof e=="string")return e;var r=e+"";return r=="0"&&1/e==-fi?"-0":r}function mi(e){return e==null?"":gi(e)}function j(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function yi(e){return e===!0||e===!1||vi(e)&&Xt(e)=="[object Boolean]"}function Jt(e){return Oe(e)==="object"}function vi(e){return Jt(e)&&e!==null}function N(e){return e!=null}function Ee(e){return!e.trim().length}function Xt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var bi="Incorrect 'index' type",Ai=function(r){return"Invalid value for key ".concat(r)},Mi=function(r){return"Pattern length exceeds max of ".concat(r,".")},Ci=function(r){return"Missing ".concat(r," property in key")},Fi=function(r){return"Property 'weight' in key '".concat(r,"' must be a positive integer")},Gt=Object.prototype.hasOwnProperty,ki=function(){function e(r){var t=this;_(this,e),this._keys=[],this._keyMap={};var i=0;r.forEach(function(n){var a=Zt(n);i+=a.weight,t._keys.push(a),t._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return E(e,[{key:"get",value:function(t){return this._keyMap[t]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function Zt(e){var r=null,t=null,i=null,n=1,a=null;if(j(e)||U(e))i=e,r=Kt(e),t=$e(e);else{if(!Gt.call(e,"name"))throw new Error(Ci("name"));var s=e.name;if(i=s,Gt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Fi(s));r=Kt(s),t=$e(s),a=e.getFn}return{path:r,id:t,weight:n,src:i,getFn:a}}function Kt(e){return U(e)?e:e.split(".")}function $e(e){return U(e)?e.join("."):e}function Si(e,r){var t=[],i=!1,n=function a(s,o,c){if(N(s))if(!o[c])t.push(s);else{var u=o[c],d=s[u];if(!N(d))return;if(c===o.length-1&&(j(d)||Qt(d)||yi(d)))t.push(mi(d));else if(U(d)){i=!0;for(var f=0,p=d.length;f<p;f+=1)a(d[f],o,c+1)}else o.length&&a(d,o,c+1)}};return n(e,j(r)?r.split("."):r,0),i?t:t[0]}var Ti={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},xi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(r,t){return r.score===t.score?r.idx<t.idx?-1:1:r.score<t.score?-1:1}},Li={location:0,threshold:.6,distance:100},wi={useExtendedSearch:!1,getFn:Si,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},F=ne(ne(ne(ne({},xi),Ti),Li),wi),Pi=/[^ ]+/g;function Bi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,t=new Map,i=Math.pow(10,r);return{get:function(a){var s=a.match(Pi).length;if(t.has(s))return t.get(s);var o=1/Math.pow(s,.5*e),c=parseFloat(Math.round(o*i)/i);return t.set(s,c),c},clear:function(){t.clear()}}}var Ue=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.getFn,i=t===void 0?F.getFn:t,n=r.fieldNormWeight,a=n===void 0?F.fieldNormWeight:n;_(this,e),this.norm=Bi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return E(e,[{key:"setSources",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){t._keysMap[n.id]=a})}},{key:"create",value:function(){var t=this;this.isCreated||!this.docs.length||(this.isCreated=!0,j(this.docs[0])?this.docs.forEach(function(i,n){t._addString(i,n)}):this.docs.forEach(function(i,n){t._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(t){var i=this.size();j(t)?this._addString(t,i):this._addObject(t,i)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var i=t,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(t,i){return t[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(t,i){if(!(!N(t)||Ee(t))){var n={v:t,i,n:this.norm.get(t)};this.records.push(n)}}},{key:"_addObject",value:function(t,i){var n=this,a={i,$:{}};this.keys.forEach(function(s,o){var c=s.getFn?s.getFn(t):n.getFn(t,s.path);if(N(c)){if(U(c))(function(){for(var d=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var p=f.pop(),m=p.nestedArrIndex,y=p.value;if(N(y))if(j(y)&&!Ee(y)){var g={v:y,i:m,n:n.norm.get(y)};d.push(g)}else U(y)&&y.forEach(function(h,v){f.push({nestedArrIndex:v,value:h})})}a.$[o]=d})();else if(j(c)&&!Ee(c)){var u={v:c,n:n.norm.get(c)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function qt(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.getFn,n=i===void 0?F.getFn:i,a=t.fieldNormWeight,s=a===void 0?F.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Zt)),o.setSources(r),o.create(),o}function Ri(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.getFn,i=t===void 0?F.getFn:t,n=r.fieldNormWeight,a=n===void 0?F.fieldNormWeight:n,s=e.keys,o=e.records,c=new Ue({getFn:i,fieldNormWeight:a});return c.setKeys(s),c.setIndexRecords(o),c}function ge(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.errors,i=t===void 0?0:t,n=r.currentLocation,a=n===void 0?0:n,s=r.expectedLocation,o=s===void 0?0:s,c=r.distance,u=c===void 0?F.distance:c,d=r.ignoreLocation,f=d===void 0?F.ignoreLocation:d,p=i/e.length;if(f)return p;var m=Math.abs(o-a);return u?p+m/u:m?1:p}function Ii(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F.minMatchCharLength,t=[],i=-1,n=-1,a=0,s=e.length;a<s;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=r&&t.push([i,n]),i=-1)}return e[a-1]&&a-i>=r&&t.push([i,a-1]),t}var ee=32;function Di(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?F.location:n,s=i.distance,o=s===void 0?F.distance:s,c=i.threshold,u=c===void 0?F.threshold:c,d=i.findAllMatches,f=d===void 0?F.findAllMatches:d,p=i.minMatchCharLength,m=p===void 0?F.minMatchCharLength:p,y=i.includeMatches,g=y===void 0?F.includeMatches:y,h=i.ignoreLocation,v=h===void 0?F.ignoreLocation:h;if(r.length>ee)throw new Error(Mi(ee));for(var b=r.length,k=e.length,T=Math.max(0,Math.min(a,k)),L=u,M=T,w=m>1||g,R=w?Array(k):[],D;(D=e.indexOf(r,M))>-1;){var Y=ge(r,{currentLocation:D,expectedLocation:T,distance:o,ignoreLocation:v});if(L=Math.min(Y,L),M=D+b,w)for(var O=0;O<b;)R[D+O]=1,O+=1}M=-1;for(var B=[],z=1,re=b+k,Hr=1<<b-1,q=0;q<b;q+=1){for(var de=0,V=re;de<V;){var $r=ge(r,{errors:q,currentLocation:T+V,expectedLocation:T,distance:o,ignoreLocation:v});$r<=L?de=V:re=V,V=Math.floor((re-de)/2+de)}re=V;var ft=Math.max(1,T-V+1),Ie=f?k:Math.min(T+V,k)+b,ie=Array(Ie+2);ie[Ie+1]=(1<<q)-1;for(var H=Ie;H>=ft;H-=1){var pe=H-1,gt=t[e.charAt(pe)];if(w&&(R[pe]=+!!gt),ie[H]=(ie[H+1]<<1|1)>,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&Hr&&(z=ge(r,{errors:q,currentLocation:pe,expectedLocation:T,distance:o,ignoreLocation:v}),z<=L)){if(L=z,M=pe,M<=T)break;ft=Math.max(1,2*T-M)}}var Wr=ge(r,{errors:q+1,currentLocation:T,expectedLocation:T,distance:o,ignoreLocation:v});if(Wr>L)break;B=ie}var De={isMatch:M>=0,score:Math.max(.001,z)};if(w){var mt=Ii(R,m);mt.length?g&&(De.indices=mt):De.isMatch=!1}return De}function _i(e){for(var r={},t=0,i=e.length;t<i;t+=1){var n=e.charAt(t);r[n]=(r[n]||0)|1<<i-t-1}return r}var er=function(){function e(r){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?F.location:n,s=i.threshold,o=s===void 0?F.threshold:s,c=i.distance,u=c===void 0?F.distance:c,d=i.includeMatches,f=d===void 0?F.includeMatches:d,p=i.findAllMatches,m=p===void 0?F.findAllMatches:p,y=i.minMatchCharLength,g=y===void 0?F.minMatchCharLength:y,h=i.isCaseSensitive,v=h===void 0?F.isCaseSensitive:h,b=i.ignoreLocation,k=b===void 0?F.ignoreLocation:b;if(_(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:k},this.pattern=v?r:r.toLowerCase(),this.chunks=[],!!this.pattern.length){var T=function(O,B){t.chunks.push({pattern:O,alphabet:_i(O),startIndex:B})},L=this.pattern.length;if(L>ee){for(var M=0,w=L%ee,R=L-w;M<R;)T(this.pattern.substr(M,ee),M),M+=ee;if(w){var D=L-ee;T(this.pattern.substr(D),D)}}else T(this.pattern,0)}}return E(e,[{key:"searchIn",value:function(t){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(t=t.toLowerCase()),this.pattern===t){var s={isMatch:!0,score:0};return a&&(s.indices=[[0,t.length-1]]),s}var o=this.options,c=o.location,u=o.distance,d=o.threshold,f=o.findAllMatches,p=o.minMatchCharLength,m=o.ignoreLocation,y=[],g=0,h=!1;this.chunks.forEach(function(b){var k=b.pattern,T=b.alphabet,L=b.startIndex,M=Di(t,k,T,{location:c+L,distance:u,threshold:d,findAllMatches:f,minMatchCharLength:p,includeMatches:a,ignoreLocation:m}),w=M.isMatch,R=M.score,D=M.indices;w&&(h=!0),g+=R,w&&D&&(y=[].concat(te(y),te(D)))});var v={isMatch:h,score:h?g/this.chunks.length:1};return h&&a&&(v.indices=y),v}}]),e}(),X=function(){function e(r){_(this,e),this.pattern=r}return E(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return Ut(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return Ut(t,this.singleRegex)}}]),e}();function Ut(e,r){var t=e.match(r);return t?t[1]:null}var Ei=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),t}(X),Oi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),s=a===-1;return{isMatch:s,score:s?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),t}(X),Ni=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),t}(X),zi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),t}(X),Hi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),t}(X),$i=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),t}(X),tr=function(e){Q(t,e);var r=J(t);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?F.location:s,c=a.threshold,u=c===void 0?F.threshold:c,d=a.distance,f=d===void 0?F.distance:d,p=a.includeMatches,m=p===void 0?F.includeMatches:p,y=a.findAllMatches,g=y===void 0?F.findAllMatches:y,h=a.minMatchCharLength,v=h===void 0?F.minMatchCharLength:h,b=a.isCaseSensitive,k=b===void 0?F.isCaseSensitive:b,T=a.ignoreLocation,L=T===void 0?F.ignoreLocation:T;return _(this,t),n=r.call(this,i),n._bitapSearch=new er(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:g,minMatchCharLength:v,isCaseSensitive:k,ignoreLocation:L}),n}return E(t,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),t}(X),rr=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){for(var a=0,s,o=[],c=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+c,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),t}(X),We=[Ei,rr,Ni,zi,$i,Hi,Oi,tr],Yt=We.length,Wi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ji="|";function Gi(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(ji).map(function(t){for(var i=t.trim().split(Wi).filter(function(y){return y&&!!y.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],c=!1,u=-1;!c&&++u<Yt;){var d=We[u],f=d.isMultiMatch(o);f&&(n.push(new d(f,r)),c=!0)}if(!c)for(u=-1;++u<Yt;){var p=We[u],m=p.isSingleMatch(o);if(m){n.push(new p(m,r));break}}}return n})}var Ki=new Set([tr.type,rr.type]),Ui=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.isCaseSensitive,n=i===void 0?F.isCaseSensitive:i,a=t.includeMatches,s=a===void 0?F.includeMatches:a,o=t.minMatchCharLength,c=o===void 0?F.minMatchCharLength:o,u=t.ignoreLocation,d=u===void 0?F.ignoreLocation:u,f=t.findAllMatches,p=f===void 0?F.findAllMatches:f,m=t.location,y=m===void 0?F.location:m,g=t.threshold,h=g===void 0?F.threshold:g,v=t.distance,b=v===void 0?F.distance:v;_(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:c,findAllMatches:p,ignoreLocation:d,location:y,threshold:h,distance:b},this.pattern=n?r:r.toLowerCase(),this.query=Gi(this.pattern,this.options)}return E(e,[{key:"searchIn",value:function(t){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,s=n.isCaseSensitive;t=s?t:t.toLowerCase();for(var o=0,c=[],u=0,d=0,f=i.length;d<f;d+=1){var p=i[d];c.length=0,o=0;for(var m=0,y=p.length;m<y;m+=1){var g=p[m],h=g.search(t),v=h.isMatch,b=h.indices,k=h.score;if(v){if(o+=1,u+=k,a){var T=g.constructor.type;Ki.has(T)?c=[].concat(te(c),te(b)):c.push(b)}}else{u=0,o=0,c.length=0;break}}if(o){var L={isMatch:!0,score:u/o};return a&&(L.indices=c),L}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(t,i){return i.useExtendedSearch}}]),e}(),ye=[];function Yi(){ye.push.apply(ye,arguments)}function je(e,r){for(var t=0,i=ye.length;t<i;t+=1){var n=ye[t];if(n.condition(e,r))return new n(e,r)}return new er(e,r)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(r){return!!(r[ve.AND]||r[ve.OR])},Vi=function(r){return!!r[Ge.PATH]},Qi=function(r){return!U(r)&&Jt(r)&&!Ke(r)},Vt=function(r){return Ne({},ve.AND,Object.keys(r).map(function(t){return Ne({},t,r[t])}))};function ir(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.auto,n=i===void 0?!0:i,a=function s(o){var c=Object.keys(o),u=Vi(o);if(!u&&c.length>1&&!Ke(o))return s(Vt(o));if(Qi(o)){var d=u?o[Ge.PATH]:c[0],f=u?o[Ge.PATTERN]:o[d];if(!j(f))throw new Error(Ai(d));var p={keyId:$e(d),pattern:f};return n&&(p.searcher=je(f,r)),p}var m={children:[],operator:c[0]};return c.forEach(function(y){var g=o[y];U(g)&&g.forEach(function(h){m.children.push(s(h))})}),m};return Ke(e)||(e=Vt(e)),a(e)}function Ji(e,r){var t=r.ignoreFieldNorm,i=t===void 0?F.ignoreFieldNorm:t;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,c=s.norm,u=s.score,d=o?o.weight:null;a*=Math.pow(u===0&&d?Number.EPSILON:u,(d||1)*(i?1:c))}),n.score=a})}function Xi(e,r){var t=e.matches;r.matches=[],N(t)&&t.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,s={indices:n,value:a};i.key&&(s.key=i.key.src),i.idx>-1&&(s.refIndex=i.idx),r.matches.push(s)}})}function Zi(e,r){r.score=e.score}function qi(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.includeMatches,n=i===void 0?F.includeMatches:i,a=t.includeScore,s=a===void 0?F.includeScore:a,o=[];return n&&o.push(Xi),s&&o.push(Zi),e.map(function(c){var u=c.idx,d={item:r[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,d)}),d})}var ae=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;_(this,e),this.options=ne(ne({},F),t),this.options.useExtendedSearch,this._keyStore=new ki(this.options.keys),this.setCollection(r,i)}return E(e,[{key:"setCollection",value:function(t,i){if(this._docs=t,i&&!(i instanceof Ue))throw new Error(bi);this._myIndex=i||qt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(t){N(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var s=this._docs[n];t(s,n)&&(this.removeAt(n),n-=1,a-=1,i.push(s))}return i}},{key:"removeAt",value:function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,s=this.options,o=s.includeMatches,c=s.includeScore,u=s.shouldSort,d=s.sortFn,f=s.ignoreFieldNorm,p=j(t)?j(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Ji(p,{ignoreFieldNorm:f}),u&&p.sort(d),Qt(a)&&a>-1&&(p=p.slice(0,a)),qi(p,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(t){var i=je(t,this.options),n=this._myIndex.records,a=[];return n.forEach(function(s){var o=s.v,c=s.i,u=s.n;if(N(o)){var d=i.searchIn(o),f=d.isMatch,p=d.score,m=d.indices;f&&a.push({item:o,idx:c,matches:[{score:p,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(t){var i=this,n=ir(t,this.options),a=function u(d,f,p){if(!d.children){var m=d.keyId,y=d.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return g&&g.length?[{idx:p,item:f,matches:g}]:[]}for(var h=[],v=0,b=d.children.length;v<b;v+=1){var k=d.children[v],T=u(k,f,p);if(T.length)h.push.apply(h,te(T));else if(d.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},c=[];return s.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=a(n,d,f);p.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},c.push(o[f])),p.forEach(function(m){var y,g=m.matches;(y=o[f].matches).push.apply(y,te(g))}))}}),c}},{key:"_searchObjectList",value:function(t){var i=this,n=je(t,this.options),a=this._myIndex,s=a.keys,o=a.records,c=[];return o.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=[];s.forEach(function(m,y){p.push.apply(p,te(i._findMatches({key:m,value:d[y],searcher:n})))}),p.length&&c.push({idx:f,item:d,matches:p})}}),c}},{key:"_findMatches",value:function(t){var i=t.key,n=t.value,a=t.searcher;if(!N(n))return[];var s=[];if(U(n))n.forEach(function(m){var y=m.v,g=m.i,h=m.n;if(N(y)){var v=a.searchIn(y),b=v.isMatch,k=v.score,T=v.indices;b&&s.push({score:k,key:i,value:y,idx:g,norm:h,indices:T})}});else{var o=n.v,c=n.n,u=a.searchIn(o),d=u.isMatch,f=u.score,p=u.indices;d&&s.push({score:f,key:i,value:o,norm:c,indices:p})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=qt;ae.parseIndex=Ri;ae.config=F;ae.parseQuery=ir;Yi(Ui);var en=ae;nr.exports=en});var za={};Vr(za,{PUNCTUATION:()=>x,abbreviations:()=>Qe,availableExclusions:()=>Br,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Ve,default:()=>_r,filterCard:()=>Er,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>Ae,getAbbreviationByCard:()=>tn,getCardByName:()=>lt,getDeckFilters:()=>aa,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>_a,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>ht,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Na,heroHasFilters:()=>oa,shorthands:()=>rt});module.exports=Qr(za);var P=$(W()),ct=$(ar());var be=$(W()),Ye=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Ve=[{heroes:[be.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[be.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[be.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var x=/[!"#$%&'’()+,-./:;<=>?@[\]^_`|~]/g;var S=$(W());var Ae=e=>Qe.find(({abbreviations:r})=>r.find(t=>t.toLowerCase()===e)),tn=e=>Qe.find(({card:r})=>r.toLowerCase()===e.name.toLowerCase()),Qe=[{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["\u{1F382}","Cake"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["C&C","CnC"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["PJs","Pajamas"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var l=$(W());var Se=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,r=[])=>{let t=[...e,l.Class.Generic];return r.length>0&&t.push(l.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:t.map(i=>i.toLowerCase()),isOr:!0},rn(r)]},C=(e,r=[])=>{let t=Object.values(l.Hero).filter(i=>i!==e&&!r.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:t,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:t,excluded:!0,isOr:!0}]},rn=e=>{let r=Object.values(l.Talent).filter(t=>!e.includes(t)).map(t=>t.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:r,excluded:!0}},Te=[l.Talent.Draconic],nn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice,l.Talent.Lightning],an=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice],on=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Lightning],sn=[l.Talent.Elemental,l.Talent.Ice],ln=[l.Talent.Elemental,l.Talent.Ice,l.Talent.Lightning],Ze=[l.Talent.Light],qe=[l.Talent.Shadow],cn=[...A([l.Class.Assassin]),...C(l.Hero.Arakni)],un=[...A([l.Class.Ranger]),...C(l.Hero.Azalea)],dn=[...A([l.Class.Ninja]),...C(l.Hero.Benji)],pn=[...A([l.Class.Guardian]),...C(l.Hero.Betsy)],hn=[...A([l.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...C(l.Hero.Boltyn)],fn=[...A([l.Class.Guardian]),...C(l.Hero.Bravo)],gn=[...A([l.Class.Guardian]),...C(l.Hero.Brevant)],mn=[...A([l.Class.Runeblade],on),...C(l.Hero.Briar)],yn=[...A([l.Class.Adjudicator]),...C(l.Hero.Brutus)],vn=[...A([l.Class.Runeblade],qe),...C(l.Hero.Chane)],bn=[...A([l.Class.Mechanologist]),...C(l.Hero.Dash)],Je=[...A([l.Class.Mechanologist]),...C(l.Hero.DataDoll)],or=[...A([l.Class.Warrior]),...C(l.Hero.Dorinthea)],An=[...A([l.Class.Illusionist],Te),...C(l.Hero.Dromai,[l.Hero.Fai])],Mn=[...A([l.Class.Warrior,l.Class.Wizard],Te),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[l.Type.Action,l.Type.AttackReaction,l.Type.DefenseReaction,l.Type.Instant,l.Type.Mentor,l.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...C(l.Hero.Emperor)],Cn=[...A([l.Class.Ninja],Te),...C(l.Hero.Fai,[l.Hero.Dromai])],sr=[...A([l.Class.Merchant]),...C(l.Hero.GenisWotchuneed)],Fn=[...A([l.Class.Ninja]),...C(l.Hero.Ira)],lr=[...A([l.Class.Wizard],sn),...C(l.Hero.Iyslander)],kn=[...A([l.Class.Wizard])],Sn=[...A([l.Class.Warrior]),...C(l.Hero.Kassai)],Tn=[...A([l.Class.Ninja]),...C(l.Hero.Katsu)],xn=[...A([l.Class.Merchant]),...C(l.Hero.Kavdaen)],Ln=[...A([l.Class.Brute]),...C(l.Hero.Kayo)],wn=[...A([l.Class.Brute],qe),...C(l.Hero.Levia)],Pn=[...A([l.Class.Ranger],ln),...C(l.Hero.Lexi)],Bn=[...A([l.Class.Mechanologist]),...C(l.Hero.Maxx)],Rn=[...A([l.Class.Bard]),...C(l.Hero.Melody)],In=[...A([l.Class.Guardian],an),...C(l.Hero.Oldhim)],Dn=[...A([l.Class.Warrior]),...C(l.Hero.Olympia)],_n=[...A([l.Class.Illusionist],Ze),...C(l.Hero.Prism)],En=[...A([l.Class.Brute]),...C(l.Hero.Rhinar)],On=[...A([l.Class.Ranger]),...C(l.Hero.Riptide)],Nn=[...A([l.Class.Merchant]),...C(l.Hero.Ruudi)],zn=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Hn=[...A([l.Class.Merchant]),...C(l.Hero.Squizzy)],$n=[...A([l.Class.Guardian],nn),...C(l.Hero.Bravo)],Wn=[...A([l.Class.Adjudicator],Te),...C(l.Hero.Taipanis)],jn=[...A([]),...C(l.Hero.Taylor)],Gn=[...A([l.Class.Mechanologist]),...C(l.Hero.Teklovossen)],Kn=[...A([l.Class.Adjudicator],Ze),...C(l.Hero.Theryon)],Un=[...A([l.Class.Assassin]),...C(l.Hero.Uzuri)],Yn=[...A([l.Class.Guardian]),...C(l.Hero.Valda)],Vn=[...A([l.Class.Guardian]),...C(l.Hero.Victor)],Qn=[...A([l.Class.Runeblade]),...C(l.Hero.Viserai)],Jn=[...A([l.Class.Runeblade],qe),...C(l.Hero.Vynnset)],Xn=[...A([l.Class.Bard]),...C(l.Hero.Yorick)],Zn=[...A([l.Class.Guardian]),...C(l.Hero.Yoji)],qn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],cr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ea=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],oe=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],ta=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Xe=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ce={blitz:qn,"blitz ll":cr,"blitz living legend":cr,clash:ea,cc:Me,classic:Me,"classic constructed":Me,ll:oe,"living legend":oe,"cc ll":oe,"ll cc":oe,"classic constructed ll":oe,"classic constructed living legend":oe,constructed:Me,commoner:ta,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:cn,azalea:un,benji:dn,betsy:pn,boltyn:hn,bravo:fn,brevant:gn,briar:mn,brutus:yn,chane:vn,dash:bn,data:Je,"data doll":Je,datadoll:Je,dori:or,dorinthea:or,dromai:An,emperor:Mn,fai:Cn,genis:sr,geniswotchuneed:sr,ira:Fn,iyslander:lr,islander:lr,kano:kn,kassai:Sn,katsu:Tn,kavdaen:xn,kayo:Ln,levia:wn,lexi:Pn,maxx:Bn,melody:Rn,oldhim:In,olympia:Dn,prism:_n,rhinar:En,riptide:On,ruudi:Nn,shiyana:zn,squizzy:Hn,starvo:$n,taipanis:Wn,taylor:jn,teklovossen:Gn,theryon:Kn,uzuri:Un,valda:Yn,victor:Vn,viserai:Qn,vynnset:Jn,yorick:Xn,yoji:Zn},Ce=["common","rare","super rare","majestic","legendary","fabled"],ra=(e,r,t)=>{let i=[];if(!r)i.push(...e);else for(let n of e)switch(r){case">=":let a=!1;for(let u of Ce)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let s=!1;for(let u of Ce)s?i.push(u):u===n&&(s=!0);break;case"<=":let o=!1;for(let u of Ce.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let c=!1;for(let u of Ce.slice().reverse())c?i.push(u):u===n&&(c=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:t}},ia=(e,r)=>{let t=[];for(let i of e)if(ce[i]){let n=ce[i];for(let a of n){let s=he({},a);r&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),t.push(s)}}return t},et=(e,r,t,i)=>{let n=[];return la(r)?n.push(...ia(t,e)):ua(r)&&n.push(ra(t,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],G=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Fe=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],Z=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(l.Talent).map(e=>e.toLowerCase())}],na={"!co":se,"-co":se,"!cost":se,"-cost":se,"!color":se,"-color":se,"!b":G,"-b":G,"!block":G,"-block":G,"!d":G,"-d":G,"!def":G,"-def":G,"!defense":G,"-defense":G,"!pitch":Fe,"-pitch":Fe,"!p":Fe,"-p":Fe,"!attack":Z,"-attack":Z,"!power":Z,"-power":Z,"!pwr":Z,"-pwr":Z,"!pow":Z,"-pow":Z,"!talents":ke,"-talents":ke,"!tal":ke,"-tal":ke},tt=e=>{let r=[],t=na[e];return t&&r.push(...t),r},aa=(e,r)=>[...ce[e.toLowerCase()],...r?ce[r.toLowerCase()]:[]],oa=e=>{var r;return((r=ce[e.toLowerCase().split(" ")[0]])==null?void 0:r.length)>0},sa=["l","legal","hero"],la=e=>sa.includes(e),ca=["r","rarity"],ua=e=>ca.includes(e);var rt={aa:["st:attack"],ab:['k:"arcane barrier"'],ar:['t:"attack reaction"'],dr:['t:"defense reaction"'],ga:['k:"go again"'],naa:["t:action","st:nonattack"],poppers:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],popper:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],sv:['k:"spellvoid"']};var Pr=[">=",">","<=","<"],Br=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},da={property:"n/a"},ur={property:"classes",isArray:!0,partialMatch:!0},dr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},pr={nestedProperty:"foiling",property:"printings",isArray:!0},hr={property:"fusions",isArray:!0},fr={property:"intellect",isNumber:!0},gr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},mr={property:"life",specialProperty:"specialLife",isNumber:!0},yr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},xe={property:"power",specialProperty:"specialPower",isNumber:!0},vr={property:"n/a",isMeta:!0},pa={property:"n/a"},ha={property:"n/a"},br={property:"restrictedFormats",isArray:!0,partialMatch:!0},Ar={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Mr={property:"subtypes",isArray:!0},Cr={property:"types",isArray:!0},Fr={property:"talents",isArray:!0},fa={property:"functionalText",isString:!0,partialMatch:!0},ga={property:"typeText",isString:!0,partialMatch:!0},we={nestedProperty:"treatment",property:"printings",isArray:!0},Pe={a:it,artist:it,art:it,attack:xe,b:ue,block:ue,c:ur,class:ur,chain:da,co:dr,cost:dr,color:at,d:ue,def:ue,defense:ue,f:hr,fusion:hr,foil:pr,foiling:pr,i:fr,intellect:fr,k:gr,keyword:gr,l:nt,legal:nt,hero:nt,li:mr,life:mr,n:yr,name:yr,p:at,pitch:at,pwr:xe,pow:xe,power:xe,r:vr,rarity:vr,referencedby:pa,references:ha,rf:br,restricted:br,s:Ar,set:Ar,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Mr,subtype:Mr,t:Cr,type:Cr,tal:Fr,talent:Fr,text:fa,treat:we,treatment:we,var:we,variation:we,x:ga},ma=[{text:S.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:S.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(x,"")}],ya=e=>{var n;let r=[],t=e.trim().toLowerCase();for(let{text:a,override:s}of ma)t.includes(a)&&(t=t.replace(a,s));if((n=Ae(t))==null?void 0:n.card)r.push(t);else{let a=t.split(/[ ]+/),s="",o=0;for(let c of a)o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&c.split('"').length===2?(s+=" "+c,o++):o===0&&s===""?r.push(c):o===1&&(s+=" "+c);o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0)}return r},va=[S.Hero.Briar,S.Hero.Brutus,S.Hero.Emperor,S.Hero.Prism,S.Hero.Shiyana,S.Hero.Taylor],st=(e,r)=>{var f;let t=ya(e),i=[];for(let p of t){let m=rt[p];m?i.push(...m):i.push(p)}let n=[],a=[],s=[],o=[],c=[],u=[],d={isClash:!1,heroes:[]};for(let p of i)if(xa(p)){let[m,y]=p.split(":"),{modifier:g,values:h,isAnd:v,isOr:b}=Sa(y),{filterKey:k,excluded:T,isMeta:L}=Ta(m);if(L){if(["rarity","r"].includes(k)&&(h=ka(h)),["legal","l","hero"].includes(k)){for(let M of va)y.includes(M.toLowerCase())&&(d.heroes.includes(M)||d.heroes.push(M));y.includes("clash")&&(d.isClash=!0)}n.push(...et(T,k,h,g))}else{if(["chain"].includes(k)){let M=B=>B.name.toLowerCase().replaceAll(x,""),w=h.map(B=>lt(B,r)).filter(B=>!!B).map(M),R=new Set(w);k="name",b=!0;let D=20,Y=0,O=B=>{if(!B.types.includes(S.Type.Hero)){let z=M(B);R.add(z),w.includes(z)||w.push(z)}};for(let B of w){if(Y>D)break;let{referencedBy:z,references:re}=Be(B,r);re.forEach(O),Y===0&&z.forEach(O),Y++}h=Array.from(R)}else if(["referencedby","references"].includes(k)){let M=k,w=[...h].filter(R=>!!R);h=[],k="name",b=!0;for(let R of w){let{referencedBy:D,references:Y}=Be(R,r);["referencedby"].includes(M)?h.push(...Y.map(({name:O})=>O.toLowerCase().replaceAll(x,""))):["references"].includes(M)&&h.push(...D.map(({name:O})=>O.toLowerCase().replaceAll(x,"")))}}else["art","artist"].includes(k)?a=h:["foiling","foil"].includes(k)?(o=Ca(h),h=o.map(M=>M.toLowerCase())):["treat","treatment","var","variation"].includes(k)?(u=Fa(h),h=u.map(M=>M.toLowerCase())):["set","s"].includes(k)?(c=ba(h),h=c.map(M=>M.toLowerCase().replaceAll(x,""))):["pitch","p","color"].includes(k)&&(h=Ma(h));Pe[k]&&n.push({filterToPropertyMapping:Pe[k],values:h,isAnd:v,isOr:b,modifier:g,excluded:T})}}else if(p){let m=(f=Ae(p))==null?void 0:f.card,y=tt(p);m?s.push(`"${m.toLowerCase().replace(x,"")}"`):y&&y.length>0?n.push(...y):s.push(p.replace(x,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:c,treatments:u},keywords:s,specialConditions:d}},ba=e=>{let r=[];for(let t of e)r.push(...Aa(t));return r},Aa=e=>{let r=[],t=Object.values(S.Release).find(i=>i.toLowerCase().replaceAll(x,"")===e);if(t&&r.push(t),r.length===0){let i=S.setIdentifierToSetMappings[e];i&&r.push(i)}if(r.length===0){let i=Object.values(S.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&r.push(...i)}return r},ot={blue:3,yellow:2,red:1,white:0},Ma=e=>{let r=[];for(let t of e)ot[t]||ot[t]===0?r.push(ot[t].toString()):r.push(t);return r},kr={r:S.Foiling.R,rf:S.Foiling.R,rainbow:S.Foiling.R,c:S.Foiling.C,cf:S.Foiling.C,cold:S.Foiling.C,g:S.Foiling.G,gf:S.Foiling.G,gold:S.Foiling.G},Ca=e=>{let r=[];for(let t of e)kr[t]&&r.push(kr[t]);return r},Sr={aa:S.Treatment.AA,alt:S.Treatment.AA,"alt art":S.Treatment.AA,ab:S.Treatment.AB,"alt border":S.Treatment.AB,at:S.Treatment.AT,"alt text":S.Treatment.AT,ds:S.Treatment.DS,"double sided":S.Treatment.DS,ea:S.Treatment.EA,extended:S.Treatment.EA,"extended art":S.Treatment.EA,fa:S.Treatment.FA,full:S.Treatment.FA,"full art":S.Treatment.FA},Fa=e=>{let r=[];for(let t of e)Sr[t]?r.push(Sr[t]):S.Treatment[t.toUpperCase()]&&r.push(S.Treatment[t.toUpperCase()]);return r},Tr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},ka=e=>{let r=[];for(let t of e)Tr[t]?r.push(Tr[t]):r.push(t);return r},Sa=e=>{let r=[],t,i,n=Pr.find(a=>e.includes(a));if(n){let[,a]=e.split(n);xr(a)?(t=!0,r.push(...a.trim().split("+").map(s=>s.replace(x,"")))):Lr(a)?(i=!0,r.push(...a.trim().split(",").map(s=>s.replace(x,"")))):r.push(a.trim().replace(x,""))}else xr(e)?(t=!0,r.push(...e.trim().split("+").map(a=>a.replace(x,"")))):Lr(e)?(i=!0,r.push(...e.trim().split(",").map(a=>a.replace(x,"")))):e.startsWith('"')&&e.endsWith('"')?r.push(e.trim().replaceAll('"',"").replace(x,"")):r.push(e.trim().replace(x,""));return{modifier:n,values:r,isAnd:t,isOr:i}},Ta=e=>{let r=La(e);if(r){let[,t]=e.split(r);return{excluded:!0,filterKey:t,isMeta:wr(t)}}else return{excluded:!1,filterKey:e,isMeta:wr(e)}},xa=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Lr=e=>e.indexOf(",")>=0,wr=e=>{var r;return!!((r=Pe[e])!=null&&r.isMeta)},La=e=>{var r;return(r=Br.find(t=>e.includes(t)))==null?void 0:r.slice(0,1)};var I=$(W()),Rr={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[I.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artist:"Hoodwill",identifier:"FNG000",image:"FNG000",print:"FNG000",set:I.Release.Promos},{artist:"Hoodwill",identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${I.Treatment.FA}`,set:I.Release.Promos,treatment:I.Treatment.FA}],name:"Fangs A Lot",rarities:[I.Rarity.Rare],rarity:I.Rarity.Rare,sets:[I.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[I.Subtype.Attack],types:[I.Type.Action],typeText:"Generic Action - Attack"},Ir=[{keyword:Rr.name.toLowerCase(),card:Rr}];var Dr=$(W());var ut=class{constructor(r){this.search=(r,t)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(r,this.cards),c=s.join(" "),u=t?Ir.filter(g=>g.keyword===c):[];if(u.length>0?i=u.map(({card:g})=>g):s.length?i=this.fuse.search(c).map(g=>g.item):i=[...this.cards],n.length&&(i=i.filter(g=>g&&Er(g,n,o)),n.some(({excluded:g,values:h})=>!g&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(g=>!g.young)),n.some(({excluded:g,values:h})=>!g&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(g=>{let{types:h,young:v}=g;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let g="";if(a.releases.length===1)try{let h=a.releases[0];g=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}g?i.sort((h,v)=>{var T,L;let b=(T=h.setIdentifiers.find(M=>M.includes(g)))==null?void 0:T.replace(g,""),k=(L=v.setIdentifiers.find(M=>M.includes(g)))==null?void 0:L.replace(g,"");return b&&k?b.localeCompare(k):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let g=[],h=[],v=s.map(b=>b.toLowerCase().replace(x,"")).join(" ");for(let b of i)b.name.toLowerCase().replace(x,"")===v?g.push(b):h.push(b);i=[...g,...h]}let d,{artists:f,foilings:p,releases:m,treatments:y}=a;return(f.length>0||p.length>0||m.length>0||y.length>0)&&(d=i.map(g=>{let h=g.printings.filter(v=>{let b=!!v.image,k=f.length===0||f.some(w=>v.artist.replace(x,"").toLowerCase().includes(w)),T=p.length===0||p.includes(v.foiling),L=m.length===0||m.includes(v.set),M=y.length===0||y.includes(v.treatment);return b&&k&&T&&L&&M});return he({matchingPrintings:h},g)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:d||i}};let t={getFn:(i,n)=>{let a=ct.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(s=>s.replace(x,"")):a.replace(x,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...r],this.fuse=new ct.default([...r],t)}},_r=ut,Er=(e,r,t)=>{var n,a;let i=!0;for(let s of r){let{isNumber:o,isString:c,isArray:u,isBoolean:d,property:f}=s.filterToPropertyMapping;if((o&&!wa(e,s)||c&&!Pa(e,s)||u&&!Ba(e,s)||d&&!Ra(e,s))&&(i=!1),t.isClash&&["rarities","bannedFormats"].includes(f)){let v=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(M=>e.rarities.includes(M)),b=!1;for(let{cardIdentifiers:M,heroes:w}of Ve)for(let R of t.heroes)w.includes(R)&&M.includes(e.cardIdentifier)&&(b=!0);let k=!!e.specializations&&e.specializations.length>0||b,T=[P.Type.Mentor,P.Type.Weapon].some(M=>e.types.includes(M)),L=Ye.includes(e.name);!i&&!L&&(k||T)&&v&&(i=!0),L&&(i=!1)}if(t.isClash&&t.heroes.includes(P.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&t.heroes.includes(P.Hero.Brutus)){let v=((n=e.specializations)==null?void 0:n.length)>0;e.keywords.includes(Dr.Keyword.Clash)&&!v&&(i=!0)}!i&&t.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(f)&&((a=e.specializations)==null?void 0:a.length)>0&&(i=!0);let g=e.types.includes(P.Type.Equipment);if(!i&&t.heroes.includes(P.Hero.Taylor)&&g&&g&&(i=!0),!i)break}return i},wa=(e,r)=>{var t;if(Re(r,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=dt(e,r);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(p=>o>=parseInt(p));return a?!c:c;case">":let u=i==null?void 0:i.some(p=>o>parseInt(p));return a?!u:u;case"<=":let d=i==null?void 0:i.some(p=>o<=parseInt(p));return a?!d:d;case"<":let f=i==null?void 0:i.some(p=>o<parseInt(p));return a?!f:f;default:return!1}else{let c=i==null?void 0:i.some(u=>o===parseInt(u));return a?!c:c}else{let c=(t=Da(e,r))==null?void 0:t.toLowerCase(),u=s?i==null?void 0:i.some(d=>c==null?void 0:c.includes(d)):i==null?void 0:i.some(d=>c===d);return a?!u:u}}else return!0},Pa=(e,r)=>{var t;if(Re(r,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=(t=dt(e,r))==null?void 0:t.replaceAll(x,"");if(s){let c=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!c:c}else{let c=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!c:c}}else return!0},Ba=(e,r)=>{if(Re(r,e)){let{values:t,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=r,s=Ia(e,r).map(o=>o==null?void 0:o.replaceAll(x,""));if(a){let o=i?t.every(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))):t.some(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))),c=s.length===0;return n?!o||c:o}else{let o=i?t.every(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c)):t.some(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},Ra=(e,r)=>{if(Re(r,e)){let{excluded:t}=r,i=dt(e,r);return t?!i:i}else return!0},dt=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.property]},Ia=(e,r)=>{let{filterToPropertyMapping:{nestedProperty:t,property:i}}=r,n=e[i]||[];return t?n.map(a=>a[t]).filter(a=>!!a):n},Da=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.specialProperty]},Re=({cardTypes:e},{types:r,subtypes:t})=>!e||(e==null?void 0:e.some(i=>r.map(n=>n.toLowerCase()).includes(i.toLowerCase())||t.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var lt=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(x,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),t};var K=$(W()),_a=e=>{let r=e.filter(o=>o.types.includes(K.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),t=r.filter(o=>!o.young&&!o.classes.includes(K.Class.Adjudicator)),i=r.filter(o=>{let c=o.rarities.some(d=>d!==K.Rarity.Promo),u=o.sets.some(d=>d!==K.Release.Promos);return c||u}),n=r.filter(o=>{let c=o.rarities.every(d=>d===K.Rarity.Promo),u=o.sets.every(d=>d===K.Release.Promos);return c&&u}),a=r.filter(o=>o.young),s=a.filter(({hero:o})=>!t.find(c=>c.hero===o));return{all:r,adult:t,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var zr=$(W());var pt=$(W()),Ea={"Dawnblade, Resplendent":"Dawnblade"},Or=e=>Ea[e.name]||e.name,Nr=e=>{var r;return(r=e.functionalText)==null?void 0:r.replaceAll(e.name,"")},Be=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(x,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),ht(t,r)},ht=(e,r)=>{var a,s;let t=[],i=[],n=[];if(e){let o=[],c=[],u=Or(e);for(let d of r){let f=Or(d),p=u===f,m=e.pitch!==d.pitch;if(p&&m)t.push(d);else if(!p){let y=e.name==="Seismic Surge",g=(a=d.keywords)==null?void 0:a.includes(pt.Keyword.Heave),h=y&&g,v=Nr(d),b=v==null?void 0:v.includes(u),k=Nr(e),T=k==null?void 0:k.includes(f);(b||h)&&o.push(d);let L=d.name==="Seismic Surge",M=(s=e.keywords)==null?void 0:s.includes(pt.Keyword.Heave);(T||L&&M)&&c.push(d)}}for(let d of o)i.push(d);for(let d of c){let f=d.name;u!==f&&!c.some(p=>{let m=p.name;return m!==f&&m.includes(f)})&&n.push(d)}}return{otherPitches:t,referencedBy:i,references:n}},Oa=["cash-in-yellow"],Na=(e,r,t)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Oa.includes(a))){let{references:a}=ht(n,r);for(let s of a.filter(o=>{let c=o.name==="Hyper Driver",u=t===zr.Hero.Maxx;return!c||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flesh-and-blood/search",
|
|
3
3
|
"description": "TypeScript search engine for Flesh and Blood cards",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.43",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"full": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@flesh-and-blood/types": "^2.0.
|
|
15
|
+
"@flesh-and-blood/types": "^2.0.43",
|
|
16
16
|
"fuse.js": "^6.6.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@flesh-and-blood/cards": "^2.0.
|
|
19
|
+
"@flesh-and-blood/cards": "^2.0.43",
|
|
20
20
|
"@types/jest": "^29.5.11",
|
|
21
21
|
"@types/node": "^20.10.5",
|
|
22
22
|
"esbuild": "^0.19.10",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"FAB",
|
|
47
47
|
"FABTCG"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "9220e4aab26cd5a174f9268d4f29e1f92d5e7a2f"
|
|
50
50
|
}
|