diff --git a/bun.lockb b/bun.lockb index eca04fd..4008ab9 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/dist/index.js b/dist/index.js index abcbc8d..40347bc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -var N1=Object.create;var{defineProperty:l,getPrototypeOf:C1,getOwnPropertyNames:V1}=Object;var k1=Object.prototype.hasOwnProperty;var F1=(G,$,O)=>{O=G!=null?N1(C1(G)):{};const Q=$||!G||!G.__esModule?l(O,"default",{value:G,enumerable:!0}):O;for(let W of V1(G))if(!k1.call(Q,W))l(Q,W,{get:()=>G[W],enumerable:!0});return Q};var B1=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports);var u=B1((F2,P)=>{var g=function(){var G=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Q={};function W(J,X){if(!Q[J]){Q[J]={};for(var Y=0;Y>>8,Y[q*2+1]=C%256}return Y},decompressFromUint8Array:function(J){if(J===null||J===void 0)return M.decompress(J);else{var X=new Array(J.length/2);for(var Y=0,q=X.length;Y>1}}else{R=1;for(q=0;q>1}}if(j--,j==0)j=Math.pow(2,H),H++;delete B[N]}else{R=C[N];for(q=0;q>1}}if(j--,j==0)j=Math.pow(2,H),H++;C[D]=S++,N=String(k)}}if(N!==""){if(Object.prototype.hasOwnProperty.call(B,N)){if(N.charCodeAt(0)<256){for(q=0;q>1}}else{R=1;for(q=0;q>1}}if(j--,j==0)j=Math.pow(2,H),H++;delete B[N]}else{R=C[N];for(q=0;q>1}}if(j--,j==0)j=Math.pow(2,H),H++}R=2;for(q=0;q>1}while(!0)if(K=K<<1,U==X-1){L.push(Y(K));break}else U++;return L.join("")},decompress:function(J){if(J==null)return"";if(J=="")return null;return M._decompress(J.length,32768,function(X){return J.charCodeAt(X)})},_decompress:function(J,X,Y){var q=[],R,C=4,B=4,k=3,D="",N=[],j,S,H,L,K,U,F,z={val:Y(0),position:X,index:1};for(j=0;j<3;j+=1)q[j]=j;H=0,K=Math.pow(2,2),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}switch(R=H){case 0:H=0,K=Math.pow(2,8),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}F=G(H);break;case 1:H=0,K=Math.pow(2,16),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}F=G(H);break;case 2:return""}q[3]=F,S=F,N.push(F);while(!0){if(z.index>J)return"";H=0,K=Math.pow(2,k),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}switch(F=H){case 0:H=0,K=Math.pow(2,8),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}q[B++]=G(H),F=B-1,C--;break;case 1:H=0,K=Math.pow(2,16),U=1;while(U!=K){if(L=z.val&z.position,z.position>>=1,z.position==0)z.position=X,z.val=Y(z.index++);H|=(L>0?1:0)*U,U<<=1}q[B++]=G(H),F=B-1,C--;break;case 2:return N.join("")}if(C==0)C=Math.pow(2,k),k++;if(q[F])D=q[F];else if(F===B)D=S+S.charAt(0);else return null;if(N.push(D),q[B++]=S+D.charAt(0),C--,S=D,C==0)C=Math.pow(2,k),k++}}};return M}();if(typeof define==="function"&&define.amd)define(function(){return g});else if(typeof P!=="undefined"&&P!=null)P.exports=g;else if(typeof angular!=="undefined"&&angular!=null)angular.module("LZString",[]).factory("LZString",function(){return g})});var y=F1(u(),1);var _={"/common/destiny2_content/icons/fb50cd68a9850bd323872be4f6be115c.png":1,"/common/destiny2_content/icons/dd71a9a48c4303fd8546433d63e46cc7.png":1,"/common/destiny2_content/icons/2c024f088557ca6cceae1e8030c67169.png":2,"/common/destiny2_content/icons/50d36366595897d49b5d33e101c8fd07.png":2,"/common/destiny2_content/icons/ed6c4762c48bd132d538ced83c1699a6.png":3,"/common/destiny2_content/icons/aaa61f6c70478d87de0df41e5709a773.png":3,"/common/destiny2_content/icons/1b6c8b94cec61ea42edb1e2cb6b45a31.png":4,"/common/destiny2_content/icons/eb621df1be42ae5db9e8cd20eda17c44.png":4,"/common/destiny2_content/icons/448f071a7637fcefb2fccf76902dcf7d.png":5,"/common/destiny2_content/icons/c23c9ec8709fecad87c26b64f5b2b9f5.png":5,"/common/destiny2_content/icons/1448dde4efdb57b07f5473f87c4fccd7.png":6,"/common/destiny2_content/icons/e4a1a5aaeb9f65cc5276fd4d86499c70.png":6,"/common/destiny2_content/icons/5364cc3900dc3615cb0c4b03c6221942.png":7,"/common/destiny2_content/icons/69bb11f24279c7a270c6fac3317005b2.png":7,"/common/destiny2_content/icons/2352f9d04dc842cfcdda77636335ded9.png":8,"/common/destiny2_content/icons/ee3f5bb387298acbdb03c01940701e63.png":8,"/common/destiny2_content/icons/e8fe681196baf74917fa3e6f125349b0.png":8,"/common/destiny2_content/icons/82a8d6f2b1e4ee14e853d4ffbe031406.png":8,"/common/destiny2_content/icons/3ba38a2b9538bde2b45ec9313681d617.png":9,"/common/destiny2_content/icons/9b7e4bbc576fd15fbf44dfa259f8b86a.png":9,"/common/destiny2_content/icons/b12630659223b53634e9f97c0a0a8305.png":10,"/common/destiny2_content/icons/e27a4f39c1bb8c6f89613648afaa3e9f.png":10,"/common/destiny2_content/icons/4c25426263cacf963777cd4988340838.png":11,"/common/destiny2_content/icons/49dc693c5f3411b9638b97f38a70b69f.png":11,"/common/destiny2_content/icons/9e0f43538efe9f8d04546b4b0af6cc43.png":12,"/common/destiny2_content/icons/1f702463c5e0c4e25c9f00a730dbc6ac.png":12,"/common/destiny2_content/icons/be3c0a95a8d1abc6e7c875d4294ba233.png":12,"/common/destiny2_content/icons/d3cffdcb881085bc4fe19d9671c9eb0c.png":12,"/common/destiny2_content/icons/0ec87dd7ef282db27e1fc337e9545cd0.png":12,"/common/destiny2_content/icons/5ac4a1d48a5221993a41a5bb524eda1b.png":13,"/common/destiny2_content/icons/e197b731c11556b17664b90a87dd0c11.png":13,"/common/destiny2_content/icons/23968435c2095c0f8119d82ee222c672.png":14,"/common/destiny2_content/icons/a9faab035e2f59f802e99641a3aaab9e.png":14,"/common/destiny2_content/icons/671a19eca92ad9dcf39d4e9c92fcdf75.png":15,"/common/destiny2_content/icons/d92e077d544925c4f37e564158f8f76a.png":15,"/common/destiny2_content/icons/6e4fdb4800c34ccac313dd1598bd7589.png":16,"/common/destiny2_content/icons/b973f89ecd631a3e3d294e98268f7134.png":16,"/common/destiny2_content/icons/d05833668bcb5ae25344dd4538b1e0b2.png":16,"/common/destiny2_content/icons/ab075a3679d69f40b8c2a319635d60a9.png":17,"/common/destiny2_content/icons/a3923ae7d2376a1c4eb0f1f154da7565.png":18,"/common/destiny2_content/icons/e775dcb3d47e3d54e0e24fbdb64b5763.png":19,"/common/destiny2_content/icons/31445f1891ce9eb464ed1dcf28f43613.png":20,"/common/destiny2_content/icons/af00bdcd3e3b89e6e85c1f63ebc0b4e4.png":20,"/common/destiny2_content/icons/a568c77f423d1b49aeccbce0e7af79f6.png":20,"/common/destiny2_content/icons/6026e9d64e8c2b19f302dafb0286897b.png":21,"/common/destiny2_content/icons/3de52d90db7ee2feb086ef6665b736b6.png":22};var d={"/common/destiny2_content/icons/ad7fdb049d430c1fac1d20cf39059702.png":1,"/common/destiny2_content/icons/04de56db6d59127239ed51e82d16c06c.png":2,"/common/destiny2_content/icons/52523b49e5965f6f33ab86710215c676.png":3,"/common/destiny2_content/icons/f80e39c767f309f0b2be625dae0e3744.png":4,"/common/destiny2_content/icons/65097e226318b8581ad535b33827e01a.png":5,"/common/destiny2_content/icons/8b0d9b848bfb49077fe018e6f80a2939.png":5,"/common/destiny2_content/icons/3543d23d9063fbf7332c7f129a74ada2.png":6,"/common/destiny2_content/icons/efdb35540cd169fa6e334995c2ce87b6.png":6};var w1={"30th":{itemHashes:[],sourceHashes:[443340273,642326476,675740011,1102533392,1394793197,2763252588],searchString:[]},ada:{itemHashes:[417164956,3211806999,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589],sourceHashes:[266896577,439994003,925197669,948753311,1286332045,1457456824,1465990789,1596507419,2062058385,2384327872,2541753910,2966694626,3047033583,3257722699,3390164851,3764925750,4101102010,4247521481,4290227252],searchString:[]},adventure:{itemHashes:[],sourceHashes:[194661944,482012099,636474187,783399508,790433146,1067250718,1186140085,1289998337,1527887247,1736997121,1861838843,2040548068,2096915131,2345202459,2392127416,2553369674,3427537854,3754173885,4214471686],searchString:[]},banshee:{itemHashes:[],sourceHashes:[1459595344,1788267693,2986841134,3512613235],searchString:[]},battlegrounds:{itemHashes:[2121785039,3075224551],sourceHashes:[3391325445],searchString:[]},blackarmory:{itemHashes:[417164956,3211806999,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589],sourceHashes:[266896577,439994003,925197669,948753311,1286332045,1457456824,1465990789,1596507419,2062058385,2384327872,2541753910,2966694626,3047033583,3257722699,3390164851,3764925750,4101102010,4247521481,4290227252],searchString:[]},calus:{itemHashes:[1661191192,2816212794,3580904580],sourceHashes:[976328308,1675483099,2399751101,2511152325,2653618435,2765304727,2812190367,2937902448,3147603678,4009509410,4066007318],searchString:[]},campaign:{itemHashes:[],sourceHashes:[13912404,100617404,286427063,409652252,460742691,569214265,677167936,736336644,901482731,918840100,923708784,1076222895,1103518848,1118966764,1281387702,1701477406,2242939082,2278847330,2308290458,2552784968,2744321951,2892963218,2895784523,2929562373,2988465950,3099553329,3126774631,3174947771,3431853656,3532642391,3704442923,3936473457,4288102251,4290499613],searchString:[]},cayde6:{itemHashes:[],sourceHashes:[2206233229],searchString:[]},compass:{itemHashes:[],sourceHashes:[164083100,3100439379],searchString:[]},contact:{itemHashes:[],sourceHashes:[2039343154],searchString:[]},cos:{itemHashes:[947448544,1661191193,2027598066,2027598067],sourceHashes:[2399751101,3147603678],searchString:[]},crota:{itemHashes:[],sourceHashes:[1897187034],searchString:[]},crotasend:{itemHashes:[],sourceHashes:[1897187034],searchString:[]},crownofsorrow:{itemHashes:[947448544,1661191193,2027598066,2027598067],sourceHashes:[2399751101,3147603678],searchString:[]},crucible:{itemHashes:[769099721,1230660649,1661191197,2414564781,2420153991,2588739576,2588739578,2588739579,2632846356,3928440584,3928440585,4060882456],sourceHashes:[454115234,598662729,745186842,897576623,929025440,1217831333,1223492644,1494513645,2055470113,2537301256,2558941813,2622122683,2641169841,2658055900,2669524419,2821852478,2915991372,3020288414,3226099405,3299964501,3348906688,3466789677,3656787928],searchString:[]},dcv:{itemHashes:[417164956,947448544,1661191192,1661191193,1661191194,1661191195,2027598066,2027598067,2557722678,2816212794,3176509806,3211806999,3580904580,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589,3841416152,3841416153,3841416154,3841416155,3875444086],sourceHashes:[148542898,194661944,266896577,315474873,354493557,439994003,482012099,636474187,925197669,948753311,976328308,1036506031,1067250718,1175566043,1286332045,1299614150,1400219831,1411886787,1457456824,1465990789,1483048674,1581680964,1596507419,1618754228,1654120320,1675483099,1832642406,1924238751,2062058385,2085016678,2310754348,2384327872,2392127416,2399751101,2487203690,2511152325,2541753910,2653618435,2717017239,2765304727,2812190367,2926805810,2937902448,2966694626,3047033583,3079246067,3147603678,3257722699,3390164851,3427537854,3534706087,3764925750,3964663093,4009509410,4066007318,4101102010,4137108180,4246883461,4247521481,4263201695,4290227252],searchString:["mercury","mars","titan","io","leviathan","ep","blackarmory","menagerie","eow","sos","scourge","crownofsorrow"]},deepstonecrypt:{itemHashes:[],sourceHashes:[866530798,1405897559,1692165595],searchString:[]},deluxe:{itemHashes:[],sourceHashes:[639650067,1358645302,1412777465,1743434737,1866448829,2968206374,2985242208,3173463761,3212282221,3672287903,4069355515,4166998204],searchString:[]},do:{itemHashes:[],sourceHashes:[146504277],searchString:[]},dreaming:{itemHashes:[185321779,3352019292],sourceHashes:[2559145507,3874934421],searchString:[]},drifter:{itemHashes:[180108390,180108391,1335424933,1335424934,1335424935,1661191187,2224920148,2224920149,2394866220,2588647363,3217477988,4060882457],sourceHashes:[186854335,571102497,594786771,887452441,1127923611,1162859311,2170269026,2364933290,2601524261,2843045413,2883838366,3299964501,3348906688,3422985544,3494247523,3522070610],searchString:[]},dsc:{itemHashes:[],sourceHashes:[866530798,1405897559,1692165595],searchString:[]},duality:{itemHashes:[],sourceHashes:[1282207663],searchString:[]},dungeon:{itemHashes:[185321778,814876684,2844014413],sourceHashes:[210885364,506073192,675740011,1282207663,1597738585,1745960977,2745272818,2856954949,3288974535,3597879858],searchString:["shatteredthrone","pit","prophecy","presage","harbinger"]},edz:{itemHashes:[],sourceHashes:[783399508,790433146,1373723300,1527887247,1736997121,1861838843,2096915131,3754173885,4214471686,4292996207],searchString:[]},enclave:{itemHashes:[],sourceHashes:[1309588429,2055289873],searchString:[]},eow:{itemHashes:[],sourceHashes:[2937902448,4066007318],searchString:[]},ep:{itemHashes:[],sourceHashes:[4137108180],searchString:[]},europa:{itemHashes:[],sourceHashes:[286427063,1148859274,1492981395,2171520631,3125456997,3965815470],searchString:[]},events:{itemHashes:[],sourceHashes:[32323943,151416041,464727567,547767158,611838069,629617846,641018908,772619302,923678151,1054169368,1225476079,1360005982,1397119901,1462687159,1666677522,1677921161,1919933822,2006303146,2011810450,2187511136,2364515524,2473294025,2502262376,2797674516,3092212681,3112857249,3190938946,3388021959,3693722471,3724111213,3736521079,3952847349,4041583267,4054646289],searchString:["dawning","crimsondays","solstice","fotl","revelry","games"]},eververse:{itemHashes:[],sourceHashes:[269962496,860688654,2882367429,4036739795],searchString:[]},evidenceboard:{itemHashes:[],sourceHashes:[1309588429,2055289873],searchString:[]},fwc:{itemHashes:[],sourceHashes:[3569603185],searchString:[]},gambit:{itemHashes:[180108390,180108391,1335424933,1335424934,1335424935,1661191187,2224920148,2224920149,2394866220,2588647363,3217477988,4060882457],sourceHashes:[186854335,571102497,594786771,887452441,1127923611,1162859311,2170269026,2364933290,2601524261,2843045413,2883838366,3299964501,3348906688,3422985544,3494247523,3522070610],searchString:[]},gambitprime:{itemHashes:[2868525740,2868525741,2868525742,2868525743,3735277403,3808901541],sourceHashes:[1952675042],searchString:[]},garden:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},gardenofsalvation:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},gos:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},grasp:{itemHashes:[],sourceHashes:[675740011],searchString:[]},gunsmith:{itemHashes:[],sourceHashes:[1459595344,1788267693,2986841134,3512613235],searchString:[]},harbinger:{itemHashes:[],sourceHashes:[2856954949],searchString:[]},haunted:{itemHashes:[1478986057,2778013407],sourceHashes:[620369433,976328308,1283862526,2273761598,2676881949],searchString:[]},ikora:{itemHashes:[],sourceHashes:[3075817319],searchString:[]},io:{itemHashes:[],sourceHashes:[315474873,1067250718,1832642406,2392127416,2717017239,3427537854],searchString:[]},ironbanner:{itemHashes:[231533811,1162929425,1448664466,1448664467,1661191199,1987234560,2448092902],sourceHashes:[561111210,1027607603,1312894505,1828622510,1926923633,2520862847,2648408612,3072862693,3966667255],searchString:[]},kf:{itemHashes:[],sourceHashes:[160129377],searchString:[]},kingsfall:{itemHashes:[],sourceHashes:[160129377],searchString:[]},lastwish:{itemHashes:[3668669364],sourceHashes:[2455011338],searchString:[]},legendaryengram:{itemHashes:[],sourceHashes:[3334812276],searchString:[]},leviathan:{itemHashes:[3580904580],sourceHashes:[2653618435,2765304727,4009509410],searchString:[]},limited:{itemHashes:[],sourceHashes:[639650067,1358645302,1412777465,1743434737,1866448829,2968206374,2985242208,3173463761,3212282221,3672287903,4069355515,4166998204],searchString:[]},lost:{itemHashes:[],sourceHashes:[164083100,3094114967],searchString:[]},lostsectors:{itemHashes:[],sourceHashes:[2203185162],searchString:[]},lw:{itemHashes:[3668669364],sourceHashes:[2455011338],searchString:[]},mars:{itemHashes:[],sourceHashes:[1036506031,1299614150,1924238751,2310754348,2926805810,4137108180],searchString:[]},menagerie:{itemHashes:[1661191194,1661191195,3176509806,3841416152,3841416153,3841416154,3841416155,3875444086],sourceHashes:[2511152325],searchString:[]},mercury:{itemHashes:[],sourceHashes:[148542898,1175566043,1400219831,1411886787,1581680964,1618754228,1654120320,2487203690,3079246067,3964663093,4263201695],searchString:[]},moon:{itemHashes:[],sourceHashes:[1253026984,1999000205,3589340943],searchString:[]},neomuna:{itemHashes:[],sourceHashes:[281362298,454251931,483798855,1750523507,2697389955,3041847664,3773376290,4006434081,4110186790],searchString:[]},nessus:{itemHashes:[],sourceHashes:[164571094,817015032,1186140085,1289998337,1906492169,2040548068,2345202459,2553369674,3022766747,3067146211],searchString:[]},nightfall:{itemHashes:[],sourceHashes:[110159004,277706045,354493557,817015032,827839814,860666126,1175566043,1283862526,1516560855,1581680964,1596489410,1618699950,1749037998,1850609592,1924238751,1992319882,2347293565,2376909801,2487203690,2717017239,2805208672,2851783112,2926805810,2982642634,3022766747,3067146211,3142874552,3229688794,3528789901,3874934421,3964663093,4208190159,4263201695],searchString:[]},nightmare:{itemHashes:[],sourceHashes:[550270332,2778435282,3190710249],searchString:[]},nm:{itemHashes:[],sourceHashes:[1464399708],searchString:[]},"pinnacle-weapon":{itemHashes:[578459533,654608616,1584643826,1600633250,3354242550,3907337522],sourceHashes:[598662729,1162859311,1244908294,2317365255,2537301256,2883838366],searchString:[]},pit:{itemHashes:[],sourceHashes:[1745960977],searchString:[]},plunder:{itemHashes:[820890091,1298815317],sourceHashes:[790152021,2982642634,3265560237,3308438907,3740731576,4199401779],searchString:[]},presage:{itemHashes:[],sourceHashes:[210885364,2745272818,3597879858],searchString:[]},prestige:{itemHashes:[],sourceHashes:[2765304727,2812190367,4066007318],searchString:[]},prophecy:{itemHashes:[],sourceHashes:[506073192],searchString:[]},psiops:{itemHashes:[2097055732,4067556514],sourceHashes:[450719423,2075569025,2363489105,3563833902],searchString:[]},raid:{itemHashes:[947448544,1661191193,2027598066,2557722678,3580904580,3668669364,4103414242],sourceHashes:[160129377,557146120,654652973,707740602,866530798,1007078046,1405897559,1483048674,1491707941,1675483099,1692165595,1897187034,2065138144,2085016678,2399751101,2455011338,2653618435,2723305286,2765304727,2812190367,2882367429,2937902448,3098906085,3147603678,3190710249,3390269646,3807243511,4009509410,4066007318,4246883461],searchString:["crownofsorrow","deepstonecrypt","eow","garden","lastwish","leviathan","scourge","sos","vog"]},rasputin:{itemHashes:[],sourceHashes:[504657809,1126234343,1497107113,1516560855,2230358252,2422551147,3492941398,3567813252,3574140916,3937492340],searchString:[]},"ritual-weapon":{itemHashes:[213264394,805677041,838556752,847329160,888872889,1179141605,1644680957,2060863616,2697058914,3001205424,3292795429,3434944005,3535742959,4184808992,4227181568],sourceHashes:[3299964501,3348906688],searchString:[]},ron:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},root:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},rootofnightmares:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},saint14:{itemHashes:[],sourceHashes:[2607739079,3404977524,4046490681,4267157320],searchString:[]},scourge:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},scourgeofthepast:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},seasonpass:{itemHashes:[599895591,820890091,1298815317,1478986057,2097055732,2121785039,2434225986,2778013407,3075224551,4067556514],sourceHashes:[450719423,794422188,813075729,927967626,1560428737,1593696611,1763998430,1838401392,2257836668,2379344669,2676881949,3308438907,3574140916],searchString:[]},servitor:{itemHashes:[599895591,2434225986],sourceHashes:[139160732,277706045,1600754038,2040801502,2694738712,2967385539],searchString:[]},shatteredthrone:{itemHashes:[185321778,814876684,2844014413],sourceHashes:[],searchString:[]},shaxx:{itemHashes:[769099721,1230660649,1661191197,2414564781,2420153991,2588739576,2588739578,2588739579,2632846356,3928440584,3928440585,4060882456],sourceHashes:[454115234,598662729,745186842,897576623,929025440,1217831333,1223492644,1494513645,2055470113,2537301256,2558941813,2622122683,2641169841,2658055900,2669524419,2821852478,2915991372,3020288414,3226099405,3299964501,3348906688,3466789677,3656787928],searchString:[]},shipwright:{itemHashes:[],sourceHashes:[96303009],searchString:[]},sonar:{itemHashes:[],sourceHashes:[813075729,927967626,2257836668,2755511565,2811716495],searchString:[]},sos:{itemHashes:[],sourceHashes:[1675483099,2812190367],searchString:[]},sotp:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},sotw:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},spireofstars:{itemHashes:[],sourceHashes:[1675483099,2812190367],searchString:[]},spireofthewatcher:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},strikes:{itemHashes:[274843196,1661191186,2523776412,2523776413,2588647361,2788911997,2788911998,2788911999,3215252549,4060882458],sourceHashes:[288436121,351235593,412991783,539840256,681989555,1144274899,1216155659,1244908294,1433518193,1564061133,2124937714,2317365255,2335095658,2527168932,3299964501,3348906688],searchString:[]},sundial:{itemHashes:[],sourceHashes:[1618754228,2627087475],searchString:[]},tangled:{itemHashes:[1226584228,1226584229,4085986809],sourceHashes:[110159004,798957490,1771326504,2805208672,4140654910],searchString:[]},throneworld:{itemHashes:[],sourceHashes:[1141831282,1823766625,3954922099],searchString:[]},titan:{itemHashes:[],sourceHashes:[194661944,354493557,482012099,636474187,3534706087],searchString:[]},trials:{itemHashes:[1983519830,2069797994,2071635914,2071635915],sourceHashes:[139599745,550270332,613791463,752988954,827839814,1607607347,2857787138,3390015730,3471208558,3543690049],searchString:[]},umbral:{itemHashes:[],sourceHashes:[287889699,1286883820],searchString:[]},vaultofglass:{itemHashes:[],sourceHashes:[2065138144],searchString:[]},vexoffensive:{itemHashes:[351285766,377757362,509561140,509561142,509561143,695795213,844110491,1137424312,1137424314,1137424315,1348357884,1584183805,1721943440,1721943441,1721943442,1855720513,1855720514,1855720515,2096778461,2096778462,2096778463,2468603405,2468603406,2468603407,2657028416,2687273800,2690973101,2690973102,2690973103,2742760292,2761292744,2815379657,2815379658,2815379659,2903026872,2903026873,2903026874,2942269704,2942269705,2942269707,3166926328,3166926330,3166926331,3192738009,3192738010,3192738011,3364258850,3680920565,3757338780,3757338782,3757338783,3911047865,4013678605,4026120124,4026120125,4026120127,4070722289,4078925540,4078925541,4078925542],sourceHashes:[4122810030],searchString:[]},vog:{itemHashes:[],sourceHashes:[2065138144],searchString:[]},votd:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},vow:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},vowofthedisciple:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},wartable:{itemHashes:[],sourceHashes:[2653840925,3818317874,4079816474],searchString:[]},watcher:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},wellspring:{itemHashes:[],sourceHashes:[82267399,502279466,2917218318,3359853911,3411812408,3450213291],searchString:[]},wrathborn:{itemHashes:[197764097,238284968,251310542,317220729,1148770067,1276513983,1458739906,2025716654,2055947316,2279193565,2453357042,2545401128,2776503072,3180809346,3351935136,3887272785,4079117607],sourceHashes:[841568343,3107094548],searchString:[]},zavala:{itemHashes:[274843196,1661191186,2523776412,2523776413,2588647361,2788911997,2788911998,2788911999,3215252549,4060882458],sourceHashes:[288436121,351235593,412991783,539840256,681989555,1144274899,1216155659,1244908294,1433518193,1564061133,2124937714,2317365255,2335095658,2527168932,3299964501,3348906688],searchString:[]}},i=w1;var A1={"30th":[286271818,399065241,587312237,833653807,1756483796,1951355667,2244604734,2663987096,2885497847,3048458482,3171090615,3267969345,3685276035,3871537958,4050474396],ada:[],adventure:[11686457,11686458,320310249,320310250,886128573,1096417434,1286488743,1355771621,1701005142,1701005143,2317191363,2426340788,2426340791,2486041712,2486041713,2913284400,3706457514,3706457515],banshee:[],battlegrounds:[],blackarmory:[],calus:[17280095,30962015,64543268,64543269,223783885,239489770,253344425,256904954,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,383742277,407863747,455108040,455108041,503773817,548581042,560455272,574137192,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,748485514,748485515,754149842,754149843,796914932,802557885,845536715,853543290,853543291,855363300,874272413,917591018,917591019,974648224,1034660314,1108389626,1156439528,1230192769,1242139836,1256688732,1296628624,1339632007,1354679721,1390282760,1390282761,1413589586,1434870610,1457195686,1481751647,1675393889,1756558505,1793869832,1862963733,1876645653,1879942843,1901223867,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2023695690,2070062384,2070062385,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2329031091,2339720736,2369496221,2513313400,2537874394,2552158692,2597529070,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2765688378,2769298993,2904930850,2913992255,2933666377,2976612200,2994007601,3066613133,3082625196,3092380260,3092380261,3099636805,3108321700,3168183519,3181497704,3285121297,3292127944,3349283422,3359121706,3364682867,3395856235,3416932282,3440648382,3483984579,3497220322,3517729518,3518193943,3530284425,3581198350,3592548938,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3831484112,3842934816,3853397100,3867160430,3950028838,3950028839,3964287245,3984534842,4135228483,4152814806,4229161783,4247935492,4251770244,4251770245],campaign:[423789,644105,11686456,13719069,40512774,56663992,59990642,67798808,76554114,83898430,91289429,95934356,96682422,124410141,126602378,137713267,174910288,177215556,182285650,201644247,202783988,203317967,226227391,246765359,255520209,280187206,288815409,293178904,320174990,320310251,331268185,341343759,341468857,366418892,387708030,392489920,397654099,402937789,406995961,411014648,417821705,418611312,420937712,422994787,452060094,457297858,459778797,461025654,463563656,467612864,474150341,482091581,484126150,516502270,531665167,539726822,550258943,558125905,579997810,598178607,600059642,610837228,612495088,622291842,625602056,627055961,634608391,643145875,648022469,648638907,657773637,674335586,696808195,703683040,703902595,720723122,721208609,732520437,733635242,735669834,739196403,739406993,747210772,777818225,789384557,792400107,795389673,803939997,830369300,833626649,844823562,846463017,856745412,857264972,863007481,867963905,868799838,871442456,877723168,881194063,897275209,897335593,905249529,911039437,930759851,933345182,965934024,995248967,1012254326,1014677029,1017385934,1019574576,1022126988,1036557198,1044888195,1045948748,1048498953,1070180272,1086997255,1103878128,1118428792,1118437892,1124184622,1139671158,1153260021,1169595348,1208761894,1210012576,1255614814,1256569366,1279721672,1300106409,1305848463,1328755281,1331205087,1360445272,1365739620,1365979278,1378545975,1443091319,1452147980,1455694321,1473385934,1479532637,1479892134,1484009400,1486292360,1488618333,1500704923,1501094193,1503713660,1512570524,1556652797,1561736585,1578478684,1581838479,1604394872,1611221278,1616317796,1627901452,1630079134,1658512403,1665016007,1672155562,1691784182,1701236611,1702273159,1709236482,1715842350,1736993473,1763607626,1775818231,1783952505,1784774885,1801153435,1824298413,1848999098,1862164825,1866564759,1872887954,1891463783,1901221009,1912568536,1915498345,1924584408,1933944659,1965476837,1981225397,1988790493,1992338980,2002682954,2031584061,2049820819,2065578431,2113881316,2136310244,2148305277,2151724216,2159062493,2162276668,2165661157,2183384906,2190967049,2211544324,2214424583,2230522771,2237975061,2245839670,2246316031,2253044470,2267311547,2283894334,2303417969,2305736470,2317046938,2318667184,2325151798,2329963686,2339344379,2343139242,2362809459,2363903643,2413278875,2426340790,2436471653,2441435355,2459075622,2466525328,2476964124,2479297167,2493161484,2504771764,2519597513,2526922422,2541019576,2562645296,2567295299,2568808786,2574857320,2583547635,2626766308,2634786903,2640935765,2644553610,2689896341,2739875972,2742930797,2745108287,2771425787,2788997987,2794359402,2801811288,2803009638,2803481901,2805854721,2813695893,2814965254,2815743359,2815817957,2822491218,2825160682,2833813592,2854973517,2871824910,2880545163,2886651369,2888195476,2893448006,2930768301,2937068650,2943629439,2959986506,2982306509,2983961673,2985655620,2994740249,3007889693,3013778406,3035240099,3046678542,3047946307,3061532064,3075302157,3080409700,3102366928,3121104079,3159474701,3160437036,3163241201,3164547673,3174394351,3174771856,3181984586,3183585337,3184690956,3188328909,3212340413,3224649746,3238424670,3245543337,3260546749,3264653916,3276278122,3279257734,3294892432,3302420523,3309120116,3310450277,3313352164,3349439959,3352069677,3382396922,3391214896,3403897789,3419425578,3437155610,3438103366,3456147612,3456250548,3461249873,3465323600,3468148580,3483602905,3507639356,3508205736,3519241547,3523134386,3524846593,3539253011,3544711340,3544884935,3554672786,3556023425,3573886331,3585730968,3598972737,3639035739,3643144047,3650925928,3656549306,3657186535,3675553168,3693917763,3725709067,3748997649,3763392098,3775800797,3790903614,3791691774,3798468567,3808902618,3812037372,3846931924,3847471926,3867725217,3877365781,3880804895,3885104741,3887037435,3896141096,3904524734,3914973263,3922069396,3958133156,3962776002,3967705743,3968319087,3979300428,4012302343,4035217656,4052950089,4062934448,4069941456,4091127092,4100043028,4133705268,4135938411,4149682173,4155348771,4166795065,4174470997,4177795589,4179002916,4195519897,4200817316,4230626646,4248632159,4267244538,4267370571,4281850920,4283953067,4288395850],cayde6:[],compass:[],contact:[],cos:[17280095,256904954,309687341,325125949,560455272,612065993,874272413,974648224,1434870610,1457195686,1481751647,1862963733,1901223867,1934647691,1937834292,1946621757,1999427172,2023695690,2153222031,2194479195,2765688378,2769298993,3082625196,3108321700,3349283422,3483984579,3517729518,3518193943,3759659288,4152814806],crota:[],crotasend:[],crownofsorrow:[17280095,256904954,309687341,325125949,560455272,612065993,874272413,974648224,1434870610,1457195686,1481751647,1862963733,1901223867,1934647691,1937834292,1946621757,1999427172,2023695690,2153222031,2194479195,2765688378,2769298993,3082625196,3108321700,3349283422,3483984579,3517729518,3518193943,3759659288,4152814806],crucible:[85800627,98331691,185853176,252414402,283188616,290136582,327530279,328902054,356269375,388771599,419812559,438224459,449878234,468899627,530558102,636679949,670877864,727838174,744199039,761953100,820446170,849529384,874101646,876608500,920187221,929917162,997903134,1036467370,1062166003,1063904165,1069887756,1071350799,1084033161,1127237110,1245115841,1307478991,1333087155,1464207979,1467590642,1484937602,1548928853,1571781304,1654427223,1658896287,1673285051,1716643851,1722623780,1742680797,1742940528,1764274932,1801625827,1830829330,1838158578,1838273186,1852468615,1904811766,1929596421,2070517134,2124666626,2191401041,2231762285,2291226602,2293476915,2296560252,2296691422,2323865727,2331227463,2415711886,2426070307,2466453881,2473130418,2496309431,2525395257,2543903638,2555965565,2670393359,2718495762,2727890395,2775298636,2815422368,3089908066,3098458331,3119528729,3140634552,3211001969,3223280471,3298826188,3313736739,3315265682,3483546829,3522021318,3538513130,3724026171,3756286064,3772194440,3781722107,3818803676,3839561204,4043980813,4123918087,4134090375,4136212668,4144133120,4211218181,4264096388],dcv:[17280095,30962015,64543268,64543269,223783885,239489770,253344425,256904954,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,350056552,383742277,388999052,407863747,455108040,455108041,503773817,548581042,560455272,574137192,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,748485514,748485515,754149842,754149843,796914932,802557885,845536715,853543290,853543291,855363300,874272413,886128573,917591018,917591019,974648224,1034660314,1108389626,1156439528,1230192769,1242139836,1256688732,1296628624,1339632007,1354679721,1390282760,1390282761,1413589586,1434870610,1457195686,1481751647,1624906371,1675393889,1701005142,1756558505,1793869832,1862963733,1876645653,1879942843,1901223867,1917693279,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2023695690,2070062384,2070062385,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2317191363,2329031091,2339720736,2369496221,2486041713,2513313400,2530113265,2537874394,2552158692,2589473259,2597529070,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2762445138,2765688378,2769298993,2878130185,2904930850,2913284400,2913992255,2921334134,2933666377,2976612200,2994007601,3066613133,3082625196,3092380260,3092380261,3099636805,3108321700,3163683564,3164851950,3168183519,3181497704,3285121297,3292127944,3349283422,3359121706,3364682867,3395856235,3416932282,3440648382,3483984579,3497220322,3517729518,3518193943,3530284425,3567761471,3581198350,3592548938,3706457515,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3831484112,3842934816,3853397100,3867160430,3950028838,3950028839,3964287245,3984534842,3992358137,4125324487,4135228483,4152814806,4229161783,4238134294,4247935492,4251770244,4251770245],deepstonecrypt:[],deluxe:[1952218242,2683682447],do:[66235782,132368575,387100392,1978760489,2089197765,2760076378,2873960175,3146241834,3299588760,3763392361,3783059515,3920232320,4055334203,4065136800,4121118846],dreaming:[99549082,185695659,188778964,344548395,934704429,998096007,1452333832,1593474975,1705856569,1903023095,1928769139,1980768298,2336820707,2467635521,2503434573,2704876322,2761343386,2824453288,2859583726,2889063206,3174233615,3239662350,3250140572,3306564654,3343583008,3602032567,3711557785,4070309619,4097166900,4257800469],drifter:[9767416,94425673,127018032,191247558,191535001,230878649,386367515,392058749,485653258,509238959,629787707,759348512,787909455,887818405,978447246,1013137701,1169857924,1188039652,1193646249,1236746902,1237661249,1356064950,1359908066,1488486721,1548620661,1741396519,1752237812,2020166300,2039976446,2088829612,2130645994,2440840551,2451538755,2459422430,2506514251,2512196373,2518527196,2568447248,2620389105,2677967607,2694124942,2728668760,2858060922,2881248566,3031848199,3184912423,3339632627,3404053788,3486086024,3537476911,3550729740,3595268459,3664007718,3804360785,3825427923,3855285278,3925589496,4115739810,4188366993,4255727106],dsc:[],duality:[145651147,420895300,1148597205,2057955626,2499351855,2649394513,2694773307,2724719415,2797334754,2819810688,2935559305,3260781446,3270955774,3326914239,4047213660],dungeon:[51786498,145651147,286271818,399065241,420895300,436695703,498918879,587312237,638836294,708921139,767306222,833653807,837865641,956827695,1148597205,1349399252,1664757090,1756483796,1913823311,1951355667,2057955626,2244604734,2341879253,2488323569,2499351855,2565015142,2618168932,2643850526,2649394513,2663987096,2694773307,2724719415,2797334754,2819810688,2820604007,2850384360,2885497847,2935559305,3048458482,3171090615,3260781446,3267969345,3270955774,3326914239,3344225390,3511740432,3570749779,3685276035,3708902812,3715136417,3870375786,3871537958,3933500353,3946384952,4039955353,4047213660,4050474396,4130276947,4177293424,4288623897],edz:[10307688,11686458,320310249,872284448,1304122208,1664741411,1701005143,1712405061,2426340788,2486041712,2724176749,2729740202,3080875433,3366557883,3466255616,3706457514,3764013786,3862191322,3907226374,3973359167,4051755349],enclave:[],eow:[239489770,253344425,340118991,383742277,588627781,666883012,796914932,845536715,1034660314,1242139836,1256688732,1756558505,1991039861,2329031091,2339720736,2369496221,2537874394,2597529070,2653039573,2976612200,2994007601,3099636805,3181497704,3359121706,3364682867,3497220322,3831484112,3842934816,3964287245,4229161783],ep:[],europa:[],events:[116784191,140842223,143299650,153144587,177568179,226436555,231432261,233896077,234970842,250513201,335763433,346065606,391889347,419435523,450844637,492834021,518930465,531005896,540653483,574167778,574790717,627596132,677939288,721146704,784499738,830497630,929148730,967650555,1056992393,1141639721,1229961870,1273510836,1288683596,1341471164,1361620030,1365491398,1376763596,1450633717,1502692899,1510405477,1540031264,1548056407,1556831535,1561249470,1589318419,1649929380,1651275175,1683482799,1706764072,1706874193,1775707016,1812385587,1862324869,1897528210,2105409832,2111111693,2120905920,2127474099,2150778206,2155928170,2156817213,2287277682,2291082292,2328435454,2337290000,2419100474,2470583197,2477028154,2492769187,2523388612,2546370410,2578820926,2618313500,2685001662,2696245301,2720534902,2764769717,2770157746,2777913564,2805101184,2824302184,2837295684,2877046370,2924095235,2940416351,2978747767,2994721336,3015197581,3039687635,3077367255,3103255595,3104384024,3159052337,3192336962,3236510875,3240434620,3559361670,3611487543,3685996623,3748622249,3871226707,3892841518,3929403535,3932814032,3943394479,3965417933,3968560442,3987442049,4075522049,4100029812,4128297107,4142792564,4245469491,4272367383],eververse:[138961800,163660481,167651268,269339124,599687980,691914261,706111909,710937567,921357268,989291706,1051903593,1135293055,1290784012,1397284432,1445212020,1602334068,1706764073,1707587907,1732950654,1812385586,1816495538,1844125034,1936516278,1956273477,1984190529,2112889975,2225903500,2303499975,2378378507,2623660327,2640279229,2693084644,2717158440,2760398988,2777913565,2806805902,2828252061,2998296658,3161524490,3168164098,3177119978,3352566658,3455566107,3569791559,3729709035,3781263385,3850655136,3866715933,3947596543,4059030097],evidenceboard:[],fwc:[680327840,807866445,1162875302,1187431263,1355893732,1418921862,1478665487,1566612778,1763431309,2401598772,2415993980,2524181305,3656154099,3671665226,3842448731],gambit:[9767416,94425673,127018032,191247558,191535001,230878649,386367515,392058749,485653258,509238959,629787707,759348512,787909455,887818405,978447246,1013137701,1169857924,1188039652,1193646249,1236746902,1237661249,1356064950,1359908066,1488486721,1548620661,1741396519,1752237812,2020166300,2039976446,2088829612,2130645994,2440840551,2451538755,2459422430,2506514251,2512196373,2518527196,2568447248,2620389105,2677967607,2694124942,2728668760,2858060922,2881248566,3031848199,3184912423,3339632627,3404053788,3486086024,3537476911,3550729740,3595268459,3664007718,3804360785,3825427923,3855285278,3925589496,4115739810,4188366993,4255727106],gambitprime:[95332289,95332290,98700833,98700834,130287073,130287074,154180149,154180150,223681332,223681335,234582861,234582862,264182640,264182643,370332340,370332343,420625860,420625863,432797516,432797519,563461320,563461323,722344177,722344178,759881004,759881007,893169981,893169982,975478397,975478398,1039402696,1039402699,1159077396,1159077399,1208982392,1208982395,1295793304,1295793307,1386198149,1386198150,1438999856,1438999859,1477025072,1477025075,1505642257,1505642258,1920676413,1920676414,1951201409,1951201410,1979001652,1979001655,1984789548,1984789551,1989814421,1989814422,2051266836,2051266839,2187982744,2187982747,2334120368,2334120371,2336344261,2336344262,2371932404,2371932407,2565812704,2565812707,2591049236,2591049239,2593076932,2593076935,2698109345,2698109346,2710420856,2710420859,2799932928,2799932931,2976484617,2976484618,3088740176,3088740179,3166483968,3166483971,3168759585,3168759586,3220030412,3220030415,3373994936,3373994939,3403732217,3403732218,3489978605,3489978606,3525447589,3525447590,3533064929,3533064930,3583507225,3583507226,3636943392,3636943395,3660501108,3660501111,3837542169,3837542170,3948054485,3948054486,3981071584,3981071587,4020124605,4020124606,4026665500,4026665503,4060232809,4060232810,4245233853,4245233854,4266990316,4266990319],garden:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],gardenofsalvation:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],gos:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],grasp:[286271818,399065241,587312237,833653807,1756483796,1951355667,2244604734,2663987096,2885497847,3048458482,3171090615,3267969345,3685276035,3871537958,4050474396],gunsmith:[],harbinger:[],haunted:[3864896927],ikora:[89175653,185326970,385045066,555828571,662797277,868792277,1490387264,1532009197,1698434490,1735538848,1842727357,1895532772,1940451444,2416730691,2615512594,2682045448,2684281417,2688111404,3081969019,3511221544,3741528736,3758301014,4081859017,4146629762,4208352991,4224076198,4225579453,4285708584],io:[886128573,2317191363,2913284400],ironbanner:[21320325,63725907,75550387,92135663,124696333,130221063,131359121,142417051,167461728,197164672,198946996,219816655,228784708,258029924,279785447,287471683,344804890,423204919,425007249,473526496,479917491,481390023,485774636,487361141,500363457,510020159,511170376,540880995,559176540,561808153,691332172,706104224,713182381,738836759,738938985,739655237,741704251,744156528,770140877,808693674,831464034,863444264,892360677,935677805,957732971,959040145,995283190,1015625830,1027482647,1058936857,1062998051,1084553865,1098138990,1105558158,1127757814,1164755828,1166260237,1173846338,1181560527,1233689371,1234228360,1245456047,1279731468,1311649814,1313089081,1313767877,1337167606,1339294334,1342036510,1349302244,1395498705,1425558127,1438648985,1452894389,1465485698,1469050017,1476572353,1478755348,1496224967,1498852482,1526005320,1532276803,1570751539,1601698634,1604601714,1618191618,1631733639,1631922345,1673037492,1675022998,1717896437,1804445917,1822989604,1854612346,1876007169,1882457108,1889355043,1891964978,1895324274,1944853984,1960776126,1990315366,1999697514,2017059966,2049490557,2054377692,2055774222,2058205265,2083136519,2205315921,2234855160,2241419267,2266122060,2274205961,2302106622,2310625418,2320100699,2331748167,2340483067,2391553724,2414679508,2426788417,2455992644,2488587246,2500327265,2536633781,2547799775,2555322239,2589114445,2614190248,2620437164,2627255028,2674485749,2692970954,2723059534,2753509502,2758933481,2811201658,2817130155,2845071512,2850783764,2853073502,2863819165,2867156198,2879116647,2885394189,2898234995,2900181965,2911957494,2914695209,2916624580,2999505920,3018777825,3042878056,3055410141,3057399960,3112906149,3115791898,3147146325,3169616514,3292445816,3300129601,3308875113,3329206472,3345886183,3369424240,3379235805,3420845681,3472216012,3505538303,3543613212,3543922672,3544440242,3551208252,3570981007,3600816955,3625849667,3646911172,3661959184,3678620931,3686482762,3696011098,3735443949,3737894478,3746327861,3753635534,3756249289,3791686334,3799661482,3815391974,3817948370,3818295475,3847368113,3856062457,3856697336,3865618708,3899385447,3906637800,3972479219,3974682334,3976616421,4009352833,4010793371,4019071337,4041069824,4048191131,4054509252,4078529821,4096639276,4128151712,4144217282,4145557177,4156963223,4169842018,4196689510,4211068696,4248834293],kf:[],kingsfall:[],lastwish:[4968701,16387641,49280456,65929376,70083888,146275556,196235132,424291879,501329015,576683388,726265506,776723133,778784376,821841934,972689703,1021341893,1127835600,1190016345,1195800715,1258342944,1314563129,1432728945,1444894250,1477271933,1646520469,1656835365,1851777734,2112541750,2274520361,2280287728,2550116544,2598685593,2868042232,2884596447,2950533187,3055836250,3119383537,3143067364,3208178411,3227674085,3251351304,3388655311,3445296383,3445582154,3492720019,3494130310,3591141932,3614211816,3838639757,3868637058,3874578566,3885259140,4219088013],legendaryengram:[24598504,25091086,32806262,42219189,73720713,107232578,107582877,130772858,133227345,144651852,155832748,160388292,265279665,269552461,308026950,311394919,316000947,339438127,362404956,369384485,373203219,388625893,410671183,417345678,432525353,433294875,434243995,474076509,489114030,489480785,489743173,493299171,494682309,532728591,537272242,545134223,548907748,553373026,554000115,597618504,629469344,629482101,633160551,635809934,639670612,655964556,683173058,690335398,695071581,731888972,737010724,836969671,854373147,875215126,880368054,881579413,919186882,922218300,966777042,974507844,983115833,993844472,1006824129,1020198891,1024867629,1028913028,1034149520,1063507982,1088960547,1111042046,1127029635,1148805553,1153347999,1192751404,1195298951,1213841242,1257810769,1260134370,1266060945,1293868684,1295776817,1301696822,1330107298,1330542168,1348658294,1364856221,1367655773,1399263478,1415533220,1425077417,1429424420,1432831619,1432969759,1457647945,1512829977,1513486336,1548943654,1553407343,1598372079,1601578801,1618341271,1648238545,1655109893,1664085089,1664611474,1680657538,1693706589,1726695877,1728789982,1740873035,1742735530,1749589787,1761136389,1772639961,1810399711,1847870034,1854024004,1865671934,1892576458,1893349933,1904199788,1920259123,1954457094,1964977914,1978110490,1998314509,2012084760,2020589887,2026285619,2048751167,2082184158,2085574015,2092750352,2111956477,2112821379,2148295091,2151378428,2159363321,2173858802,2185500219,2193432605,2205604183,2206284939,2265859909,2297281780,2298664693,2332398934,2339155434,2360521872,2364041279,2379553211,2402435619,2414278933,2439195958,2442805346,2445181930,2454861732,2470746631,2475888361,2478301019,2502004600,2518901664,2521426922,2525344810,2530905971,2542514983,2546015644,2550994842,2561056920,2562470699,2562555736,2567710435,2581516944,2629014079,2648545535,2669113551,2674524165,2696303651,2713755753,2728535008,2734010957,2753581141,2762426792,2766448160,2767830203,2770578349,2772485446,2791527489,2800566014,2808379196,2811180959,2819613314,2826844112,2837138379,2838060329,2845530750,2905153902,2905154661,2924984456,2932121030,2982412348,2996649640,3018268196,3024860521,3061780015,3066154883,3066593211,3087552232,3125909492,3169402598,3198691833,3239215026,3250112431,3250360146,3257088093,3291075521,3299386902,3304280092,3316802363,3360070350,3386676796,3397835010,3403784957,3430647425,3433746208,3434158555,3498500850,3506159922,3516789127,3527995388,3536492583,3569443559,3593916933,3609169817,3611199822,3612275815,3619376218,3629447000,3646674533,3651598572,3685831476,3688229984,3691737472,3717812073,3725654227,3786300792,3839471140,3850634012,3852389988,3884999792,3899739148,3906537733,3920228039,3973570110,3979056138,3988753671,3994031968,3999262583,4064910796,4073580572,4074193483,4079913195,4092393610,4097652774,4104298449,4146408011,4166246718,4239920089,4256272077,4261835528],leviathan:[30962015,64543268,64543269,288406317,311429765,325434398,325434399,336656483,407863747,455108040,455108041,574137192,581908796,608074492,608074493,618662448,641933203,748485514,748485515,754149842,754149843,853543290,853543291,917591018,917591019,1108389626,1230192769,1354679721,1390282760,1390282761,1413589586,1876645653,1879942843,1960303677,2013109092,2070062384,2070062385,2158603584,2158603585,2183861870,2193494688,2232730708,2676042150,2700598111,2758465168,2913992255,3092380260,3092380261,3292127944,3530284425,3592548938,3711700026,3711700027,3763332443,3853397100,3950028838,3950028839,3984534842,4251770244,4251770245],limited:[1952218242,2683682447],lost:[],lostsectors:[],lw:[4968701,16387641,49280456,65929376,70083888,146275556,196235132,424291879,501329015,576683388,726265506,776723133,778784376,821841934,972689703,1021341893,1127835600,1190016345,1195800715,1258342944,1314563129,1432728945,1444894250,1477271933,1646520469,1656835365,1851777734,2112541750,2274520361,2280287728,2550116544,2598685593,2868042232,2884596447,2950533187,3055836250,3119383537,3143067364,3208178411,3227674085,3251351304,3388655311,3445296383,3445582154,3492720019,3494130310,3591141932,3614211816,3838639757,3868637058,3874578566,3885259140,4219088013],mars:[],menagerie:[],mercury:[],moon:[193805725,272413517,310888006,377813570,659922705,682780965,883769696,925079356,1030110631,1528483180,2048903186,2568538788,3312368889,3571441640,3692187003],neomuna:[],nessus:[11686457,56157064,126418248,177493699,192377242,320310250,472691604,527652447,569251271,569678873,582151075,667921213,853736709,874856664,957928253,1010733668,1096417434,1156448694,1157496418,1286488743,1316205184,1355771621,1427620200,1439502385,1539014368,1640979177,1669675549,1678216306,1810569868,2029766091,2032811197,2079454604,2172333833,2218838661,2252973221,2359639520,2423003287,2426340791,2462524641,2528959426,2731698402,2736812653,2811068561,2816760678,2947629004,2953649850,3026265798,3323553887,3446606632,3536375792,3545981149,3593464438,3617024265,3654781892,3660228214,3669590332,3742350309,3754164794,3807183801,3855512540,3875829376,3951684081,3960258378,4007396243,4060742749,4130486121],nightfall:[40394833,47772649,555148853,681067419,772231794,912150785,1094005544,2378101424,3183283212,3836861464,4074251943,4281371574],nightmare:[],nm:[25798127,106359434,147165546,316745113,342618372,600401425,755928510,831738837,1890693805,2154427219,2436244536,2603069551,3059968532,3323316553,4083497488],"pinnacle-weapon":[],pit:[],plunder:[912150785,2378101424,2871264750],presage:[],prestige:[],prophecy:[],psiops:[3358687360],raid:[4968701,11974904,16387641,17280095,30962015,49280456,64543268,64543269,65929376,70083888,146275556,196235132,223783885,239489770,253344425,256904954,281660259,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,350056552,383742277,388999052,407863747,424291879,455108040,455108041,501329015,503773817,519078295,548581042,557676195,560455272,574137192,576683388,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,726265506,748485514,748485515,754149842,754149843,776723133,778784376,796914932,802557885,821841934,845536715,853543290,853543291,855363300,874272413,917591018,917591019,972689703,974648224,1021341893,1034660314,1108389626,1127835600,1156439528,1190016345,1195800715,1230192769,1242139836,1256688732,1258342944,1296628624,1314563129,1339632007,1354679721,1390282760,1390282761,1413589586,1432728945,1434870610,1444894250,1457195686,1477271933,1481751647,1624906371,1646520469,1653741426,1656835365,1675393889,1756558505,1793869832,1851777734,1862963733,1876645653,1879942843,1901223867,1917693279,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2015894615,2023695690,2054979724,2070062384,2070062385,2112541750,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2274520361,2280287728,2320830625,2329031091,2339720736,2369496221,2513313400,2530113265,2537874394,2550116544,2552158692,2589473259,2597529070,2598685593,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2762445138,2765688378,2769298993,2868042232,2878130185,2884596447,2904930850,2913992255,2921334134,2933666377,2950533187,2976612200,2994007601,3001934726,3055836250,3066613133,3082625196,3092380260,3092380261,3099636805,3103335676,3108321700,3119383537,3143067364,3163683564,3164851950,3168183519,3181497704,3208178411,3227674085,3251351304,3285121297,3292127944,3349283422,3359121706,3364682867,3388655311,3395856235,3416932282,3440648382,3445296383,3445582154,3483984579,3492720019,3494130310,3497220322,3517729518,3518193943,3530284425,3549177695,3567761471,3581198350,3591141932,3592548938,3614211816,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3824429433,3831484112,3838639757,3842934816,3853397100,3867160430,3868637058,3874578566,3885259140,3887559710,3939809874,3950028838,3950028839,3964287245,3984534842,3992358137,4125324487,4135228483,4152814806,4177973942,4219088013,4229161783,4238134294,4247935492,4251770244,4251770245],rasputin:[555148853,681067419,1631448645,4074251943],"ritual-weapon":[],ron:[],root:[],rootofnightmares:[],saint14:[3360014173],scourge:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],scourgeofthepast:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],seasonpass:[214247063,1387688628,1631448645,2769671712,2785855278,2871264750,3353281999,3358687360,3644991365,3864896927],servitor:[3380377210],shatteredthrone:[],shaxx:[85800627,98331691,185853176,252414402,283188616,290136582,327530279,328902054,356269375,388771599,419812559,438224459,449878234,468899627,530558102,636679949,670877864,727838174,744199039,761953100,820446170,849529384,874101646,876608500,920187221,929917162,997903134,1036467370,1062166003,1063904165,1069887756,1071350799,1084033161,1127237110,1245115841,1307478991,1333087155,1464207979,1467590642,1484937602,1548928853,1571781304,1654427223,1658896287,1673285051,1716643851,1722623780,1742680797,1742940528,1764274932,1801625827,1830829330,1838158578,1838273186,1852468615,1904811766,1929596421,2070517134,2124666626,2191401041,2231762285,2291226602,2293476915,2296560252,2296691422,2323865727,2331227463,2415711886,2426070307,2466453881,2473130418,2496309431,2525395257,2543903638,2555965565,2670393359,2718495762,2727890395,2775298636,2815422368,3089908066,3098458331,3119528729,3140634552,3211001969,3223280471,3298826188,3313736739,3315265682,3483546829,3522021318,3538513130,3724026171,3756286064,3772194440,3781722107,3818803676,3839561204,4043980813,4123918087,4134090375,4136212668,4144133120,4211218181,4264096388],shipwright:[],sonar:[214247063,2769671712,2785855278,3353281999],sos:[223783885,503773817,548581042,802557885,855363300,1156439528,1296628624,1339632007,1675393889,1793869832,2128823667,2513313400,2552158692,2620001759,2710517999,2722103686,2904930850,2933666377,3066613133,3168183519,3285121297,3395856235,3416932282,3440648382,3581198350,3719175804,3720446265,3867160430,4135228483,4247935492],sotp:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],sotw:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],spireofstars:[223783885,503773817,548581042,802557885,855363300,1156439528,1296628624,1339632007,1675393889,1793869832,2128823667,2513313400,2552158692,2620001759,2710517999,2722103686,2904930850,2933666377,3066613133,3168183519,3285121297,3395856235,3416932282,3440648382,3581198350,3719175804,3720446265,3867160430,4135228483,4247935492],spireofthewatcher:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],strikes:[24244626,34846448,335317194,358599471,406401261,413460498,417061387,420247988,432360904,506100699,508642129,575676771,758026143,799187478,986111044,1003941622,1007759904,1054960580,1099472035,1130203390,1188816597,1247181362,1320081419,1405063395,1490307366,1514841742,1514863327,1538362007,1540376513,1667528443,1699493316,1825880546,2011569904,2060516289,2072877132,2076567986,2304309360,2337221567,2378296024,2422319309,2442309039,2460793798,2592351697,2671880779,2722966297,2764938807,2902263756,2939022735,3027732901,3034285946,3074985148,3130904371,3198744410,3213912958,3215392301,3221304270,3281314016,3375062567,3375632008,3469164235,3486485973,3499839403,3500775049,3544662820,3569624585,3584380110,3666681446,3670149407,3851385946,3873435116,3916064886,3963753111,4024037919,4074662489,4087433052,4138296191,4288492921],sundial:[],tangled:[177829853,218523139,307138509,411850804,694120634,699589438,902989307,1069453608,1094005544,1250571424,1347463276,1349281425,1407026808,1412416835,1467355683,1566911695,1636205905,1704861826,1862088022,1863170823,1928007477,1989103583,2007698582,2243444841,2276115770,2411325265,2563857333,2571396481,2757593792,2932919026,2944336620,3044599574,3066181671,3183089352,3523809305,3858472841,3871458129,3918445245,3926141285,3971250660,4070132608,4167605324,4245441464],throneworld:[],titan:[1701005142,2486041713,3706457515],trials:[2307365,72827962,142864314,150551028,155955678,272735286,421771594,442736573,495541988,532746994,571925067,686607149,711889599,773318267,784751927,861160515,875395086,945907383,1164471069,1193489623,1526650446,1574601402,1697682876,1929400866,2158289681,2185327324,2579999316,2759251821,2764588986,2808362207,3025466099,3102421004,3127319342,3149072083,3365406121,3426704397,3624844116,3920882229,3921970316,4100217958,4177448932],umbral:[],vaultofglass:[],vexoffensive:[],vog:[],votd:[],vow:[],vowofthedisciple:[],wartable:[],watcher:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],wellspring:[],wrathborn:[],zavala:[24244626,34846448,335317194,358599471,406401261,413460498,417061387,420247988,432360904,506100699,508642129,575676771,758026143,799187478,986111044,1003941622,1007759904,1054960580,1099472035,1130203390,1188816597,1247181362,1320081419,1405063395,1490307366,1514841742,1514863327,1538362007,1540376513,1667528443,1699493316,1825880546,2011569904,2060516289,2072877132,2076567986,2304309360,2337221567,2378296024,2422319309,2442309039,2460793798,2592351697,2671880779,2722966297,2764938807,2902263756,2939022735,3027732901,3034285946,3074985148,3130904371,3198744410,3213912958,3215392301,3221304270,3281314016,3375062567,3375632008,3469164235,3486485973,3499839403,3500775049,3544662820,3569624585,3584380110,3666681446,3670149407,3851385946,3873435116,3916064886,3963753111,4024037919,4074662489,4087433052,4138296191,4288492921]},c=A1;var f1={blackarmory:"black armory",lastwish:"last wish",kingsfall:"kings fall",cayde6:"cayde-6",crownofsorrow:"crown of sorrow",deepstonecrypt:"deep stone crypt",evidenceboard:"evidence board",gambitprime:"gambit prime",gardenofsalvation:"garden of salvation",ironbanner:"iron banner",legendaryengram:"legendary engram",wartable:"war table",lostsectors:"lost sectors","pinnacle-weapon":"pinnacle weapon","ritual-weapon":"ritual weapon",rootofnightmares:"root of nightmares",saint14:"saint-14",scourgeofthepast:"scourge of the past",seasonpass:"season pass",shatteredthrone:"shattered throne",spireofstars:"spire of the stars",spireofthewatcher:"spire of the watcher",throneworld:"throne world",vaultofglass:"vault of glass",redwar:"red war",vexoffensive:"vex offensive",vowofthedisciple:"vow of the disciple"},P1=()=>{const G={};for(let[$,O]of[...Object.entries(i)]){const W=[f1[$]||$],M=c[$]||[];for(let J of[...O.itemHashes,...M])if(G[J])G[J]=[...G[J],...W];else G[J]=[...W];for(let J of O.sourceHashes)if(G[J])G[J]=[...G[J],...W];else G[J]=[...W]}return G},A=P1();var E;(function(M){M[M["None"]=0]="None";M[M["InventorySourced"]=1]="InventorySourced";M[M["ReusablePlugItems"]=2]="ReusablePlugItems";M[M["ProfilePlugSet"]=4]="ProfilePlugSet";M[M["CharacterPlugSet"]=8]="CharacterPlugSet"})(E||(E={}));var o={"red war":1,osiris:2,warmind:3,outlaw:4,forge:5,drifter:6,opulence:7,undying:8,dawn:9,worthy:10,arrivals:11,hunt:12,chosen:13,splicer:14,lost:15,risen:16,haunted:17,plunder:18,seraph:19,defiance:20,deep:21,witch:22};var Z;(function(J){J[J["DAWNING"]=1]="DAWNING";J[J["CRIMSON_DAYS"]=2]="CRIMSON_DAYS";J[J["SOLSTICE_OF_HEROES"]=3]="SOLSTICE_OF_HEROES";J[J["FESTIVAL_OF_THE_LOST"]=4]="FESTIVAL_OF_THE_LOST";J[J["REVELRY"]=5]="REVELRY";J[J["GUARDIAN_GAMES"]=6]="GUARDIAN_GAMES"})(Z||(Z={}));var n={1:{name:"The Dawning",shortname:"dawning",sources:[464727567,547767158,629617846,2364515524,3092212681,3952847349,4054646289],engram:[1170720694,3151770741]},2:{name:"Crimson Days",shortname:"crimsondays",sources:[2502262376],engram:[191363032,3373123597]},3:{name:"Solstice",shortname:"solstice",sources:[151416041,641018908,1666677522,3724111213],engram:[821844118]},4:{name:"Festival of the Lost",shortname:"fotl",sources:[1054169368,1677921161,1919933822,3190938946,3693722471,4041583267],engram:[1451959506]},5:{name:"The Revelry",shortname:"revelry",sources:[2187511136],engram:[1974821348,2570200927]},6:{name:"Guardian Games",shortname:"games",sources:[611838069,2006303146,2011810450,2473294025,3388021959],engram:[]}},I2={dawning:Z.DAWNING,crimsondays:Z.CRIMSON_DAYS,solstice:Z.SOLSTICE_OF_HEROES,fotl:Z.FESTIVAL_OF_THE_LOST,revelry:Z.REVELRY,games:Z.GUARDIAN_GAMES},g2={464727567:Z.DAWNING,547767158:Z.DAWNING,629617846:Z.DAWNING,2364515524:Z.DAWNING,3092212681:Z.DAWNING,3952847349:Z.DAWNING,4054646289:Z.DAWNING,2502262376:Z.CRIMSON_DAYS,151416041:Z.SOLSTICE_OF_HEROES,641018908:Z.SOLSTICE_OF_HEROES,1666677522:Z.SOLSTICE_OF_HEROES,3724111213:Z.SOLSTICE_OF_HEROES,1054169368:Z.FESTIVAL_OF_THE_LOST,1677921161:Z.FESTIVAL_OF_THE_LOST,1919933822:Z.FESTIVAL_OF_THE_LOST,3190938946:Z.FESTIVAL_OF_THE_LOST,3693722471:Z.FESTIVAL_OF_THE_LOST,4041583267:Z.FESTIVAL_OF_THE_LOST,2187511136:Z.REVELRY,611838069:Z.GUARDIAN_GAMES,2006303146:Z.GUARDIAN_GAMES,2011810450:Z.GUARDIAN_GAMES,2473294025:Z.GUARDIAN_GAMES,3388021959:Z.GUARDIAN_GAMES};function T(G,$){return $.DestinyInventoryItemDefinition[G]}var b1=function(G,$){return G?$.DestinyPlugSetDefinition[G].reusablePlugItems:[]},x1=function(G,$){const O=new Set,Q=G&&$.DestinySocketTypeDefinition[G];if(!Q)return O;return Q.plugWhitelist.forEach((W)=>{if(v1(W.categoryHash))O.add(W.categoryHash)}),O};function I(G,$){let O=[];if(G?.sockets){const{socketCategories:Q,socketEntries:W}=G.sockets,M=Q.find((J)=>J.socketCategoryHash===4241085061);if(M){const{socketIndexes:J}=M;for(let X of J){const Y=W.at(X);if(!Y)continue;const q=Y?.reusablePlugSetHash||Y?.randomizedPlugSetHash||0,R=Y.socketTypeHash,C=Y.singleInitialItemHash;if(!q&&Y?.plugSources&&Y.plugSources&E.ReusablePlugItems||!R)continue;const B=x1(R,$),k=T(C,$),D=b1(q,$);if(k&&!D.find((j)=>j.plugItemHash===k.hash))D.push({plugItemHash:k.hash,currentlyCanRoll:!0,craftingRequirements:{materialRequirementHashes:[],unlockRequirements:[]}});const N=D.map((j)=>{return T(j.plugItemHash,$)||null}).filter((j)=>j!==null).filter((j)=>j.plug?.plugCategoryHash&&B.has(j.plug.plugCategoryHash));if(N.length)O.push(N)}}}return O}function m(G){const $=G.quality;return $?.displayVersionWatermarkIcons[$.currentVersion]}function t(G){switch(G){case 2:return"common";case 3:return"uncommon";case 4:return"rare";case 5:return"legendary";case 6:return"exotic";default:return""}}function u1(G){return G.itemCategoryHashes?.includes(h1)}function _1(G){return G.itemCategoryHashes?.includes(l1)}var i1=function(G){return!!(u1(G)&&!_1(G)&&G.hash!==d1)};function O1(G){const $=G.DestinyInventoryItemDefinition;return Object.values($).filter(i1)}function c1(G){return y.compress(G)}function o1(G){return y.decompress(G)}var y1=function(G,$){return G.localeCompare($)},I1=function(G,$){return G-$},g1=function(G,$){return G.valueOf()-$.valueOf()};var w;(function(W){W["Any"]="any";W["String"]="string";W["Number"]="number";W["Date"]="date"})(w||(w={}));var p;(function(Q){Q["Low"]="low";Q["High"]="high";Q["None"]="none"})(p||(p={}));var v2={[w.Date]:g1,[w.Number]:I1,[w.String]:y1};var v1=(G)=>{return G!==2947756142},r=(G,$)=>{if($&&A[$])return A[$];else if(G&&A[G])return A[G];return""},s=(G)=>{switch(G){case 1:return"Primary";case 2:return"Special";case 3:return"Heavy";default:return""}},e=(G)=>{switch(G){case 1:return"kinetic";case 2:return"arc";case 3:return"solar";case 4:return"void";case 6:return"stasis";case 7:return"strand";default:return""}},a=(G)=>{switch(G){case 1498876634:return"kinetic";case 2465295065:return"energy";case 953998645:return"power";default:return""}};var G1=(G)=>{if(!G)return null;const $=G.replace("https://www.bungie.net",""),O=_[$];if(!O)return null;return O},o2=Object.fromEntries(Object.entries(o).map(([G,$])=>[$.toString(),G]));var $1=(G)=>{if(G)return`${n[G].name}`},J1=(G)=>{if(!G)return null;const $=G.replace("https://www.bungie.net",""),O=d[$];if(!O)return null;return O},h1=1,l1=3109687656,d1=1744115122,Q1=(G)=>G.search(/(Adept|Timelost|Harrowed)/)!==-1,b=(G)=>`https://www.bungie.net${G}`;function f(G,$,O){return G(O?{method:"GET",url:$,params:O}:{method:"GET",url:$})}function K1(G){return f(G,`${n1}Manifest/`)}var n1="https://www.bungie.net/Platform/Destiny2/";async function p1(G,$){const O="https://www.bungie.net"+$.destinyManifest.jsonWorldComponentContentPaths[$.language][$.tableName];try{return await f(G,O)}catch(Q){try{return await f(G,`${O}?retry`)}catch{throw Q}}}async function U1(G,$){const O=await Promise.all($.tableNames.map(async(W)=>{const M=await p1(G,{destinyManifest:$.destinyManifest,tableName:W,language:$.language});return{tableName:W,tableContent:M}})),Q={};for(let W of O)Q[W.tableName]=W.tableContent;return Q}async function W1(G){return await(await fetch(G.url,{method:G.method,headers:{"X-API-KEY":process.env.BUNGIE_API_KEY??""}})).json()}async function r1(){return(await K1(W1)).Response}async function X1(){const G=await r1();return await U1(W1,{destinyManifest:G,tableNames:m1,language:"en"})}var m1=["DestinyInventoryItemDefinition","DestinyPlugSetDefinition","DestinyStatDefinition","DestinyPowerCapDefinition","DestinyCollectibleDefinition","DestinyStatGroupDefinition","DestinyDamageTypeDefinition","DestinySocketTypeDefinition","DestinySandboxPerkDefinition"];function V(G){return G}function q1(G){return G}var M1=[14194600,45643573,46125926,46524085,70083888,105306149,120706239,135029084,231031173,232928045,254636484,268260372,268260373,297296830,318443586,342514437,392008588,424291879,431721920,484515708,495442100,501329015,502356570,522366885,542203595,548958835,613334176,768621510,820890091,833898322,927567426,999767358,1081724548,1098171824,1168625549,1184309824,1248372789,1289796511,1298815317,1311684613,1321506184,1366394399,1392919471,1399109800,1432682459,1471212226,1473821207,1478986057,1491665733,1509167284,1526296434,1572896086,1679868061,1720503118,1731355324,1751893422,1769847435,1851777734,1875512595,1911060537,1937552980,1959650777,1986287028,1994645182,2034215657,2097055732,2119346509,2149683300,2188764214,2194955522,2218569744,2221264583,2263839058,2272041093,2302346155,2323544076,2490988246,2508948099,2531963421,2534546147,2535142413,2595497736,2607304614,2708806099,2721157927,2778013407,2779821308,2827764482,2828278545,2856514843,2883484461,2884596447,2890082420,2922749929,2972949637,2978226043,2990047042,3016891299,3055790362,3103325054,3107853529,3118061005,3163900678,3175851496,3228096719,3257091166,3257091167,3281285075,3347946548,3366545721,3371413056,3371413057,3371413059,3388655311,3428521585,3489657138,3493494807,3591141932,3635821806,3849444474,3849810018,3865728990,3885259140,3886416794,3890055324,3920310144,3969066556,4066778670,4067556514,4096943616,4132072834,4225322581,4230965989,4248569242];var Y1={"/common/destiny2_content/icons/85600f3ad441a2511b00c2af1c2003ce.png":"cassoid","/common/destiny2_content/icons/082ee5b9e9b97590449453cf001d90fc.png":"nadir"};var v={"2307365":"suros","20025671":"suros","62937067":"suros","161675590":"veist","221737434":"suros","294129361":"hakke","411397829":"suros","452034310":"hakke","487361141":"suros","491078457":"omolon","495940989":"suros","540880995":"veist","555148853":"omolon","566740455":"suros","681067419":"omolon","711889599":"veist","772231794":"omolon","825554997":"suros","852228780":"omolon","1028124540":"suros","1144014195":"veist","1172884782":"hakke","1177293325":"omolon","1177293326":"omolon","1177293327":"omolon","1289324202":"hakke","1386601612":"suros","1389546626":"omolon","1547760589":"hakke","1574601402":"veist","1619016919":"suros","1757129747":"hakke","1775804198":"suros","1788603939":"hakke","1821724780":"suros","1854753404":"omolon","2009106091":"veist","2065081837":"omolon","2103747151":"suros","2185327324":"suros","2287240026":"veist","2422664927":"hakke","2488587246":"suros","2605790034":"omolon","2653171212":"suros","2658740569":"hakke","2694044461":"omolon","2759590322":"suros","2817798849":"suros","2824241403":"hakke","2883684343":"omolon","2888266564":"omolon","3163061743":"veist","3165143747":"veist","3183283212":"omolon","3361694403":"omolon","3371413057":"veist","3461377698":"hakke","3505958430":"suros","3559361670":"hakke","3573686365":"omolon","3751622019":"suros","3832743906":"omolon","3915197957":"omolon","3920872880":"suros","3929896313":"hakke","4073744300":"suros","4074251943":"omolon","4148143418":"hakke","4157959956":"omolon","4157959958":"omolon","4157959959":"omolon","4174481098":"suros","4186079026":"omolon","4230993599":"suros","4281371574":"omolon"};var R1=[2307365,161675590,267089201,276080079,291092617,342514437,364665267,495442100,496556698,522366885,532746994,534775659,555148853,566740455,631439337,681067419,690668916,711889599,786352912,825554997,852228780,854379020,874623537,912150785,927835311,1064132738,1135050595,1141586039,1173780905,1184692845,1216319404,1366917989,1387987271,1466006054,1481892490,1705843397,1866778462,1921159786,1924276978,1941816543,1986287028,1987769101,2002522739,2006308129,2074041946,2147010335,2314610827,2378101424,2386979999,2405619467,2443900757,2475355656,2527666306,2759251821,2883684343,2886339027,2890082420,2914913838,2943293195,3193598749,3245493570,3248429089,3407395594,3444632029,3493494807,3503019618,3514144928,3637570176,3796510434,3836861464,3847137620,3904516037,3915197957,3920882229,4023807721,4038592169,4074251943,4162642204];var z1=1310,H1=[3103255595,3871226707,177568179,413901114],Z1=[2188764214,46125926];var G2=V({label:"adept",formatToDb:(G,$)=>{const O=T(G,$);return R1.includes(O.hash)||Q1(O?.displayProperties.name)},getFromDb:(G)=>`${G.adept}`}),$2=V({label:"ammo",formatToDb:(G,$)=>{const Q=T(G,$).equippingBlock?.ammoType;if(typeof Q!=="undefined")return s(Q);return""},getFromDb:(G)=>G.ammo}),J2=V({label:"craftable",formatToDb:(G,$)=>{const O=T(G,$);return M1.includes(O.hash)},getFromDb:(G)=>`${G.craftable}`}),O2=V({label:"energy",formatToDb:(G,$)=>{const O=T(G,$);if(typeof O.defaultDamageTypeHash!=="undefined"){const Q=$.DestinyDamageTypeDefinition[O.defaultDamageTypeHash].enumValue;return e(Q)}return},getFromDb:(G)=>G.energy??""}),Q2=V({label:"event",formatToDb:(G,$)=>{const O=T(G,$),Q=m(O),W=H1.includes(O.hash)?4:J1(Q);return $1(W??void 0)},getFromDb:(G)=>G.event??""}),K2=V({label:"foundry",formatToDb:(G,$)=>{const O=T(G,$),Q=O.hash.toString();let W=((Q in v?v[Q]:void 0)??O.traitIds?.find((J)=>J.startsWith("foundry."))?.replace("_","-")?.replace("x-m","x m"))?.replace("foundry.","");const M=O.secondaryIcon;if(M){const J=Y1[M];if(J)W=J}return W},getFromDb:(G)=>G.foundry??""}),U2=V({label:"frame",formatToDb:(G,$)=>{const Q=T(G,$).sockets?.socketEntries[0].singleInitialItemHash;return(Q?T(Q,$):void 0)?.displayProperties.name??void 0},getFromDb:(G)=>G.frame??""}),W2=V({label:"name",formatToDb:(G,$)=>{return T(G,$).displayProperties.name},getFromDb:(G)=>G.name}),X2=V({label:"perk",formatToDb:(G,$)=>{const O=T(G,$);return I(O,$).map((W)=>W.map((M)=>M.displayProperties.name)).flat(1)},getFromDb:(G)=>G.perk}),q2=V({label:"rarity",formatToDb:(G,$)=>{const Q=T(G,$).inventory?.tierType??0;return t(Q)},getFromDb:(G)=>G.rarity}),M2=V({label:"rpm",formatToDb:(G,$)=>{return T(G,$).stats?.stats[4284893193]?.value},getFromDb:(G)=>G.rpm?`${G.rpm}`:""}),Y2=V({label:"season",formatToDb:(G,$)=>{const O=T(G,$),Q=O.quality,W=Q?.displayVersionWatermarkIcons[Q.currentVersion];let M=G1(W);if(Z1.includes(O.hash))M=22;return M??void 0},getFromDb:(G)=>`${G.season}`??""}),R2=V({label:"slot",formatToDb:(G,$)=>{const Q=T(G,$).equippingBlock?.equipmentSlotTypeHash;return a(Q)},getFromDb:(G)=>G.slot}),z2=V({label:"source",formatToDb:(G,$)=>{const O=T(G,$),W=(O.collectibleHash?$.DestinyCollectibleDefinition[O.collectibleHash]:void 0)?.sourceHash;return r(O.hash,W)},getFromDb:(G)=>G.source??""}),H2=V({label:"sunset",formatToDb:(G,$)=>{const O=T(G,$),Q=O?.quality?.versions[O.quality.currentVersion].powerCapHash;if(typeof Q!=="undefined")return $.DestinyPowerCapDefinition[Q].powerCap`${G.sunset}`}),Z2=V({label:"trait_1",formatToDb:(G,$)=>{const O=T(G,$);return I(O,$)[2]?.map((W)=>W.displayProperties.name)||[]},getFromDb:(G)=>G.trait_1}),j2=V({label:"trait_2",formatToDb:(G,$)=>{const O=T(G,$);return I(O,$)[3]?.map((W)=>W.displayProperties.name)||[]},getFromDb:(G)=>G.trait_2}),L2=V({label:"weapon",formatToDb:(G,$)=>{return T(G,$).itemTypeDisplayName},getFromDb:(G)=>G.weapon}),T2=V({label:"zoom",formatToDb:(G,$)=>{return T(G,$).stats?.stats[3555269338]?.value},getFromDb:(G)=>G.zoom?`${G.zoom}`:""}),x={adept:G2,ammo:$2,craftable:J2,energy:O2,event:Q2,foundry:K2,frame:U2,name:W2,perk:X2,rarity:q2,rpm:M2,season:Y2,slot:R2,source:z2,sunset:H2,trait_1:Z2,trait_2:j2,weapon:L2,zoom:T2},j1=q1((G,$)=>{const O=T(G,$),{icon:Q}=O.displayProperties,W=O.quality,M=b(Q),J=W?.displayVersionWatermarkIcons[W.currentVersion],X=J?b(J):void 0;return{hash:G,iconSrc:M,watermarkSrc:X}});var N2=function(G,$){return Object.values(x).reduce((O,Q)=>{const W=Q.label,M=Q.formatToDb(G,$);return O={...O,[W]:M},O},Object.assign({}))},C2=function(G,$){return j1(G,$)};function h(G,$){const O=[];for(let Q of G){const W={...N2(Q.hash,$),...C2(Q.hash,$)};O.push(W)}return O}var L1=Object.values(x).map((G)=>({name:G.label,getFn:G.getFromDb}));var T1=function(G){const $=O1(G);return h($,G)};async function V2(){const G=await X1();return T1(G)}export{L1 as weaponSearchOptionKeys,V2 as getSearchDbFromDestinyApi,o1 as decompressJson,c1 as compressJson,T1 as buildSearchDatabase}; +var N1=Object.create;var{defineProperty:x,getPrototypeOf:V1,getOwnPropertyNames:F1}=Object;var C1=Object.prototype.hasOwnProperty;var k1=(G,$,Q)=>{Q=G!=null?N1(V1(G)):{};const X=$||!G||!G.__esModule?x(Q,"default",{value:G,enumerable:!0}):Q;for(let W of F1(G))if(!C1.call(X,W))x(X,W,{get:()=>G[W],enumerable:!0});return X};var D1=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports);var u=D1((L2,f)=>{var y=function(){var G=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",X={};function W(J,q){if(!X[J]){X[J]={};for(var U=0;U>>8,U[K*2+1]=V%256}return U},decompressFromUint8Array:function(J){if(J===null||J===void 0)return Y.decompress(J);else{var q=new Array(J.length/2);for(var U=0,K=q.length;U>1}}else{j=1;for(K=0;K>1}}if(T--,T==0)T=Math.pow(2,z),z++;delete D[N]}else{j=V[N];for(K=0;K>1}}if(T--,T==0)T=Math.pow(2,z),z++;V[B]=A++,N=String(C)}}if(N!==""){if(Object.prototype.hasOwnProperty.call(D,N)){if(N.charCodeAt(0)<256){for(K=0;K>1}}else{j=1;for(K=0;K>1}}if(T--,T==0)T=Math.pow(2,z),z++;delete D[N]}else{j=V[N];for(K=0;K>1}}if(T--,T==0)T=Math.pow(2,z),z++}j=2;for(K=0;K>1}while(!0)if(O=O<<1,M==q-1){Z.push(U(O));break}else M++;return Z.join("")},decompress:function(J){if(J==null)return"";if(J=="")return null;return Y._decompress(J.length,32768,function(q){return J.charCodeAt(q)})},_decompress:function(J,q,U){var K=[],j,V=4,D=4,C=3,B="",N=[],T,A,z,Z,O,M,k,R={val:U(0),position:q,index:1};for(T=0;T<3;T+=1)K[T]=T;z=0,O=Math.pow(2,2),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}switch(j=z){case 0:z=0,O=Math.pow(2,8),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}k=G(z);break;case 1:z=0,O=Math.pow(2,16),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}k=G(z);break;case 2:return""}K[3]=k,A=k,N.push(k);while(!0){if(R.index>J)return"";z=0,O=Math.pow(2,C),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}switch(k=z){case 0:z=0,O=Math.pow(2,8),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}K[D++]=G(z),k=D-1,V--;break;case 1:z=0,O=Math.pow(2,16),M=1;while(M!=O){if(Z=R.val&R.position,R.position>>=1,R.position==0)R.position=q,R.val=U(R.index++);z|=(Z>0?1:0)*M,M<<=1}K[D++]=G(z),k=D-1,V--;break;case 2:return N.join("")}if(V==0)V=Math.pow(2,C),C++;if(K[k])B=K[k];else if(k===D)B=A+A.charAt(0);else return null;if(N.push(B),K[D++]=A+B.charAt(0),V--,A=B,V==0)V=Math.pow(2,C),C++}}};return Y}();if(typeof define==="function"&&define.amd)define(function(){return y});else if(typeof f!=="undefined"&&f!=null)f.exports=y;else if(typeof angular!=="undefined"&&angular!=null)angular.module("LZString",[]).factory("LZString",function(){return y})});var P=k1(u(),1);function B1(G){return P.compress(G)}function A1(G){return P.decompress(G)}function w(G,$,Q){return G(Q?{method:"GET",url:$,params:Q}:{method:"GET",url:$})}function h(G){return w(G,`${w1}Manifest/`)}var w1="https://www.bungie.net/Platform/Destiny2/";async function S1(G,$){const Q="https://www.bungie.net"+$.destinyManifest.jsonWorldComponentContentPaths[$.language][$.tableName];try{return await w(G,Q)}catch(X){try{return await w(G,`${Q}?retry`)}catch{throw X}}}async function _(G,$){const Q=await Promise.all($.tableNames.map(async(W)=>{const Y=await S1(G,{destinyManifest:$.destinyManifest,tableName:W,language:$.language});return{tableName:W,tableContent:Y}})),X={};for(let W of Q)X[W.tableName]=W.tableContent;return X}async function c(G){return await(await fetch(G.url,{method:G.method,headers:{"X-API-KEY":process.env.BUNGIE_API_KEY??""}})).json()}async function P1(){return(await h(c)).Response}async function d(){const G=await P1();return await _(c,{destinyManifest:G,tableNames:f1,language:"en"})}var f1=["DestinyInventoryItemDefinition","DestinyPlugSetDefinition","DestinyStatDefinition","DestinyPowerCapDefinition","DestinyCollectibleDefinition","DestinyStatGroupDefinition","DestinyDamageTypeDefinition","DestinySocketTypeDefinition","DestinySandboxPerkDefinition"];function F(G){return G}function i(G){return G}var o=[14194600,45643573,46125926,46524085,70083888,105306149,120706239,135029084,231031173,232928045,254636484,268260372,268260373,297296830,318443586,342514437,392008588,424291879,431721920,484515708,495442100,501329015,502356570,522366885,542203595,548958835,613334176,768621510,820890091,833898322,927567426,999767358,1081724548,1098171824,1168625549,1184309824,1248372789,1289796511,1298815317,1311684613,1321506184,1366394399,1392919471,1399109800,1432682459,1471212226,1473821207,1478986057,1491665733,1509167284,1526296434,1572896086,1679868061,1720503118,1731355324,1751893422,1769847435,1851777734,1875512595,1911060537,1937552980,1959650777,1986287028,1994645182,2034215657,2097055732,2119346509,2149683300,2188764214,2194955522,2218569744,2221264583,2263839058,2272041093,2302346155,2323544076,2490988246,2508948099,2531963421,2534546147,2535142413,2595497736,2607304614,2708806099,2721157927,2778013407,2779821308,2827764482,2828278545,2856514843,2883484461,2884596447,2890082420,2922749929,2972949637,2978226043,2990047042,3016891299,3055790362,3103325054,3107853529,3118061005,3163900678,3175851496,3228096719,3257091166,3257091167,3281285075,3347946548,3366545721,3371413056,3371413057,3371413059,3388655311,3428521585,3489657138,3493494807,3591141932,3635821806,3849444474,3849810018,3865728990,3885259140,3886416794,3890055324,3920310144,3969066556,4066778670,4067556514,4096943616,4132072834,4225322581,4230965989,4248569242];var n={"/common/destiny2_content/icons/85600f3ad441a2511b00c2af1c2003ce.png":"cassoid","/common/destiny2_content/icons/082ee5b9e9b97590449453cf001d90fc.png":"nadir"};var I={"2307365":"suros","20025671":"suros","62937067":"suros","161675590":"veist","221737434":"suros","294129361":"hakke","411397829":"suros","452034310":"hakke","487361141":"suros","491078457":"omolon","495940989":"suros","540880995":"veist","555148853":"omolon","566740455":"suros","681067419":"omolon","711889599":"veist","772231794":"omolon","825554997":"suros","852228780":"omolon","1028124540":"suros","1144014195":"veist","1172884782":"hakke","1177293325":"omolon","1177293326":"omolon","1177293327":"omolon","1289324202":"hakke","1386601612":"suros","1389546626":"omolon","1547760589":"hakke","1574601402":"veist","1619016919":"suros","1757129747":"hakke","1775804198":"suros","1788603939":"hakke","1821724780":"suros","1854753404":"omolon","2009106091":"veist","2065081837":"omolon","2103747151":"suros","2185327324":"suros","2287240026":"veist","2422664927":"hakke","2488587246":"suros","2605790034":"omolon","2653171212":"suros","2658740569":"hakke","2694044461":"omolon","2759590322":"suros","2817798849":"suros","2824241403":"hakke","2883684343":"omolon","2888266564":"omolon","3163061743":"veist","3165143747":"veist","3183283212":"omolon","3361694403":"omolon","3371413057":"veist","3461377698":"hakke","3505958430":"suros","3559361670":"hakke","3573686365":"omolon","3751622019":"suros","3832743906":"omolon","3915197957":"omolon","3920872880":"suros","3929896313":"hakke","4073744300":"suros","4074251943":"omolon","4148143418":"hakke","4157959956":"omolon","4157959958":"omolon","4157959959":"omolon","4174481098":"suros","4186079026":"omolon","4230993599":"suros","4281371574":"omolon"};var p=[2307365,161675590,267089201,276080079,291092617,342514437,364665267,495442100,496556698,522366885,532746994,534775659,555148853,566740455,631439337,681067419,690668916,711889599,786352912,825554997,852228780,854379020,874623537,912150785,927835311,1064132738,1135050595,1141586039,1173780905,1184692845,1216319404,1366917989,1387987271,1466006054,1481892490,1705843397,1866778462,1921159786,1924276978,1941816543,1986287028,1987769101,2002522739,2006308129,2074041946,2147010335,2314610827,2378101424,2386979999,2405619467,2443900757,2475355656,2527666306,2759251821,2883684343,2886339027,2890082420,2914913838,2943293195,3193598749,3245493570,3248429089,3407395594,3444632029,3493494807,3503019618,3514144928,3637570176,3796510434,3836861464,3847137620,3904516037,3915197957,3920882229,4023807721,4038592169,4074251943,4162642204];var m=1310,r=[3103255595,3871226707,177568179,413901114],s=[2188764214,46125926];var g=(G)=>`https://www.bungie.net${G}`;var H;(function(J){J[J["DAWNING"]=1]="DAWNING";J[J["CRIMSON_DAYS"]=2]="CRIMSON_DAYS";J[J["SOLSTICE_OF_HEROES"]=3]="SOLSTICE_OF_HEROES";J[J["FESTIVAL_OF_THE_LOST"]=4]="FESTIVAL_OF_THE_LOST";J[J["REVELRY"]=5]="REVELRY";J[J["GUARDIAN_GAMES"]=6]="GUARDIAN_GAMES"})(H||(H={}));var e={1:{name:"The Dawning",shortname:"dawning",sources:[464727567,547767158,629617846,2364515524,3092212681,3952847349,4054646289],engram:[1170720694,3151770741]},2:{name:"Crimson Days",shortname:"crimsondays",sources:[2502262376],engram:[191363032,3373123597]},3:{name:"Solstice",shortname:"solstice",sources:[151416041,641018908,1666677522,3724111213],engram:[821844118]},4:{name:"Festival of the Lost",shortname:"fotl",sources:[1054169368,1677921161,1919933822,3190938946,3693722471,4041583267],engram:[1451959506]},5:{name:"The Revelry",shortname:"revelry",sources:[2187511136],engram:[1974821348,2570200927]},6:{name:"Guardian Games",shortname:"games",sources:[611838069,2006303146,2011810450,2473294025,3388021959],engram:[]}},x2={dawning:H.DAWNING,crimsondays:H.CRIMSON_DAYS,solstice:H.SOLSTICE_OF_HEROES,fotl:H.FESTIVAL_OF_THE_LOST,revelry:H.REVELRY,games:H.GUARDIAN_GAMES},u2={464727567:H.DAWNING,547767158:H.DAWNING,629617846:H.DAWNING,2364515524:H.DAWNING,3092212681:H.DAWNING,3952847349:H.DAWNING,4054646289:H.DAWNING,2502262376:H.CRIMSON_DAYS,151416041:H.SOLSTICE_OF_HEROES,641018908:H.SOLSTICE_OF_HEROES,1666677522:H.SOLSTICE_OF_HEROES,3724111213:H.SOLSTICE_OF_HEROES,1054169368:H.FESTIVAL_OF_THE_LOST,1677921161:H.FESTIVAL_OF_THE_LOST,1919933822:H.FESTIVAL_OF_THE_LOST,3190938946:H.FESTIVAL_OF_THE_LOST,3693722471:H.FESTIVAL_OF_THE_LOST,4041583267:H.FESTIVAL_OF_THE_LOST,2187511136:H.REVELRY,611838069:H.GUARDIAN_GAMES,2006303146:H.GUARDIAN_GAMES,2011810450:H.GUARDIAN_GAMES,2473294025:H.GUARDIAN_GAMES,3388021959:H.GUARDIAN_GAMES};var a={"/common/destiny2_content/icons/ad7fdb049d430c1fac1d20cf39059702.png":1,"/common/destiny2_content/icons/04de56db6d59127239ed51e82d16c06c.png":2,"/common/destiny2_content/icons/52523b49e5965f6f33ab86710215c676.png":3,"/common/destiny2_content/icons/f80e39c767f309f0b2be625dae0e3744.png":4,"/common/destiny2_content/icons/65097e226318b8581ad535b33827e01a.png":5,"/common/destiny2_content/icons/8b0d9b848bfb49077fe018e6f80a2939.png":5,"/common/destiny2_content/icons/3543d23d9063fbf7332c7f129a74ada2.png":6,"/common/destiny2_content/icons/efdb35540cd169fa6e334995c2ce87b6.png":6};var t={"/common/destiny2_content/icons/fb50cd68a9850bd323872be4f6be115c.png":1,"/common/destiny2_content/icons/dd71a9a48c4303fd8546433d63e46cc7.png":1,"/common/destiny2_content/icons/2c024f088557ca6cceae1e8030c67169.png":2,"/common/destiny2_content/icons/50d36366595897d49b5d33e101c8fd07.png":2,"/common/destiny2_content/icons/ed6c4762c48bd132d538ced83c1699a6.png":3,"/common/destiny2_content/icons/aaa61f6c70478d87de0df41e5709a773.png":3,"/common/destiny2_content/icons/1b6c8b94cec61ea42edb1e2cb6b45a31.png":4,"/common/destiny2_content/icons/eb621df1be42ae5db9e8cd20eda17c44.png":4,"/common/destiny2_content/icons/448f071a7637fcefb2fccf76902dcf7d.png":5,"/common/destiny2_content/icons/c23c9ec8709fecad87c26b64f5b2b9f5.png":5,"/common/destiny2_content/icons/1448dde4efdb57b07f5473f87c4fccd7.png":6,"/common/destiny2_content/icons/e4a1a5aaeb9f65cc5276fd4d86499c70.png":6,"/common/destiny2_content/icons/5364cc3900dc3615cb0c4b03c6221942.png":7,"/common/destiny2_content/icons/69bb11f24279c7a270c6fac3317005b2.png":7,"/common/destiny2_content/icons/2352f9d04dc842cfcdda77636335ded9.png":8,"/common/destiny2_content/icons/ee3f5bb387298acbdb03c01940701e63.png":8,"/common/destiny2_content/icons/e8fe681196baf74917fa3e6f125349b0.png":8,"/common/destiny2_content/icons/82a8d6f2b1e4ee14e853d4ffbe031406.png":8,"/common/destiny2_content/icons/3ba38a2b9538bde2b45ec9313681d617.png":9,"/common/destiny2_content/icons/9b7e4bbc576fd15fbf44dfa259f8b86a.png":9,"/common/destiny2_content/icons/b12630659223b53634e9f97c0a0a8305.png":10,"/common/destiny2_content/icons/e27a4f39c1bb8c6f89613648afaa3e9f.png":10,"/common/destiny2_content/icons/4c25426263cacf963777cd4988340838.png":11,"/common/destiny2_content/icons/49dc693c5f3411b9638b97f38a70b69f.png":11,"/common/destiny2_content/icons/9e0f43538efe9f8d04546b4b0af6cc43.png":12,"/common/destiny2_content/icons/1f702463c5e0c4e25c9f00a730dbc6ac.png":12,"/common/destiny2_content/icons/be3c0a95a8d1abc6e7c875d4294ba233.png":12,"/common/destiny2_content/icons/d3cffdcb881085bc4fe19d9671c9eb0c.png":12,"/common/destiny2_content/icons/0ec87dd7ef282db27e1fc337e9545cd0.png":12,"/common/destiny2_content/icons/5ac4a1d48a5221993a41a5bb524eda1b.png":13,"/common/destiny2_content/icons/e197b731c11556b17664b90a87dd0c11.png":13,"/common/destiny2_content/icons/23968435c2095c0f8119d82ee222c672.png":14,"/common/destiny2_content/icons/a9faab035e2f59f802e99641a3aaab9e.png":14,"/common/destiny2_content/icons/671a19eca92ad9dcf39d4e9c92fcdf75.png":15,"/common/destiny2_content/icons/d92e077d544925c4f37e564158f8f76a.png":15,"/common/destiny2_content/icons/6e4fdb4800c34ccac313dd1598bd7589.png":16,"/common/destiny2_content/icons/b973f89ecd631a3e3d294e98268f7134.png":16,"/common/destiny2_content/icons/d05833668bcb5ae25344dd4538b1e0b2.png":16,"/common/destiny2_content/icons/ab075a3679d69f40b8c2a319635d60a9.png":17,"/common/destiny2_content/icons/a3923ae7d2376a1c4eb0f1f154da7565.png":18,"/common/destiny2_content/icons/e775dcb3d47e3d54e0e24fbdb64b5763.png":19,"/common/destiny2_content/icons/31445f1891ce9eb464ed1dcf28f43613.png":20,"/common/destiny2_content/icons/af00bdcd3e3b89e6e85c1f63ebc0b4e4.png":20,"/common/destiny2_content/icons/a568c77f423d1b49aeccbce0e7af79f6.png":20,"/common/destiny2_content/icons/6026e9d64e8c2b19f302dafb0286897b.png":21,"/common/destiny2_content/icons/3de52d90db7ee2feb086ef6665b736b6.png":22};var G1={"red war":1,osiris:2,warmind:3,outlaw:4,forge:5,drifter:6,opulence:7,undying:8,dawn:9,worthy:10,arrivals:11,hunt:12,chosen:13,splicer:14,lost:15,risen:16,haunted:17,plunder:18,seraph:19,defiance:20,deep:21,witch:22};var x1={"30th":{itemHashes:[],sourceHashes:[443340273,642326476,675740011,1102533392,1394793197,2763252588],searchString:[]},ada:{itemHashes:[417164956,3211806999,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589],sourceHashes:[266896577,439994003,925197669,948753311,1286332045,1457456824,1465990789,1596507419,2062058385,2384327872,2541753910,2966694626,3047033583,3257722699,3390164851,3764925750,4101102010,4247521481,4290227252],searchString:[]},adventure:{itemHashes:[],sourceHashes:[194661944,482012099,636474187,783399508,790433146,1067250718,1186140085,1289998337,1527887247,1736997121,1861838843,2040548068,2096915131,2345202459,2392127416,2553369674,3427537854,3754173885,4214471686],searchString:[]},banshee:{itemHashes:[],sourceHashes:[1459595344,1788267693,2986841134,3512613235],searchString:[]},battlegrounds:{itemHashes:[2121785039,3075224551],sourceHashes:[3391325445],searchString:[]},blackarmory:{itemHashes:[417164956,3211806999,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589],sourceHashes:[266896577,439994003,925197669,948753311,1286332045,1457456824,1465990789,1596507419,2062058385,2384327872,2541753910,2966694626,3047033583,3257722699,3390164851,3764925750,4101102010,4247521481,4290227252],searchString:[]},calus:{itemHashes:[1661191192,2816212794,3580904580],sourceHashes:[976328308,1675483099,2399751101,2511152325,2653618435,2765304727,2812190367,2937902448,3147603678,4009509410,4066007318],searchString:[]},campaign:{itemHashes:[],sourceHashes:[13912404,100617404,286427063,409652252,460742691,569214265,677167936,736336644,901482731,918840100,923708784,1076222895,1103518848,1118966764,1281387702,1701477406,2242939082,2278847330,2308290458,2552784968,2744321951,2892963218,2895784523,2929562373,2988465950,3099553329,3126774631,3174947771,3431853656,3532642391,3704442923,3936473457,4288102251,4290499613],searchString:[]},cayde6:{itemHashes:[],sourceHashes:[2206233229],searchString:[]},compass:{itemHashes:[],sourceHashes:[164083100,3100439379],searchString:[]},contact:{itemHashes:[],sourceHashes:[2039343154],searchString:[]},cos:{itemHashes:[947448544,1661191193,2027598066,2027598067],sourceHashes:[2399751101,3147603678],searchString:[]},crota:{itemHashes:[],sourceHashes:[1897187034],searchString:[]},crotasend:{itemHashes:[],sourceHashes:[1897187034],searchString:[]},crownofsorrow:{itemHashes:[947448544,1661191193,2027598066,2027598067],sourceHashes:[2399751101,3147603678],searchString:[]},crucible:{itemHashes:[769099721,1230660649,1661191197,2414564781,2420153991,2588739576,2588739578,2588739579,2632846356,3928440584,3928440585,4060882456],sourceHashes:[454115234,598662729,745186842,897576623,929025440,1217831333,1223492644,1494513645,2055470113,2537301256,2558941813,2622122683,2641169841,2658055900,2669524419,2821852478,2915991372,3020288414,3226099405,3299964501,3348906688,3466789677,3656787928],searchString:[]},dcv:{itemHashes:[417164956,947448544,1661191192,1661191193,1661191194,1661191195,2027598066,2027598067,2557722678,2816212794,3176509806,3211806999,3580904580,3588934839,3650581584,3650581585,3650581586,3650581587,3650581588,3650581589,3841416152,3841416153,3841416154,3841416155,3875444086],sourceHashes:[148542898,194661944,266896577,315474873,354493557,439994003,482012099,636474187,925197669,948753311,976328308,1036506031,1067250718,1175566043,1286332045,1299614150,1400219831,1411886787,1457456824,1465990789,1483048674,1581680964,1596507419,1618754228,1654120320,1675483099,1832642406,1924238751,2062058385,2085016678,2310754348,2384327872,2392127416,2399751101,2487203690,2511152325,2541753910,2653618435,2717017239,2765304727,2812190367,2926805810,2937902448,2966694626,3047033583,3079246067,3147603678,3257722699,3390164851,3427537854,3534706087,3764925750,3964663093,4009509410,4066007318,4101102010,4137108180,4246883461,4247521481,4263201695,4290227252],searchString:["mercury","mars","titan","io","leviathan","ep","blackarmory","menagerie","eow","sos","scourge","crownofsorrow"]},deepstonecrypt:{itemHashes:[],sourceHashes:[866530798,1405897559,1692165595],searchString:[]},deluxe:{itemHashes:[],sourceHashes:[639650067,1358645302,1412777465,1743434737,1866448829,2968206374,2985242208,3173463761,3212282221,3672287903,4069355515,4166998204],searchString:[]},do:{itemHashes:[],sourceHashes:[146504277],searchString:[]},dreaming:{itemHashes:[185321779,3352019292],sourceHashes:[2559145507,3874934421],searchString:[]},drifter:{itemHashes:[180108390,180108391,1335424933,1335424934,1335424935,1661191187,2224920148,2224920149,2394866220,2588647363,3217477988,4060882457],sourceHashes:[186854335,571102497,594786771,887452441,1127923611,1162859311,2170269026,2364933290,2601524261,2843045413,2883838366,3299964501,3348906688,3422985544,3494247523,3522070610],searchString:[]},dsc:{itemHashes:[],sourceHashes:[866530798,1405897559,1692165595],searchString:[]},duality:{itemHashes:[],sourceHashes:[1282207663],searchString:[]},dungeon:{itemHashes:[185321778,814876684,2844014413],sourceHashes:[210885364,506073192,675740011,1282207663,1597738585,1745960977,2745272818,2856954949,3288974535,3597879858],searchString:["shatteredthrone","pit","prophecy","presage","harbinger"]},edz:{itemHashes:[],sourceHashes:[783399508,790433146,1373723300,1527887247,1736997121,1861838843,2096915131,3754173885,4214471686,4292996207],searchString:[]},enclave:{itemHashes:[],sourceHashes:[1309588429,2055289873],searchString:[]},eow:{itemHashes:[],sourceHashes:[2937902448,4066007318],searchString:[]},ep:{itemHashes:[],sourceHashes:[4137108180],searchString:[]},europa:{itemHashes:[],sourceHashes:[286427063,1148859274,1492981395,2171520631,3125456997,3965815470],searchString:[]},events:{itemHashes:[],sourceHashes:[32323943,151416041,464727567,547767158,611838069,629617846,641018908,772619302,923678151,1054169368,1225476079,1360005982,1397119901,1462687159,1666677522,1677921161,1919933822,2006303146,2011810450,2187511136,2364515524,2473294025,2502262376,2797674516,3092212681,3112857249,3190938946,3388021959,3693722471,3724111213,3736521079,3952847349,4041583267,4054646289],searchString:["dawning","crimsondays","solstice","fotl","revelry","games"]},eververse:{itemHashes:[],sourceHashes:[269962496,860688654,2882367429,4036739795],searchString:[]},evidenceboard:{itemHashes:[],sourceHashes:[1309588429,2055289873],searchString:[]},fwc:{itemHashes:[],sourceHashes:[3569603185],searchString:[]},gambit:{itemHashes:[180108390,180108391,1335424933,1335424934,1335424935,1661191187,2224920148,2224920149,2394866220,2588647363,3217477988,4060882457],sourceHashes:[186854335,571102497,594786771,887452441,1127923611,1162859311,2170269026,2364933290,2601524261,2843045413,2883838366,3299964501,3348906688,3422985544,3494247523,3522070610],searchString:[]},gambitprime:{itemHashes:[2868525740,2868525741,2868525742,2868525743,3735277403,3808901541],sourceHashes:[1952675042],searchString:[]},garden:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},gardenofsalvation:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},gos:{itemHashes:[4103414242],sourceHashes:[1491707941],searchString:[]},grasp:{itemHashes:[],sourceHashes:[675740011],searchString:[]},gunsmith:{itemHashes:[],sourceHashes:[1459595344,1788267693,2986841134,3512613235],searchString:[]},harbinger:{itemHashes:[],sourceHashes:[2856954949],searchString:[]},haunted:{itemHashes:[1478986057,2778013407],sourceHashes:[620369433,976328308,1283862526,2273761598,2676881949],searchString:[]},ikora:{itemHashes:[],sourceHashes:[3075817319],searchString:[]},io:{itemHashes:[],sourceHashes:[315474873,1067250718,1832642406,2392127416,2717017239,3427537854],searchString:[]},ironbanner:{itemHashes:[231533811,1162929425,1448664466,1448664467,1661191199,1987234560,2448092902],sourceHashes:[561111210,1027607603,1312894505,1828622510,1926923633,2520862847,2648408612,3072862693,3966667255],searchString:[]},kf:{itemHashes:[],sourceHashes:[160129377],searchString:[]},kingsfall:{itemHashes:[],sourceHashes:[160129377],searchString:[]},lastwish:{itemHashes:[3668669364],sourceHashes:[2455011338],searchString:[]},legendaryengram:{itemHashes:[],sourceHashes:[3334812276],searchString:[]},leviathan:{itemHashes:[3580904580],sourceHashes:[2653618435,2765304727,4009509410],searchString:[]},limited:{itemHashes:[],sourceHashes:[639650067,1358645302,1412777465,1743434737,1866448829,2968206374,2985242208,3173463761,3212282221,3672287903,4069355515,4166998204],searchString:[]},lost:{itemHashes:[],sourceHashes:[164083100,3094114967],searchString:[]},lostsectors:{itemHashes:[],sourceHashes:[2203185162],searchString:[]},lw:{itemHashes:[3668669364],sourceHashes:[2455011338],searchString:[]},mars:{itemHashes:[],sourceHashes:[1036506031,1299614150,1924238751,2310754348,2926805810,4137108180],searchString:[]},menagerie:{itemHashes:[1661191194,1661191195,3176509806,3841416152,3841416153,3841416154,3841416155,3875444086],sourceHashes:[2511152325],searchString:[]},mercury:{itemHashes:[],sourceHashes:[148542898,1175566043,1400219831,1411886787,1581680964,1618754228,1654120320,2487203690,3079246067,3964663093,4263201695],searchString:[]},moon:{itemHashes:[],sourceHashes:[1253026984,1999000205,3589340943],searchString:[]},neomuna:{itemHashes:[],sourceHashes:[281362298,454251931,483798855,1750523507,2697389955,3041847664,3773376290,4006434081,4110186790],searchString:[]},nessus:{itemHashes:[],sourceHashes:[164571094,817015032,1186140085,1289998337,1906492169,2040548068,2345202459,2553369674,3022766747,3067146211],searchString:[]},nightfall:{itemHashes:[],sourceHashes:[110159004,277706045,354493557,817015032,827839814,860666126,1175566043,1283862526,1516560855,1581680964,1596489410,1618699950,1749037998,1850609592,1924238751,1992319882,2347293565,2376909801,2487203690,2717017239,2805208672,2851783112,2926805810,2982642634,3022766747,3067146211,3142874552,3229688794,3528789901,3874934421,3964663093,4208190159,4263201695],searchString:[]},nightmare:{itemHashes:[],sourceHashes:[550270332,2778435282,3190710249],searchString:[]},nm:{itemHashes:[],sourceHashes:[1464399708],searchString:[]},"pinnacle-weapon":{itemHashes:[578459533,654608616,1584643826,1600633250,3354242550,3907337522],sourceHashes:[598662729,1162859311,1244908294,2317365255,2537301256,2883838366],searchString:[]},pit:{itemHashes:[],sourceHashes:[1745960977],searchString:[]},plunder:{itemHashes:[820890091,1298815317],sourceHashes:[790152021,2982642634,3265560237,3308438907,3740731576,4199401779],searchString:[]},presage:{itemHashes:[],sourceHashes:[210885364,2745272818,3597879858],searchString:[]},prestige:{itemHashes:[],sourceHashes:[2765304727,2812190367,4066007318],searchString:[]},prophecy:{itemHashes:[],sourceHashes:[506073192],searchString:[]},psiops:{itemHashes:[2097055732,4067556514],sourceHashes:[450719423,2075569025,2363489105,3563833902],searchString:[]},raid:{itemHashes:[947448544,1661191193,2027598066,2557722678,3580904580,3668669364,4103414242],sourceHashes:[160129377,557146120,654652973,707740602,866530798,1007078046,1405897559,1483048674,1491707941,1675483099,1692165595,1897187034,2065138144,2085016678,2399751101,2455011338,2653618435,2723305286,2765304727,2812190367,2882367429,2937902448,3098906085,3147603678,3190710249,3390269646,3807243511,4009509410,4066007318,4246883461],searchString:["crownofsorrow","deepstonecrypt","eow","garden","lastwish","leviathan","scourge","sos","vog"]},rasputin:{itemHashes:[],sourceHashes:[504657809,1126234343,1497107113,1516560855,2230358252,2422551147,3492941398,3567813252,3574140916,3937492340],searchString:[]},"ritual-weapon":{itemHashes:[213264394,805677041,838556752,847329160,888872889,1179141605,1644680957,2060863616,2697058914,3001205424,3292795429,3434944005,3535742959,4184808992,4227181568],sourceHashes:[3299964501,3348906688],searchString:[]},ron:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},root:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},rootofnightmares:{itemHashes:[],sourceHashes:[3190710249],searchString:[]},saint14:{itemHashes:[],sourceHashes:[2607739079,3404977524,4046490681,4267157320],searchString:[]},scourge:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},scourgeofthepast:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},seasonpass:{itemHashes:[599895591,820890091,1298815317,1478986057,2097055732,2121785039,2434225986,2778013407,3075224551,4067556514],sourceHashes:[450719423,794422188,813075729,927967626,1560428737,1593696611,1763998430,1838401392,2257836668,2379344669,2676881949,3308438907,3574140916],searchString:[]},servitor:{itemHashes:[599895591,2434225986],sourceHashes:[139160732,277706045,1600754038,2040801502,2694738712,2967385539],searchString:[]},shatteredthrone:{itemHashes:[185321778,814876684,2844014413],sourceHashes:[],searchString:[]},shaxx:{itemHashes:[769099721,1230660649,1661191197,2414564781,2420153991,2588739576,2588739578,2588739579,2632846356,3928440584,3928440585,4060882456],sourceHashes:[454115234,598662729,745186842,897576623,929025440,1217831333,1223492644,1494513645,2055470113,2537301256,2558941813,2622122683,2641169841,2658055900,2669524419,2821852478,2915991372,3020288414,3226099405,3299964501,3348906688,3466789677,3656787928],searchString:[]},shipwright:{itemHashes:[],sourceHashes:[96303009],searchString:[]},sonar:{itemHashes:[],sourceHashes:[813075729,927967626,2257836668,2755511565,2811716495],searchString:[]},sos:{itemHashes:[],sourceHashes:[1675483099,2812190367],searchString:[]},sotp:{itemHashes:[2557722678],sourceHashes:[1483048674,2085016678,4246883461],searchString:[]},sotw:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},spireofstars:{itemHashes:[],sourceHashes:[1675483099,2812190367],searchString:[]},spireofthewatcher:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},strikes:{itemHashes:[274843196,1661191186,2523776412,2523776413,2588647361,2788911997,2788911998,2788911999,3215252549,4060882458],sourceHashes:[288436121,351235593,412991783,539840256,681989555,1144274899,1216155659,1244908294,1433518193,1564061133,2124937714,2317365255,2335095658,2527168932,3299964501,3348906688],searchString:[]},sundial:{itemHashes:[],sourceHashes:[1618754228,2627087475],searchString:[]},tangled:{itemHashes:[1226584228,1226584229,4085986809],sourceHashes:[110159004,798957490,1771326504,2805208672,4140654910],searchString:[]},throneworld:{itemHashes:[],sourceHashes:[1141831282,1823766625,3954922099],searchString:[]},titan:{itemHashes:[],sourceHashes:[194661944,354493557,482012099,636474187,3534706087],searchString:[]},trials:{itemHashes:[1983519830,2069797994,2071635914,2071635915],sourceHashes:[139599745,550270332,613791463,752988954,827839814,1607607347,2857787138,3390015730,3471208558,3543690049],searchString:[]},umbral:{itemHashes:[],sourceHashes:[287889699,1286883820],searchString:[]},vaultofglass:{itemHashes:[],sourceHashes:[2065138144],searchString:[]},vexoffensive:{itemHashes:[351285766,377757362,509561140,509561142,509561143,695795213,844110491,1137424312,1137424314,1137424315,1348357884,1584183805,1721943440,1721943441,1721943442,1855720513,1855720514,1855720515,2096778461,2096778462,2096778463,2468603405,2468603406,2468603407,2657028416,2687273800,2690973101,2690973102,2690973103,2742760292,2761292744,2815379657,2815379658,2815379659,2903026872,2903026873,2903026874,2942269704,2942269705,2942269707,3166926328,3166926330,3166926331,3192738009,3192738010,3192738011,3364258850,3680920565,3757338780,3757338782,3757338783,3911047865,4013678605,4026120124,4026120125,4026120127,4070722289,4078925540,4078925541,4078925542],sourceHashes:[4122810030],searchString:[]},vog:{itemHashes:[],sourceHashes:[2065138144],searchString:[]},votd:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},vow:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},vowofthedisciple:{itemHashes:[],sourceHashes:[1007078046],searchString:[]},wartable:{itemHashes:[],sourceHashes:[2653840925,3818317874,4079816474],searchString:[]},watcher:{itemHashes:[],sourceHashes:[1597738585],searchString:[]},wellspring:{itemHashes:[],sourceHashes:[82267399,502279466,2917218318,3359853911,3411812408,3450213291],searchString:[]},wrathborn:{itemHashes:[197764097,238284968,251310542,317220729,1148770067,1276513983,1458739906,2025716654,2055947316,2279193565,2453357042,2545401128,2776503072,3180809346,3351935136,3887272785,4079117607],sourceHashes:[841568343,3107094548],searchString:[]},zavala:{itemHashes:[274843196,1661191186,2523776412,2523776413,2588647361,2788911997,2788911998,2788911999,3215252549,4060882458],sourceHashes:[288436121,351235593,412991783,539840256,681989555,1144274899,1216155659,1244908294,1433518193,1564061133,2124937714,2317365255,2335095658,2527168932,3299964501,3348906688],searchString:[]}},$1=x1;var u1={"30th":[286271818,399065241,587312237,833653807,1756483796,1951355667,2244604734,2663987096,2885497847,3048458482,3171090615,3267969345,3685276035,3871537958,4050474396],ada:[],adventure:[11686457,11686458,320310249,320310250,886128573,1096417434,1286488743,1355771621,1701005142,1701005143,2317191363,2426340788,2426340791,2486041712,2486041713,2913284400,3706457514,3706457515],banshee:[],battlegrounds:[],blackarmory:[],calus:[17280095,30962015,64543268,64543269,223783885,239489770,253344425,256904954,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,383742277,407863747,455108040,455108041,503773817,548581042,560455272,574137192,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,748485514,748485515,754149842,754149843,796914932,802557885,845536715,853543290,853543291,855363300,874272413,917591018,917591019,974648224,1034660314,1108389626,1156439528,1230192769,1242139836,1256688732,1296628624,1339632007,1354679721,1390282760,1390282761,1413589586,1434870610,1457195686,1481751647,1675393889,1756558505,1793869832,1862963733,1876645653,1879942843,1901223867,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2023695690,2070062384,2070062385,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2329031091,2339720736,2369496221,2513313400,2537874394,2552158692,2597529070,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2765688378,2769298993,2904930850,2913992255,2933666377,2976612200,2994007601,3066613133,3082625196,3092380260,3092380261,3099636805,3108321700,3168183519,3181497704,3285121297,3292127944,3349283422,3359121706,3364682867,3395856235,3416932282,3440648382,3483984579,3497220322,3517729518,3518193943,3530284425,3581198350,3592548938,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3831484112,3842934816,3853397100,3867160430,3950028838,3950028839,3964287245,3984534842,4135228483,4152814806,4229161783,4247935492,4251770244,4251770245],campaign:[423789,644105,11686456,13719069,40512774,56663992,59990642,67798808,76554114,83898430,91289429,95934356,96682422,124410141,126602378,137713267,174910288,177215556,182285650,201644247,202783988,203317967,226227391,246765359,255520209,280187206,288815409,293178904,320174990,320310251,331268185,341343759,341468857,366418892,387708030,392489920,397654099,402937789,406995961,411014648,417821705,418611312,420937712,422994787,452060094,457297858,459778797,461025654,463563656,467612864,474150341,482091581,484126150,516502270,531665167,539726822,550258943,558125905,579997810,598178607,600059642,610837228,612495088,622291842,625602056,627055961,634608391,643145875,648022469,648638907,657773637,674335586,696808195,703683040,703902595,720723122,721208609,732520437,733635242,735669834,739196403,739406993,747210772,777818225,789384557,792400107,795389673,803939997,830369300,833626649,844823562,846463017,856745412,857264972,863007481,867963905,868799838,871442456,877723168,881194063,897275209,897335593,905249529,911039437,930759851,933345182,965934024,995248967,1012254326,1014677029,1017385934,1019574576,1022126988,1036557198,1044888195,1045948748,1048498953,1070180272,1086997255,1103878128,1118428792,1118437892,1124184622,1139671158,1153260021,1169595348,1208761894,1210012576,1255614814,1256569366,1279721672,1300106409,1305848463,1328755281,1331205087,1360445272,1365739620,1365979278,1378545975,1443091319,1452147980,1455694321,1473385934,1479532637,1479892134,1484009400,1486292360,1488618333,1500704923,1501094193,1503713660,1512570524,1556652797,1561736585,1578478684,1581838479,1604394872,1611221278,1616317796,1627901452,1630079134,1658512403,1665016007,1672155562,1691784182,1701236611,1702273159,1709236482,1715842350,1736993473,1763607626,1775818231,1783952505,1784774885,1801153435,1824298413,1848999098,1862164825,1866564759,1872887954,1891463783,1901221009,1912568536,1915498345,1924584408,1933944659,1965476837,1981225397,1988790493,1992338980,2002682954,2031584061,2049820819,2065578431,2113881316,2136310244,2148305277,2151724216,2159062493,2162276668,2165661157,2183384906,2190967049,2211544324,2214424583,2230522771,2237975061,2245839670,2246316031,2253044470,2267311547,2283894334,2303417969,2305736470,2317046938,2318667184,2325151798,2329963686,2339344379,2343139242,2362809459,2363903643,2413278875,2426340790,2436471653,2441435355,2459075622,2466525328,2476964124,2479297167,2493161484,2504771764,2519597513,2526922422,2541019576,2562645296,2567295299,2568808786,2574857320,2583547635,2626766308,2634786903,2640935765,2644553610,2689896341,2739875972,2742930797,2745108287,2771425787,2788997987,2794359402,2801811288,2803009638,2803481901,2805854721,2813695893,2814965254,2815743359,2815817957,2822491218,2825160682,2833813592,2854973517,2871824910,2880545163,2886651369,2888195476,2893448006,2930768301,2937068650,2943629439,2959986506,2982306509,2983961673,2985655620,2994740249,3007889693,3013778406,3035240099,3046678542,3047946307,3061532064,3075302157,3080409700,3102366928,3121104079,3159474701,3160437036,3163241201,3164547673,3174394351,3174771856,3181984586,3183585337,3184690956,3188328909,3212340413,3224649746,3238424670,3245543337,3260546749,3264653916,3276278122,3279257734,3294892432,3302420523,3309120116,3310450277,3313352164,3349439959,3352069677,3382396922,3391214896,3403897789,3419425578,3437155610,3438103366,3456147612,3456250548,3461249873,3465323600,3468148580,3483602905,3507639356,3508205736,3519241547,3523134386,3524846593,3539253011,3544711340,3544884935,3554672786,3556023425,3573886331,3585730968,3598972737,3639035739,3643144047,3650925928,3656549306,3657186535,3675553168,3693917763,3725709067,3748997649,3763392098,3775800797,3790903614,3791691774,3798468567,3808902618,3812037372,3846931924,3847471926,3867725217,3877365781,3880804895,3885104741,3887037435,3896141096,3904524734,3914973263,3922069396,3958133156,3962776002,3967705743,3968319087,3979300428,4012302343,4035217656,4052950089,4062934448,4069941456,4091127092,4100043028,4133705268,4135938411,4149682173,4155348771,4166795065,4174470997,4177795589,4179002916,4195519897,4200817316,4230626646,4248632159,4267244538,4267370571,4281850920,4283953067,4288395850],cayde6:[],compass:[],contact:[],cos:[17280095,256904954,309687341,325125949,560455272,612065993,874272413,974648224,1434870610,1457195686,1481751647,1862963733,1901223867,1934647691,1937834292,1946621757,1999427172,2023695690,2153222031,2194479195,2765688378,2769298993,3082625196,3108321700,3349283422,3483984579,3517729518,3518193943,3759659288,4152814806],crota:[],crotasend:[],crownofsorrow:[17280095,256904954,309687341,325125949,560455272,612065993,874272413,974648224,1434870610,1457195686,1481751647,1862963733,1901223867,1934647691,1937834292,1946621757,1999427172,2023695690,2153222031,2194479195,2765688378,2769298993,3082625196,3108321700,3349283422,3483984579,3517729518,3518193943,3759659288,4152814806],crucible:[85800627,98331691,185853176,252414402,283188616,290136582,327530279,328902054,356269375,388771599,419812559,438224459,449878234,468899627,530558102,636679949,670877864,727838174,744199039,761953100,820446170,849529384,874101646,876608500,920187221,929917162,997903134,1036467370,1062166003,1063904165,1069887756,1071350799,1084033161,1127237110,1245115841,1307478991,1333087155,1464207979,1467590642,1484937602,1548928853,1571781304,1654427223,1658896287,1673285051,1716643851,1722623780,1742680797,1742940528,1764274932,1801625827,1830829330,1838158578,1838273186,1852468615,1904811766,1929596421,2070517134,2124666626,2191401041,2231762285,2291226602,2293476915,2296560252,2296691422,2323865727,2331227463,2415711886,2426070307,2466453881,2473130418,2496309431,2525395257,2543903638,2555965565,2670393359,2718495762,2727890395,2775298636,2815422368,3089908066,3098458331,3119528729,3140634552,3211001969,3223280471,3298826188,3313736739,3315265682,3483546829,3522021318,3538513130,3724026171,3756286064,3772194440,3781722107,3818803676,3839561204,4043980813,4123918087,4134090375,4136212668,4144133120,4211218181,4264096388],dcv:[17280095,30962015,64543268,64543269,223783885,239489770,253344425,256904954,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,350056552,383742277,388999052,407863747,455108040,455108041,503773817,548581042,560455272,574137192,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,748485514,748485515,754149842,754149843,796914932,802557885,845536715,853543290,853543291,855363300,874272413,886128573,917591018,917591019,974648224,1034660314,1108389626,1156439528,1230192769,1242139836,1256688732,1296628624,1339632007,1354679721,1390282760,1390282761,1413589586,1434870610,1457195686,1481751647,1624906371,1675393889,1701005142,1756558505,1793869832,1862963733,1876645653,1879942843,1901223867,1917693279,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2023695690,2070062384,2070062385,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2317191363,2329031091,2339720736,2369496221,2486041713,2513313400,2530113265,2537874394,2552158692,2589473259,2597529070,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2762445138,2765688378,2769298993,2878130185,2904930850,2913284400,2913992255,2921334134,2933666377,2976612200,2994007601,3066613133,3082625196,3092380260,3092380261,3099636805,3108321700,3163683564,3164851950,3168183519,3181497704,3285121297,3292127944,3349283422,3359121706,3364682867,3395856235,3416932282,3440648382,3483984579,3497220322,3517729518,3518193943,3530284425,3567761471,3581198350,3592548938,3706457515,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3831484112,3842934816,3853397100,3867160430,3950028838,3950028839,3964287245,3984534842,3992358137,4125324487,4135228483,4152814806,4229161783,4238134294,4247935492,4251770244,4251770245],deepstonecrypt:[],deluxe:[1952218242,2683682447],do:[66235782,132368575,387100392,1978760489,2089197765,2760076378,2873960175,3146241834,3299588760,3763392361,3783059515,3920232320,4055334203,4065136800,4121118846],dreaming:[99549082,185695659,188778964,344548395,934704429,998096007,1452333832,1593474975,1705856569,1903023095,1928769139,1980768298,2336820707,2467635521,2503434573,2704876322,2761343386,2824453288,2859583726,2889063206,3174233615,3239662350,3250140572,3306564654,3343583008,3602032567,3711557785,4070309619,4097166900,4257800469],drifter:[9767416,94425673,127018032,191247558,191535001,230878649,386367515,392058749,485653258,509238959,629787707,759348512,787909455,887818405,978447246,1013137701,1169857924,1188039652,1193646249,1236746902,1237661249,1356064950,1359908066,1488486721,1548620661,1741396519,1752237812,2020166300,2039976446,2088829612,2130645994,2440840551,2451538755,2459422430,2506514251,2512196373,2518527196,2568447248,2620389105,2677967607,2694124942,2728668760,2858060922,2881248566,3031848199,3184912423,3339632627,3404053788,3486086024,3537476911,3550729740,3595268459,3664007718,3804360785,3825427923,3855285278,3925589496,4115739810,4188366993,4255727106],dsc:[],duality:[145651147,420895300,1148597205,2057955626,2499351855,2649394513,2694773307,2724719415,2797334754,2819810688,2935559305,3260781446,3270955774,3326914239,4047213660],dungeon:[51786498,145651147,286271818,399065241,420895300,436695703,498918879,587312237,638836294,708921139,767306222,833653807,837865641,956827695,1148597205,1349399252,1664757090,1756483796,1913823311,1951355667,2057955626,2244604734,2341879253,2488323569,2499351855,2565015142,2618168932,2643850526,2649394513,2663987096,2694773307,2724719415,2797334754,2819810688,2820604007,2850384360,2885497847,2935559305,3048458482,3171090615,3260781446,3267969345,3270955774,3326914239,3344225390,3511740432,3570749779,3685276035,3708902812,3715136417,3870375786,3871537958,3933500353,3946384952,4039955353,4047213660,4050474396,4130276947,4177293424,4288623897],edz:[10307688,11686458,320310249,872284448,1304122208,1664741411,1701005143,1712405061,2426340788,2486041712,2724176749,2729740202,3080875433,3366557883,3466255616,3706457514,3764013786,3862191322,3907226374,3973359167,4051755349],enclave:[],eow:[239489770,253344425,340118991,383742277,588627781,666883012,796914932,845536715,1034660314,1242139836,1256688732,1756558505,1991039861,2329031091,2339720736,2369496221,2537874394,2597529070,2653039573,2976612200,2994007601,3099636805,3181497704,3359121706,3364682867,3497220322,3831484112,3842934816,3964287245,4229161783],ep:[],europa:[],events:[116784191,140842223,143299650,153144587,177568179,226436555,231432261,233896077,234970842,250513201,335763433,346065606,391889347,419435523,450844637,492834021,518930465,531005896,540653483,574167778,574790717,627596132,677939288,721146704,784499738,830497630,929148730,967650555,1056992393,1141639721,1229961870,1273510836,1288683596,1341471164,1361620030,1365491398,1376763596,1450633717,1502692899,1510405477,1540031264,1548056407,1556831535,1561249470,1589318419,1649929380,1651275175,1683482799,1706764072,1706874193,1775707016,1812385587,1862324869,1897528210,2105409832,2111111693,2120905920,2127474099,2150778206,2155928170,2156817213,2287277682,2291082292,2328435454,2337290000,2419100474,2470583197,2477028154,2492769187,2523388612,2546370410,2578820926,2618313500,2685001662,2696245301,2720534902,2764769717,2770157746,2777913564,2805101184,2824302184,2837295684,2877046370,2924095235,2940416351,2978747767,2994721336,3015197581,3039687635,3077367255,3103255595,3104384024,3159052337,3192336962,3236510875,3240434620,3559361670,3611487543,3685996623,3748622249,3871226707,3892841518,3929403535,3932814032,3943394479,3965417933,3968560442,3987442049,4075522049,4100029812,4128297107,4142792564,4245469491,4272367383],eververse:[138961800,163660481,167651268,269339124,599687980,691914261,706111909,710937567,921357268,989291706,1051903593,1135293055,1290784012,1397284432,1445212020,1602334068,1706764073,1707587907,1732950654,1812385586,1816495538,1844125034,1936516278,1956273477,1984190529,2112889975,2225903500,2303499975,2378378507,2623660327,2640279229,2693084644,2717158440,2760398988,2777913565,2806805902,2828252061,2998296658,3161524490,3168164098,3177119978,3352566658,3455566107,3569791559,3729709035,3781263385,3850655136,3866715933,3947596543,4059030097],evidenceboard:[],fwc:[680327840,807866445,1162875302,1187431263,1355893732,1418921862,1478665487,1566612778,1763431309,2401598772,2415993980,2524181305,3656154099,3671665226,3842448731],gambit:[9767416,94425673,127018032,191247558,191535001,230878649,386367515,392058749,485653258,509238959,629787707,759348512,787909455,887818405,978447246,1013137701,1169857924,1188039652,1193646249,1236746902,1237661249,1356064950,1359908066,1488486721,1548620661,1741396519,1752237812,2020166300,2039976446,2088829612,2130645994,2440840551,2451538755,2459422430,2506514251,2512196373,2518527196,2568447248,2620389105,2677967607,2694124942,2728668760,2858060922,2881248566,3031848199,3184912423,3339632627,3404053788,3486086024,3537476911,3550729740,3595268459,3664007718,3804360785,3825427923,3855285278,3925589496,4115739810,4188366993,4255727106],gambitprime:[95332289,95332290,98700833,98700834,130287073,130287074,154180149,154180150,223681332,223681335,234582861,234582862,264182640,264182643,370332340,370332343,420625860,420625863,432797516,432797519,563461320,563461323,722344177,722344178,759881004,759881007,893169981,893169982,975478397,975478398,1039402696,1039402699,1159077396,1159077399,1208982392,1208982395,1295793304,1295793307,1386198149,1386198150,1438999856,1438999859,1477025072,1477025075,1505642257,1505642258,1920676413,1920676414,1951201409,1951201410,1979001652,1979001655,1984789548,1984789551,1989814421,1989814422,2051266836,2051266839,2187982744,2187982747,2334120368,2334120371,2336344261,2336344262,2371932404,2371932407,2565812704,2565812707,2591049236,2591049239,2593076932,2593076935,2698109345,2698109346,2710420856,2710420859,2799932928,2799932931,2976484617,2976484618,3088740176,3088740179,3166483968,3166483971,3168759585,3168759586,3220030412,3220030415,3373994936,3373994939,3403732217,3403732218,3489978605,3489978606,3525447589,3525447590,3533064929,3533064930,3583507225,3583507226,3636943392,3636943395,3660501108,3660501111,3837542169,3837542170,3948054485,3948054486,3981071584,3981071587,4020124605,4020124606,4026665500,4026665503,4060232809,4060232810,4245233853,4245233854,4266990316,4266990319],garden:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],gardenofsalvation:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],gos:[11974904,281660259,519078295,557676195,1653741426,2015894615,2054979724,2320830625,3001934726,3103335676,3549177695,3824429433,3887559710,3939809874,4177973942],grasp:[286271818,399065241,587312237,833653807,1756483796,1951355667,2244604734,2663987096,2885497847,3048458482,3171090615,3267969345,3685276035,3871537958,4050474396],gunsmith:[],harbinger:[],haunted:[3864896927],ikora:[89175653,185326970,385045066,555828571,662797277,868792277,1490387264,1532009197,1698434490,1735538848,1842727357,1895532772,1940451444,2416730691,2615512594,2682045448,2684281417,2688111404,3081969019,3511221544,3741528736,3758301014,4081859017,4146629762,4208352991,4224076198,4225579453,4285708584],io:[886128573,2317191363,2913284400],ironbanner:[21320325,63725907,75550387,92135663,124696333,130221063,131359121,142417051,167461728,197164672,198946996,219816655,228784708,258029924,279785447,287471683,344804890,423204919,425007249,473526496,479917491,481390023,485774636,487361141,500363457,510020159,511170376,540880995,559176540,561808153,691332172,706104224,713182381,738836759,738938985,739655237,741704251,744156528,770140877,808693674,831464034,863444264,892360677,935677805,957732971,959040145,995283190,1015625830,1027482647,1058936857,1062998051,1084553865,1098138990,1105558158,1127757814,1164755828,1166260237,1173846338,1181560527,1233689371,1234228360,1245456047,1279731468,1311649814,1313089081,1313767877,1337167606,1339294334,1342036510,1349302244,1395498705,1425558127,1438648985,1452894389,1465485698,1469050017,1476572353,1478755348,1496224967,1498852482,1526005320,1532276803,1570751539,1601698634,1604601714,1618191618,1631733639,1631922345,1673037492,1675022998,1717896437,1804445917,1822989604,1854612346,1876007169,1882457108,1889355043,1891964978,1895324274,1944853984,1960776126,1990315366,1999697514,2017059966,2049490557,2054377692,2055774222,2058205265,2083136519,2205315921,2234855160,2241419267,2266122060,2274205961,2302106622,2310625418,2320100699,2331748167,2340483067,2391553724,2414679508,2426788417,2455992644,2488587246,2500327265,2536633781,2547799775,2555322239,2589114445,2614190248,2620437164,2627255028,2674485749,2692970954,2723059534,2753509502,2758933481,2811201658,2817130155,2845071512,2850783764,2853073502,2863819165,2867156198,2879116647,2885394189,2898234995,2900181965,2911957494,2914695209,2916624580,2999505920,3018777825,3042878056,3055410141,3057399960,3112906149,3115791898,3147146325,3169616514,3292445816,3300129601,3308875113,3329206472,3345886183,3369424240,3379235805,3420845681,3472216012,3505538303,3543613212,3543922672,3544440242,3551208252,3570981007,3600816955,3625849667,3646911172,3661959184,3678620931,3686482762,3696011098,3735443949,3737894478,3746327861,3753635534,3756249289,3791686334,3799661482,3815391974,3817948370,3818295475,3847368113,3856062457,3856697336,3865618708,3899385447,3906637800,3972479219,3974682334,3976616421,4009352833,4010793371,4019071337,4041069824,4048191131,4054509252,4078529821,4096639276,4128151712,4144217282,4145557177,4156963223,4169842018,4196689510,4211068696,4248834293],kf:[],kingsfall:[],lastwish:[4968701,16387641,49280456,65929376,70083888,146275556,196235132,424291879,501329015,576683388,726265506,776723133,778784376,821841934,972689703,1021341893,1127835600,1190016345,1195800715,1258342944,1314563129,1432728945,1444894250,1477271933,1646520469,1656835365,1851777734,2112541750,2274520361,2280287728,2550116544,2598685593,2868042232,2884596447,2950533187,3055836250,3119383537,3143067364,3208178411,3227674085,3251351304,3388655311,3445296383,3445582154,3492720019,3494130310,3591141932,3614211816,3838639757,3868637058,3874578566,3885259140,4219088013],legendaryengram:[24598504,25091086,32806262,42219189,73720713,107232578,107582877,130772858,133227345,144651852,155832748,160388292,265279665,269552461,308026950,311394919,316000947,339438127,362404956,369384485,373203219,388625893,410671183,417345678,432525353,433294875,434243995,474076509,489114030,489480785,489743173,493299171,494682309,532728591,537272242,545134223,548907748,553373026,554000115,597618504,629469344,629482101,633160551,635809934,639670612,655964556,683173058,690335398,695071581,731888972,737010724,836969671,854373147,875215126,880368054,881579413,919186882,922218300,966777042,974507844,983115833,993844472,1006824129,1020198891,1024867629,1028913028,1034149520,1063507982,1088960547,1111042046,1127029635,1148805553,1153347999,1192751404,1195298951,1213841242,1257810769,1260134370,1266060945,1293868684,1295776817,1301696822,1330107298,1330542168,1348658294,1364856221,1367655773,1399263478,1415533220,1425077417,1429424420,1432831619,1432969759,1457647945,1512829977,1513486336,1548943654,1553407343,1598372079,1601578801,1618341271,1648238545,1655109893,1664085089,1664611474,1680657538,1693706589,1726695877,1728789982,1740873035,1742735530,1749589787,1761136389,1772639961,1810399711,1847870034,1854024004,1865671934,1892576458,1893349933,1904199788,1920259123,1954457094,1964977914,1978110490,1998314509,2012084760,2020589887,2026285619,2048751167,2082184158,2085574015,2092750352,2111956477,2112821379,2148295091,2151378428,2159363321,2173858802,2185500219,2193432605,2205604183,2206284939,2265859909,2297281780,2298664693,2332398934,2339155434,2360521872,2364041279,2379553211,2402435619,2414278933,2439195958,2442805346,2445181930,2454861732,2470746631,2475888361,2478301019,2502004600,2518901664,2521426922,2525344810,2530905971,2542514983,2546015644,2550994842,2561056920,2562470699,2562555736,2567710435,2581516944,2629014079,2648545535,2669113551,2674524165,2696303651,2713755753,2728535008,2734010957,2753581141,2762426792,2766448160,2767830203,2770578349,2772485446,2791527489,2800566014,2808379196,2811180959,2819613314,2826844112,2837138379,2838060329,2845530750,2905153902,2905154661,2924984456,2932121030,2982412348,2996649640,3018268196,3024860521,3061780015,3066154883,3066593211,3087552232,3125909492,3169402598,3198691833,3239215026,3250112431,3250360146,3257088093,3291075521,3299386902,3304280092,3316802363,3360070350,3386676796,3397835010,3403784957,3430647425,3433746208,3434158555,3498500850,3506159922,3516789127,3527995388,3536492583,3569443559,3593916933,3609169817,3611199822,3612275815,3619376218,3629447000,3646674533,3651598572,3685831476,3688229984,3691737472,3717812073,3725654227,3786300792,3839471140,3850634012,3852389988,3884999792,3899739148,3906537733,3920228039,3973570110,3979056138,3988753671,3994031968,3999262583,4064910796,4073580572,4074193483,4079913195,4092393610,4097652774,4104298449,4146408011,4166246718,4239920089,4256272077,4261835528],leviathan:[30962015,64543268,64543269,288406317,311429765,325434398,325434399,336656483,407863747,455108040,455108041,574137192,581908796,608074492,608074493,618662448,641933203,748485514,748485515,754149842,754149843,853543290,853543291,917591018,917591019,1108389626,1230192769,1354679721,1390282760,1390282761,1413589586,1876645653,1879942843,1960303677,2013109092,2070062384,2070062385,2158603584,2158603585,2183861870,2193494688,2232730708,2676042150,2700598111,2758465168,2913992255,3092380260,3092380261,3292127944,3530284425,3592548938,3711700026,3711700027,3763332443,3853397100,3950028838,3950028839,3984534842,4251770244,4251770245],limited:[1952218242,2683682447],lost:[],lostsectors:[],lw:[4968701,16387641,49280456,65929376,70083888,146275556,196235132,424291879,501329015,576683388,726265506,776723133,778784376,821841934,972689703,1021341893,1127835600,1190016345,1195800715,1258342944,1314563129,1432728945,1444894250,1477271933,1646520469,1656835365,1851777734,2112541750,2274520361,2280287728,2550116544,2598685593,2868042232,2884596447,2950533187,3055836250,3119383537,3143067364,3208178411,3227674085,3251351304,3388655311,3445296383,3445582154,3492720019,3494130310,3591141932,3614211816,3838639757,3868637058,3874578566,3885259140,4219088013],mars:[],menagerie:[],mercury:[],moon:[193805725,272413517,310888006,377813570,659922705,682780965,883769696,925079356,1030110631,1528483180,2048903186,2568538788,3312368889,3571441640,3692187003],neomuna:[],nessus:[11686457,56157064,126418248,177493699,192377242,320310250,472691604,527652447,569251271,569678873,582151075,667921213,853736709,874856664,957928253,1010733668,1096417434,1156448694,1157496418,1286488743,1316205184,1355771621,1427620200,1439502385,1539014368,1640979177,1669675549,1678216306,1810569868,2029766091,2032811197,2079454604,2172333833,2218838661,2252973221,2359639520,2423003287,2426340791,2462524641,2528959426,2731698402,2736812653,2811068561,2816760678,2947629004,2953649850,3026265798,3323553887,3446606632,3536375792,3545981149,3593464438,3617024265,3654781892,3660228214,3669590332,3742350309,3754164794,3807183801,3855512540,3875829376,3951684081,3960258378,4007396243,4060742749,4130486121],nightfall:[40394833,47772649,555148853,681067419,772231794,912150785,1094005544,2378101424,3183283212,3836861464,4074251943,4281371574],nightmare:[],nm:[25798127,106359434,147165546,316745113,342618372,600401425,755928510,831738837,1890693805,2154427219,2436244536,2603069551,3059968532,3323316553,4083497488],"pinnacle-weapon":[],pit:[],plunder:[912150785,2378101424,2871264750],presage:[],prestige:[],prophecy:[],psiops:[3358687360],raid:[4968701,11974904,16387641,17280095,30962015,49280456,64543268,64543269,65929376,70083888,146275556,196235132,223783885,239489770,253344425,256904954,281660259,288406317,309687341,311429765,325125949,325434398,325434399,336656483,340118991,350056552,383742277,388999052,407863747,424291879,455108040,455108041,501329015,503773817,519078295,548581042,557676195,560455272,574137192,576683388,581908796,588627781,608074492,608074493,612065993,618662448,641933203,666883012,726265506,748485514,748485515,754149842,754149843,776723133,778784376,796914932,802557885,821841934,845536715,853543290,853543291,855363300,874272413,917591018,917591019,972689703,974648224,1021341893,1034660314,1108389626,1127835600,1156439528,1190016345,1195800715,1230192769,1242139836,1256688732,1258342944,1296628624,1314563129,1339632007,1354679721,1390282760,1390282761,1413589586,1432728945,1434870610,1444894250,1457195686,1477271933,1481751647,1624906371,1646520469,1653741426,1656835365,1675393889,1756558505,1793869832,1851777734,1862963733,1876645653,1879942843,1901223867,1917693279,1934647691,1937834292,1946621757,1960303677,1991039861,1999427172,2013109092,2015894615,2023695690,2054979724,2070062384,2070062385,2112541750,2128823667,2153222031,2158603584,2158603585,2183861870,2193494688,2194479195,2232730708,2274520361,2280287728,2320830625,2329031091,2339720736,2369496221,2513313400,2530113265,2537874394,2550116544,2552158692,2589473259,2597529070,2598685593,2620001759,2653039573,2676042150,2700598111,2710517999,2722103686,2758465168,2762445138,2765688378,2769298993,2868042232,2878130185,2884596447,2904930850,2913992255,2921334134,2933666377,2950533187,2976612200,2994007601,3001934726,3055836250,3066613133,3082625196,3092380260,3092380261,3099636805,3103335676,3108321700,3119383537,3143067364,3163683564,3164851950,3168183519,3181497704,3208178411,3227674085,3251351304,3285121297,3292127944,3349283422,3359121706,3364682867,3388655311,3395856235,3416932282,3440648382,3445296383,3445582154,3483984579,3492720019,3494130310,3497220322,3517729518,3518193943,3530284425,3549177695,3567761471,3581198350,3591141932,3592548938,3614211816,3711700026,3711700027,3719175804,3720446265,3759659288,3763332443,3824429433,3831484112,3838639757,3842934816,3853397100,3867160430,3868637058,3874578566,3885259140,3887559710,3939809874,3950028838,3950028839,3964287245,3984534842,3992358137,4125324487,4135228483,4152814806,4177973942,4219088013,4229161783,4238134294,4247935492,4251770244,4251770245],rasputin:[555148853,681067419,1631448645,4074251943],"ritual-weapon":[],ron:[],root:[],rootofnightmares:[],saint14:[3360014173],scourge:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],scourgeofthepast:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],seasonpass:[214247063,1387688628,1631448645,2769671712,2785855278,2871264750,3353281999,3358687360,3644991365,3864896927],servitor:[3380377210],shatteredthrone:[],shaxx:[85800627,98331691,185853176,252414402,283188616,290136582,327530279,328902054,356269375,388771599,419812559,438224459,449878234,468899627,530558102,636679949,670877864,727838174,744199039,761953100,820446170,849529384,874101646,876608500,920187221,929917162,997903134,1036467370,1062166003,1063904165,1069887756,1071350799,1084033161,1127237110,1245115841,1307478991,1333087155,1464207979,1467590642,1484937602,1548928853,1571781304,1654427223,1658896287,1673285051,1716643851,1722623780,1742680797,1742940528,1764274932,1801625827,1830829330,1838158578,1838273186,1852468615,1904811766,1929596421,2070517134,2124666626,2191401041,2231762285,2291226602,2293476915,2296560252,2296691422,2323865727,2331227463,2415711886,2426070307,2466453881,2473130418,2496309431,2525395257,2543903638,2555965565,2670393359,2718495762,2727890395,2775298636,2815422368,3089908066,3098458331,3119528729,3140634552,3211001969,3223280471,3298826188,3313736739,3315265682,3483546829,3522021318,3538513130,3724026171,3756286064,3772194440,3781722107,3818803676,3839561204,4043980813,4123918087,4134090375,4136212668,4144133120,4211218181,4264096388],shipwright:[],sonar:[214247063,2769671712,2785855278,3353281999],sos:[223783885,503773817,548581042,802557885,855363300,1156439528,1296628624,1339632007,1675393889,1793869832,2128823667,2513313400,2552158692,2620001759,2710517999,2722103686,2904930850,2933666377,3066613133,3168183519,3285121297,3395856235,3416932282,3440648382,3581198350,3719175804,3720446265,3867160430,4135228483,4247935492],sotp:[350056552,388999052,1624906371,1917693279,2530113265,2589473259,2762445138,2878130185,2921334134,3163683564,3164851950,3567761471,3992358137,4125324487,4238134294],sotw:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],spireofstars:[223783885,503773817,548581042,802557885,855363300,1156439528,1296628624,1339632007,1675393889,1793869832,2128823667,2513313400,2552158692,2620001759,2710517999,2722103686,2904930850,2933666377,3066613133,3168183519,3285121297,3395856235,3416932282,3440648382,3581198350,3719175804,3720446265,3867160430,4135228483,4247935492],spireofthewatcher:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],strikes:[24244626,34846448,335317194,358599471,406401261,413460498,417061387,420247988,432360904,506100699,508642129,575676771,758026143,799187478,986111044,1003941622,1007759904,1054960580,1099472035,1130203390,1188816597,1247181362,1320081419,1405063395,1490307366,1514841742,1514863327,1538362007,1540376513,1667528443,1699493316,1825880546,2011569904,2060516289,2072877132,2076567986,2304309360,2337221567,2378296024,2422319309,2442309039,2460793798,2592351697,2671880779,2722966297,2764938807,2902263756,2939022735,3027732901,3034285946,3074985148,3130904371,3198744410,3213912958,3215392301,3221304270,3281314016,3375062567,3375632008,3469164235,3486485973,3499839403,3500775049,3544662820,3569624585,3584380110,3666681446,3670149407,3851385946,3873435116,3916064886,3963753111,4024037919,4074662489,4087433052,4138296191,4288492921],sundial:[],tangled:[177829853,218523139,307138509,411850804,694120634,699589438,902989307,1069453608,1094005544,1250571424,1347463276,1349281425,1407026808,1412416835,1467355683,1566911695,1636205905,1704861826,1862088022,1863170823,1928007477,1989103583,2007698582,2243444841,2276115770,2411325265,2563857333,2571396481,2757593792,2932919026,2944336620,3044599574,3066181671,3183089352,3523809305,3858472841,3871458129,3918445245,3926141285,3971250660,4070132608,4167605324,4245441464],throneworld:[],titan:[1701005142,2486041713,3706457515],trials:[2307365,72827962,142864314,150551028,155955678,272735286,421771594,442736573,495541988,532746994,571925067,686607149,711889599,773318267,784751927,861160515,875395086,945907383,1164471069,1193489623,1526650446,1574601402,1697682876,1929400866,2158289681,2185327324,2579999316,2759251821,2764588986,2808362207,3025466099,3102421004,3127319342,3149072083,3365406121,3426704397,3624844116,3920882229,3921970316,4100217958,4177448932],umbral:[],vaultofglass:[],vexoffensive:[],vog:[],votd:[],vow:[],vowofthedisciple:[],wartable:[],watcher:[436695703,498918879,708921139,1349399252,2341879253,2565015142,3344225390,3511740432,3715136417,3870375786,3933500353,3946384952,4039955353,4177293424,4288623897],wellspring:[],wrathborn:[],zavala:[24244626,34846448,335317194,358599471,406401261,413460498,417061387,420247988,432360904,506100699,508642129,575676771,758026143,799187478,986111044,1003941622,1007759904,1054960580,1099472035,1130203390,1188816597,1247181362,1320081419,1405063395,1490307366,1514841742,1514863327,1538362007,1540376513,1667528443,1699493316,1825880546,2011569904,2060516289,2072877132,2076567986,2304309360,2337221567,2378296024,2422319309,2442309039,2460793798,2592351697,2671880779,2722966297,2764938807,2902263756,2939022735,3027732901,3034285946,3074985148,3130904371,3198744410,3213912958,3215392301,3221304270,3281314016,3375062567,3375632008,3469164235,3486485973,3499839403,3500775049,3544662820,3569624585,3584380110,3666681446,3670149407,3851385946,3873435116,3916064886,3963753111,4024037919,4074662489,4087433052,4138296191,4288492921]},J1=u1;var h1={blackarmory:"black armory",lastwish:"last wish",kingsfall:"kings fall",cayde6:"cayde-6",crownofsorrow:"crown of sorrow",deepstonecrypt:"deep stone crypt",evidenceboard:"evidence board",gambitprime:"gambit prime",gardenofsalvation:"garden of salvation",ironbanner:"iron banner",legendaryengram:"legendary engram",wartable:"war table",lostsectors:"lost sectors","pinnacle-weapon":"pinnacle weapon","ritual-weapon":"ritual weapon",rootofnightmares:"root of nightmares",saint14:"saint-14",scourgeofthepast:"scourge of the past",seasonpass:"season pass",shatteredthrone:"shattered throne",spireofstars:"spire of the stars",spireofthewatcher:"spire of the watcher",throneworld:"throne world",vaultofglass:"vault of glass",redwar:"red war",vexoffensive:"vex offensive",vowofthedisciple:"vow of the disciple"},_1=()=>{const G={};for(let[$,Q]of[...Object.entries($1)]){const W=[h1[$]||$],Y=J1[$]||[];for(let J of[...Q.itemHashes,...Y])if(G[J])G[J]=[...G[J],...W];else G[J]=[...W];for(let J of Q.sourceHashes)if(G[J])G[J]=[...G[J],...W];else G[J]=[...W]}return G},S=_1();var Q1=(G,$)=>{if($&&S[$])return S[$];else if(G&&S[G])return S[G];return""},O1=(G)=>{if(G)return`${e[G].name}`},M1=(G)=>{if(!G)return null;const $=G.replace("https://www.bungie.net",""),Q=a[$];if(!Q)return null;return Q},X1=(G)=>{if(!G)return null;const $=G.replace("https://www.bungie.net",""),Q=t[$];if(!Q)return null;return Q},G6=Object.fromEntries(Object.entries(G1).map(([G,$])=>[$.toString(),G]));var b;(function(Y){Y[Y["None"]=0]="None";Y[Y["InventorySourced"]=1]="InventorySourced";Y[Y["ReusablePlugItems"]=2]="ReusablePlugItems";Y[Y["ProfilePlugSet"]=4]="ProfilePlugSet";Y[Y["CharacterPlugSet"]=8]="CharacterPlugSet"})(b||(b={}));function q1(G){return G.itemCategoryHashes?.includes(c1)}function K1(G){return G.itemCategoryHashes?.includes(d1)}var c1=1,d1=3109687656;function L(G,$){return $.DestinyInventoryItemDefinition[G]}var i1=function(G,$){return G?$.DestinyPlugSetDefinition[G].reusablePlugItems:[]},n1=function(G,$){const Q=new Set,X=G&&$.DestinySocketTypeDefinition[G];if(!X)return Q;return X.plugWhitelist.forEach((W)=>{if(o1(W.categoryHash))Q.add(W.categoryHash)}),Q};function E(G,$){let Q=[];if(G?.sockets){const{socketCategories:X,socketEntries:W}=G.sockets,Y=X.find((J)=>J.socketCategoryHash===4241085061);if(Y){const{socketIndexes:J}=Y;for(let q of J){const U=W.at(q);if(!U)continue;const K=U?.reusablePlugSetHash||U?.randomizedPlugSetHash||0,j=U.socketTypeHash,V=U.singleInitialItemHash;if(!K&&U?.plugSources&&U.plugSources&b.ReusablePlugItems||!j)continue;const D=n1(j,$),C=L(V,$),B=i1(K,$);if(C&&!B.find((T)=>T.plugItemHash===C.hash))B.push({plugItemHash:C.hash,currentlyCanRoll:!0,craftingRequirements:{materialRequirementHashes:[],unlockRequirements:[]}});const N=B.map((T)=>{return L(T.plugItemHash,$)||null}).filter((T)=>T!==null).filter((T)=>T.plug?.plugCategoryHash&&D.has(T.plug.plugCategoryHash));if(N.length)Q.push(N)}}}return Q}function W1(G){const $=G.quality;return $?.displayVersionWatermarkIcons[$.currentVersion]}var m1=function(G){return!!(q1(G)&&!K1(G)&&G.hash!==p1)};function Y1(G){const $=G.DestinyInventoryItemDefinition;return Object.values($).filter(m1)}var o1=(G)=>{return G!==2947756142},p1=1744115122,U1=(G)=>G.search(/(Adept|Timelost|Harrowed)/)!==-1;function z1(G){switch(G){case 2:return"common";case 3:return"uncommon";case 4:return"rare";case 5:return"legendary";case 6:return"exotic";default:return""}}var j1=(G)=>{switch(G){case 1:return"Primary";case 2:return"Special";case 3:return"Heavy";default:return""}},R1=(G)=>{switch(G){case 1:return"kinetic";case 2:return"arc";case 3:return"solar";case 4:return"void";case 6:return"stasis";case 7:return"strand";default:return""}};var H1=(G)=>{switch(G){case 1498876634:return"kinetic";case 2465295065:return"energy";case 953998645:return"power";default:return""}};var r1=F({label:"adept",formatToDb:(G,$)=>{const Q=L(G,$);return p.includes(Q.hash)||U1(Q?.displayProperties.name)},getFromDb:(G)=>`${G.adept}`}),s1=F({label:"ammo",formatToDb:(G,$)=>{const X=L(G,$).equippingBlock?.ammoType;if(typeof X!=="undefined")return j1(X);return""},getFromDb:(G)=>G.ammo}),e1=F({label:"craftable",formatToDb:(G,$)=>{const Q=L(G,$);return o.includes(Q.hash)},getFromDb:(G)=>`${G.craftable}`}),a1=F({label:"energy",formatToDb:(G,$)=>{const Q=L(G,$);if(typeof Q.defaultDamageTypeHash!=="undefined"){const X=$.DestinyDamageTypeDefinition[Q.defaultDamageTypeHash].enumValue;return R1(X)}return},getFromDb:(G)=>G.energy??""}),t1=F({label:"event",formatToDb:(G,$)=>{const Q=L(G,$),X=W1(Q),W=r.includes(Q.hash)?4:M1(X);return O1(W??void 0)},getFromDb:(G)=>G.event??""}),G2=F({label:"foundry",formatToDb:(G,$)=>{const Q=L(G,$),X=Q.hash.toString();let W=((X in I?I[X]:void 0)??Q.traitIds?.find((J)=>J.startsWith("foundry."))?.replace("_","-")?.replace("x-m","x m"))?.replace("foundry.","");const Y=Q.secondaryIcon;if(Y){const J=n[Y];if(J)W=J}return W},getFromDb:(G)=>G.foundry??""}),$2=F({label:"frame",formatToDb:(G,$)=>{const X=L(G,$).sockets?.socketEntries[0].singleInitialItemHash;return(X?L(X,$):void 0)?.displayProperties.name??void 0},getFromDb:(G)=>G.frame??""}),J2=F({label:"name",formatToDb:(G,$)=>{return L(G,$).displayProperties.name},getFromDb:(G)=>G.name}),Q2=F({label:"perk",formatToDb:(G,$)=>{const Q=L(G,$);return E(Q,$).map((W)=>W.map((Y)=>Y.displayProperties.name)).flat(1)},getFromDb:(G)=>G.perk}),O2=F({label:"rarity",formatToDb:(G,$)=>{const X=L(G,$).inventory?.tierType??0;return z1(X)},getFromDb:(G)=>G.rarity}),M2=F({label:"rpm",formatToDb:(G,$)=>{return L(G,$).stats?.stats[4284893193]?.value},getFromDb:(G)=>G.rpm?`${G.rpm}`:""}),X2=F({label:"season",formatToDb:(G,$)=>{const Q=L(G,$),X=Q.quality,W=X?.displayVersionWatermarkIcons[X.currentVersion];let Y=X1(W);if(s.includes(Q.hash))Y=22;return Y??void 0},getFromDb:(G)=>`${G.season}`??""}),q2=F({label:"slot",formatToDb:(G,$)=>{const X=L(G,$).equippingBlock?.equipmentSlotTypeHash;return H1(X)},getFromDb:(G)=>G.slot}),K2=F({label:"source",formatToDb:(G,$)=>{const Q=L(G,$),W=(Q.collectibleHash?$.DestinyCollectibleDefinition[Q.collectibleHash]:void 0)?.sourceHash;return Q1(Q.hash,W)},getFromDb:(G)=>G.source??""}),W2=F({label:"sunset",formatToDb:(G,$)=>{const Q=L(G,$),X=Q?.quality?.versions[Q.quality.currentVersion].powerCapHash;if(typeof X!=="undefined")return $.DestinyPowerCapDefinition[X].powerCap`${G.sunset}`}),Y2=F({label:"trait_1",formatToDb:(G,$)=>{const Q=L(G,$);return E(Q,$)[2]?.map((W)=>W.displayProperties.name)||[]},getFromDb:(G)=>G.trait_1}),U2=F({label:"trait_2",formatToDb:(G,$)=>{const Q=L(G,$);return E(Q,$)[3]?.map((W)=>W.displayProperties.name)||[]},getFromDb:(G)=>G.trait_2}),j2=F({label:"weapon",formatToDb:(G,$)=>{return L(G,$).itemTypeDisplayName},getFromDb:(G)=>G.weapon}),R2=F({label:"zoom",formatToDb:(G,$)=>{return L(G,$).stats?.stats[3555269338]?.value},getFromDb:(G)=>G.zoom?`${G.zoom}`:""}),v={adept:r1,ammo:s1,craftable:e1,energy:a1,event:t1,foundry:G2,frame:$2,name:J2,perk:Q2,rarity:O2,rpm:M2,season:X2,slot:q2,source:K2,sunset:W2,trait_1:Y2,trait_2:U2,weapon:j2,zoom:R2},T1=i((G,$)=>{const Q=L(G,$),{icon:X}=Q.displayProperties,W=Q.quality,Y=g(X),J=W?.displayVersionWatermarkIcons[W.currentVersion],q=J?g(J):void 0;return{hash:G,iconSrc:Y,watermarkSrc:q}});var z2=function(G,$){return Object.values(v).reduce((Q,X)=>{const W=X.label,Y=X.formatToDb(G,$);return Q={...Q,[W]:Y},Q},Object.assign({}))},H2=function(G,$){return T1(G,$)};function l(G,$){const Q=[];for(let X of G){const W={...z2(X.hash,$),...H2(X.hash,$)};Q.push(W)}return Q}var Z1=Object.values(v).map((G)=>({name:G.label,getFn:G.getFromDb}));var L1=function(G){const $=Y1(G);return l($,G)};async function T2(){const G=await d();return L1(G)}export{Z1 as weaponSearchOptionKeys,T2 as getSearchDbFromDestinyApi,A1 as decompressJson,B1 as compressJson,L1 as buildSearchDatabase}; diff --git a/dist/src/index.d.ts b/dist/src/index.d.ts index 14c1019..5c256ab 100644 --- a/dist/src/index.d.ts +++ b/dist/src/index.d.ts @@ -1,3 +1,3 @@ -export { decompressJson, compressJson } from "@/utils"; +export { decompressJson, compressJson } from "@/utils/json"; export { buildSearchDatabase, getSearchDbFromDestinyApi, weaponSearchOptionKeys, } from "@/weapons"; export type { KeywordType, WeaponSearchDbItem, WeaponSearchKeywords, WeaponSearchMetadataKeys, WeaponSearchKeywordSchema, WeaponSearchMetadataSchema, KeywordDefinition, } from "@/weapons"; diff --git a/dist/src/lib/weapons/reduceResolvers.d.ts b/dist/src/lib/weapons/reduceResolvers.d.ts index 945fa44..0360b34 100644 --- a/dist/src/lib/weapons/reduceResolvers.d.ts +++ b/dist/src/lib/weapons/reduceResolvers.d.ts @@ -2,6 +2,6 @@ import { AllDestinyManifestComponents, DestinyInventoryItemDefinition } from "bu import { WeaponSearchDbItem, WeaponSearchKeywordSchema } from "./schema"; export default function reduceAllResolvers(weapons: DestinyInventoryItemDefinition[], defs: AllDestinyManifestComponents): WeaponSearchDbItem[]; export declare const weaponSearchOptionKeys: { - name: "energy" | "adept" | "ammo" | "craftable" | "event" | "foundry" | "frame" | "name" | "perk" | "rarity" | "rpm" | "season" | "slot" | "source" | "sunset" | "trait_1" | "trait_2" | "weapon" | "zoom"; + name: "adept" | "ammo" | "craftable" | "energy" | "event" | "foundry" | "frame" | "name" | "perk" | "rarity" | "rpm" | "season" | "slot" | "source" | "sunset" | "trait_1" | "trait_2" | "weapon" | "zoom"; getFn: (searchDbItem: WeaponSearchKeywordSchema) => import("../../types").SearchValue; }[]; diff --git a/dist/src/utils/category/index.d.ts b/dist/src/utils/category/index.d.ts new file mode 100644 index 0000000..73d4823 --- /dev/null +++ b/dist/src/utils/category/index.d.ts @@ -0,0 +1,8 @@ +import { DestinyInventoryItemDefinition } from "bungie-api-ts/destiny2"; +export declare function hasWeaponItemCategory(item: DestinyInventoryItemDefinition): boolean | undefined; +export declare function hasDummyItemCategory(item: DestinyInventoryItemDefinition): boolean | undefined; +declare const _default: { + hasWeaponItemCategory: typeof hasWeaponItemCategory; + hasDummyItemCategory: typeof hasDummyItemCategory; +}; +export default _default; diff --git a/dist/src/utils/index.d.ts b/dist/src/utils/index.d.ts index 9c3b022..5964673 100644 --- a/dist/src/utils/index.d.ts +++ b/dist/src/utils/index.d.ts @@ -1,22 +1 @@ -import { TierType, AllDestinyManifestComponents, DamageType, DestinyInventoryItemDefinition, DestinyAmmunitionType } from "bungie-api-ts/destiny2"; -export declare function getInventoryItem(inventoryItemHash: number, definitions: AllDestinyManifestComponents): DestinyInventoryItemDefinition; -export declare function mapItemSocketsToInventoryItems(item: DestinyInventoryItemDefinition, defs: AllDestinyManifestComponents): DestinyInventoryItemDefinition[][]; -export declare function getWatermark(item: DestinyInventoryItemDefinition): string | undefined; -export declare const getItemSource: (itemHash: number, sourceHash?: number) => string | string[]; -export declare const getAmmoType: (ammoType: DestinyAmmunitionType) => "" | "Primary" | "Special" | "Heavy"; -export declare const getEnergyFromDamageType: (damageType?: DamageType | null) => "" | "kinetic" | "arc" | "solar" | "void" | "stasis" | "strand"; -export declare const getSlotFromSlotHash: (slotHash?: number | null) => "" | "kinetic" | "energy" | "power"; -export declare function getRarityFromTierType(tier?: TierType): "common" | "uncommon" | "rare" | "legendary" | "exotic" | ""; -export declare const getTierTypeFromRarity: (rarity?: string) => 0 | 2 | 4 | 3 | 5 | 6; -export declare const getSeasonNumberFromWatermark: (watermarkSrc?: string) => number | null; -export declare const getSeasonNameFromNumber: (season?: number) => string; -export declare const getEventFromNumber: (event?: number) => string | undefined; -export declare const getEventFromWatermark: (watermarkSrc?: string) => number | null; -export declare function hasWeaponItemCategory(item: DestinyInventoryItemDefinition): boolean | undefined; -export declare function hasDummyItemCategory(item: DestinyInventoryItemDefinition): boolean | undefined; -export declare function getWeaponInventoryItems(defs: AllDestinyManifestComponents): DestinyInventoryItemDefinition[]; -export declare const getIsAdeptFromName: (name: string) => boolean; -export declare const getBungieApiUrl: (url: string) => string; -export declare function compressJson(json: string): string; -export declare function decompressJson(compressed: string): string; export { default as sorter, ValueType } from "./sorter"; diff --git a/dist/src/utils/items/index.d.ts b/dist/src/utils/items/index.d.ts new file mode 100644 index 0000000..2fad0cc --- /dev/null +++ b/dist/src/utils/items/index.d.ts @@ -0,0 +1,6 @@ +import { AllDestinyManifestComponents, DestinyInventoryItemDefinition } from "bungie-api-ts/destiny2"; +export declare function getInventoryItem(inventoryItemHash: number, definitions: AllDestinyManifestComponents): DestinyInventoryItemDefinition; +export declare function mapItemSocketsToInventoryItems(item: DestinyInventoryItemDefinition, defs: AllDestinyManifestComponents): DestinyInventoryItemDefinition[][]; +export declare function getWatermark(item: DestinyInventoryItemDefinition): string | undefined; +export declare function getWeaponInventoryItems(defs: AllDestinyManifestComponents): DestinyInventoryItemDefinition[]; +export declare const getIsAdeptFromName: (name: string) => boolean; diff --git a/dist/src/utils/json/index.d.ts b/dist/src/utils/json/index.d.ts new file mode 100644 index 0000000..5c00352 --- /dev/null +++ b/dist/src/utils/json/index.d.ts @@ -0,0 +1,2 @@ +export declare function compressJson(json: string): string; +export declare function decompressJson(compressed: string): string; diff --git a/dist/src/utils/mapping/itemProperties.d.ts b/dist/src/utils/mapping/itemProperties.d.ts new file mode 100644 index 0000000..afd2894 --- /dev/null +++ b/dist/src/utils/mapping/itemProperties.d.ts @@ -0,0 +1,6 @@ +import { DamageType, DestinyAmmunitionType, TierType } from "bungie-api-ts/destiny2"; +export declare const getAmmoType: (ammoType: DestinyAmmunitionType) => "" | "Primary" | "Special" | "Heavy"; +export declare const getEnergyFromDamageType: (damageType?: DamageType | null) => "" | "kinetic" | "arc" | "solar" | "void" | "stasis" | "strand"; +export declare function getRarityFromTierType(tier?: TierType): "" | "common" | "uncommon" | "rare" | "legendary" | "exotic"; +export declare const getTierTypeFromRarity: (rarity?: string) => 0 | 2 | 4 | 3 | 5 | 6; +export declare const getSlotFromSlotHash: (slotHash?: number | null) => "" | "kinetic" | "energy" | "power"; diff --git a/dist/src/utils/mapping/sources.d.ts b/dist/src/utils/mapping/sources.d.ts new file mode 100644 index 0000000..5fc4180 --- /dev/null +++ b/dist/src/utils/mapping/sources.d.ts @@ -0,0 +1,10 @@ +export declare const getItemSource: (itemHash: number, sourceHash?: number) => string | string[]; +export declare const getEventFromNumber: (event?: number) => string | undefined; +export declare const getEventFromWatermark: (watermarkSrc?: string) => number | null; +export declare const getSeasonNumberFromWatermark: (watermarkSrc?: string) => number | null; +export declare const getSeasonNameFromNumber: (season?: number) => string; +declare const _default: { + getEventFromNumber: (event?: number | undefined) => string | undefined; + getEventFromWatermark: (watermarkSrc?: string | undefined) => number | null; +}; +export default _default; diff --git a/dist/src/utils/url/index.d.ts b/dist/src/utils/url/index.d.ts new file mode 100644 index 0000000..94fb440 --- /dev/null +++ b/dist/src/utils/url/index.d.ts @@ -0,0 +1 @@ +export declare const getBungieApiUrl: (url: string) => string; diff --git a/src/index.ts b/src/index.ts index b22a7ea..e289953 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export { decompressJson, compressJson } from "@/utils"; +export { decompressJson, compressJson } from "@/utils/json"; export { buildSearchDatabase, diff --git a/src/lib/client/index.ts b/src/lib/client/index.ts index 618dafa..42f1c80 100644 --- a/src/lib/client/index.ts +++ b/src/lib/client/index.ts @@ -1,6 +1,7 @@ -import { ValueType, sorter, getTierTypeFromRarity } from "@/utils"; +import { ValueType, sorter } from "@/utils"; import type { WeaponSearchDbItem } from "@/weapons"; import type { ClientSearchResults } from "./types"; +import { getTierTypeFromRarity } from "@/utils/mapping/itemProperties"; type ClientWeaponSearchResults = ClientSearchResults; diff --git a/src/lib/weapons/index.ts b/src/lib/weapons/index.ts index 552c6e3..cc4800d 100644 --- a/src/lib/weapons/index.ts +++ b/src/lib/weapons/index.ts @@ -1,7 +1,7 @@ import { AllDestinyManifestComponents } from "bungie-api-ts/destiny2"; -import { getWeaponInventoryItems } from "@/utils"; import { getManifest } from "@/dataSources/destinyManifest"; import reduceAllResolvers, { weaponSearchOptionKeys } from "./reduceResolvers"; +import { getWeaponInventoryItems } from "@/utils/items"; function buildSearchDatabase(defs: AllDestinyManifestComponents) { const weapons = getWeaponInventoryItems(defs); diff --git a/src/lib/weapons/resolvers.ts b/src/lib/weapons/resolvers.ts index 00822f5..aa16704 100644 --- a/src/lib/weapons/resolvers.ts +++ b/src/lib/weapons/resolvers.ts @@ -1,18 +1,3 @@ -import { - getAmmoType, - getBungieApiUrl, - getEnergyFromDamageType, - getEventFromNumber, - getEventFromWatermark, - getInventoryItem, - getIsAdeptFromName, - getItemSource, - getRarityFromTierType, - getSeasonNumberFromWatermark, - getSlotFromSlotHash, - getWatermark, - mapItemSocketsToInventoryItems, -} from "@/utils"; import { createMetadataResolver, createResolver } from "./createResolver"; import craftableHashes from "@/data/d2-additional-info/craftable-hashes.json"; import watermarkToFoundry from "@/data/watermarkToFoundry.json"; @@ -20,6 +5,25 @@ import watermarkToFoundry from "@/data/watermarkToFoundry.json"; import extendedFoundry from "@/data/d2-additional-info/extended-foundry.json"; import adeptWeaponHashes from "@/data/d2-additional-info/adept-weapon-hashes.json"; import { S22_EXOTICS, SOTL_2023, SUNSET_MAX_POWER } from "./constants"; +import { getBungieApiUrl } from "src/utils/url"; +import { + getEventFromNumber, + getEventFromWatermark, + getItemSource, + getSeasonNumberFromWatermark, +} from "src/utils/mapping/sources"; +import { + getInventoryItem, + getIsAdeptFromName, + getWatermark, + mapItemSocketsToInventoryItems, +} from "src/utils/items"; +import { + getAmmoType, + getEnergyFromDamageType, + getRarityFromTierType, + getSlotFromSlotHash, +} from "@/utils/mapping/itemProperties"; const adept = createResolver({ label: "adept", diff --git a/src/utils/__test__/utils.test.ts b/src/utils/__test__/utils.test.ts index f5c1485..8ef9a73 100644 --- a/src/utils/__test__/utils.test.ts +++ b/src/utils/__test__/utils.test.ts @@ -1,14 +1,7 @@ import { test, expect, describe } from "bun:test"; -import { - getIsAdeptFromName, - getItemSource, - getAmmoType, - getEnergyFromDamageType, - // getEventFromWatermark, - getRarityFromTierType, - // getSlotFromSlotHash, - // getSeasonNumberFromWatermark, -} from "../index"; +import { getItemSource } from "../mapping/sources"; +import { getIsAdeptFromName } from "../items"; +import { getAmmoType, getEnergyFromDamageType, getRarityFromTierType } from "../mapping/itemProperties"; const MISSING_SOURCE_ITEM = 4024037919; // origin story const PROPHECY_SOURCE_HASH = 506073192; diff --git a/src/utils/category/index.ts b/src/utils/category/index.ts new file mode 100644 index 0000000..76d8e01 --- /dev/null +++ b/src/utils/category/index.ts @@ -0,0 +1,17 @@ +import { DestinyInventoryItemDefinition } from "bungie-api-ts/destiny2"; + +const WEAPONS_ITEM_CATEGORY = 1; +const DUMMIES_ITEM_CATEGORY = 3109687656; + +export function hasWeaponItemCategory(item: DestinyInventoryItemDefinition) { + return item.itemCategoryHashes?.includes(WEAPONS_ITEM_CATEGORY); +} + +export function hasDummyItemCategory(item: DestinyInventoryItemDefinition) { + return item.itemCategoryHashes?.includes(DUMMIES_ITEM_CATEGORY); +} + +export default { + hasWeaponItemCategory, + hasDummyItemCategory, +}; diff --git a/src/utils/index.ts b/src/utils/index.ts index 581d1c2..d2b7425 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,335 +1,6 @@ -import { - TierType, - AllDestinyManifestComponents, - DamageType, - DestinyInventoryItemDefinition, - DestinyAmmunitionType, -} from "bungie-api-ts/destiny2"; -import { compress, decompress } from "lz-string"; -import watermarkToSeason from "@/data/d2-additional-info/watermark-to-season.json"; -import watermarkToEvent from "@/data/d2-additional-info/watermark-to-event.json"; -import { sourceLookup } from "@/data/sourceInfoToItemLookUp"; -import { SocketPlugSources } from "../types"; -import seasonTags from "@/data/d2-additional-info/season-tags.json"; -import { D2EventInfo } from "@/data/d2-additional-info/d2-event-info"; - -export function getInventoryItem( - inventoryItemHash: number, - definitions: AllDestinyManifestComponents -) { - const item = definitions.DestinyInventoryItemDefinition[inventoryItemHash]; - return item; -} - -function getReusablePlugItems( - plugSetHash: number, - definitions: AllDestinyManifestComponents -) { - const plugSetDef = plugSetHash - ? definitions.DestinyPlugSetDefinition[plugSetHash].reusablePlugItems - : []; - return plugSetDef; -} - -const isValidDisplayPlugCategory = (hash: number) => { - return hash !== 2947756142; // activity tracker -}; - -function getValidPlugsForSocketType( - socketTypeHash: number, - defs: AllDestinyManifestComponents -) { - // Get list of allowed plugs' hashes - const plugWhitelist = new Set(); - // Get SocketTypeDef - const socketTypeDef = - socketTypeHash && defs.DestinySocketTypeDefinition[socketTypeHash]; - - if (!socketTypeDef) { - return plugWhitelist; - } - - socketTypeDef.plugWhitelist.forEach((entry) => { - if (isValidDisplayPlugCategory(entry.categoryHash)) { - plugWhitelist.add(entry.categoryHash); - } - }); - return plugWhitelist; -} - -export function mapItemSocketsToInventoryItems( - item: DestinyInventoryItemDefinition, - defs: AllDestinyManifestComponents -): DestinyInventoryItemDefinition[][] { - let perks: DestinyInventoryItemDefinition[][] = []; - if (item?.sockets) { - const { socketCategories, socketEntries } = item.sockets; - - const traitSocketDef = socketCategories.find( - (x) => x.socketCategoryHash === 4241085061 - ); - - if (traitSocketDef) { - const { socketIndexes } = traitSocketDef; - - for (const index of socketIndexes) { - const entry = socketEntries.at(index); - if (!entry) { - continue; - } - - // Get PlugSetDefinition for given socket index - const plugSetHash = - entry?.reusablePlugSetHash || entry?.randomizedPlugSetHash || 0; - - const socketTypeHash = entry.socketTypeHash; - const singleInitialItemHash = entry.singleInitialItemHash; - - if ( - (!plugSetHash && - entry?.plugSources && - entry.plugSources & SocketPlugSources.ReusablePlugItems) || - !socketTypeHash - ) { - continue; - } - - const plugWhitelist = getValidPlugsForSocketType(socketTypeHash, defs); - - const initialItem = getInventoryItem(singleInitialItemHash, defs); - - const plugSetDef = getReusablePlugItems(plugSetHash, defs); - - if ( - initialItem && - !plugSetDef.find((p) => p.plugItemHash === initialItem.hash) - ) { - plugSetDef.push({ - plugItemHash: initialItem.hash, - currentlyCanRoll: true, - // curatedExclusive: true, - craftingRequirements: { - materialRequirementHashes: [], - unlockRequirements: [], - }, - }); - } - - const socketItemDefs = plugSetDef - .map((curr) => { - const inventoryItemDef = getInventoryItem(curr.plugItemHash, defs); - // const sandboxPerkHash = inventoryItemDef.perks?.at(0)?.perkHash; - // const sandboxPerk = sandboxPerkHash - // ? defs.DestinySandboxPerkDefinition[sandboxPerkHash] - // : null; - - return inventoryItemDef || null; - }) - .filter((x): x is DestinyInventoryItemDefinition => x !== null) - .filter( - (x) => - x.plug?.plugCategoryHash && - plugWhitelist.has(x.plug.plugCategoryHash) - ); - if (socketItemDefs.length) { - perks.push(socketItemDefs); - } - } - } - } - - return perks; -} - -export function getWatermark(item: DestinyInventoryItemDefinition) { - const quality = item.quality; - const watermark = - quality?.displayVersionWatermarkIcons[quality.currentVersion]; - return watermark; -} - -export const getItemSource = ( - itemHash: number, - sourceHash?: number -): string | string[] => { - if (sourceHash && sourceLookup[sourceHash]) { - return sourceLookup[sourceHash]; - } else if (itemHash && sourceLookup[itemHash]) { - return sourceLookup[itemHash]; - } - return ""; -}; - -export const getAmmoType = (ammoType: DestinyAmmunitionType) => { - switch (ammoType) { - case 1: - return "Primary"; - case 2: - return "Special"; - case 3: - return "Heavy"; - default: - return ""; - } -}; - -export const getEnergyFromDamageType = (damageType?: DamageType | null) => { - switch (damageType) { - case 1: - return "kinetic"; - case 2: - return "arc"; - case 3: - return "solar"; - case 4: - return "void"; - case 6: - return "stasis"; - case 7: - return "strand"; - default: - return ""; - } -}; - -export const getSlotFromSlotHash = (slotHash?: number | null) => { - switch (slotHash) { - case 1498876634: - return "kinetic"; - case 2465295065: - return "energy"; - case 953998645: - return "power"; - default: - return ""; - } -}; - -// transform bungie TierType to plain text -export function getRarityFromTierType(tier?: TierType) { - switch (tier) { - case 2: - return "common"; - case 3: - return "uncommon"; - case 4: - return "rare"; - case 5: - return "legendary"; - case 6: - return "exotic"; - default: - return ""; - } -} - -export const getTierTypeFromRarity = (rarity?: string) => { - switch (rarity) { - case "common": - return 2; - case "uncommon": - return 3; - case "rare": - return 4; - case "legendary": - return 5; - case "exotic": - return 6; - default: - return 0; - } -}; - -export const getSeasonNumberFromWatermark = (watermarkSrc?: string) => { - if (!watermarkSrc) return null; - const strippedSrc = watermarkSrc.replace("https://www.bungie.net", ""); - const watermarkItem = - watermarkToSeason[strippedSrc as keyof typeof watermarkToSeason]; - if (!watermarkItem) return null; - - return watermarkItem; -}; - -const reverseSeasonTagLookup = Object.fromEntries( - Object.entries(seasonTags).map(([k, v]) => [v.toString(), k]) -); - -export const getSeasonNameFromNumber = (season?: number) => { - // const season = item.season; - // const event = item.event; - - if (!season) return ""; - // if (event) { - // const tag = D2EventInfo[event as keyof typeof D2EventInfo]; - - // return `${tag.name}`; - // } - if (!season) return ""; - - const tag = reverseSeasonTagLookup[season.toString()]; - return `${tag}`; -}; - -export const getEventFromNumber = (event?: number) => { - // const season = item.season; - // const event = item.event; - if (event) { - const tag = D2EventInfo[event as keyof typeof D2EventInfo]; - - return `${tag.name}`; - } -}; -export const getEventFromWatermark = (watermarkSrc?: string) => { - if (!watermarkSrc) return null; - const strippedSrc = watermarkSrc.replace("https://www.bungie.net", ""); - const watermarkItem = - watermarkToEvent[strippedSrc as keyof typeof watermarkToEvent]; - if (!watermarkItem) return null; - - return watermarkItem; -}; - -const WEAPONS_ITEM_CATEGORY = 1; -const DUMMIES_ITEM_CATEGORY = 3109687656; - -export function hasWeaponItemCategory(item: DestinyInventoryItemDefinition) { - return item.itemCategoryHashes?.includes(WEAPONS_ITEM_CATEGORY); -} - -export function hasDummyItemCategory(item: DestinyInventoryItemDefinition) { - return item.itemCategoryHashes?.includes(DUMMIES_ITEM_CATEGORY); -} - -const Y1_ACRIUS_HASH = 1744115122; -function isValidWeaponItem(item: DestinyInventoryItemDefinition) { - return !!( - hasWeaponItemCategory(item) && - !hasDummyItemCategory(item) && - item.hash !== Y1_ACRIUS_HASH - ); -} -export function getWeaponInventoryItems(defs: AllDestinyManifestComponents) { - const itemDefs = defs.DestinyInventoryItemDefinition; - return Object.values(itemDefs).filter(isValidWeaponItem); -} - // itemDef.itemCategoryHashes?.includes(1) && // !itemDef.itemCategoryHashes.includes(3109687656) && // itemDef.hash !== 1744115122 // acrius -export const getIsAdeptFromName = (name: string) => - name.search(/(Adept|Timelost|Harrowed)/) !== -1; - -export const getBungieApiUrl = (url: string) => `https://www.bungie.net${url}`; - -// compress using LZ on server -export function compressJson(json: string) { - return compress(json); -} - -// decompress on client -export function decompressJson(compressed: string) { - return decompress(compressed); -} export { default as sorter, ValueType } from "./sorter"; diff --git a/src/utils/items/index.ts b/src/utils/items/index.ts new file mode 100644 index 0000000..43b449a --- /dev/null +++ b/src/utils/items/index.ts @@ -0,0 +1,159 @@ +import { + AllDestinyManifestComponents, + DestinyInventoryItemDefinition, +} from "bungie-api-ts/destiny2"; +import { SocketPlugSources } from "../../types"; +import { hasDummyItemCategory, hasWeaponItemCategory } from "../category"; + +export function getInventoryItem( + inventoryItemHash: number, + definitions: AllDestinyManifestComponents +) { + const item = definitions.DestinyInventoryItemDefinition[inventoryItemHash]; + return item; +} + +function getReusablePlugItems( + plugSetHash: number, + definitions: AllDestinyManifestComponents +) { + const plugSetDef = plugSetHash + ? definitions.DestinyPlugSetDefinition[plugSetHash].reusablePlugItems + : []; + return plugSetDef; +} + +const isValidDisplayPlugCategory = (hash: number) => { + return hash !== 2947756142; // activity tracker +}; + +function getValidPlugsForSocketType( + socketTypeHash: number, + defs: AllDestinyManifestComponents +) { + // Get list of allowed plugs' hashes + const plugWhitelist = new Set(); + // Get SocketTypeDef + const socketTypeDef = + socketTypeHash && defs.DestinySocketTypeDefinition[socketTypeHash]; + + if (!socketTypeDef) { + return plugWhitelist; + } + + socketTypeDef.plugWhitelist.forEach((entry) => { + if (isValidDisplayPlugCategory(entry.categoryHash)) { + plugWhitelist.add(entry.categoryHash); + } + }); + return plugWhitelist; +} + +export function mapItemSocketsToInventoryItems( + item: DestinyInventoryItemDefinition, + defs: AllDestinyManifestComponents +): DestinyInventoryItemDefinition[][] { + let perks: DestinyInventoryItemDefinition[][] = []; + if (item?.sockets) { + const { socketCategories, socketEntries } = item.sockets; + + const traitSocketDef = socketCategories.find( + (x) => x.socketCategoryHash === 4241085061 + ); + + if (traitSocketDef) { + const { socketIndexes } = traitSocketDef; + + for (const index of socketIndexes) { + const entry = socketEntries.at(index); + if (!entry) { + continue; + } + + // Get PlugSetDefinition for given socket index + const plugSetHash = + entry?.reusablePlugSetHash || entry?.randomizedPlugSetHash || 0; + + const socketTypeHash = entry.socketTypeHash; + const singleInitialItemHash = entry.singleInitialItemHash; + + if ( + (!plugSetHash && + entry?.plugSources && + entry.plugSources & SocketPlugSources.ReusablePlugItems) || + !socketTypeHash + ) { + continue; + } + + const plugWhitelist = getValidPlugsForSocketType(socketTypeHash, defs); + + const initialItem = getInventoryItem(singleInitialItemHash, defs); + + const plugSetDef = getReusablePlugItems(plugSetHash, defs); + + if ( + initialItem && + !plugSetDef.find((p) => p.plugItemHash === initialItem.hash) + ) { + plugSetDef.push({ + plugItemHash: initialItem.hash, + currentlyCanRoll: true, + // curatedExclusive: true, + craftingRequirements: { + materialRequirementHashes: [], + unlockRequirements: [], + }, + }); + } + + const socketItemDefs = plugSetDef + .map((curr) => { + const inventoryItemDef = getInventoryItem(curr.plugItemHash, defs); + // const sandboxPerkHash = inventoryItemDef.perks?.at(0)?.perkHash; + // const sandboxPerk = sandboxPerkHash + // ? defs.DestinySandboxPerkDefinition[sandboxPerkHash] + // : null; + + return inventoryItemDef || null; + }) + .filter((x): x is DestinyInventoryItemDefinition => x !== null) + .filter( + (x) => + x.plug?.plugCategoryHash && + plugWhitelist.has(x.plug.plugCategoryHash) + ); + if (socketItemDefs.length) { + perks.push(socketItemDefs); + } + } + } + } + + return perks; +} + +export function getWatermark(item: DestinyInventoryItemDefinition) { + const quality = item.quality; + const watermark = + quality?.displayVersionWatermarkIcons[quality.currentVersion]; + return watermark; +} + +const Y1_ACRIUS_HASH = 1744115122; + +function isValidWeaponItem(item: DestinyInventoryItemDefinition) { + return !!( + hasWeaponItemCategory(item) && + !hasDummyItemCategory(item) && + item.hash !== Y1_ACRIUS_HASH + ); +} + +export function getWeaponInventoryItems(defs: AllDestinyManifestComponents) { + const itemDefs = defs.DestinyInventoryItemDefinition; + return Object.values(itemDefs).filter(isValidWeaponItem); +} + +export const getIsAdeptFromName = (name: string) => + name.search(/(Adept|Timelost|Harrowed)/) !== -1; diff --git a/src/utils/json/index.ts b/src/utils/json/index.ts new file mode 100644 index 0000000..f737ba5 --- /dev/null +++ b/src/utils/json/index.ts @@ -0,0 +1,11 @@ +import { compress, decompress } from "lz-string"; + +// compress using LZ on server +export function compressJson(json: string) { + return compress(json); +} + +// decompress on client +export function decompressJson(compressed: string) { + return decompress(compressed); +} diff --git a/src/utils/mapping/itemProperties.ts b/src/utils/mapping/itemProperties.ts new file mode 100644 index 0000000..faac5b6 --- /dev/null +++ b/src/utils/mapping/itemProperties.ts @@ -0,0 +1,85 @@ +import { + DamageType, + DestinyAmmunitionType, + TierType, +} from "bungie-api-ts/destiny2"; + +export const getAmmoType = (ammoType: DestinyAmmunitionType) => { + switch (ammoType) { + case 1: + return "Primary"; + case 2: + return "Special"; + case 3: + return "Heavy"; + default: + return ""; + } +}; + +export const getEnergyFromDamageType = (damageType?: DamageType | null) => { + switch (damageType) { + case 1: + return "kinetic"; + case 2: + return "arc"; + case 3: + return "solar"; + case 4: + return "void"; + case 6: + return "stasis"; + case 7: + return "strand"; + default: + return ""; + } +}; + +// transform bungie TierType to plain text +export function getRarityFromTierType(tier?: TierType) { + switch (tier) { + case 2: + return "common"; + case 3: + return "uncommon"; + case 4: + return "rare"; + case 5: + return "legendary"; + case 6: + return "exotic"; + default: + return ""; + } +} + +export const getTierTypeFromRarity = (rarity?: string) => { + switch (rarity) { + case "common": + return 2; + case "uncommon": + return 3; + case "rare": + return 4; + case "legendary": + return 5; + case "exotic": + return 6; + default: + return 0; + } +}; + +export const getSlotFromSlotHash = (slotHash?: number | null) => { + switch (slotHash) { + case 1498876634: + return "kinetic"; + case 2465295065: + return "energy"; + case 953998645: + return "power"; + default: + return ""; + } +}; diff --git a/src/utils/mapping/sources.ts b/src/utils/mapping/sources.ts new file mode 100644 index 0000000..9ecf869 --- /dev/null +++ b/src/utils/mapping/sources.ts @@ -0,0 +1,72 @@ +import { D2EventInfo } from "@/data/d2-additional-info/d2-event-info"; +import watermarkToEvent from "@/data/d2-additional-info/watermark-to-event.json"; +import watermarkToSeason from "@/data/d2-additional-info/watermark-to-season.json"; +import seasonTags from "@/data/d2-additional-info/season-tags.json"; +import { sourceLookup } from "@/data/sourceInfoToItemLookUp"; + +export const getItemSource = ( + itemHash: number, + sourceHash?: number +): string | string[] => { + if (sourceHash && sourceLookup[sourceHash]) { + return sourceLookup[sourceHash]; + } else if (itemHash && sourceLookup[itemHash]) { + return sourceLookup[itemHash]; + } + return ""; +}; + +export const getEventFromNumber = (event?: number) => { + // const season = item.season; + // const event = item.event; + if (event) { + const tag = D2EventInfo[event as keyof typeof D2EventInfo]; + + return `${tag.name}`; + } +}; + +export const getEventFromWatermark = (watermarkSrc?: string) => { + if (!watermarkSrc) return null; + const strippedSrc = watermarkSrc.replace("https://www.bungie.net", ""); + const watermarkItem = + watermarkToEvent[strippedSrc as keyof typeof watermarkToEvent]; + if (!watermarkItem) return null; + + return watermarkItem; +}; + +export const getSeasonNumberFromWatermark = (watermarkSrc?: string) => { + if (!watermarkSrc) return null; + const strippedSrc = watermarkSrc.replace("https://www.bungie.net", ""); + const watermarkItem = + watermarkToSeason[strippedSrc as keyof typeof watermarkToSeason]; + if (!watermarkItem) return null; + + return watermarkItem; +}; + +const reverseSeasonTagLookup = Object.fromEntries( + Object.entries(seasonTags).map(([k, v]) => [v.toString(), k]) +); + +export const getSeasonNameFromNumber = (season?: number) => { + // const season = item.season; + // const event = item.event; + + if (!season) return ""; + // if (event) { + // const tag = D2EventInfo[event as keyof typeof D2EventInfo]; + + // return `${tag.name}`; + // } + if (!season) return ""; + + const tag = reverseSeasonTagLookup[season.toString()]; + return `${tag}`; +}; + +export default { + getEventFromNumber, + getEventFromWatermark, +}; diff --git a/src/utils/url/index.ts b/src/utils/url/index.ts new file mode 100644 index 0000000..15a2cff --- /dev/null +++ b/src/utils/url/index.ts @@ -0,0 +1 @@ +export const getBungieApiUrl = (url: string) => `https://www.bungie.net${url}`; diff --git a/tsconfig.json b/tsconfig.json index 9db9e19..7f960f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,7 +30,8 @@ "paths": { "@/data/*": ["src/data/*"], "@/dataSources/*": ["src/lib/dataSources/*"], - "@/utils": ["src/utils/"], + "@/utils": ["src/utils"], + "@/utils/*": ["src/utils/*"], "@/weapons": ["src/lib/weapons/"], "@/": ["src/index"] }