1import{a as Js}from"./chunk-ON77WQFB.js";import{a as tc,b as Hr}from"./chunk-FEL5EJ5I.js";import{b as fc}from"./chunk-S3UQLLGP.js";import{a as cr,b as lr,d as nc,e as rc,f as ic,h as mc,i as uc,j as pc,k as dc}from"./chunk-PY7G5PVG.js";import{a as oc,b as ac,c as sc,d as cc,i as lc}from"./chunk-DZI3HRNK.js";import{a as mr}from"./chunk-Y53TBXMU.js";import{a as q}from"./chunk-CTXXCV6D.js";import"./chunk-QGV2SCWW.js";import"./chunk-U2TRHY6E.js";import{p as as,x as gc}from"./chunk-4OYFNPRL.js";import{a as ec}from"./chunk-TRIOGUWX.js";import{a as Qs,b as Zs}from"./chunk-ZXHOWLUX.js";import{a as Ji,b as eo,c as Ws}from"./chunk-UE5ULROF.js";import"./chunk-TZU2NBVH.js";import"./chunk-3F4BUNGD.js";import"./chunk-JZCFTHEU.js";import"./chunk-T6452TBV.js";import"./chunk-MT7S72SU.js";import"./chunk-I3PKXUQY.js";import"./chunk-ZM7R3TQL.js";import{b as $s}from"./chunk-6T3JPYOH.js";import"./chunk-QYBM7ARD.js";import{b as Xs,c as sr}from"./chunk-YIFNTXG4.js";import{a as Ys}from"./chunk-DBG7H3QS.js";import"./chunk-QQXN7E2F.js";import"./chunk-CFLZ5SIH.js";import"./chunk-MY3POL2E.js";import"./chunk-GRO5IA3M.js";import{a as ls,b as Ds}from"./chunk-A7KIUEW7.js";import{d as Hs}from"./chunk-F6BXBXEZ.js";import{a as zs,b as Ks}from"./chunk-33VYYCE5.js";import{b as Bs,c as Vs}from"./chunk-EGDXODY6.js";import"./chunk-R6K3LN3J.js";import{b as Br,c as Vr}from"./chunk-7DA5TMOK.js";import"./chunk-USO7UDL4.js";import"./chunk-EGRHWZRV.js";import{c as qs}from"./chunk-H5BBA3OX.js";import"./chunk-7LJMDPW3.js";import"./chunk-EGRHWZRV.js";import"./chunk-4BTDYZJ5.js";import{c as fs,g as ks}from"./chunk-SKSA23O5.js";import{a as Wn}from"./chunk-TGVOC52U.js";import{b as Gs}from"./chunk-XWOFDSC4.js";import{a as pn}from"./chunk-4NGXKNQT.js";import{a as Yn,b as Ne}from"./chunk-FF4DVN4O.js";import"./chunk-6KZ5E2JO.js";import"./chunk-C4D3OINQ.js";import{b as Wa}from"./chunk-76U5IEON.js";import"./chunk-OLREH2LN.js";import{b as Qt}from"./chunk-ULCFTYPT.js";import"./chunk-DSNGNY2N.js";import"./chunk-R7G37BHB.js";import{a as Us}from"./chunk-N5EVLFMV.js";import{f as Ns,i as Os,l as Fs,m as Ls}from"./chunk-23BYS4UU.js";import{a as Ra,b as ka,h as Ka}from"./chunk-PJKQZJJZ.js";import{g as za}from"./chunk-LRQMLUXO.js";import{a as Da,b as Xn,c as Na}from"./chunk-GD642OZI.js";import"./chunk-EM3O57HT.js";import{a as js}from"./chunk-V5GMAM2J.js";import"./chunk-K6N2LRW5.js";import"./chunk-BFB3ZWQU.js";import"./chunk-RKYH5BUH.js";import"./chunk-V6OAWPZ2.js";import"./chunk-VGD6U42S.js";import"./chunk-Y5MBM7AD.js";import{d as Fr,f as nr,g as ss,h as cs,j as ar}from"./chunk-PDLO5YCF.js";import"./chunk-MPTBXOQX.js";import{a as _a}from"./chunk-QQY5USOI.js";import{b as Wt}from"./chunk-FHNFLYSA.js";import{a as Qn}from"./chunk-4OJY3MD4.js";import{a as ya,d as Sa}from"./chunk-CSP5HATW.js";import"./chunk-XAA7S2WJ.js";import{a as Zn,d as La,i as Jn,z as $a}from"./chunk-72AV3I3Q.js";import{a as Oa}from"./chunk-RJ3TZPH3.js";import{a as Ca,b as xa,g as Ba,h as Va,i as Ha,j as Ga,p as ja}from"./chunk-IFKV2DTZ.js";import{a as ba,b as Ta,e as Ea,f as Ia,g as wa,h as qe,k as Ma,l as Aa}from"./chunk-UG3332RX.js";import{f as ws,gb as or,h as Ms,ha as As,i as ir,pa as Ps,ra as Rs}from"./chunk-HWHQ25OU.js";import"./chunk-7NTTZVDK.js";import"./chunk-BCREOCRG.js";import"./chunk-XLGLQZ3M.js";import"./chunk-PWI4LBWJ.js";import{K as Cs,L as Xt,M as xs,N as Jt,O as bs,P as Ts,Q as en,f as ot,g as _s,i as Ur,ma as rr,na as Es,oa as Is,y as ys,z as Ss}from"./chunk-AZNEAOKG.js";import"./chunk-GYXPBKOT.js";import"./chunk-XLT3OEB7.js";import"./chunk-EGRHWZRV.js";import{j as hs}from"./chunk-36YU4LOM.js";import"./chunk-V4HZXMQP.js";import"./chunk-R2XCNMIZ.js";import{b as qa}from"./chunk-PTYQ2FTN.js";import{a as ms,b as Lr,c as us,d as Ye,e as ps,f as ds}from"./chunk-BZBPPWGG.js";import{a as va,d as qn}from"./chunk-AX37GTZI.js";import{b as Ua,c as We}from"./chunk-3JVCM7V5.js";import{a as Ya,j as Ja,k as tr,l as fe,m as Yt,n as es,o as ts,p as ns,q as rs,r as is,u as os}from"./chunk-KJUD54TR.js";import{a as qt}from"./chunk-6K4RRW4O.js";import{a as ha,b as Ke}from"./chunk-S46OKC2S.js";import{a as De}from"./chunk-4D2J2JE5.js";import{va as Fa}from"./chunk-Q4K2XBFW.js";import{c as Or,e as Pa}from"./chunk-AZIARD32.js";import{D as Nr,G as ua,I as pa,N as da,aa as A,ca as fa,da as ga}from"./chunk-RLJWZLZK.js";import{b as sa,c as Kt,d as ca,e as la,f as ma}from"./chunk-VOVXNCGX.js";import{a as jt,b as Mr,f as fo,h as go,i as ho,j as vo,k as _o,l as yo}from"./chunk-YNLW4HML.js";import{a as Qa,h as Za,i as Xa,j as Ee,k as er,m as X}from"./chunk-GXXRNSBZ.js";import{d as vs,j as Tt,n as un,u as Zt,x as Oe}from"./chunk-RM7WRR2P.js";import"./chunk-4P64UJ3G.js";import"./chunk-4AF3WJLT.js";import"./chunk-HQZTCEQF.js";import"./chunk-N4TGNBOK.js";import{a as gs}from"./chunk-RM2GT4QJ.js";import{$ as zm,A as $o,B as zo,C as Ko,D as qo,E as $n,F as Wo,G as Yo,I as Qo,J as Zo,Oa as ia,Wa as oa,Z as ra,a as no,b as wr,bb as Kn,c as ro,cb as aa,d as io,e as oo,f as ao,g as so,h as co,i as ke,j as ze,k as lo,l as mo,m as uo,n as po,o as Fo,q as zt,r as Lo,s as Uo,t as kr,u as Bo,v as Vo,x as Ho,y as Go,z as jo}from"./chunk-UOCVC65W.js";import{d as ta,e as na}from"./chunk-LOEMP4YU.js";import{A as xo,Aa as Un,Ba as Bn,Ca as Vn,Da as Hn,Ea as Gn,Ga as Io,Ka as wo,La as Mo,Pb as ko,Rb as Do,Ta as Pr,Tb as N
vendor: 31,373 bytes, line 1
1o,Ua as jn,Ub as Oo,Va as Rr,Wa as Ao,a as Ar,cb as Po,i as Rt,j as dt,jb as Ro,l as bt,m as ft,qa as bo,qb as Se,rb as Ae,t as $t,ta as To,w as So,wa as Ln,x as Co,za as Eo}from"./chunk-JNGJABXR.js";import{E as Xo,H as zn,O as Jo,X as ea,da as Dr}from"./chunk-GLQ2GEPF.js";import"./chunk-ADGZKV2X.js";import{a as zi,d as Yi,e as Qi,f as Zi,g as Xi}from"./chunk-P4S4MVU6.js";import{c as Ct,d as xt,f as it,h as Fn,i as Ki,j as qi,k as Wi}from"./chunk-LC35BJX7.js";import{a as te,c as to,d as ye}from"./chunk-H7FJWLCW.js";import{Ga as ji,Ia as $i,W as St,ga as Ht,ha as Gt,wa as Gi}from"./chunk-VMOL7TFU.js";import{$c as At,A as Si,Aa as Tn,Bc as Pe,Cc as Re,Dc as mt,E as Ci,Eb as Oi,Ec as Y,Ed as Be,F as xi,Fd as Xe,G as bi,Ga as B,Gd as Bi,H as Ti,Ha as V,I as Ei,J as vt,K as ie,Ka as Ri,Kd as pt,Lc as H,Ma as $e,Md as Vi,N as Ce,Nc as f,Pa as xe,Q as Ii,Qa as En,Qb as le,Qd as be,R as he,Rb as Fi,Sa as lt,Ta as In,Wb as K,Wd as Nn,Xb as Pn,Xc as Me,Y as bn,Zc as ut,aa as wi,ab as ki,ac as Li,ad as U,ae as Hi,b as Er,bc as yt,bd as me,be as Te,cb as wn,cd as _e,dc as mn,e as Ft,ec as Rn,g as Lt,ga as re,h as Sn,ha as Mi,hb as Di,hc as kn,ja as Z,jc as we,l as Cn,md as Vt,nc as F,nd as Pt,ne as On,od as Ue,p as Ze,pa as wt,pc as L,q as je,qa as Ai,r as et,rc as Dn,s as It,sa as O,sc as nt,ta as Pi,tb as Mn,tc as rt,u as xn,ub as An,uc as C,ud as Ui,va as tt,vc as x,vd as de,wa as Bt,wc as E,wd as ee,xa as m,xb as Ni,xc as M,xd as Ir,y as ne,ya as _t,z as Ut,za as Mt,zb as h}from"./chunk-YO2RX74J.js";import{a as J,b as Ie,c as ln,d as _i,e as Ot,f as $m,h as yi,i as ae}from"./chunk-CJN3JB5D.js";var dl=$m((pl,Kr)=>{(function(t){if(typeof pl=="object"&&typeof Kr<"u")Kr.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var a;typeof window<"u"?a=window:typeof global<"u"?a=global:typeof self<"u"?a=self:a=this,a.localforage=t()}})(function(){var t,a,e;return(function n(i,p,g){function P($,Fe){if(!p[$]){if(!i[$]){var T=typeof ln=="function"&&ln;if(!Fe&&T)return T($,!0);if(I)return I($,!0);var k=new Error("Cannot find module '"+$+"'");throw k.code="MODULE_NOT_FOUND",k}var se=p[$]={exports:{}};i[$][0].call(se.exports,function(ue){var Qe=i[$][1][ue];return P(Qe||ue)},se,se.exports,n,i,p,g)}return p[$].exports}for(var I=typeof ln=="function"&&ln,R=0;R<g.length;R++)P(g[R]);return P})({1:[function(n,i,p){(function(g){"use strict";var P=g.MutationObserver||g.WebKitMutationObserver,I;if(P){var R=0,$=new P(ue),Fe=g.document.createTextNode("");$.observe(Fe,{characterData:!0}),I=function(){Fe.data=R=++R%2}}else if(!g.setImmediate&&typeof g.MessageChannel<"u"){var T=new g.MessageChannel;T.port1.onmessage=ue,I=function(){T.port2.postMessage(0)}}else"document"in g&&"onreadystatechange"in g.document.createElement("script")?I=function(){var pe=g.document.createElement("script");pe.onreadystatechange=function(){ue(),pe.onreadystatechange=null,pe.parentNode.removeChild(pe),pe=null},g.document.documentElement.appendChild(pe)}:I=function(){setTimeout(ue,0)};var k,se=[];function ue(){k=!0;for(var pe,at,ge=se.length;ge;){for(at=se,se=[],pe=-1;++pe<ge;)at[pe]();ge=se.length}k=!1}i.exports=Qe;function Qe(pe){se.push(pe)===1&&!k&&I()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,i,p){"use strict";var g=n(1);function P(){}var I={},R=["REJECTED"],$=["FULFILLED"],Fe=["PENDING"];i.exports=T;function T(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=Fe,this.queue=[],this.outcome=void 0,b!==P&&Qe(this,b)}T.prototype.catch=function(b){return this.then(null,b)},T.prototype.then=function(b,G){if(typeof b!="function"&&this.state===$||typeof G!="function"&&this.state===R)return this;var N=new this.constructor(P);if(this.state!==Fe){var W=this.state===$?b:G;se(N,W,this.outcome)}else this.queue.push(new k(N,b,G));return N};function k(b,G,N){this.promise=b,typeof G=="function"&&(this.onFulfilled=G,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}k.prototype.callFulfilled=function(b){I.resolve(this.promise,b)},k.prototype.otherCallFulfilled=function(b){se(this.promise,this.onFulfilled,b)},k.prototype.callRejected=function(b){I.reject(this.promise,b)},k.prototype.otherCallRejected=function(b){se(this.promise,this.onRejected,b)};function se(b,G,N){g(function(){var W;try{W=G(N)}catch(ve){return I.reject(b,ve)}W===b?I.reject(b,new TypeError("Cannot resolve promise with itself")):I.resolve(b,W)})}I.resolve=function(b,G){var N=pe(ue,G);if(N.status==="error")return I.reject(b,N.value);var W=N.value;if(W)Qe(b,W);else{b.state=$,b.outcome=G;for(var ve=-1,Le=b.queue.length;++ve<Le;)b.queue[ve].callFulfilled(G)}return b},I.reject=function(b,G){b.state=R,b.outcome=G;for(var N=-1,W=b.queue.length;++N<W;)b.queue[N].callRejected(G);return b};function ue(b){var G=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof G=="function")return function(){G.apply(b,arguments)}}function Qe(b,G){var N=!1;function W(He){N||(N=!0,I.reject(b,He))}function ve(He){N||(N=!0,I.resolve(b,He))}function Le(){G(ve,W)}var Ve=pe(Le);Ve.status==="error"&&W(Ve.value)}function pe(b,G){var N={};try{N.value=b(G),N.status="success"}catch(W){N.status="error",N.value=W}return N}T.resolve=at;function at(b){return b instanceof this?b:I.resolve(new this(P),b)}T.reject=ge;function ge(b){var G=new this(P);return I.reject(G,b)}T.all=fr;function fr(b){var G=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=b.length,W=!1;if(!N)return this.resolve([]);for(var ve=new Array(N),Le=0,Ve=-1,He=new this(P);++Ve<N;)st(b[Ve],Ve);return He;function st(an,vn){G.resolve(an).then(gr,function(Dt){W||(W=!0,I.reject(He,Dt))});function gr(Dt){ve[vn]=Dt,++Le===N&&!W&&(W=!0,I.resolve(He,ve))}}}T.race=Et;function Et(b){var G=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=b.length,W=!1;if(!N)return this.resolve([]);for(var ve=-1,Le=new this(P);++ve<N;)Ve(b[ve]);return Le;function Ve(He){G.resolve(He).then(function(st){W||(W=!0,I.resolve(Le,st))},function(st){W||(W=!0,I.reject(Le,st))})}}},{1:1}],3:[function(n,i,p){(function(g){"use strict";typeof g.Promise!="function"&&(g.Promise=n(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,i,p){"use strict";var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function P(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function I(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch(r){return}}var R=I();function $(){try{if(!R||!R.open)return!1;var r=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),s=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!r||s)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch(o){return!1}}function Fe(r,s){r=r||[],s=s||{};try{return new Blob(r,s)}catch(c){if(c.name!=="TypeError")throw c;for(var o=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,l=new o,u=0;u<r.length;u+=1)l.append(r[u]);return l.getBlob(s.type)}}typeof Promise>"u"&&n(3);var T=Promise;function k(r,s){s&&r.then(function(o){s(null,o)},function(o){s(o)})}function se(r,s,o){typeof s=="function"&&r.then(s),typeof o=="function"&&r.catch(o)}function ue(r){return typeof r!="string"&&(console.warn(r+" used as a key, but it is not a string."),r=String(r)),r}function Qe(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var pe="local-forage-detect-blob-support",at=void 0,ge={},fr=Object.prototype.toString,Et="readonly",b="readwrite";function G(r){for(var s=r.length,o=new ArrayBuffer(s),l=new Uint8Array(o),u=0;u<s;u++)l[u]=r.charCodeAt(u);return o}function N(r){return new T(function(s){var o=r.transaction(pe,b),l=Fe([""]);o.objectStore(pe).put(l,"key"),o.onabort=function(u){u.preventDefault(),u.stopPropagation(),s(!1)},o.oncomplete=function(){var u=navigator.userAgent.match(/Chrome\/(\d+)/),c=navigator.userAgent.match(/Edge\//);s(c||!u||parseInt(u[1],10)>=43)}}).catch(function(){return!1})}function W(r){return typeof at=="boolean"?T.resolve(at):N(r).then(function(s){return at=s,at})}function ve(r){var s=ge[r.name],o={};o.promise=new T(function(l,u){o.resolve=l,o.reject=u}),s.deferredOperations.push(o),s.dbReady?s.dbReady=s.dbReady.then(function(){return o.promise}):s.dbReady=o.promise}function Le(r){var s=ge[r.name],o=s.deferredOperations.pop();if(o)return o.resolve(),o.promise}function Ve(r,s){var o=ge[r.name],l=o.deferredOperations.pop();if(l)return l.reject(s),l.promise}function He(r,s){return new T(function(o,l){if(ge[r.name]=ge[r.name]||Xr(),r.db)if(s)ve(r),r.db.close();else return o(r.db);var u=[r.name];s&&u.push(r.version);var c=R.open.apply(R,u);s&&(c.onupgradeneeded=function(d){var v=c.result;try{v.createObjectStore(r.storeName),d.oldVersion<=1&&v.createObjectStore(pe)}catch(_){if(_.name==="ConstraintError")console.warn('The database "'+r.name+'" has been upgraded from version '+d.oldVersion+" to version "+d.newVersion+', but the storage "'+r.storeName+'" already exists.');else throw _}}),c.onerror=function(d){d.preventDefault(),l(c.error)},c.onsuccess=function(){var d=c.result;d.onversionchange=function(v){v.target.close()},o(d),Le(r)}})}function st(r){return He(r,!1)}function an(r){return He(r,!0)}function vn(r,s){if(!r.db)return!0;var o=!r.db.objectStoreNames.contains(r.storeName),l=r.version<r.db.version,u=r.version>r.db.version;if(l&&(r.version!==s&&console.warn('The database "'+r.name+`" can't be downgraded from version `+r.db.version+" to version "+r.version+"."),r.version=r.db.version),u||o){if(o){var c=r.db.version+1;c>r.version&&(r.version=c)}return!0}return!1}function gr(r){return new T(function(s,o){var l=new FileReader;l.onerror=o,l.onloadend=function(u){var c=btoa(u.target.result||"");s({__local_forage_encoded_blob:!0,data:c,type:r.type})},l.readAsBinaryString(r)})}function Dt(r){var s=G(atob(r.data));return Fe([s],{type:r.type})}function Zr(r){return r&&r.__local_forage_encoded_blob}function zl(r){var s=this,o=s._initReady().then(function(){var l=ge[s._dbInfo.name];if(l&&l.dbReady)return l.dbReady});return se(o,r,r),o}function Kl(r){ve(r);for(var s=ge[r.name],o=s.forages,l=0;l<o.length;l++){var u=o[l];u._dbInfo.db&&(u._dbInfo.db.close(),u._dbInfo.db=null)}return r.db=null,st(r).then(function(c){return r.db=c,vn(r)?an(r):c}).then(function(c){r.db=s.db=c;for(var d=0;d<o.length;d++)o[d]._dbInfo.db=c}).catch(function(c){throw Ve(r,c),c})}function ct(r,s,o,l){l===void 0&&(l=1);try{var u=r.db.transaction(r.storeName,s);o(null,u)}catch(c){if(l>0&&(!r.db||c.name==="InvalidStateError"||c.name==="NotFoundError"))return T.resolve().then(function(){if(!r.db||c.name==="NotFoundError"&&!r.db.objectStoreNames.contains(r.storeName)&&r.version<=r.db.version)return r.db&&(r.version=r.db.version+1),an(r)}).then(function(){return Kl(r).then(function(){ct(r,s,o,l-1)})}).catch(o);o(c)}}function Xr(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ql(r){var s=this,o={db:null};if(r)for(var l in r)o[l]=r[l];var u=ge[o.name];u||(u=Xr(),ge[o.name]=u),u.forages.push(s),s._initReady||(s._initReady=s.ready,s.ready=zl);var c=[];function d(){return T.resolve()}for(var v=0;v<u.forages.length;v++){var _=u.forages[v];_!==s&&c.push(_._initReady().catch(d))}var y=u.forages.slice(0);return T.all(c).then(function(){return o.db=u.db,st(o)}).then(function(S){return o.db=S,vn(o,s._defaultConfig.version)?an(o):S}).then(function(S){o.db=u.db=S,s._dbInfo=o;for(var w=0;w<y.length;w++){var D=y[w];D!==s&&(D._dbInfo.db=o.db,D._dbInfo.version=o.version)}})}function Wl(r,s){var o=this;r=ue(r);var l=new T(function(u,c){o.ready().then(function(){ct(o._dbInfo,Et,function(d,v){if(d)return c(d);try{var _=v.objectStore(o._dbInfo.storeName),y=_.get(r);y.onsuccess=function(){var S=y.result;S===void 0&&(S=null),Zr(S)&&(S=Dt(S)),u(S)},y.onerror=function(){c(y.error)}}catch(S){c(S)}})}).catch(c)});return k(l,s),l}function Yl(r,s){var o=this,l=new T(function(u,c){o.ready().then(function(){ct(o._dbInfo,Et,function(d,v){if(d)return c(d);try{var _=v.objectStore(o._dbInfo.storeName),y=_.openCursor(),S=1;y.onsuccess=function(){var w=y.result;if(w){var D=w.value;Zr(D)&&(D=Dt(D));var j=r(D,w.key,S++);j!==void 0?u(j):w.continue()}else u()},y.onerror=function(){c(y.error)}}catch(w){c(w)}})}).catch(c)});return k(l,s),l}function Ql(r,s,o){var l=this;r=ue(r);var u=new T(function(c,d){var v;l.ready().then(function(){return v=l._dbInfo,fr.call(s)==="[object Blob]"?W(v.db).then(function(_){return _?s:gr(s)}):s}).then(function(_){ct(l._dbInfo,b,function(y,S){if(y)return d(y);try{var w=S.objectStore(l._dbInfo.storeName);_===null&&(_=void 0);var D=w.put(_,r);S.oncomplete=function(){_===void 0&&(_=null),c(_)},S.onabort=S.onerror=function(){var j=D.error?D.error:D.transaction.error;d(j)}}catch(j){d(j)}})}).catch(d)});return k(u,o),u}function Zl(r,s){var o=this;r=ue(r);var l=new T(function(u,c){o.ready().then(function(){ct(o._dbInfo,b,function(d,v){if(d)return c(d);try{var _=v.objectStore(o._dbInfo.storeName),y=_.delete(r);v.oncomplete=function(){u()},v.onerror=function(){c(y.error)},v.onabort=function(){var S=y.error?y.error:y.transaction.error;c(S)}}catch(S){c(S)}})}).catch(c)});return k(l,s),l}function Xl(r){var s=this,o=new T(function(l,u){s.ready().then(function(){ct(s._dbInfo,b,function(c,d){if(c)return u(c);try{var v=d.objectStore(s._dbInfo.storeName),_=v.clear();d.oncomplete=function(){l()},d.onabort=d.onerror=function(){var y=_.error?_.error:_.transaction.error;u(y)}}catch(y){u(y)}})}).catch(u)});return k(o,r),o}function Jl(r){var s=this,o=new T(function(l,u){s.ready().then(function(){ct(s._dbInfo,Et,function(c,d){if(c)return u(c);try{var v=d.objectStore(s._dbInfo.storeName),_=v.count();_.onsuccess=function(){l(_.result)},_.onerror=function(){u(_.error)}}catch(y){u(y)}})}).catch(u)});return k(o,r),o}function em(r,s){var o=this,l=new T(function(u,c){if(r<0){u(null);return}o.ready().then(function(){ct(o._dbInfo,Et,function(d,v){if(d)return c(d);try{var _=v.objectStore(o._dbInfo.storeName),y=!1,S=_.openKeyCursor();S.onsuccess=function(){var w=S.result;if(!w){u(null);return}r===0||y?u(w.key):(y=!0,w.advance(r))},S.onerror=function(){c(S.error)}}catch(w){c(w)}})}).catch(c)});return k(l,s),l}function tm(r){var s=this,o=new T(function(l,u){s.ready().then(function(){ct(s._dbInfo,Et,function(c,d){if(c)return u(c);try{var v=d.objectStore(s._dbInfo.storeName),_=v.openKeyCursor(),y=[];_.onsuccess=function(){var S=_.result;if(!S){l(y);return}y.push(S.key),S.continue()},_.onerror=function(){u(_.error)}}catch(S){u(S)}})}).catch(u)});return k(o,r),o}function nm(r,s){s=Qe.apply(this,arguments);var o=this.config();r=typeof r!="function"&&r||{},r.name||(r.name=r.name||o.name,r.storeName=r.storeName||o.storeName);var l=this,u;if(!r.name)u=T.reject("Invalid arguments");else{var c=r.name===o.name&&l._dbInfo.db,d=c?T.resolve(l._dbInfo.db):st(r).then(function(v){var _=ge[r.name],y=_.forages;_.db=v;for(var S=0;S<y.length;S++)y[S]._dbInfo.db=v;return v});r.storeName?u=d.then(function(v){if(v.objectStoreNames.contains(r.storeName)){var _=v.version+1;ve(r);var y=ge[r.name],S=y.forages;v.close();for(var w=0;w<S.length;w++){var D=S[w];D._dbInfo.db=null,D._dbInfo.version=_}var j=new T(function(z,ce){var oe=R.open(r.name,_);oe.onerror=function(Ge){var cn=oe.result;cn.close(),ce(Ge)},oe.onupgradeneeded=function(){var Ge=oe.result;Ge.deleteObjectStore(r.storeName)},oe.onsuccess=function(){var Ge=oe.result;Ge.close(),z(Ge)}});return j.then(function(z){y.db=z;for(var ce=0;ce<S.length;ce++){var oe=S[ce];oe._dbInfo.db=z,Le(oe._dbInfo)}}).catch(function(z){throw(Ve(r,z)||T.resolve()).catch(function(){}),z})}}):u=d.then(function(v){ve(r);var _=ge[r.name],y=_.forages;v.close();for(var S=0;S<y.length;S++){var w=y[S];w._dbInfo.db=null}var D=new T(function(j,z){var ce=R.deleteDatabase(r.name);ce.onerror=function(){var oe=ce.result;oe&&oe.close(),z(ce.error)},ce.onblocked=function(){console.warn('dropInstance blocked for database "'+r.name+'" until all open connections are closed')},ce.onsuccess=function(){var oe=ce.result;oe&&oe.close(),j(oe)}});return D.then(function(j){_.db=j;for(var z=0;z<y.length;z++){var ce=y[z];Le(ce._dbInfo)}}).catch(function(j){throw(Ve(r,j)||T.resolve()).catch(function(){}),j})})}return k(u,s),u}var rm={_driver:"asyncStorage",_initStorage:ql,_support:$(),iterate:Yl,getItem:Wl,setItem:Ql,removeItem:Zl,clear:Xl,length:Jl,key:em,keys:tm,dropInstance:nm};function im(){return typeof openDatabase=="function"}var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",om="~~local_forage_type~",Jr=/^~~local_forage_type~([^~]+)~/,_n="__lfsc__:",hr=_n.length,vr="arbf",_r="blob",ei="si08",ti="ui08",ni="uic8",ri="si16",ii="si32",oi="ur16",ai="ui32",si="fl32",ci="fl64",li=hr+vr.length,mi=Object.prototype.toString;function ui(r){var s=r.length*.75,o=r.length,l,u=0,c,d,v,_;r[r.length-1]==="="&&(s--,r[r.length-2]==="="&&s--);var y=new ArrayBuffer(s),S=new Uint8Array(y);for(l=0;l<o;l+=4)c=gt.indexOf(r[l]),d=gt.indexOf(r[l+1]),v=gt.indexOf(r[l+2]),_=gt.indexOf(r[l+3]),S[u++]=c<<2|d>>4,S[u++]=(d&15)<<4|v>>2,S[u++]=(v&3)<<6|_&63;return y}function yr(r){var s=new Uint8Array(r),o="",l;for(l=0;l<s.length;l+=3)o+=gt[s[l]>>2],o+=gt[(s[l]&3)<<4|s[l+1]>>4],o+=gt[(s[l+1]&15)<<2|s[l+2]>>6],o+=gt[s[l+2]&63];return s.length%3===2?o=o.substring(0,o.length-1)+"=":s.length%3===1&&(o=o.substring(0,o.length-2)+"=="),o}function am(r,s){var o="";if(r&&(o=mi.call(r)),r&&(o==="[object ArrayBuffer]"||r.buffer&&mi.call(r.buffer)==="[object ArrayBuffer]")){var l,u=_n;r instanceof ArrayBuffer?(l=r,u+=vr):(l=r.buffer,o==="[object Int8Array]"?u+=ei:o==="[object Uint8Array]"?u+=ti:o==="[object Uint8ClampedArray]"?u+=ni:o==="[object Int16Array]"?u+=ri:o==="[object Uint16Array]"?u+=oi:o==="[object Int32Array]"?u+=ii:o==="[object Uint32Array]"?u+=ai:o==="[object Float32Array]"?u+=si:o==="[object Float64Array]"?u+=ci:s(new Error("Failed to get type for BinaryArray"))),s(u+yr(l))}else if(o==="[object Blob]"){var c=new FileReader;c.onload=function(){var d=om+r.type+"~"+yr(this.result);s(_n+_r+d)},c.readAsArrayBuffer(r)}else try{s(JSON.stringify(r))}catch(d){console.error("Couldn't convert value into a JSON string: ",r),s(null,d)}}function sm(r){if(r.substring(0,hr)!==_n)return JSON.parse(r);var s=r.substring(li),o=r.substring(hr,li),l;if(o===_r&&Jr.test(s)){var u=s.match(Jr);l=u[1],s=s.substring(u[0].length)}var c=ui(s);switch(o){case vr:return c;case _r:return Fe([c],{type:l});case ei:return new Int8Array(c);case ti:return new Uint8Array(c);case ni:return new Uint8ClampedArray(c);case ri:return new Int16Array(c);case oi:return new Uint16Array(c);case ii:return new Int32Array(c);case ai:return new Uint32Array(c);case si:return new Float32Array(c);case ci:return new Float64Array(c);default:throw new Error("Unkown type: "+o)}}var Sr={serialize:am,deserialize:sm,stringToBuffer:ui,bufferToString:yr};function pi(r,s,o,l){r.executeSql("CREATE TABLE IF NOT EXISTS "+s.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],o,l)}function cm(r){var s=this,o={db:null};if(r)for(var l in r)o[l]=typeof r[l]!="string"?r[l].toString():r[l];var u=new T(function(c,d){try{o.db=openDatabase(o.name,String(o.version),o.description,o.size)}catch(v){return d(v)}o.db.transaction(function(v){pi(v,o,function(){s._dbInfo=o,c()},function(_,y){d(y)})},d)});return o.serializer=Sr,u}function ht(r,s,o,l,u,c){r.executeSql(o,l,u,function(d,v){v.code===v.SYNTAX_ERR?d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[s.storeName],function(_,y){y.rows.length?c(_,v):pi(_,s,function(){_.executeSql(o,l,u,c)},c)},c):c(d,v)},c)}function lm(r,s){var o=this;r=ue(r);var l=new T(function(u,c){o.ready().then(function(){var d=o._dbInfo;d.db.transaction(function(v){ht(v,d,"SELECT * FROM "+d.storeName+" WHERE key = ? LIMIT 1",[r],function(_,y){var S=y.rows.length?y.rows.item(0).value:null;S&&(S=d.serializer.deserialize(S)),u(S)},function(_,y){c(y)})})}).catch(c)});return k(l,s),l}function mm(r,s){var o=this,l=new T(function(u,c){o.ready().then(function(){var d=o._dbInfo;d.db.transaction(function(v){ht(v,d,"SELECT * FROM "+d.storeName,[],function(_,y){for(var S=y.rows,w=S.length,D=0;D<w;D++){var j=S.item(D),z=j.value;if(z&&(z=d.serializer.deserialize(z)),z=r(z,j.key,D+1),z!==void 0){u(z);return}}u()},function(_,y){c(y)})})}).catch(c)});return k(l,s),l}function di(r,s,o,l){var u=this;r=ue(r);var c=new T(function(d,v){u.ready().then(function(){s===void 0&&(s=null);var _=s,y=u._dbInfo;y.serializer.serialize(s,function(S,w){w?v(w):y.db.transaction(function(D){ht(D,y,"INSERT OR REPLACE INTO "+y.storeName+" (key, value) VALUES (?, ?)",[r,S],function(){d(_)},function(j,z){v(z)})},function(D){if(D.code===D.QUOTA_ERR){if(l>0){d(di.apply(u,[r,_,o,l-1]));return}v(D)}})})}).catch(v)});return k(c,o),c}function um(r,s,o){return di.apply(this,[r,s,o,1])}function pm(r,s){var o=this;r=ue(r);var l=new T(function(u,c){o.ready().then(function(){var d=o._dbInfo;d.db.transaction(function(v){ht(v,d,"DELETE FROM "+d.storeName+" WHERE key = ?",[r],function(){u()},function(_,y){c(y)})})}).catch(c)});return k(l,s),l}function dm(r){var s=this,o=new T(function(l,u){s.ready().then(function(){var c=s._dbInfo;c.db.transaction(function(d){ht(d,c,"DELETE FROM "+c.storeName,[],function(){l()},function(v,_){u(_)})})}).catch(u)});return k(o,r),o}function fm(r){var s=this,o=new T(function(l,u){s.ready().then(function(){var c=s._dbInfo;c.db.transaction(function(d){ht(d,c,"SELECT COUNT(key) as c FROM "+c.storeName,[],function(v,_){var y=_.rows.item(0).c;l(y)},function(v,_){u(_)})})}).catch(u)});return k(o,r),o}function gm(r,s){var o=this,l=new T(function(u,c){o.ready().then(function(){var d=o._dbInfo;d.db.transaction(function(v){ht(v,d,"SELECT key FROM "+d.storeName+" WHERE id = ? LIMIT 1",[r+1],function(_,y){var S=y.rows.length?y.rows.item(0).key:null;u(S)},function(_,y){c(y)})})}).catch(c)});return k(l,s),l}function hm(r){var s=this,o=new T(function(l,u){s.ready().then(function(){var c=s._dbInfo;c.db.transaction(function(d){ht(d,c,"SELECT key FROM "+c.storeName,[],function(v,_){for(var y=[],S=0;S<_.rows.length;S++)y.push(_.rows.item(S).key);l(y)},function(v,_){u(_)})})}).catch(u)});return k(o,r),o}function vm(r){return new T(function(s,o){r.transaction(function(l){l.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(u,c){for(var d=[],v=0;v<c.rows.length;v++)d.push(c.rows.item(v).name);s({db:r,storeNames:d})},function(u,c){o(c)})},function(l){o(l)})})}function _m(r,s){s=Qe.apply(this,arguments);var o=this.config();r=typeof r!="function"&&r||{},r.name||(r.name=r.name||o.name,r.storeName=r.storeName||o.storeName);var l=this,u;return r.name?u=new T(function(c){var d;r.name===o.name?d=l._dbInfo.db:d=openDatabase(r.name,"","",0),r.storeName?c({db:d,storeNames:[r.storeName]}):c(vm(d))}).then(function(c){return new T(function(d,v){c.db.transaction(function(_){function y(j){return new T(function(z,ce){_.executeSql("DROP TABLE IF EXISTS "+j,[],function(){z()},function(oe,Ge){ce(Ge)})})}for(var S=[],w=0,D=c.storeNames.length;w<D;w++)S.push(y(c.storeNames[w]));T.all(S).then(function(){d()}).catch(function(j){v(j)})},function(_){v(_)})})}):u=T.reject("Invalid arguments"),k(u,s),u}var ym={_driver:"webSQLStorage",_initStorage:cm,_support:im(),iterate:mm,getItem:lm,setItem:um,removeItem:pm,clear:dm,length:fm,key:gm,keys:hm,dropInstance:_m};function Sm(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch(r){return!1}}function fi(r,s){var o=r.name+"/";return r.storeName!==s.storeName&&(o+=r.storeName+"/"),o}function Cm(){var r="_localforage_support_test";try{return localStorage.setItem(r,!0),localStorage.removeItem(r),!1}catch(s){return!0}}function xm(){return!Cm()||localStorage.length>0}function bm(r){var s=this,o={};if(r)for(var l in r)o[l]=r[l];return o.keyPrefix=fi(r,s._defaultConfig),xm()?(s._dbInfo=o,o.serializer=Sr,T.resolve()):T.reject()}function Tm(r){var s=this,o=s.ready().then(function(){for(var l=s._dbInfo.keyPrefix,u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(l)===0&&localStorage.removeItem(c)}});return k(o,r),o}function Em(r,s){var o=this;r=ue(r);var l=o.ready().then(function(){var u=o._dbInfo,c=localStorage.getItem(u.keyPrefix+r);return c&&(c=u.serializer.deserialize(c)),c});return k(l,s),l}function Im(r,s){var o=this,l=o.ready().then(function(){for(var u=o._dbInfo,c=u.keyPrefix,d=c.length,v=localStorage.length,_=1,y=0;y<v;y++){var S=localStorage.key(y);if(S.indexOf(c)===0){var w=localStorage.getItem(S);if(w&&(w=u.serializer.deserialize(w)),w=r(w,S.substring(d),_++),w!==void 0)return w}}});return k(l,s),l}function wm(r,s){var o=this,l=o.ready().then(function(){var u=o._dbInfo,c;try{c=localStorage.key(r)}catch(d){c=null}return c&&(c=c.substring(u.keyPrefix.length)),c});return k(l,s),l}function Mm(r){var s=this,o=s.ready().then(function(){for(var l=s._dbInfo,u=localStorage.length,c=[],d=0;d<u;d++){var v=localStorage.key(d);v.indexOf(l.keyPrefix)===0&&c.push(v.substring(l.keyPrefix.length))}return c});return k(o,r),o}function Am(r){var s=this,o=s.keys().then(function(l){return l.length});return k(o,r),o}function Pm(r,s){var o=this;r=ue(r);var l=o.ready().then(function(){var u=o._dbInfo;localStorage.removeItem(u.keyPrefix+r)});return k(l,s),l}function Rm(r,s,o){var l=this;r=ue(r);var u=l.ready().then(function(){s===void 0&&(s=null);var c=s;return new T(function(d,v){var _=l._dbInfo;_.serializer.serialize(s,function(y,S){if(S)v(S);else try{localStorage.setItem(_.keyPrefix+r,y),d(c)}catch(w){(w.name==="QuotaExceededError"||w.name==="NS_ERROR_DOM_QUOTA_REACHED")&&v(w),v(w)}})})});return k(u,o),u}function km(r,s){if(s=Qe.apply(this,arguments),r=typeof r!="function"&&r||{},!r.name){var o=this.config();r.name=r.name||o.name,r.storeName=r.storeName||o.storeName}var l=this,u;return r.name?u=new T(function(c){r.storeName?c(fi(r,l._defaultConfig)):c(r.name+"/")}).then(function(c){for(var d=localStorage.length-1;d>=0;d--){var v=localStorage.key(d);v.indexOf(c)===0&&localStorage.removeItem(v)}}):u=T.reject("Invalid arguments"),k(u,s),u}var Dm={_driver:"localStorageWrapper",_initStorage:bm,_support:Sm(),iterate:Im,getItem:Em,setItem:Rm,removeItem:Pm,clear:Tm,length:Am,key:wm,keys:Mm,dropInstance:km},Nm=function(s,o){return s===o||typeof s=="number"&&typeof o=="number"&&isNaN(s)&&isNaN(o)},Om=function(s,o){for(var l=s.length,u=0;u<l;){if(Nm(s[u],o))return!0;u++}return!1},gi=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"},sn={},hi={},Nt={INDEXEDDB:rm,WEBSQL:ym,LOCALSTORAGE:Dm},Fm=[Nt.INDEXEDDB._driver,Nt.WEBSQL._driver,Nt.LOCALSTORAGE._driver],yn=["dropInstance"],Cr=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(yn),Lm={description:"",driver:Fm.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Um(r,s){r[s]=function(){var o=arguments;return r.ready().then(function(){return r[s].apply(r,o)})}}function xr(){for(var r=1;r<arguments.length;r++){var s=arguments[r];if(s)for(var o in s)s.hasOwnProperty(o)&&(gi(s[o])?arguments[0][o]=s[o].slice():arguments[0][o]=s[o])}return arguments[0]}var Bm=(function(){function r(s){P(this,r);for(var o in Nt)if(Nt.hasOwnProperty(o)){var l=Nt[o],u=l._driver;this[o]=u,sn[u]||this.defineDriver(l)}this._defaultConfig=xr({},Lm),this._config=xr({},this._defaultConfig,s),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return r.prototype.config=function(o){if((typeof o>"u"?"undefined":g(o))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var l in o){if(l==="storeName"&&(o[l]=o[l].replace(/\W/g,"_")),l==="version"&&typeof o[l]!="number")return new Error("Database version must be a number.");this._config[l]=o[l]}return"driver"in o&&o.driver?this.setDriver(this._config.driver):!0}else return typeof o=="string"?this._config[o]:this._config},r.prototype.defineDriver=function(o,l,u){var c=new T(function(d,v){try{var _=o._driver,y=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!o._driver){v(y);return}for(var S=Cr.concat("_initStorage"),w=0,D=S.length;w<D;w++){var j=S[w],z=!Om(yn,j);if((z||o[j])&&typeof o[j]!="function"){v(y);return}}var ce=function(){for(var cn=function(Gm){return function(){var jm=new Error("Method "+Gm+" is not implemented by the current driver"),vi=T.reject(jm);return k(vi,arguments[arguments.length-1]),vi}},br=0,Hm=yn.length;br<Hm;br++){var Tr=yn[br];o[Tr]||(o[Tr]=cn(Tr))}};ce();var oe=function(cn){sn[_]&&console.info("Redefining LocalForage driver: "+_),sn[_]=o,hi[_]=cn,d()};"_support"in o?o._support&&typeof o._support=="function"?o._support().then(oe,v):oe(!!o._support):oe(!0)}catch(Ge){v(Ge)}});return se(c,l,u),c},r.prototype.driver=function(){return this._driver||null},r.prototype.getDriver=function(o,l,u){var c=sn[o]?T.resolve(sn[o]):T.reject(new Error("Driver not found."));return se(c,l,u),c},r.prototype.getSerializer=function(o){var l=T.resolve(Sr);return se(l,o),l},r.prototype.ready=function(o){var l=this,u=l._driverSet.then(function(){return l._ready===null&&(l._ready=l._initDriver()),l._ready});return se(u,o,o),u},r.prototype.setDriver=function(o,l,u){var c=this;gi(o)||(o=[o]);var d=this._getSupportedDrivers(o);function v(){c._config.driver=c.driver()}function _(w){return c._extend(w),v(),c._ready=c._initStorage(c._config),c._ready}function y(w){return function(){var D=0;function j(){for(;D<w.length;){var z=w[D];return D++,c._dbInfo=null,c._ready=null,c.getDriver(z).then(_).catch(j)}v();var ce=new Error("No available storage method found.");return c._driverSet=T.reject(ce),c._driverSet}return j()}}var S=this._driverSet!==null?this._driverSet.catch(function(){return T.resolve()}):T.resolve();return this._driverSet=S.then(function(){var w=d[0];return c._dbInfo=null,c._ready=null,c.getDriver(w).then(function(D){c._driver=D._driver,v(),c._wrapLibraryMethodsWithReady(),c._initDriver=y(d)})}).catch(function(){v();var w=new Error("No available storage method found.");return c._driverSet=T.reject(w),c._driverSet}),se(this._driverSet,l,u),this._driverSet},r.prototype.supports=function(o){return!!hi[o]},r.prototype._extend=function(o){xr(this,o)},r.prototype._getSupportedDrivers=function(o){for(var l=[],u=0,c=o.length;u<c;u++){var d=o[u];this.supports(d)&&l.push(d)}return l},r.prototype._wrapLibraryMethodsWithReady=function(){for(var o=0,l=Cr.length;o<l;o++)Um(this,Cr[o])},r.prototype.createInstance=function(o){return new r(o)},r})(),Vm=new Bm;i.exports=Vm},{3:3}]},{},[4])(4)}
1)});var Km=t=>["banner",t],qm=()=>["banner","close"],vc=()=>["banner","action"];function Wm(t,a){if(t&1&&M(0,"shared-svg-icon",12),t&2){let e=f(3);At(e.iconClasses),C("src",a)}}function Ym(t,a){if(t&1&&M(0,"myth-image",11),t&2){let e=a;C("src",e.src)("type",e.type)("width",e.width)("height",e.height)("srcset",e.srcset??null)}}function Qm(t,a){if(t&1&&(x(0,"div"),F(1,Wm,1,3,"shared-svg-icon",10)(2,Ym,1,5,"myth-image",11),E()),t&2){let e,n=f(2),i=Ue(0);At(n.iconZoneClasses),h(),L((e=i.icon)?1:(e=i.image)?2:-1,e)}}function Zm(t,a){if(t&1&&(x(0,"span"),U(1),E()),t&2){let e=f().$implicit,n=f();At(n.titleClasses),h(),me(e(a))}}function Xm(t,a){t&1&&(M(0,"span",4),Be(1,"sanitize")),t&2&&C("innerHTML",Bi(1,1,a,"html"),Mn)}function Jm(t,a){if(t&1&&(x(0,"span",5),U(1),E()),t&2){let e=f().$implicit;h(),me(e(a))}}function eu(t,a){if(t&1){let e=Y();x(0,"a",13),H("click",function(){B(e);let i=f(2);return V(i.ctaClick())}),U(1),E()}if(t&2){let e=f().$implicit,n=f(),i=Ue(0);C("variant",n.ctaVariant)("testId",de(4,vc))("href",a,An),h(),_e(" ",e(i.ctaLabelKey??"")," ")}}function tu(t,a){if(t&1){let e=Y();x(0,"a",14),H("click",function(){B(e);let i=f(2);return V(i.ctaClick())}),U(1),E()}if(t&2){let e=f().$implicit,n=f(),i=Ue(0);C("variant",n.ctaVariant)("testId",de(4,vc))("routerLink",a),h(),_e(" ",e(i.ctaLabelKey??"")," ")}}function nu(t,a){if(t&1){let e=Y();x(0,"div",1),F(1,Qm,3,3,"div",2),x(2,"div",3),F(3,Zm,2,3,"span",2),F(4,Xm,2,4,"span",4)(5,Jm,2,1,"span",5),F(6,eu,2,5,"a",6)(7,tu,2,5,"a",7),E(),x(8,"button",8),H("click",function(){B(e);let i=f();return V(i.close())}),M(9,"shared-svg-icon",9),E()()}if(t&2){let e,n,i,p=f(),g=Ue(0);At(p.containerClasses),C("testId",ee(8,Km,g.testId)),h(),L(g.icon||g.image?1:-1),h(2),L((e=g.titleKey)?3:-1,e),h(),L((n=g.text)?4:(n=g.textKey)?5:-1,n),h(2),L((i=g.ctaHref)?6:(i=g.ctaLink)?7:-1,i),h(2),C("testId",de(10,qm))}}var _c=(()=>{class t{#e;constructor(){this.banner=Nn.required(),this.toastId=Nn.required(),this.onDismiss=Nn.required(),this.#e=m(Wt),Es(()=>this.toastId())}get ctaVariant(){return this.banner().ctaVariant??"default"}get iconClasses(){return un("size-8 shrink-0",this.banner().iconClasses)}get iconZoneClasses(){return un("flex size-14 shrink-0 items-center justify-center overflow-hidden rounded-lg",this.banner().iconZoneClasses)}get titleClasses(){return un("dm-text-emphasized-label-s text-neutral-200",this.banner().titleClasses)}get containerClasses(){return un("flex w-[calc(100vw-2rem)] flex-row flex-nowrap items-start gap-3 rounded-lg p-3 md:ml-0 md:w-[587px] md:gap-6 md:p-6","border border-dm-neutral-800 bg-dm-neutral-850 backdrop-blur-[50px] shadow-lg",this.banner().toastClasses)}close(){this.onDismiss()()}ctaClick(){let e=this.banner().gaFlowName;e&&this.#e.sendGeneralEvent({event_name:"click-on-header-banner",flow_name:e}),this.close()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-banner-toast"]],hostAttrs:[1,"block"],inputs:{banner:[1,"banner"],toastId:[1,"toastId"],onDismiss:[1,"onDismiss"]},features:[Ui([{provide:Xa,useValue:"giveawayLandings"}])],decls:2,vars:2,consts:[[3,"testId","class",4,"transloco","translocoPrefix"],[3,"testId"],[3,"class"],[1,"flex","grow","flex-col","gap-2","md:gap-4"],[1,"text-dm-neutral-100","dm-text-label-2xs","md:dm-text-label-xs",3,"innerHTML"],[1,"text-dm-neutral-100","dm-text-label-2xs","md:dm-text-label-xs"],["dmButton","","size","sm","target","_blank","rel","noreferrer nofollow noopener",1,"w-fit",3,"variant","testId","href"],["dmButton","","size","sm",1,"w-fit",3,"variant","testId","routerLink"],["dmButton","","type","button","size","icon","animation","rotate","variant","transparent","aria-label","Close",1,"shrink-0","cursor-pointer","text-dm-neutral-300","transition-colors","hover:text-neutral-200",3,"click","testId"],["src","icon-close","svgAriaLabel","close",1,"size-6"],["svgAriaLabel","banner",3,"src","class"],["classes","max-h-full max-w-full object-contain","alt","banner image",3,"src","type","width","height","srcset"],["svgAriaLabel","banner",3,"src"],["dmButton","","size","sm","target","_blank","rel","noreferrer nofollow noopener",1,"w-fit",3,"click","variant","testId","href"],["dmButton","","size","sm",1,"w-fit",3,"click","variant","testId","routerLink"]],template:function(n,i){if
1(n&1&&(Vt(0),K(1,nu,10,11,"div",0)),n&2){let p=Pt(i.banner());h(),C("translocoPrefix",p.translocoScope)}},dependencies:[er,Ee,ze,Oe,Tt,ot,We,hs],encapsulation:2,changeDetection:0})}}return t})();var yc="dmarket-ui-banners-config",Sc="dmarket-ui-custom-banners-config",Cc="dmarket-ui-banners-text",xc=["pay"],ur=[{id:dt.WeakSteam,testId:"WeakSteam",flagKey:Rt.WeakSteam,toastClasses:"bg-[#153349]",icon:"icon-steam-weak",iconZoneClasses:"bg-dm-orange-300/4",titleKey:"Temporary problems",textKey:"Items\u2019 withdrawals and deposits might not work properly at the moment. This won\u2019t take long. Sorry for the inconvenience caused.",visibleOnMobile:!0,dismissPolicy:"session"},{id:dt.WeakDM,testId:"WeakDM",flagKey:Rt.WeakDM,toastClasses:"bg-[#153349]",icon:"icon-dm-weak",iconClasses:"text-orange-300",iconZoneClasses:"bg-dm-orange-300/4",titleKey:"Temporary problems",textKey:"Exchange and Sell Now trading operations might not be working properly at the moment. This won`t take long. Sorry for the inconvenience caused",visibleOnMobile:!0,dismissPolicy:"session"},{id:dt.Promo,testId:"Promo",flagKey:Rt.Promo,titleKey:"IEM Cologne 2026 Pick'em",translocoScope:"giveawayLandings",icon:"icon-rewarded-ads",iconZoneClasses:"bg-dm-orange-300/4",ctaLabelKey:"Make Picks",ctaHref:"https://go.dmarket.com/mff",gaFlowName:"https://go.dmarket.com/mff",visibleOnMobile:!1,dismissPolicy:{cookieKey:"promoBannerShow",ttlDays:1},excludedUrlParts:["/promo"]},{id:dt.HotFees,testId:"HotFees",flagKey:Rt.HotFeesPromo,titleKey:"Only 2% sell fees",icon:"icon-fire-tile",iconClasses:"size-14",ctaLabelKey:"Trade now",ctaLink:"/sell-items-promo",visibleOnMobile:!1,dismissPolicy:{cookieKey:"hotFeesBanner",ttlDays:1},excludedUrlParts:["/sell-items-promo"]},{id:dt.TrustShield,testId:"TrustShield",flagKey:Rt.TrustShield,titleKey:"Don`t get scammed",textKey:"Protect your trades with Dmarket Trust Shield",icon:"icon-dm-shield",iconClasses:"h-[26px] w-6",iconZoneClasses:"bg-green-400/4",ctaLabelKey:"Add to browser",ctaHref:Po,visibleOnMobile:!1,dismissPolicy:{cookieKey:"trustShieldBannerShow",ttlDays:1},excludedUrlParts:["/promo"]},{id:dt.F2fMaintenance,testId:"F2fMaintenance",flagKey:Rt.F2fMaintenance,toastClasses:"bg-[#153349]",icon:"icon-dm-weak",iconClasses:"text-orange-300",iconZoneClasses:"bg-dm-orange-300/4",titleKey:"Temporary problems",textKey:"We\u2019re making updates for Face2Face under the hood. It won\u2019t take long, please come back a bit later.",visibleOnMobile:!0,dismissPolicy:"session"}];function bc(t,a){let{banners:e,customBanners:n,gameId:i,url:p,isMobile:g,dismissed:P}=a,I=!!i&&!!n?.[i]?.includes(t.flagKey)||e[t.flagKey],R=[...xc,...t.excludedUrlParts??[]].some($=>p.includes($));return I&&!P[t.id]&&(!g||t.visibleOnMobile)&&!R}function Tc(t,a){let I=t,{id:e,flagKey:n,visibleOnMobile:i,dismissPolicy:p,excludedUrlParts:g}=I,P=Ot(I,["id","flagKey","visibleOnMobile","dismissPolicy","excludedUrlParts"]);return Ie(J({id:e},P),{text:a?.[n]||void 0})}function Ec(t){return`header-banner-${dt[t]}`}var Ic=fo({providedIn:"root"},yo({dismissed:{}}),go(()=>{let t=m(Kt);return{_cookies:m(zt),_banners:ye(t.getValue$(yc)),_customBanners:ye(t.getValue$(Sc)),_bannersText:ye(t.getValue$(Cc)),_gameId:ye(m(La).activeGameId$,{initialValue:""}),_url:m(Oa).url,_isMobile:ye(m(Oo).viewBreakpoint(No.MaxMobile),{initialValue:!1})}}),ho(t=>({activeBanners:be(()=>{let a=t._banners();if(!a)return[];let e={banners:a,customBanners:t._customBanners(),gameId:t._gameId(),url:t._url(),isMobile:t._isMobile(),dismissed:t.dismissed()};return ur.filter(n=>bc(n,e)).map(n=>Tc(n,t._bannersText()))})})),_o(t=>({dismiss(a){Mr(t,n=>({dismissed:Ie(J({},n.dismissed),{[a]:!0})}));let e=ur.find(n=>n.id===a)?.dismissPolicy;e&&e!=="session"&&t._cookies.set(e.cookieKey,Date.now().toString(),{path:"/",expires:bo(e.ttlDays)})}})),vo({onInit(t){let a={};for(let e of ur)e.dismissPolicy!=="session"&&t._cookies.get(e.dismissPolicy.cookieKey)&&(a[e.id]=!0);Mr(t,{dismissed:a})}}));var wc=(()=>{class t{#e=m(Ic);#t=new Map;#n=0;#r=jt(e=>{let n=new Set(e.map(i=>i.id));for(let[i,p]of this.#t)n.has(i)||(this.#t.delete(i),rr.dismiss(p));if(!e.every(i=>this.#t.has(i.id))){this.#n++;for(let[,i]of this.#t)rr.dismiss(i);this.#t.clear();for(let i of[...e].reverse()){let p=`${Ec(i.id)}-${this.#n}`;this.#t.set(i.id,p),rr.custom(_c,{id:p,duration:Number.POSITIVE_INFINITY,position:"top-right",classes:{toast:"h-auto!"},onDismiss:()=>this.#e.dismiss(i.id),componentProps:{banner:i,toastId:p,onDismiss:()=>this.#e.dismiss(i.id)}})}}});constructor(){Se()&&this.#r(this.#e.activeBanners)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-header-banner-toasts"]],decls:0,vars:0,template:function(n,i){},encapsulation:2,changeDetection:0})}}return t})();var $c=yi(zm());var Mc=t=>["tabsNavigation",t],ru=()=>["more","authTabButtonLogIn"],iu=(t,a)=>a.title,ou=(t,a)=>a.label;function au(t,a){if(t&1){let e=Y();x(0,"a",15),H("click",function(){let i=B(e).$implicit,p=f(2);return p.setTab(i),p.handleTabClickHandler(i),V(p.closeMenu())}),M(1,"shared-svg-icon",16),x(2,"span",17),U(3),E()()}if(t&2){let e=a.$implicit,n=f().$implicit,i=f();ut("text-green-400",i.showExchange()?i.activeTabParam()===e.routerParams[i.ExchangeTabParamName]:!1),C("routerLink",i.exchangeUrlHref())("queryParams",e.tab===i.tabsEnum.DmarketOffers||e.tab===null?i.combinedQueryParams():e.routerParams)("queryParamsHandling",e.tab===i.tabsEnum.DmarketOffers?"replace":"merge")("ngClass",e.tabClass)("testId",ee(10,Mc,e.testId)),we("aria-label",e.ariaLabel),h(),C("src",e.svgIconId),h(2),me(n(e.title))}}function su(t,a){if(t&1&&M(0,"myth-image",19),t&2){let e=f(3);C("priority",!0)("alt","User avatar")("src",a)("errorImage",e.placeholder)}}function cu(t,a){if(t&1&&(x(0,"span",21),U(1),E()),t&2){f();let e=Ue(4);h(),_e(" ",e," ")}}function lu(t,a){t&1&&M(0,"myth-skeleton",22)}
1function mu(t,a){if(t&1){let e=Y();x(0,"div",8)(1,"div",18),F(2,su,1,4,"myth-image",19),E(),x(3,"div",20),Vt(4),F(5,cu,2,1,"span",21)(6,lu,1,0,"myth-skeleton",22),x(7,"div",23)(8,"span",24),U(9),E(),x(10,"button",25),H("click",function(){B(e);let i=f(2);return i.showBalance(),V(i.closeMenu())}),M(11,"price",26)(12,"shared-svg-icon",27),E()()()()}if(t&2){let e,n,i=f().$implicit,p=f();h(2),L((e=p.isLoggedIn()&&(e=p.userData())!=null&&e.imageUrl?(e=p.userData())==null?null:e.imageUrl:p.placeholder)?2:-1,e),h(2);let g=Pt(((n=p.userData())==null?null:n.username)||((n=p.userData())==null?null:n.email));h(),L(g?5:6),h(4),_e(" ",i("Total balance"),":"),h(2),C("amount",p.userBalance())("isLocalizationEnabled",!1)}}function uu(t,a){if(t&1){let e=Y();x(0,"div",9)(1,"dm-vendor-auth-btn",28),U(2),E(),x(3,"button",29),H("click",function(){B(e);let i=f(2);return i.userLogin(),V(i.closeMenu())}),U(4),E()()}if(t&2){let e=f().$implicit,n=f();h(),C("returnUrls",n.steamLoginUrls())("activeTabEnum",n.activeTabEnum()),h(),_e(" ",e("Sign up via Steam")," "),h(),C("testId",de(5,ru)),h(),_e(" ",e("Log in")," ")}}function pu(t,a){if(t&1){let e=Y();x(0,"a",30),H("click",function(){let i=B(e).$implicit,p=f(2);return p.setTab(i),p.handleTabClickHandler(i),V(p.closeMenu())}),M(1,"shared-svg-icon",31),x(2,"span",32),U(3),E()()}if(t&2){let e=a.$implicit,n=f().$implicit,i=f();ut("text-green-400",i.showExchange()?i.activeTabParam()===e.routerParams[i.ExchangeTabParamName]:!1),C("routerLink",i.exchangeUrlHref())("queryParams",e.tab===i.tabsEnum.DmarketOffers||e.tab===null?i.combinedQueryParams():e.routerParams)("queryParamsHandling",e.tab===i.tabsEnum.DmarketOffers?"replace":"merge")("ngClass",e.tabClass)("testId",ee(11,Mc,e.testId)),we("aria-label",e.ariaLabel),h(),C("src",e.svgIconId)("ngClass",i.showExchange()?i.activeTabParam()===e.routerParams[i.ExchangeTabParamName]?"text-green-400":"text-stone-300":""),h(2),me(n(e.title))}}function du(t,a){if(t&1&&M(0,"shared-svg-icon",34),t&2){let e=f().$implicit;C("src",e.icon)}}function fu(t,a){if(t&1){let e=Y();x(0,"button",33),H("click",function(){let i=B(e).$implicit,p=f(2);return p.executeMenuAction(i),V(p.closeMenu())}),F(1,du,1,1,"shared-svg-icon",34),x(2,"span",32),U(3),E()()}if(t&2){let e=a.$implicit,n=f().$implicit;C("testId",e.testId)("ngClass",e.menuClass??""),h(),L(e.icon?1:-1),h(2),me(n(e.label))}}function gu(t,a){if(t&1){let e=Y();Pe(0),x(1,"div",1),nt(2,au,4,12,"a",2,Dn),x(4,"button",3),H("click",function(){B(e);let i=f();return V(i.toggleMenu())}),M(5,"shared-svg-icon",4),x(6,"span",5),U(7),E()()(),x(8,"div",6)(9,"div",7),F(10,mu,13,6,"div",8)(11,uu,5,6,"div",9),x(12,"div",10)(13,"p",11),U(14),E(),x(15,"div",12),nt(16,pu,4,13,"a",13,iu),E()(),x(18,"div",9)(19,"p",11),U(20),E(),x(21,"div",12),nt(22,fu,4,4,"button",14,ou),E()()()(),Re()}if(t&2){let e=a.$implicit,n=f();h(2),rt(n.tabs),h(2),ut("text-green-400",n.menuOpened()),h(),ut("text-green-400",n.menuOpened()),h(2),me(e("More")),h(),ut("translate-y-full",!n.menuOpened())("opacity-0",!n.menuOpened()),h(2),L(n.isLoggedIn()?10:11),h(4),_e(" ",e("Marketplace")," "),h(2),rt(n.menuTabs),h(4),_e(" ",e("Account and help")," "),h(2),rt(n.menuItems())}}var Ac=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m(Qt),this.#n=m($e),this.isLoggedIn=this.#e.isLoggedIn,this.userData=this.#e.userData,this.userBalance=this.#e.userUsdBalance,this.placeholder=Yn,this.queryParams=this.#e.queryParams,this.activeTabParam=this.#e.activeTabParam,this.exchangeUrlHref=this.#e.exchangeUrlHref,this.combinedQueryParams=this.#e.queryParamsWithoutTab,this.showExchange=this.#e.showExchange,this.activeGameSlug=this.#e.activeGameSlug,this.activeTabEnum=this.#e.activeTabAsEnum,this.steamLoginUrls=this.#e.steamLoginUrls,this.tabs=[...this.#e.baseTabs,{tab:null,routerParams:{},hasUpdates:ye(this.#t.feedUpdated$.pipe(ne(Boolean)),{initialValue:!1}),svgIconId:"icon-p2p-general",title:"Active",ariaLabel:"Active",testId:"openP2pTransactionDialog",isAuthRequired:!0,clickHandler:()=>this.#e.openActiveTransactionsDialog()},{tab:null,routerParams:{},hasUpdates:ye(Ut([this.#t.historyUpdated$,this.#t.verificationUpdated$]).pipe(ne(([e,n])=>e||n))),svgIconId:"icon-notifications",title:"History",ariaLabel:"History",testId:"openHistoryDialog",isAuthRequired:!0,clickHandler:()=>this.#e.openHistoryDialog()}],this.menuTabs=this.#e.menuTabs,this.menuConfig=this.#e.getMenuConfig(),this.menuItems=be(()=>this.#e.processMenu([...this.menuConfig])),this.tabsEnum=ft,this.ExchangeTabParamName=bt,this.menuOpened=lt(!1),this.notificationsOpened=lt(!1)}#e;#t;#n;toggleMenu(){this.menuOpened.update(e=>!e)}closeMenu(){this.menuOpened.set(!1)}userLogin(){this.#e.userLogin()}showBalance(){this.#e.showBalance().pipe(te(this.#n)).subscribe()}executeMenuAction(e){let n=e.action?.();It(n)&&n.pipe(te(this.#n)).subscribe()}handleTabClickHandler(e){let n=e.clickHandler?.(e);It(n)&&n.pipe(te(this.#n)).subscribe()}setTab(e){e.tab&&this.#e.setActiveTab(e.tab,e.isAuthRequired)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["exchange-footer-nav"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"relative","z-101","flex","h-12","w-full","flex-row","items-center","justify-evenly","border-t","border-dm-zinc-new-900","bg-dm-neutral-900","px-2"],[1,"relative","flex","h-12","max-w-12","flex-col","items-center","justify-center","text-center",3,"routerLink","queryParams","queryParamsHandling","ngClass","testId","text-green-400"],[1,"relative","flex","h-12","max-w-12","flex-col","items-center","justify-center",3,"click"],["src","icon-menu",1,"size-6"],[1,"dm-text-label-2xs"],[1,"fixed","top-0","z-100","flex","h-[calc(100dvh-2.5rem)]","w-full","flex-col","overflow-y-auto","bg-dm-stone-new-950","pb-4","shadow-lg","transition-[translate,opacity]","duration-300","ease-in-out"],[1,"flex","flex-col","gap-4","p-6","pt-3","pb-2"],[1,"flex","flex-row","flex-nowrap","gap-4","rounded-xl","bg-dm-neutral-900","p-4"],[1,"flex","flex-col","gap-2"],[1,"mb-4","flex","flex-col","gap-2"],[1,"w-full","truncate","p-2","dm-text-label-xs","text-dm-neutral-300"],[1,"flex","w-full","flex-col","gap-2"],["dmMenuStandaloneItem","",1,"gap-4",3,"routerLink","queryParams","queryParamsHandling","ngClass","testId","text-green-400"],["dmMenuStandaloneItem","",1,"gap-4",3,"testId","ngClass"],[1,"relative","flex","h-12","max-w-12","flex-col","items-center","justify-center","text-center",3,"click","routerLink","queryParams","queryParamsHandling","ngClass","testId"],[1,"size-6",3,"src"],[1,"text-center","dm-text-label-2xs"],[1,"size-12","shrink-0"],["type","external","width","48","height","48",1,"block","overflow-hidden","rounded-full","object-cover",3,"priority","alt","src","errorImage"],[1,"flex","grow","flex-col","gap-2","truncate"],[1,"truncate","dm-text-emphasized-label-m","text-neutral-200"],["width","120px","height","16px",1,"block"],[1,"flex","flex-row","flex-nowrap","items-center","gap-2"],[1,"truncate","dm-text-label-xs","text-dm-neutral-300"],["dmButton","","size","sm","variant","transparent",3,"click"],[1,"dm-text-label-s","text-neutral-200",3,"amount","isLocalizationEnabled"],["src","icon-chevron-right",1,"size-5","text-neutral-200"],["vendor","steam","variant","secondary","size","md","iconColorClass","text-green-400","authType","Log in","aria-label","Steam Login",3,"returnUrls","activeTabEnum"],["dmButton","","variant","secondary","size","md",3,"click","testId"],["dmMenuStandaloneItem","",1,"gap-4",3,"click","routerLink","queryParams","queryParamsHandling","ngClass","testId"],[1,"size-6",3,"src","ngClass"],[1,"truncate","dm-text-label-s"],["dmMenuStandaloneItem","",1,"gap-4",3,"click","testId","ngClass"],[1,"size-6","text-stone-300",3,"src"]],template:function(n,i){n&1&&K(0,gu,24,12,"ng-container",0)},dependencies:[St,ze,Oe,We,Ee,Tt,ir,ot,Zt,Ts,or],encapsulation:2,changeDetection:0})}}return t})();var hu=()=>[lr],vu=t=>["tabsNavigation",t];
1function _u(t,a){if(t&1&&M(0,"exchange-tab-onboarding-tooltip",7),t&2){let e=f(2).$implicit,n=Me(1),i=f(2);C("overlayOrigin",n)("onboardingElementName",e.tab)("tooltipPositionUpdateEvent$",i.tooltipPositionUpdateEvent$)}}function yu(t,a){t&1&&M(0,"div")}function Su(t,a){}function Cu(t,a){t&1&&(Pn(0,_u,1,3)(1,yu,1,0)(2,Su,0,0),Rn(3,0,hu,null,1,2),kn(0,-1))}function xu(t,a){if(t&1){let e=Y();x(0,"a",3,0),H("click",function(){let i=B(e).$implicit;return f(2).setTab(i),V(i.clickHandler&&i.clickHandler(i))}),x(2,"div",4),M(3,"shared-svg-icon",5),E(),x(4,"span",6),U(5),E(),F(6,Cu,5,0),E()}if(t&2){let e=a.$implicit,n=f().$implicit,i=f(),p=i.showExchange()?i.activeTabParam()===(e.routerParams==null?null:e.routerParams[i.ExchangeTabParamName]):!1;At(e.tabClass),ut("text-green-400",p),C("routerLink",i.exchangeUrlHref())("queryParams",e.tab===i.tabsEnum.DmarketOffers?i.combinedQueryParams():e.routerParams)("queryParamsHandling",e.tab===i.tabsEnum.DmarketOffers?"replace":"merge")("testId",ee(13,vu,e.testId)),h(2),ut("bg-dm-zinc-new-900",p),h(),C("src",e.svgIconId),h(2),me(n(e.title)),h(),L(i.isOnboardingVisible()?6:-1)}}function bu(t,a){if(t&1&&(Pe(0),nt(1,xu,7,15,"a",2,Dn),Re()),t&2){let e=f();h(),rt(e.tabs)}}var Pc=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m(cr),this.#n=m(pn),this.queryParams=this.#e.queryParams,this.isLoggedIn=this.#e.isLoggedIn,this.activeTabParam=this.#e.activeTabParam,this.combinedQueryParams=this.#e.queryParamsWithoutTab,this.isOnboardingVisible=this.#t.isTooltipWrapperReady,this.tooltipPositionUpdateEvent$=this.#n.headerLayoutChange$,this.exchangeUrlHref=this.#e.exchangeUrlHref,this.showExchange=this.#e.showExchange,this.tabs=[...this.#e.baseTabs,...this.#e.menuTabs],this.tabsEnum=ft,this.ExchangeTabParamName=bt}#e;#t;#n;setTab(e){e.tab&&this.#e.setActiveTab(e.tab,e.isAuthRequired)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["exchange-side-nav"]],hostAttrs:[1,"overflow-y-auto","dm-scrollbar"],decls:1,vars:0,consts:[["overlayOrigin","cdkOverlayOrigin"],[4,"transloco"],["cdkOverlayOrigin","",1,"group/nav-link","relative","flex","flex-col","items-center","justify-center","p-2","transition-colors",3,"routerLink","queryParams","queryParamsHandling","testId","text-green-400","class"],["cdkOverlayOrigin","",1,"group/nav-link","relative","flex","flex-col","items-center","justify-center","p-2","transition-colors",3,"click","routerLink","queryParams","queryParamsHandling","testId"],[1,"flex","flex-col","items-center","justify-center","rounded-lg","p-1","group-hover/nav-link:bg-white/3"],[1,"size-6",3,"src"],[1,"mt-1","text-center","dm-text-label-2xs","wrap-break-word"],[3,"overlayOrigin","onboardingElementName","tooltipPositionUpdateEvent$"]],template:function(n,i){n&1&&K(0,bu,3,0,"ng-container",1)},dependencies:[ze,Oe,We,zn,Ee],encapsulation:2,changeDetection:0})}}return t})();var Tu=t=>({"rotate-180":t}),dn=t=>({$implicit:t}),Eu=()=>["dropdown","treasuryBalance","price"];function Iu(t,a){t&1&&M(0,"price",6),t&2&&C("amount",a)("isLocalizationEnabled",!1)}function wu(t,a){t&1&&M(0,"myth-skeleton",7)}function Mu(t,a){t&1&&mt(0)}function Au(t,a){t&1&&mt(0)}function Pu(t,a){if(t&1&&K(0,Au,1,0,"ng-container",12),t&2){f();let e=Me(7),n=f(2);C("ngTemplateOutlet",e)("ngTemplateOutletContext",ee(2,dn,n.menuItemKeys.SkinsBalance))}}function Ru(t,a){t&1&&mt(0)}function ku(t,a){t&1&&mt(0)}function Du(t,a){t&1&&mt(0)}function Nu(t,a){if(t&1&&M(0,"shared-svg-icon",17),t&2){let e=f(2).$implicit,n=f(3);C("src",n.menuConfig[e].icon)("ngClass",n.menuConfig[e].iconClass)}}function Ou(t,a){if(t&1&&M(0,"price",18),t&2){let e=f(5);C("amount",e.userBalance())("isLocalizationEnabled",!1)}}function Fu(t,a){if(t&1&&M(0,"price",18),t&2){let e=f(5);C("amount",e.tradeProtectedBalance())("isLocalizationEnabled",!1)}}function Lu(t,a){if(t&1&&M(0,"price",18),t&2){let e=f(5);C("amount",e.availableForTargets())("isLocalizationEnabled",!1)}}function Uu(t,a){t&1&&M(0,"price",20),t&2&&C("amount",a)("isLocalizationEnabled",!1)("testId",de(3,Eu))}function Bu(t,a){t&1&&M(0,"spinner",21)}function Vu(t,a){if(t&1&&F(0,Uu,1,4,"price",20)(1,Bu,1,0,"spinner",21),t&2){let e,n=f(5);L((e=n.userTreasuryBalance())?0:1,e)}}function Hu(t,a){if(t&1&&(x(0,"span"),U(1),E()),t&2){let e=f(5);h(),me(e.currency())}}function Gu(t,a){if(t&1){let e=Y();
1x(0,"div",13)(1,"dm-menu-label"),U(2),E(),x(3,"dm-menu-group",14)(4,"div",15),H("click",function(){B(e);let i=f().$implicit,p=f(3);return V(p.menuConfig[i].action())}),x(5,"div",16),F(6,Nu,1,2,"shared-svg-icon",17),F(7,Ou,1,2,"price",18)(8,Fu,1,2,"price",18)(9,Lu,1,2,"price",18)(10,Vu,2,1)(11,Hu,2,1,"span"),E(),M(12,"shared-svg-icon",19),E()()()}if(t&2){let e=f().$implicit,n=f(2).$implicit,i=f();h(2),me(n(i.menuConfig[e].label)),h(2),C("testId",i.menuConfig[e].testId),h(2),L(i.menuConfig[e].icon?6:-1),h(),L(e===i.menuItemKeys.Balance?7:e===i.menuItemKeys.TradeProtectedBalance?8:e===i.menuItemKeys.AvailableForTargets?9:e===i.menuItemKeys.SkinsBalance?10:e==="currency"?11:-1)}}function ju(t,a){if(t&1&&F(0,Gu,13,4,"div",13),t&2){let e=a.$implicit,n=f(3);L(n.menuConfig[e]?0:-1)}}function $u(t,a){if(t&1&&(x(0,"dm-menu",11),K(1,Mu,1,0,"ng-container",12),F(2,Pu,1,4,"ng-container"),K(3,Ru,1,0,"ng-container",12)(4,ku,1,0,"ng-container",12)(5,Du,1,0,"ng-container",12)(6,ju,1,1,"ng-template",null,1,pt),E()),t&2){let e=Me(7),n=f(2);C("inset",!0),h(),C("ngTemplateOutlet",e)("ngTemplateOutletContext",ee(10,dn,n.menuItemKeys.Balance)),h(),L(n.skinsBalance()?2:-1),h(),C("ngTemplateOutlet",e)("ngTemplateOutletContext",ee(12,dn,n.menuItemKeys.TradeProtectedBalance)),h(),C("ngTemplateOutlet",e)("ngTemplateOutletContext",ee(14,dn,n.menuItemKeys.AvailableForTargets)),h(),C("ngTemplateOutlet",e)("ngTemplateOutletContext",ee(16,dn,n.menuItemKeys.Currency))}}function zu(t,a){if(t&1){let e=Y();Pe(0),x(1,"div",3)(2,"button",4),H("dmMenuOpened",function(){B(e);let i=f();return V(i.toggleMenu(!0))})("dmMenuClosed",function(){B(e);let i=f();return V(i.toggleMenu(!1))}),x(3,"div",5),F(4,Iu,1,2,"price",6)(5,wu,1,0,"myth-skeleton",7),M(6,"shared-svg-icon",8),E(),x(7,"div",9),H("click",function(i){B(e);let p=f();return V(p.startDirectDepositFlow(i))}),M(8,"shared-svg-icon",10),E()()(),K(9,$u,8,18,"ng-template",null,0,pt),Re()}if(t&2){let e,n=Me(10),i=f();h(2),C("dmMenuTrigger",n),h(2),L((e=i.userBalance())?4:5,e),h(2),C("ngClass",ee(3,Tu,i.menuOpened()))}}var kt=(function(t){return t.Balance="balance",t.SkinsBalance="skinsBalance",t.TradeProtectedBalance="tradeProtectedBalance",t.AvailableForTargets="availableForTargets",t.Currency="currency",t})(kt||{}),Rc=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m(ke),this.#n=m($e),this.#r=m(Wt),this.#i=this.#e.userId,this.selectedGameId=this.#e.activeGameId,this.userBalance=this.#e.userUsdBalance,this.tradeProtectedBalance=this.#e.userUsdTradeProtected,this.availableForTargets=this.#e.userUsdAvailableForTargets,this.currency=m(Xn).activeCurrency,this.#o=Ks(this.#i,this.selectedGameId),this.skinsBalance=this.#o.balance,this.userTreasuryBalance=be(()=>this.skinsBalance()?.exchange?.amount),this.flowType=$t,this.menuItemKeys=kt,this.menuConfig={[kt.Balance]:{label:"Balance",action:()=>this.showBalance(),testId:["dropdown","goToBalance"],icon:"icon-account-balance",iconClass:"text-green-400"},[kt.SkinsBalance]:{label:"Balance in skins",action:()=>this.redirectToExchange(),testId:["dropdown","goToSkinsBalance"],icon:"icon-exchange",iconClass:"text-violet-400"},[kt.TradeProtectedBalance]:{label:"Trade protection",action:()=>this.showBalance(),testId:["dropdown","tradeProtectedBalance"],icon:"icon-shield-with-recycle",iconClass:"text-amber-400"},[kt.AvailableForTargets]:{label:"Available for targets",action:()=>this.showBalance(),testId:["dropdown","availableForTargets"],icon:"icon-target",iconClass:"text-orange-400"},[kt.Currency]:{label:"Currency",action:()=>this.openLocalizationSettingsDialog(),testId:["dropdown","changeCurrency"]}},this.menuOpened=lt(!1)}#e;#t;#n;#r;#i;#o;toggleMenu(e){this.menuOpened.set(e)}showBalance(){this.#e.showBalance().pipe(te(this.#n)).subscribe()}startDirectDepositFlow(e){e.stopPropagation(),this.#e.startDirectDepositFlow().pipe(te(this.#n)).subscribe()}redirectToExchange(){this.showTreasury&&this.sendGaEvent(zs.CLICK_HEADER),this.#e.activeTabAsEnum()!==ft.Exchange&&this.#e.navigate([this.#e.routerCommandPath()],{queryParams:Ie(J({},this.#e.queryParamsWithoutTab()),{exchangeTab:ft.Exchange})})}openLocalizationSettingsDialog(){this.#e.openLocalizationSettingsDialog()}get showTreasury(){return this.#t.url!=="/"&&!!this.skinsBalance()}sendGaEvent(e){let n=this.userTreasuryBalance();this.#r.sendGeneralEventWithValue({event_name:e,value:this.#r.getItemPrice(n)},!0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-balance-selector-menu"]],hostAttrs:[1,"flex","h-full"],decls:1,vars:0,consts:[["menu",""],["menuItem",""],[4,"transloco"],[1,"relative","flex","h-full","items-center"],["dmButton","","variant","secondary-light","size","responsive-md",1,"flex","h-full","items-center","justify-center","max-md:bg-transparent",3,"dmMenuOpened","dmMenuClosed","dmMenuTr
1igger"],[1,"flex","items-center","justify-start","gap-1"],[1,"dm-text-label-s",3,"amount","isLocalizationEnabled"],["width","70px","height","16px",1,"inline-block"],["src","icon-chevron-down",1,"size-5",3,"ngClass"],[1,"size-6","rounded-lg","bg-dm-greenish-800","hover:bg-[#1a2b20]",3,"click"],["src","icon-plus",1,"size-6","rounded-lg","text-green-400"],["variant","defaultAccent",1,"min-w-64","gap-4",3,"inset"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","w-full","flex-col","gap-2"],[1,"w-full"],["dmMenuItem","","variant","default",1,"items-center","justify-between","gap-2",3,"click","testId"],[1,"flex","items-center","justify-start","gap-1","dm-text-emphasized-label-s"],[1,"size-4",3,"src","ngClass"],[3,"amount","isLocalizationEnabled"],["src","icon-chevron-right",1,"block","size-5","text-neutral-200"],[1,"block",3,"amount","isLocalizationEnabled","testId"],["sizePx","24",1,"block"]],template:function(n,i){n&1&&K(0,zu,11,5,"ng-container",2)},dependencies:[Xt,xs,Jt,bs,en,Zt,Oe,St,ir,We,Ee,js,Ht,ot],encapsulation:2,changeDetection:0})}}return t})();var kc="traderSeenFaq2",Dc="newNavigationItemsSeen",Nc="newGameSeen",pr=(()=>{class t{constructor(){this.cookiesStorageService=m(zt),this.stateUpdate$=new Sn(void 0),this.isHeaderDropdownUpdateNotificationVisible$=this.stateUpdate$.pipe(ne(()=>this.isNewNavigationPristine())),this.isFooterUpdateNotificationVisible$=this.stateUpdate$.pipe(ne(()=>this.isNewNavigationPristine())),this.isSidebarUpdateNotificationVisible$=this.stateUpdate$.pipe(ne(()=>this.isNewNavigationPristine()||!this.cookiesStorageService.get(kc))),this.isGameUpdateVisible$=this.stateUpdate$.pipe(ne(()=>!this.cookiesStorageService.get(Nc)))}setTraderSeenFaq(){this.cookiesStorageService.set(kc,this.getTimestamp()),this.stateUpdate$.next()}setNewNavigationItemsSeen(){this.cookiesStorageService.set(Dc,this.getTimestamp()),this.stateUpdate$.next()}setNewGameSeen(){this.cookiesStorageService.set(Nc,this.getTimestamp()),this.stateUpdate$.next()}isNewNavigationPristine(){return!this.cookiesStorageService.get(Dc)}getTimestamp(){return new Date().getTime().toString()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ku=()=>[lr],qu=t=>({"dm-red-dot-pulse after:top-2 after:right-4":t}),Wu=t=>({"rotate-180":t}),Yu=()=>[],Oc=t=>({"bg-dm-stone-new-900":t}),Fc=(t,a)=>({icon:t,title:a}),Qu=t=>[t],Zu=(t,a)=>a.id;function Xu(t,a){if(t&1&&M(0,"myth-image",6),t&2){f(2);let e=Ue(0),n=Ue(1);C("priority",!0)("src",e)("alt",n?n+" game icon":"game icon")}}function Ju(t,a){t&1&&M(0,"myth-skeleton",7)}function ep(t,a){if(t&1&&(x(0,"p",8),U(1),E()),t&2){f(2);let e=Ue(1);we("title",e),h(),_e(" ",e," ")}}function tp(t,a){t&1&&M(0,"myth-skeleton",9)}function np(t,a){if(t&1&&M(0,"exchange-tab-onboarding-tooltip",11),t&2){f(2);let e=Me(3),n=f();C("overlayOrigin",e)("tooltipPositionUpdateEvent$",n.tooltipPositionUpdateEvent$)}}function rp(t,a){t&1&&M(0,"div")}function ip(t,a){}function op(t,a){t&1&&(Pn(0,np,1,2)(1,rp,1,0)(2,ip,0,0),Rn(3,0,Ku,null,1,2),kn(0,-1))}function ap(t,a){}function sp(t,a){t&1&&K(0,ap,0,0,"ng-template")}function cp(t,a){if(t&1&&(x(0,"a",14),K(1,sp,1,0,null,16),E()),t&2){let e,n=f().$implicit;f(2);let i=Me(13),p=f();C("ngClass",ee(4,Oc,n.id===((e=p.activeGame())==null?null:e.id)))("href",n.link,An),h(),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Ir(6,Fc,n.logoImageUrl,n.title))}}function lp(t,a){}function mp(t,a){t&1&&K(0,lp,0,0,"ng-template")}function up(t,a){if(t&1){let e=Y();x(0,"a",17),Be(1,"routeTranslate"),Be(2,"async"),H("click",function(){B(e);let i=f().$implicit,p=f(3);return V(p.resetAllFilters(i.id))}),K(3,mp,1,0,null,16),E()}if(t&2){let e,n=f().$implicit;f(2);let i=Me(13),p=f();C("ngClass",ee(10,Oc,n.id===((e=p.activeGame())==null?null:e.id)))("routerLink",Xe(2,8,Xe(1,6,ee(12,Qu,n.link))))("queryParams",n.queryParams)("queryParamsHandling","replace"),h(3),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Ir(14,Fc,n.logoImageUrl,n.title))}}function pp(t,a){if(t&1&&F(0,cp,2,9,"a",14)(1,up,4,17,"a",15),t&2){let e=a.$implicit,n=f(3);L(e.id&&n.MM_GAME_IDS.includes(e.id)?0:1)}}function dp(t,a){if(t&1&&(x(0,"a",13),U(1),E()),t&2){let e=f(2).$implicit;h(),_e(" ",e("No games available")," ")}}function fp(t,a){if(t&1&&(x(0,"dm-menu",12),nt(1,pp,2,1,null,null,Zu,!1,dp,2,1,"a",13),E()),t&2){let e=f(2);h(),rt(e.games()??de(1,Yu))}}function gp(t,a){if(t&1&&M(0,"myth-image",18),t&2){let e=f(),n=e.icon,i=e.title;C("src",n)("alt",i)}}function hp(t,a){if(t&1&&(F(0,gp,1,2,"myth-image",18),x(1,"span",19),U(2),E()),t&2){let e=a.icon,n=a.title;L(e?0:-1),h(2),me(n)}}function vp(t,a){if(t&1){let e=Y();Pe(0),x(1,"div",4)(2,"button",5,0),H("dmMenuOpened",function(){B(e);let i=f();return V(i.toggleMenu(!0))})("dmMenuClosed",function(){B(e);let i=f();return V(i.toggleMenu(!1))}),F(4,Xu,1,3,"myth-image",6)(5,Ju,1,0,"myth-skeleton",7),F(6,ep,2,2,"p",8)(7,tp,1,0,"myth-skeleton",9),M(8,"shared-svg-icon",10),F(9,op,5,0),E()(),K(10,fp,4,2,"ng-template",null,1,pt)(12,hp,3,2,"ng-template",null,2,pt),Re()}if(t&2){let e=Me(11),n=f(),i=Ue(0),p=Ue(1);h(),C("ngClass",ee(6,qu,n.isGameUpdateVisible())),h(),C("dmMenuTr
1igger",e),h(2),L(i?4:5),h(2),L(p?6:7),h(2),C("ngClass",ee(8,Wu,n.menuOpened())),h(),L(n.isOnboardingVisible()?9:-1)}}var Lc=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m(cr),this.#n=m(pn),this.tooltipPositionUpdateEvent$=this.#n.headerLayoutChange$,this.#r=m(pr),this.#i=m(mr),this.#o=Os(),this.#c=za(),this.games=be(()=>{let e=this.#e.games.data()??[],n=this.#e.activeTabParam();return e?e.map(i=>Ie(J({},i),{link:this.getGameLink(i),queryParams:n?{[bt]:n}:{}})):[]}),this.activeGame=this.#e.activeGame,this.isOnboardingVisible=this.#t.isTooltipWrapperReady,this.isGameUpdateVisible=ye(this.#r.isGameUpdateVisible$),this.MM_GAME_IDS=[...Pa],this.menuOpened=lt(!1),this.marketRootUrl=wo.IngameItems}#e;#t;#n;#r;#i;#o;#c;getGameLink(e){return e.slug.startsWith("#")?e.slug.substring(1,e.slug.length):`${this.marketRootUrl}${e.slug}`}toggleMenu(e){this.menuOpened.set(e),this.isGameUpdateVisible()&&this.#r.setNewGameSeen()}resetAllFilters(e){this.#o.mutate({gameId:e}),this.#c.mutate({gameId:e}),this.#i.resetMarketSelectedFiltersState(),this.#i.resetUserSelectedFiltersState()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-game-selector-menu"]],hostAttrs:[1,"flex","h-full"],decls:3,vars:2,consts:[["overlayOrigin","cdkOverlayOrigin"],["menu",""],["gameTitleTpl",""],[4,"transloco"],[1,"relative","flex","h-full","items-center",3,"ngClass"],["dmButton","","variant","secondary-light","size","responsive-md","cdkOverlayOrigin","",3,"dmMenuOpened","dmMenuClosed","dmMenuTrigger"],["width","24","height","24","type","external","classes","relative! size-6! rounded-sm! object-contain mr-2 overflow-hidden",3,"priority","src","alt"],[1,"size-6!"],[1,"hidden","truncate","text-left","dm-text-label-m","text-neutral-200","md:inline-block"],["width","70px","height","16px",1,"inline-block"],["src","icon-chevron-down",1,"size-5",3,"ngClass"],["onboardingElementName","game",3,"overlayOrigin","tooltipPositionUpdateEvent$"],["variant","defaultAccent",1,"w-56"],["dmMenuItem","","variant","darkRounded"],["dmMenuItem","","variant","darkRounded","target","_blank","rel","nofollow noreferrer noopener",3,"ngClass","href"],["dmMenuItem","","variant","darkRounded",3,"ngClass","routerLink","queryParams","queryParamsHandling"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["dmMenuItem","","variant","darkRounded",3,"click","ngClass","routerLink","queryParams","queryParamsHandling"],["type","external",1,"relative","mr-4","block","size-8","overflow-hidden","rounded-sm",3,"src","alt"],[1,"min-w-[61px]","truncate","pr-1.5"]],template:function(n,i){if(n&1&&(Vt(0)(1),K(2,vp,14,10,"ng-container",3)),n&2){let p,g;Pt((p=i.activeGame())==null?null:p.logoImageUrl),h(),Pt((g=i.activeGame())==null?null:g.title)}},dependencies:[Xt,Jt,en,Ht,Tt,zn,Zt,Oe,St,ze,Ee,ot,Yt,Gt],encapsulation:2,changeDetection:0})}}return t})();var _p=t=>({"rotate-180":t}),yp=(t,a)=>a.label;function Sp(t,a){if(t&1&&M(0,"myth-image",7),t&2){let e=f(3);C("priority",!0)("alt","User avatar")("src",a)("errorImage",e.placeholder)}}function Cp(t,a){t&1&&mt(0)}function xp(t,a){if(t&1&&K(0,Cp,1,0,"ng-container",8),t&2){f(2);let e=Me(8);C("ngTemplateOutlet",e)}}function bp(t,a){if(t&1&&F(0,Sp,1,4,"myth-image",7)(1,xp,1,1,"ng-container"),t&2){let e,n=f(2);L((e=n.userData().imageUrl)?0:1,e)}}function Tp(t,a){t&1&&mt(0)}function Ep(t,a){if(t&1&&K(0,Tp,1,0,"ng-container",8),t&2){f();let e=Me(8);C("ngTemplateOutlet",e)}}function Ip(t,a){if(t&1&&M(0,"myth-image",9),t&2){let e=f(2);C("priority",!0)("alt","User avatar")("src",e.placeholder)}}function wp(t,a){if(t&1&&M(0,"shared-svg-icon",13),t&2){let e=f().$implicit;C("src",e.icon)}}function Mp(t,a){if(t&1){let e=Y();x(0,"a",12),H("click",function(){let i=B(e).$implicit,p=f(3);return V(p.executeMenuAction(i))}),F(1,wp,1,1,"shared-svg-icon",13),x(2,"span",14),U(3),E()()}if(t&2){let e=a.$implicit,n=f(2).$implicit;C("testId",e.testId)("ngClass",(e==null?null:e.menuClass)??""),we("aria-label",(e==null?null:e.ariaLabel)??""),h(),L(e.icon?1:-1),h(2),me(n(e.label))}}function Ap(t,a){if(t&1&&(x(0,"dm-menu",10),nt(1,Mp,4,5,"a",11,yp),E()),t&2){let e=f(2);C("inset",!0),h(),rt(e.menuItems())}}function Pp(t,a){if(t&1){let e=Y();Pe(0),x(1,"div",3)(2,"button",4),H("dmMenuOpened",function(){B(e);let i=f();return V(i.toggleMenu(!0))})("dmMenuClosed",function(){B(e);let i=f();return V(i.toggleMenu(!1))}),x(3,"div",5),F(4,bp,2,1)(5,Ep,1,1,"ng-container"),E(),M(6,"shared-svg-icon",6),E()(),K(7,Ip,1,3,"ng-template",null,0,pt)(9,Ap,3,1,"ng-template",null,1,pt),Re()}if(t&2){let e,n=Me(10),i=f();
1h(2),C("dmMenuTrigger",n),h(2),L(i.isLoggedIn()&&((e=i.userData())!=null&&e.id)?4:5),h(2),C("ngClass",ee(3,_p,i.menuOpened()))}}var Uc=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m(pr),this.#n=m($e),this.userData=this.#e.userData,this.isLoggedIn=this.#e.isLoggedIn,this.isHeaderDropdownUpdateNotificationVisible=ye(this.#t.isHeaderDropdownUpdateNotificationVisible$),this.placeholder=Yn,this.flowType=$t,this.menuConfig=this.#e.getMenuConfig(),this.menuItems=be(()=>this.#e.processMenu([...this.menuConfig])),this.menuOpened=lt(!1)}#e;#t;#n;toggleMenu(e){this.menuOpened.set(e),this.isHeaderDropdownUpdateNotificationVisible()&&this.removeUpdateNotification()}removeUpdateNotification(){this.#t.setNewNavigationItemsSeen()}executeMenuAction(e){let n=e.action?.();It(n)&&n.pipe(te(this.#n)).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-user-menu"]],hostAttrs:[1,"flex","h-full"],decls:1,vars:0,consts:[["placeholderImg",""],["menu",""],[4,"transloco"],[1,"relative","flex","h-full","items-center"],[1,"flex","h-full","cursor-pointer","flex-row","items-center","justify-center","gap-2","overflow-hidden","rounded-full",3,"dmMenuOpened","dmMenuClosed","dmMenuTrigger"],[1,"size-10"],["src","icon-chevron-down",1,"size-5",3,"ngClass"],["type","external","width","40","height","40",1,"block","overflow-hidden","rounded-full","bg-dm-stone-new-900","object-cover",3,"priority","alt","src","errorImage"],[4,"ngTemplateOutlet"],["type","external","width","40","height","40",1,"block","overflow-hidden","rounded-full","bg-dm-stone-new-900","object-cover",3,"priority","alt","src"],["variant","default",1,"max-w-62",3,"inset"],["dmMenuItem","","variant","default",1,"gap-4",3,"testId","ngClass"],["dmMenuItem","","variant","default",1,"gap-4",3,"click","testId","ngClass"],[1,"size-6","text-stone-300",3,"src"],[1,"truncate"]],template:function(n,i){n&1&&K(0,Pp,11,5,"ng-container",2)},dependencies:[Xt,Jt,en,Oe,We,Ee,Tt,St,Ht],encapsulation:2,changeDetection:0})}}return t})();var Rp=()=>["/"],kp=()=>["support"],Dp=()=>["/sell-items-promo"],Np=()=>["goToSellItemsPromo"],Op=()=>["openLocalizationSettings"],Fp=()=>["openHistoryDialog"],Lp=()=>["openP2pTransactionDialog"],Up=()=>["logIn","authTabButtonLogIn"];function Bp(t,a){t&1&&M(0,"dm-game-selector-menu",7)}function Vp(t,a){t&1&&M(0,"span",14)}function Hp(t,a){t&1&&M(0,"span",14)}function Gp(t,a){if(t&1){let e=Y();x(0,"button",21),H("click",function(){B(e);let i=f(3);return V(i.openActiveTransactionsDialog())}),M(1,"shared-svg-icon",23),F(2,Hp,1,0,"span",14),E()}if(t&2){let e=f(2).$implicit,n=f();C("title",e("Active"))("testId",de(4,Lp)),we("aria-label",e("Active")),h(2),L(n.feedUpdates()?2:-1)}}function jp(t,a){t&1&&M(0,"span",14)}function $p(t,a){if(t&1){let e=Y();K(0,Gp,3,5,"button",20),x(1,"button",21),H("click",function(){B(e);let i=f(2);return V(i.openHistoryDialog())}),M(2,"shared-svg-icon",22),F(3,jp,1,0,"span",14),E()}if(t&2){let e=f().$implicit,n=f();C("featureFlag","dmarket-transaction-history")("featureFlagValue",!0),h(),C("title",e("History"))("testId",de(6,Fp)),we("aria-label","History"),h(2),L(n.notificationUpdates()?3:-1)}}function zp(t,a){t&1&&M(0,"dm-balance-selector-menu",18)}function Kp(t,a){if(t&1){let e=Y();x(0,"button",24),H("click",function(){B(e);let i=f(2);return V(i.logIn())}),U(1),E(),x(2,"dm-vendor-auth-btn",25),U(3),E(),x(4,"dm-vendor-auth-btn",26),U(5),E()}if(t&2){let e=f().$implicit,n=f();C("testId",de(8,Up)),h(),_e(" ",e("Log in")," "),h(),C("returnUrls",n.steamLoginUrls())("activeTabEnum",n.activeTabEnum()),h(),_e(" ",e("Sign up via Steam")," "),h(),C("returnUrls",n.steamLoginUrls())("activeTabEnum",n.activeTabEnum()),h(),_e(" ",e("Sign up via Steam")," ")}}function qp(t,a){if(t&1){let e=Y();Pe(0),x(1,"header",1)(2,"div",2)(3,"a",3),Be(4,"routeTranslate"),Be(5,"async"),M(6,"shared-svg-icon",4),E()(),x(7,"div",5)(8,"div",6),F(9,Bp,1,0,"dm-game-selector-menu",7),E(),x(10,"div",8)(11,"div",9)(12,"button",10),H("click",function(){B(e);let i=f();return V(i.openHelpCenter())}),M(13,"shared-svg-icon",11),E(),x(14,"a",12),Be(15,"routeTranslate"),Be(16,"async"),M(17,"shared-svg-icon",13),F(18,Vp,1,0,"span",14),E(),F(19,$p,4,7),x(20,"button",15),H("click",function(){B(e);let i=f();return V(i.openLocalizationSettingsDialog())}),M(21,"shared-svg-icon",16),E()(),x(22,"div",17),F(23,zp,1,0,"dm-balance-selector-menu",18)(24,Kp,6,9),M(25,"dm-user-menu",19),E()()()(),Re()}if(t&2){let e=a.$implicit,n=f();h(3),C("routerLink",Xe(5,19,Xe(4,17,de(25,Rp))))("queryParamsHandling","replace"),h(6),L(n.showExchange()?9:-1),h(3),C("testId",de(26,kp))("title",e("Help")),we("aria-label","Support"),h(2),C("routerLink",Xe(16,23,Xe(15,21,de(27,Dp))))("title",e("Click here to learn more about selling skins at decreased fees to get more money from sale"))("testId",de(28,Np)),we("aria-label","dmarket promo"),h(4),L(n.promoHasUpdates()?18:-1),h(),L(n.isLoggedIn()?19:-1),h(),C("title",e("Language"))("testId",de(29,Op)),we("aria-label","Localization settings"),h(),C("src",n.languageIcon()),h(2),L(n.isLoggedIn()?23:24)}}var Bc=(()=>{class t{constructor(){this.#e=m(Ne),this.#t=m($e),this.#n=m(Qt),this.#r=m(ec),this.#i=this.#e.langChanges,this.showExchange=this.#e.showExchange,this.languageIcon=be(()=>{let e=this.#i();return`icon-flag-${Ya[e].flagIconName}`}),this.isLoggedIn=this.#e.isLoggedIn,this.activeGameSlug=this.#e.activeGameSlug,this.activeTabEnum=this.#e.activeTabAsEnum,this.steamLoginUrls=this.#e.steamLoginUrls,this.feedUpdates=ye(this.#n.feedUpdated$.pipe(ne(Boolean))),this.promoHasUpdates=ye(this.#r.hasUpdates$),this.notificationUpdates=ye(Ut([this.#n.historyUpdated$,this.#n.verificationUpdated$]).pipe(ne(([e,n])=>e||n)))}#e;#t;#n;#r;#i;logIn(){this.#e.userLogin()}openHelpCenter(){this.#e.openHelpCenter()}openHistoryDialog(){this.#e.openHistoryDialog().pipe(te(this.#t)).subscribe()}openActiveTransactionsDialog(){this.#e.openActiveTransactionsDialog().pipe(te(this.#t)).subscribe()}openLocalizationSettingsDialog(){this.#e.openLocalizationSettingsDialog()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["dm-main-header"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","h-10","flex-row","flex-nowrap","items-center","justify-between","border-dm-neutral-800","bg-dm-stone-new-950","px-4","py-1","md:h-16","md:border-b","md:py-0","md:pl-0"],[1,"flex","h-full","flex-row","items-center","justify-center","border-dm-neutral-800","md:w-16","md:border-r","md:bg-dm-neutral-900"],["rel","noopener noreferrer nofollow","aria-label","go to home page",1,"flex","p-2",3,"routerLink","queryParamsHandling"],["src","icon-market-new",1,"block","size-5","text-green-400"],[1,"flex","h-full","grow","flex-row","items-center","justify-between"],[1,"flex","h-full","items-center"],[1,"hidden","md:block","md:pl-4"],[1,"flex","h-full","flex-row","flex-nowrap","items-center","gap-2","max-md:max-w-full","md:gap-6"],[1,"my-auto","flex","h-full","items-center","gap-4","self-stretch","text-neutral-200"],["dmButton","","size","icon-md","variant","transparent",1,"relative","max-md:hidden",3,"click","testId","title"],["src","icon-help",1,"block","size-6"],["dmButton","","size","icon-responsive-md","variant","transparent",1,"relative",3,"routerLink","title","testId"],["src","icon-fire",1,"block","size-5","text-rose-500","md:size-6"],[1,"dm-red-dot-pulse","after:-top-1","after:-right-2"],["dmButton","","size","icon-md","variant","transparent",1,"max-md:hidden",3,"click","title","testId"],[1,"block","size-6","text-neutral-200",3,"src"],[1,"my-auto","flex","h-full","items-center","gap-2","self-stretch","md:gap-4"],[1,"flex","h-full"],[1,"hidden","h-full","md:flex"],["dmButton","","size","icon-md","variant","transparent","class","relative max-md:hidden",3,"title","testId","click",4,"featureFlag","featureFlagValue"],["dmButton","","size","icon-md","variant","transparent",1,"relative","max-md:hidden",3,"click","title","testId"],["src","icon-notifications",1,"block","size-6"],["src","icon-p2p-general",1,"block","size-6"],["dmButton","","variant","secondary","size","responsive-md",3,"click","testId"],["vendor","steam","variant","secondary","iconColorClass","text-green-400","authType","Log in","aria-label","Steam Login",1,"md:hidden",3,"returnUrls","activeTabEnum"],["vendor","steam","variant","default","authType","Log in","aria-label","Steam Login",1,"hidden","md:block",3,"returnUrls","activeTabEnum"]],template:function(n,i){n&1&&K(0,qp,26,30,"ng-container",0)},dependencies:[Ee,Oe,ze,Lc,Rc,Uc,We,or,ot,ca,Gt,Yt],encapsulation:2,changeDetection:0})}}return t})();var Vc=(()=>{class t{#e=Se();setScreenHeight(){if(this.#e){let i=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${i}px`)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Hc=(()=>{class t{constructor(){this.ngZone=m(xe),this.notificationsService=m(Ye),this.#e=m(Qt),this.http=m(Fn),this.#t=m(Jn),this.userData$=to(this.#t.dmarketUserInfo).pipe(Kn(),te()),this.appVersionInfoOnSessionStart=null,this.#n=Se()}#e;#t;#n;notifyOnAppDeploy(){if(!this.#n)return Cn;let i=10*6e4,p=this.fetchVersionInfo().pipe(Z(I=>this.appVersionInfoOnSessionStart=I),re(()=>this.userData$),ie(I=>!!I?.id),he(1),Z(()=>this.#e.setAppVersionUpdated(this.appVersionInfoOnSessionStart))),g=Ti(i).pipe(re(()=>this.fetchVersionInfo()),ie(I=>{if(!I)return!1;let R=this.isNewVersionAvailable(I);return R&&(this.appVersionInfoOnSessionStart=I),R}),Z(()=>this.notify())),P=this.notificationsService.initSmartNotificationListener(Lr.ApplicationNewVersionIsAvailable,()=>window.location.reload());return new Ft(I=>{let R=this.ngZone.runOutsideAngular(()=>Ei(p,g,P).subscribe({error:$=>I.error($)}));return()=>R.unsubscribe()})}isNewVersionAvailable(e){return!!(this.appVersionInfoOnSessionStart?.shortHash&&e?.shortHash&&this.appVersionInfoOnSessionStart.shortHash!==e.shortHash)}fetchVersionInfo(){return this.http.get("https://cdn-mp.dmarket.com/prod/v2-97-17/assets/version.json",{params:{timestamp:new Date().getTime()}}).pipe(Ce(()=>je(null)))}notify(){let e=Lr.ApplicationNewVersionIsAvailable;this.notificationsService.pushSmartNotification(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gc=(()=>{class t{constructor(){this.platformId=m(wn),this.zone=m(xe),this.router=m(ke),this.viewportScroller=m($i),this.#e=Se(),this.ignoreQueryParamsChange=!0,this.currentUrl=""}#e;scrollOnNavigationEvent(){this.router.events.pipe(Kn(this.platformId),ie(e=>e instanceof io)).subscribe(e=>{let n=e.routerEvent;e.position?this.viewportScroller.scrollToPosition(e.position):e.anchor?this.scrollToAnchor(e.anchor):this.isRouteChanged(n)&&this.viewportScroller.scrollToPosition([0,0]),this.currentUrl=n.urlAfterRedirects})}isRouteChanged(e){if(this.ignoreQueryParamsChange){let n=this.stripQueryParams(e.urlAfterRedirects),i=this.stripQueryParams(this.currentUrl);return n!==i}else return e.urlAfterRedirects!==this.currentUrl}scrollToAnchor(e){this.#e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>this.viewportScroller.scrollToAnchor(e),1e3)})}stripQueryParams(e=""){return e.split("?")[0]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jc=(()=>{class t{constructor(){this.router=m(ke),this.authService=m(fs),this.signInService=m(ks),this.authFlowsStateService=m(ar),this.notificationsService=m(Ye),this.authDialogService=m(_a),this.sessionStorageService=m(Uo),this.assetDescriptionDialogService=m($s),this.affiliationLinkService=m(Wn),this.flowUrlStarterService=m(Xs),this.localStorageService=m(Lo),this.#e=m(fe),this.#t=m(Jn),this.#n=m(Qn),this.#r=m($a),this.paramsObservables=[],this.redirectsDone$=new Sn(!1)}#e;#t;#n;#r;checkUrlQueryParams(e,n){return e.queryParams.pipe(he(1),re(i=>this.processParams(i,n)))}checkBuyAssetParams(e){return e.queryParams.pipe(ie(n=>!!n[A.AssetForceBuy]),Si(n=>this.processParams(n,"")))}
1processParams(e,n){let i=this.getParamsFromRequest(e),p=this.getPermanentQueryParams(i);if(Object.keys(i).some(g=>!fa.includes(g))){let g=Object.fromEntries(Object.entries(p).map(([I,R])=>[I,Array.isArray(R)?R.join(","):R])),P=this.router.createUrlTree([],{queryParams:g,preserveFragment:!0});return setTimeout(()=>this.router.navigateByUrl(P,{replaceUrl:!0}),0),this.redirectsDone$.next(!0),this.handleParams(i,n)}else return je(null)}getParamsFromRequest(e){return ga.filter(n=>!!e[n]).reduce((n,i)=>Ie(J({},n),{[i]:e[i]}),{})}getPermanentQueryParams(e){let n=Object.keys(e);if(n.length>0){let p=Object.values(A);return n.filter(P=>!p.some(R=>R.toLowerCase()===P.toLowerCase())&&e[P]).reduce((P,I)=>Ie(J({},P),{[I]:e[I]}),{})}else return{}}returnNotification(e){e[A.LifeBeyondLinking]===Vr.Success?this.notificationsService.pushNotification({text:this.#e.translate("Account was linked successfully")}):e[A.LifeBeyondLinking]===Vr.Fail&&this.notificationsService.error({text:this.#e.translate("Failed to link the account. Please try again.")}),e[A.Error]===Br.Banned&&this.notificationsService.error({text:this.#e.translate("This account is under the temporary or permanent block in accordance with Terms of Use and Privacy Policy or is deleted by the owner's request.")}),e[A.Error]===Br.SanctionedRegion&&this.notificationsService.error({text:this.#e.translate("Account is frozen as DMarket stops operating for users from Russia and Belarus due to Russia\u2019s invasion of Ukraine.")})}handleParams(e,n){if(this.paramsObservables=[],e[A.AssetForceBuy]&&this.flowUrlStarterService.setAssetForceBuyParam(e[A.AssetForceBuy]),e[A.UserOfferId]&&this.paramsObservables.push(this.assetDescriptionDialogService.openShareUrlPopupByOfferId(e[A.UserOfferId])),(e[A.Error]||e[A.LifeBeyondLinking])&&this.returnNotification(e),e[A.ActiveFlow]&&this.flowUrlStarterService.saveActiveFlow(e[A.ActiveFlow]),e[A.ActiveFlowUserItemsIds]&&this.flowUrlStarterService.setActiveFlowItemsIds(e[A.ActiveFlowUserItemsIds],Ar.user),e[A.ActiveFlowMarketItemsIds]&&this.flowUrlStarterService.setActiveFlowItemsIds(e[A.ActiveFlowMarketItemsIds],Ar.market),e[A.EmailVerification]&&this.authService.emailConfirmed(e[A.EmailVerification]),e[A.RemarketingSell]){let g=n.split(A.RemarketingSell+"=")[1];this.flowUrlStarterService.saveUserRemarketingTitle(g)}e[A.PasswordRecovery]&&this.paramsObservables.push(this.authFlowsStateService.resetPassword(e[A.PasswordRecovery]).pipe(Z(()=>this.authDialogService.openAuthDialog())));let i=this.#n.isLoggedIn(),p=e[A.AuthFlow];if(p&&Object.values(Fr).includes(p)&&!i&&this.authDialogService.openAuthDialog(),e[A.AuthResult]&&e[A.ResultHash]&&this.processAuthResult(e,e[A.AuthAction]),e[A.AuthError]&&e[A.Provider])if(e[A.AttachErrorCode]==="accountAlreadyAttached"){let g=e[A.Provider]+"_"+A.AttachErrorCode;this.authFlowsStateService.processAlreadyAttachedAccount(e[A.AuthAction],e[A.Provider],g,e[A.Error])}else{this.authFlowsStateService.sendAuthActionGaEvents(e[A.AuthAction],e[A.Provider],e[A.Error]);let g=e[A.Provider]+"_genericAuthError";this.notificationsService.pushNotification({text:this.#e.translate(Fa(g))})}return Object.values(Or).includes(e[A.Provider])&&this.authFlowsStateService.vendorAuthAction.next({authAction:e[A.AuthAction],provider:e[A.Provider],authError:e[A.Error]}),e[A.Promo]&&this.sessionStorageService.set(Ys,e[A.Promo]),e[A.Ref]&&this.affiliationLinkService.saveAffiliationCodeToStorage(e[A.Ref]),this.paramsObservables.length?Ut(this.paramsObservables):je(null)}processAuthResult(e,n){let i=e[A.Provider];e[A.AuthResult]===qt.OTPVerifyRequired&&(this.authFlowsStateService.tfaFlow$.next(e[A.ResultHash]),this.authDialogService.openAuthDialog()),e[A.AuthStartPlace]&&this.authFlowsStateService.startAuthPlace$.next(e[A.AuthStartPlace]),this.localStorageService.get(nr.storageKey)&&n===Fr.Login&&i===Or.Steam&&this.localStorageService.set(nr.storageKey,nr.successState),e[A.AuthResult]===qt.TokenExchangeRequired&&e[A.AuthAction]&&this.paramsObservables.push(this.signInService.sendExchangeToken(e[A.ResultHash],i).pipe(Z(g=>{g&&g.Result===qt.IPConfirmationRequired&&(g.Email&&this.signInService.$email.next(g.Email),this.authFlowsStateService.ipConfirmationFlow$.next(!0),this.authDialogService.openAuthDialog())}),ie(g=>g&&g.Result!==qt.IPConfirmationRequired),Z(()=>this.authFlowsStateService.sendAuthActionGaEvents(n,i)),Z(()=>ae(this,null,function*(){return yield this.updateUserData()})))),e[A.AuthResult]===qt.IPConfirmationRequired&&this.paramsObservables.push(this.signInService.verifyClientIpAddress(e[A.Re
1sultHash],i).pipe(Z(()=>ae(this,null,function*(){return yield this.updateUserData()})),Z(()=>this.notificationsService.pushNotification({text:this.#e.translate("Successfully authenticated")})),Ce(({code:g,traceId:P})=>(this.signInService.handleClientIpVerificationAddress(g,P),je(g)))))}updateUserData(){return ae(this,null,function*(){yield this.#t.updateUserData(),yield this.#r.updateUserKycData()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zc=(()=>{class t{#e;#t;#n;#r;#i;#o;#c;#l;#d;#f;#g;#h;#v;#m;#_;#y;#S;#C;#x;#b;#u;#p;#a;#T;#s;#E;#I;#w;constructor(){this.#e=m(ar),this.#t=m(Vc),this.#n=m(Ne),this.#r=m(Ws),this.#i=m(fe),this.#o=m(jc),this.#c=m(oo),this.#l=m(ke),this.#d=m(Wn),this.#f=m(Hc),this.#g=m(Xn),this.#h=Da(),this.#v=m(Ye),this.#m=m(sr),this.#_=m(ls),this.#y=m(Qs),this.#S=m(Js),this.#C=m(Zs),this.#x=m(As),this.#b=m(Gc),this.#u=m(mn),this.#p=m(xe),this.#a=m($e),this.#T=m(qe),this.#s=Se(),this.microData=m(as).microData,this.#E=jt(e=>{this.#s&&e?.id&&(this.#e.updateAuthState(e),this.#C.init(),this.#y.loadCheckoutRisk())}),this.#I=jt(e=>{this.#s&&e&&this.#d.registerAffiliate(e).pipe(te(this.#a)).subscribe()}),this.#w=(()=>{let e;return jt(n=>{if(!n)return;e&&this.#g.activeCurrency()!==ia&&!(0,$c.default)(n,e)&&this.#v.pushNotificationWithTextTranslation({text:"The exchange rate for Non-USD currencies has been updated"}),e=n})})(),this.#E(this.#n.userData),this.#I(this.#n.userId),this.#w(this.#h.data),this.#P(),this.#R(),Oi(()=>this.#M())}ngOnInit(){this.#i.initLanguageFromUrl(),this.#_.registerTrafficSource().pipe(te(this.#a)).subscribe(),this.adjustHeightOnResize(),this.#r.initWebSockets().pipe(te(this.#a)).subscribe(),this.#s&&this.#A()}adjustHeightOnResize(){this.#t.setScreenHeight()}#M(){this.#f.notifyOnAppDeploy().pipe(te(this.#a)).subscribe(),this.#p.runOutsideAngular(()=>{this.#b.scrollOnNavigationEvent()}),this.#x.initDialog(),this.#S.init()}#A(){let e=window.location.href;this.#p.runOutsideAngular(()=>{this.#l.events.pipe(ie(n=>n instanceof ro),he(1),re(()=>this.#o.checkUrlQueryParams(this.#c,e)),he(1),re(()=>this.#m.initFlowState())).subscribe()}),this.#o.checkBuyAssetParams(this.#c).pipe(te(this.#a)).subscribe(()=>{this.#m.startAssetForceBuyFlow($t.Buy,{flowStartSource:ka.FlowButton}).pipe(te(this.#a)).subscribe()})}#P(){this.#u.onDestroy(()=>{this.#T.clear(),Te()&&console.log(`${this.#s?"Browser":"Server"} Destroyed`)})}#R(){if(this.#s&&!Te())return;let e=Date.now();this.#u.isStable.pipe(ie(Boolean),he(1),te(this.#a)).subscribe(()=>{let n=Date.now()-e;!this.#s&&Ao(this.#l.url)&&process.stdout.write(`\u23F1 render phase: bootstrap\u2192stable ${n}ms ${JSON.stringify(this.#l.url)} 2`),Te()&&console.log(`is stable in ${n} ms`)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["app-root"]],hostBindings:function(n,i){n&1&&H("resize",function(){return i.adjustHeightOnResize()},Ni)},decls:10,vars:2,consts:[[3,"innerHTML"],[1,"c-notifications"],[1,"grid","h-[calc(100dvh-2.5rem)]","grid-cols-1","grid-rows-[1fr_48px]","overflow-hidden","bg-dm-stone-new-950","md:h-[calc(100dvh-4rem)]","md:grid-cols-[64px_1fr]","md:grid-rows-1"],[1,"hidden","h-full","flex-col","gap-4","border-r","border-dm-neutral-800","bg-dm-neutral-900","py-4","md:flex"],[1,"dm-scrollbar","h-[calc(100dvh-5.5rem)]","overflow-auto","md:h-[calc(100dvh-4rem)]"],[1,"col-span-2","block","md:hidden"]],template:function(n,i){n&1&&(M(0,"div",0)(1,"simple-notifications",1)(2,"dm-toaster")(3,"dm-header-banner-toasts")(4,"dm-main-header"),x(5,"div",2),M(6,"exchange-side-nav",3),x(7,"main",4),M(8,"router-outlet"),E(),M(9,"exchange-footer-nav",5),E()),n&2&&(C("innerHTML",i.microData(),Mn),h(7),we("data-parentScrollElement",!0))},dependencies:[ps,ao,Bc,Ac,Pc,Is,wc],encapsulation:2,changeDetection:0})}}return t})();var jr="Service workers are disabled or not supported by this browser",tn=class{serviceWorker;worker;registration;events;constructor(a,e){if(this.serviceWorker=a,!a)this.worker=this.events=this.registration=new Ft(n=>n.error(new wt(5601,!1)));else{let n=null,i=new Lt;this.worker=new Ft(R=>(n!==null&&R.next(n),i.subscribe($=>R.next($))));let p=()=>{let{controller:R}=a;R!==null&&(n=R,i.next(n))};a.addEventListener("controllerchange",p),p(),this.registration=this.worker.pipe(re(()=>a.getRegistration().then(R=>{if(!R)throw new wt(5601,!1);return R})));let g=new Lt;this.events=g.asObservable();let P=R=>{let{data:$}=R;$?.type&&g.next($)};a.addEventListener("message",P),e?.get(mn,null,{optional:!0})?.onDestroy(()=>{a.removeEventListener("controllerchange",p),a.removeEventListener("message",P)})}}
2postMessage(a,e){return new Promise(n=>{this.worker.pipe(he(1)).subscribe(i=>{i.postMessage(J({action:a},e)),n()})})}postMessageWithOperation(a,e,n){let i=this.waitForOperationCompleted(n),p=this.postMessage(a,e);return Promise.all([p,i]).then(([,g])=>g)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(a){let e;return typeof a=="string"?e=n=>n.type===a:e=n=>a.includes(n.type),this.events.pipe(ie(e))}nextEventOfType(a){return this.eventsOfType(a).pipe(he(1))}waitForOperationCompleted(a){return new Promise((e,n)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(ie(i=>i.nonce===a),he(1),ne(i=>{if(i.result!==void 0)return i.result;throw new Error(i.error)})).subscribe({next:e,error:n})})}get isEnabled(){return!!this.serviceWorker}},qc=(()=>{class t{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new Lt;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=vt,this.notificationClicks=vt,this.notificationCloses=vt,this.pushSubscriptionChanges=vt,this.subscription=vt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(ne(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(ne(i=>i.data)),this.notificationCloses=this.sw.eventsOfType("NOTIFICATION_CLOSE").pipe(ne(i=>i.data)),this.pushSubscriptionChanges=this.sw.eventsOfType("PUSH_SUBSCRIPTION_CHANGE").pipe(ne(i=>i.data)),this.pushManager=this.sw.registration.pipe(ne(i=>i.pushManager));let n=this.pushManager.pipe(re(i=>i.getSubscription()));this.subscription=new Ft(i=>{let p=n.subscribe(i),g=this.subscriptionChanges.subscribe(i);return()=>{p.unsubscribe(),g.unsubscribe()}})}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(jr));let n={userVisibleOnly:!0},i=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),p=new Uint8Array(new ArrayBuffer(i.length));for(let g=0;g<i.length;g++)p[g]=i.charCodeAt(g);return n.applicationServerKey=p,new Promise((g,P)=>{this.pushManager.pipe(re(I=>I.subscribe(n)),he(1)).subscribe({next:I=>{this.subscriptionChanges.next(I),g(I)},error:P})})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));let e=n=>{if(n===null)throw new wt(5602,!1);return n.unsubscribe().then(i=>{if(!i)throw new wt(5603,!1);this.subscriptionChanges.next(null)})};return new Promise((n,i)=>{this.subscription.pipe(he(1),re(e)).subscribe({next:n,error:i})})}decodeBase64(e){return atob(e)}static \u0275fac=function(n){return new(n||t)(Bt(tn))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),dr=(()=>{class t{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}ongoingCheckForUpdate=null;constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=vt,this.unrecoverable=vt;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let e=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e).finally(()=>{this.ongoingCheckForUpdate=null}),this.ongoingCheckForUpdate}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new wt(5601,!1));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(n){return new(n||t)(Bt(tn))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Wc=new tt("");function Wp(){let t=m(fn);if(!("serviceWorker"in navigator&&t.enabled!==!1))return;let a=m(Wc),e=m(xe),n=m(mn);e.runOutsideAngular(()=>{let i=navigator.serviceWorker,p=()=>i.controller?.postMessage({action:"INITIALIZE"});i.addEventListener("controllerchange",p),n.onDestroy(()=>{i.removeEventListener("controllerchange",p)})}),e.runOutsideAngular(()=>{let i,{registrationStrategy:p}=t;if(typeof p=="function")i=new Promise(g=>p().subscribe(()=>g()));else{let[g,...P]=(p||"registerWhenStable:30000").split(":");switch(g){case"registerImmediately":i=Promise.resolve();break;case"registerWithDelay":i=Kc(+P[0]||0);break;
2case"registerWhenStable":i=Promise.race([n.whenStable(),Kc(+P[0])]);break;default:throw new wt(5600,!1)}}i.then(()=>{n.destroyed||navigator.serviceWorker.register(a,{scope:t.scope,updateViaCache:t.updateViaCache,type:t.type}).catch(g=>console.error(Ai(5604,!1)))})})}function Kc(t){return new Promise(a=>setTimeout(a,t))}function Yp(){let t=m(fn),a=m(Ri),e=!0;return new tn(e&&t.enabled!==!1?navigator.serviceWorker:void 0,a)}var fn=class{enabled;updateViaCache;type;scope;registrationStrategy};function Qp(t,a={}){return _t([qc,dr,{provide:Wc,useValue:t},{provide:fn,useValue:a},{provide:tn,useFactory:Yp},yt(Wp)])}var Yc=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[Qp(e,n)]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Fi({type:t});static \u0275inj=Pi({providers:[qc,dr]})}return t})();var Qc=(()=>{class t{intercept(e,n){let i=Do(e.url);return i?n.handle(e).pipe(Ce(p=>this.#e(p)?n.handle(e.clone({url:i})):et(()=>p))):n.handle(e)}#e(e){return e instanceof xt&&(e.status===0||e.status>=Eo)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var gn="X-Trace-Id",Zc=(()=>{class t{#e=m(Ke);#t=m(qn);intercept(e,n){return this.isExchangeApiUrl(e.url)&&this.#t.addRequestUrl(e.urlWithParams),this.handleHttpRequest$(e,n)}isExchangeApiUrl(e){return e.startsWith(this.#e.getValue("exchangeApiUrl"))}handleHttpRequest$(e,n){return n.handle(e).pipe(ie(i=>i instanceof Ct),Z(i=>{this.isExchangeApiUrl(e.url)&&this.#t.addXTraceIdToRequestUrl(e.urlWithParams,i.headers.get(gn)||"")}),Ce(i=>(i instanceof Ct&&this.isExchangeApiUrl(e.url)&&this.#t.addXTraceIdToRequestUrl(e.urlWithParams,i.headers.get(gn)||""),et(()=>i))),bn(()=>{this.isExchangeApiUrl(e.url)&&this.#t.removeRequestUrl(e.urlWithParams)}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zp=2e4,Xc=(()=>{class t{#e;#t;#n;#r;constructor(){this.ngZone=m(xe),this.notificationsService=m(Ye),this.#e=m(fe),this.#t=m(Ke),this.#n=void 0,this.#r=Ae(),this.showMessageEvent=new Lt,this.setUpBrowserNotificationListener()}intercept(e,n){let i=e.url.includes(this.#t.rootApiUrl());if(this.#r||!i)return n.handle(e);let p=!0,g;return this.ngZone.runOutsideAngular(()=>{g=setTimeout(()=>{p&&this.showMessageEvent.next()},Zp)}),n.handle(e).pipe(Ce(P=>(P instanceof Ct&&(this.#n=P.headers.get(gn)??void 0),p=!1,et(()=>P))),Z(P=>{P instanceof Ct&&(this.#n=P.headers.get(gn)??void 0,p=!1)}),bn(()=>{clearTimeout(g),p=!1}))}setUpBrowserNotificationListener(){this.#r||this.ngZone.runOutsideAngular(()=>{let e=!1;this.showMessageEvent.pipe(ie(()=>!e)).subscribe(()=>{this.showMessage(),e=!0,setTimeout(()=>e=!1,6e4)})})}showMessage(){this.notificationsService.pushNotification({text:this.#e.translate("It\u2019s a rush hour on DMarket, pages may take longer than usual to respond. This won\u2019t last long, thank you for your patience."),traceId:this.#n}),this.#n=void 0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var Jc="payment-session-id",el=(()=>{class t{constructor(){this.#e=m(Ke),this.#t=Ae(),this.#n=this.#e.getExternalApiUrls(),this.lastPaymentSessionId=""}#e;#t;#n;intercept(e,n){return this.#t||Ro(e,this.#n)?n.handle(e):(this.lastPaymentSessionId&&(e=e.clone({setHeaders:{[Jc]:this.lastPaymentSessionId}})),n.handle(e).pipe(Z(p=>{if(p instanceof Ct){let g=p.headers.get(Jc);!this.lastPaymentSessionId&&g&&(this.lastPaymentSessionId=g)}})))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var tl=(()=>{class t{constructor(){this.notificationsService=m(Ye),this.#e=m(fe),this.#t=m(qn),this.#n=m(Ke),this.#r=Ae()}#e;#t;#n;#r;intercept(e,n){return this.#r||!this.isExchangeApiUrl(e.url)?n.handle(e):n.handle(e).pipe(wi({count:Un,delay:(i,p)=>{if(i instanceof xt&&this.isRateLimitError(i)){let g=Bn*Vn**(p-1);return bi(Math.min(g,Hn))}throw i}}),Ce(i=>(this.isRateLimitError(i)&&this.notificationsService.pushNotification({text:this.#e.translate("Oops\u2026you have sent too many requests to us recently. Please try again a bit later."),traceId:this.#t.getXTraceIdByRequestUrl(e.url)}),et(()=>i))))}isRateLimitError(e){return e.status===Ln}isExchangeApiUrl(e){return e.startsWith(this.#n.getValue("exchangeApiUrl"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var nl=(()=>{class t{constructor(){this.user=m($n),this.notificationsService=m(Ye),this.languageService=m(fe),this.#e=Ae()}#e;intercept(e,n){return this.#e?n.handle(e):n.handle(e).pipe(Ce(i=>(this.user.isAuthenticated()&&Io(i)&&(this.notificationsService.pushNotification({text:this.languageService.translate("Your account is temporarily limited from using this function."),icon:us.error,type:ms.Error}),i.statusText=To),et(()=>i))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var $r="dmarket-pending-clear-storage-keys";function rl(){if(!(typeof localStorage>"u"))try{let t=localStorage.getItem($r);if(!t)return;localStorage.removeItem($r),JSON.parse(t).forEach(a=>localStorage.removeItem(a))}catch(t){}}var il=(()=>{class t{init(e){return xn(e.pipe(ie(aa),he(1),Z(n=>{this.handleEvent(n)})))}handleEvent(e){if(!e||e&&Object.values(e).length===0)return e;try{if(localStorage.getItem(Pr)!==e.version){e.version&&localStorage.setItem(Pr,e.version);let i=e.storageKeys??[];
2i.forEach(p=>localStorage.removeItem(p)),i.length&&localStorage.setItem($r,JSON.stringify(i))}}catch(n){console.warn("client persist storage clean failed.",n)}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xp=86400,Jp={ttl:Xp,storageKey:"@transloco/translations"},al=new tt("TRANSLOCO_PERSIST_TRANSLATIONS_LOADER"),sl=new tt("The storage to use for the persistance behavior"),cl=new tt("Configuration for the storage behavior");function ed(t){return ts(t?.then)}function ol(t){return ed(t)||It(t)?Ze(t):je(t)}function zr(t){return`${t}/timestamp`}var td=(()=>{class t{loader=m(al);storage=m(sl);config=m(cl);subscription=this.clearCurrentStorage().subscribe();cache=null;getTranslation(e){let n=this.config.storageKey;return this.getCached(n).pipe(re(i=>i?.[e]?je(i[e]):Ze(this.loader.getTranslation(e)).pipe(Z(p=>this.setCache(n,e,p)))))}clearCache(){this.clearTimestamp(this.config.storageKey),this.clearTranslations(),this.cache=null}getCached(e){return this.cache?je(this.cache):ol(this.storage.getItem(e)).pipe(ne(n=>n?this.decode(e,n):null),Z(n=>{this.cache=n}),he(1))}setCache(e,n,i){let p=this.cache||{};p[n]=i,this.setTimestamp(e),this.storage.setItem(e,this.encode(p)),this.cache=p}encode(e){return JSON.stringify(e)}decode(e,n){if(rs(n))return n;if(ns(n))try{return JSON.parse(n)}catch(i){return console.error(`storage key: ${e} is not serializable`),null}return null}setTimestamp(e){this.storage.setItem(zr(e),Date.now())}getTimestamp(e){return ol(this.storage.getItem(zr(e))).pipe(ne(parseInt))}clearTimestamp(e){this.storage.removeItem(zr(e))}clearTranslations(){this.storage.removeItem(this.config.storageKey)}clearCurrentStorage(){let e=this.config.storageKey;return this.getTimestamp(e).pipe(ie(Boolean),Z(n=>{Date.now()-n>=this.config.ttl&&this.storage.removeItem(e)}))}ngOnDestroy(){this.subscription?.unsubscribe(),this.subscription=null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ll(n){var i=n,{storage:t,loader:a}=i,e=Ot(i,["storage","loader"]);return _t([{provide:Qa,useClass:td},nd(e),{provide:al,useClass:a},J({provide:sl},t)])}function nd(t){return{provide:cl,useValue:J(J({},Jp),t)}}var ml=new tt("Languages to be preloaded"),rd=(()=>{class t{idleCallbackId;subscription=null;constructor(e,n){n.length&&(this.idleCallbackId=window.requestIdleCallback(()=>{let i=n.map(p=>{let g=e._completeScopeWithLang(p);return e.load(g).pipe(Z(()=>{e.config.prodMode||console.log(`%c \u{1F441} Preloaded ${g}`,"background: #fff; color: #607D8B;")}))});this.subscription=Ci(i).subscribe()}))}ngOnDestroy(){this.idleCallbackId!==void 0&&window.cancelIdleCallback(this.idleCallbackId),this.subscription?.unsubscribe(),this.subscription=null}static \u0275fac=function(n){return new(n||t)(Bt(Za),Bt(ml))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();window.requestIdleCallback=window.requestIdleCallback??function(t){let a=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)};window.cancelIdleCallback=window.cancelIdleCallback??function(t){clearTimeout(t)};function id(){}function ul(t){return _t([{provide:ml,useValue:t},{provide:Li,useFactory:()=>id,multi:!0,deps:[rd]}])}var Je=yi(dl());var fl="dmarket-akita-signalstore-migration-v5",od=["dmarket-akita-signalstore-migration-v1","dmarket-akita-signalstore-migration-v2","dmarket-akita-signalstore-migration-v3","dmarket-akita-signalstore-migration-v4"],gl=`${jn}/${Rr.key}`,ad=["exchange-header-onboarding","exchange-tabs-updates","set-price-warning","manage-price-notice","price-selector-highlights",ya];function hl(){if(!(typeof localStorage>"u")&&!localStorage.getItem(fl))try{let t=localStorage.getItem(gl);if(t){let a=JSON.parse(t);for(let n of ad){if(localStorage.getItem(n)!==null)continue;let i=a[n];i!==void 0&&localStorage.setItem(n,JSON.stringify(i))}let e=Object.entries(a).filter(([n])=>Rr.include.includes(n));localStorage.setItem(gl,JSON.stringify(Object.fromEntries(e)))}
2od.forEach(a=>localStorage.removeItem(a)),localStorage.setItem(fl,"1")}catch(t){}}Je.default.config({driver:Je.default.LOCALSTORAGE,name:jn});hl();rl();var sd={getItem:t=>ae(null,null,function*(){return yield Je.default.ready(),Je.default.getItem(t)}),setItem:(t,a)=>ae(null,null,function*(){return yield Je.default.ready(),Je.default.setItem(t,a).catch(e=>{if(e instanceof DOMException&&e.name==="QuotaExceededError")return null;throw e})}),removeItem:t=>Je.default.removeItem(t),clear:()=>Je.default.clear(),length:()=>Je.default.length(),key:t=>Je.default.key(t)},cd=[Mt(()=>ae(null,null,function*(){let t=m(xe),a=m(Kt);yield m(il).init(a.getValue$("dmarket-ui-clear-client-cache")),Te()&&Ji(t,{maxAge:20})}))],vl={providers:[...cd,{provide:Xo,useValue:{usePopover:!1}},{provide:it,useClass:Qc,multi:!0},{provide:it,useClass:Zc,multi:!0},{provide:it,useClass:el,multi:!0},{provide:vs,useValue:{siteKey:De.recaptchaKey}},Jo,ea,ul(["filters","flows"]),ll({loader:es,storageKey:`dm-translations-${De.environmentName}`,ttl:72e5,storage:{useValue:sd}}),Tn(Yc.register("ngsw-worker.js",{enabled:!Te(),registrationStrategy:"registerWhenStable:30000"})),dr]};var ld=(t,a)=>ae(null,null,function*(){let e=m(xe);if(!Te())return!0;let n=yield t;if(n.length===0)return!0;let i={onUnhandledRequest:"bypass"};return new Promise(p=>{e.runOutsideAngular(()=>ae(null,null,function*(){let{setupWorker:g}=yield import("./chunk-MPZXHCOU.js");yield g(...n).start(J(J({},i),a)),p(!0)}))})}),_l=(t,a)=>yt(ld.bind(null,t,a));var md=5,ud=40,qr=class extends In{#e=null;#t=null;#n=0;#r=0;add(){this.#n++;let a=super.add();return()=>{this.#i(),this.#n++,queueMicrotask(a)}}#i(){if(this.#e??=super.add(),this.#t!==null)return;let a=this.#n;this.#t=setTimeout(()=>{if(this.#t=null,!(this.#n===a)&&++this.#r<ud){this.#i();return}let n=this.#e;this.#e=null,this.#r=0,n?.()},md)}};function yl(){return{provide:In,useFactory:()=>ji(m(wn))?new qr:new In}}function Sl(){Er.onUnhandledError||(Er.onUnhandledError=t=>{console.warn("\u{1F7E8} rxjs unhandled error (contained):",t instanceof Error?t.stack??t:t)})}var Cl=()=>({\u0275kind:"Devtools",\u0275providers:[]});var xl="tanstack-query-state",bl=(t,a)=>a instanceof xt&&a.status===Ln?t<Un:!1,Tl=t=>Math.min(Bn*Vn**t,Hn),El=new tt("QUERY_CLIENT",{factory:()=>new qe({defaultOptions:{queries:Ie(J({},Gn.infinite),{networkMode:Ae()?"online":"offlineFirst",retryOnMount:!Ae(),retry:bl,retryDelay:Tl}),mutations:{retry:bl,retryDelay:Tl}}})}),pd=[Mt(()=>{let t=m(El),a=m(Di);if(Se())try{let e=a.get(xl,{mutations:[],queries:[]});Ia(t,e)}catch(e){Te()&&console.error(e)}else a.onSerialize(xl,()=>Ea(t,{shouldDehydrateQuery:e=>e.state.status==="success"}))})],dd=[Mt(()=>{if(Se()){let t=m(xe);ba.setTimeoutProvider({setTimeout:(a,e)=>t.runOutsideAngular(()=>setTimeout(a,e)),clearTimeout:a=>clearTimeout(a),setInterval:(a,e)=>t.runOutsideAngular(()=>setInterval(a,e)),clearInterval:a=>clearInterval(a)})}})],Il=[Aa(El,...typeof window<"u"?[Cl(()=>({position:"right",buttonPosition:"bottom-left"}))]:[]),...dd,...pd];var wl=()=>typeof DM_ZONELESS<"u"&&DM_ZONELESS,fd=()=>wl()?(Sl(),Vi()):Hi({eventCoalescing:!0}),Ml=()=>[Ki(Wi(),qi()),fd(),...wl()?[yl()]:[],Xi(Zi(),Qi()),...Rs,...Il];var Al=t=>[yt(()=>{m(gs).addSvgIconSet(m(Yi).bypassSecurityTrustResourceUrl(t))})];var Pl=(()=>{class t{shouldDetach(){return!1}store(e,n){}shouldAttach(){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return this.#e(e)&&this.#e(n)?!0:e.routeConfig===n.routeConfig}#e(e){let n=e.routeConfig?.path??"";return n.startsWith("ingame-items/item-list")||n.includes("/product-card/")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gd=/&|�*38;|�*26;/gi,hd=/(?:%[0-9A-Fa-f]{2})+/g,vd=/[?&=#/+%]/g,_d={"?":"%3F","&":"%26","=":"%3D","#":"%23","/":"%2F","+":"%2B","%":"%25"};function yd(t){let a=t.indexOf("?");return a===-1?t:t.substring(0,a)+t.substring(a).replace(/\+/g,"%20")}function Sd(t){return t.replace(hd,a=>{try{return decodeURIComponent(a).replace(vd,e=>_d[e])}catch(e){return a}})}var Rl=(()=>{class t{parse(e){let n=new wr,i=yd(e).replace(gd,"&");try{return n.parse(i)}catch(p){if(!(p instanceof URIError))throw p;let g=i.indexOf("#"),P=g===-1?i:i.substring(0,g),I=g===-1?"":i.substring(g),R=P.indexOf("?"),$=R===-1?P:P.substring(0,R);for(let Fe of[$+I,$])try{return n.parse(Fe)}catch(T){if(!(T instanceof URIError))throw T}return n.parse("/")}}serialize(e){let n=new wr;return Sd(n.serialize(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();
2var Cd={domain:De.tokenCookieDomain,path:"/",secure:!Te()},kl={providers:[...os.providers,...Ml(),{provide:ki,useValue:"dmarket"},Ua(),...Al("https://cdn-mp.dmarket.com/prod/v2-97-17/assets/img/icons/sprites/dm-icons-sprite.svg"),...ds,...ra,{provide:ta,useValue:{disabled:!0}},Tn([Zo,Gi,oa.forRoot({clientOnly:!0,baseUrl:"https://cdn-mp.dmarket.com/prod/v2-97-17/assets/img/icons/"}),ma.withConfig({apiHost:De.growthBook.apiHost,clientKey:De.growthBook.clientKey,enableDevMode:De.environmentName!=="production"})]),{provide:ha,useValue:De},{provide:Ba,useValue:{endpoint:De.analyticsCollectorUrl}},{provide:Ho,useExisting:Ke},{provide:Ps,useValue:De.imgProxy},{provide:Wa,useValue:De.zendeskMessaging},{provide:it,useClass:Fo,multi:!0},{provide:it,useClass:tl,multi:!0},{provide:it,useClass:Xc,multi:!0},{provide:it,useClass:nl,multi:!0},{provide:it,useClass:ja,multi:!0},{provide:qo,useClass:kr},{provide:Yo,useValue:10},{provide:zo,useValue:Vo.Refreshable},{provide:Wo,useValue:{url:`${De.exchangeApiUrl}${va.MarketPlaceApi}/${De.defaultServiceVersion}/refresh-token`,httpMethod:Bo.POST}},{provide:Ko,useValue:"dm-trade-userData"},{provide:Go,useValue:Cd},{provide:kr,useClass:zt},{provide:Qo,useClass:$n},{provide:En,useClass:Ga},{provide:co,useClass:Pl},{provide:no,useClass:Rl},qs(),{provide:Ms,useFactory:()=>Na()},{provide:qa,useExisting:Wt},{provide:sa,useFactory:()=>{let t=m(Sa);return()=>t.isNewUser()}},{provide:la,useFactory:()=>()=>tr("/error",m(fe).currentLanguage)},{provide:ko,useExisting:is},{provide:jo,useValue:Ca},{provide:$o,useValue:xa},Ha,yt(()=>{let t=m(Kt),a=m(Va);t.experimentViewed$.asObservable().subscribe(({key:e,value:n})=>{a.sendEvent("GrowthBook","Experiment Viewed",e,n,!0)})})]};var Dl=t=>{let a=t.prices?.[0];return a?{pricePennies:a.min_price?.amount??null,offersCount:a.offers_count??0,uri:a.path??null}:null};var Nl=(()=>{class t{#e=m(Fn);#t=m(Ke);get#n(){return this.#t.exchangeApiUrl()}getMinPrice(e,n){let{gameId:i,name:p}=e;return xn(this.#e.get(`${this.#n}/market/product/min-prices`,{params:{gameId:i,name:p}}).pipe(ne(Dl),Ce(this.#r.bind(this)),Mi(n),Ii(null)))}#r(){return je(null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Wr={all:()=>["min-prices"],detail:t=>[...Wr.all(),t.gameId,t.name]};var Ol=(t,a)=>{let e=m(Nl),n=Se();return Ma(()=>{let i={gameId:t()??"",name:a()??""};return Ie(J({},Gn.sm(n)),{enabled:!!i.gameId&&!!i.name,queryKey:Wr.detail(i),queryFn:p=>e.getMinPrice(i,xi(p.signal,"abort"))})})};function hn(t,a){let e=tr("/error",a.currentLanguage),n=t.parseUrl(e);return n.queryParams={},new so(n)}function Yr(){return t=>ae(null,null,function*(){let a=m(fe),e=m(ke),n=m(qe),i=m(nc),p=t.params;if(Co.includes(p.gameId))return hn(e,a);let g=t.queryParams,P=rc(p,g);try{if(yield n.query(ic(i,P)))return!0}catch(I){if(wa(I))return!0;if(!(I instanceof xt))throw I}return hn(e,a)})}function nn(){return t=>ae(null,null,function*(){let a=m(fe),e=m(ke),n=t.params.gameId;return So.includes(n)?!0:hn(e,a)})}function rn(){return t=>ae(null,null,function*(){if(!Ae())return!0;let a=Zn.find(i=>i.slug===t.params.gameId)?.id;if(!a)return!0;let e=m(qe),n=m(oc);try{yield e.query(lc(n,a))}catch(i){}return!0})}function Fl(){return t=>{let a=Zn.find(R=>R.slug===t.params.gameId)?.id,e=Object.keys(t.queryParams).every(R=>pa.test(R)),n=m(ke).currentNavigation()?.id===1&&e;if(!Se()||!a||!n)return!0;let i=m(qe),p=m(mr),g=ft.DmarketOffers,P=i.getQueryData(ac.details(a));if(!cc(p.marketItemsFiltersState(),sc(P,"market",g)))return!0;let I=Fs({activeGameId:a,activeTab:g,isLoggedIn:m(Qn).isLoggedIn(),treeFiltersString:p.marketTreeFiltersString(),itemFiltersString:p.marketItemsFiltersString()});return i.infiniteQuery(Ls(m(Ns),I,!0)).catch(Ta),!0}}function Qr(){return t=>ae(null,null,function*(){var P;if(!Ae())return!0;let I=t.queryParams,{[P=bt]:a}=I,e=Ot(I,[_i(P)]),n=pc(t.params,e);if(!n)return!0;let i=uc(e),p=m(qe),g=m(mc);try{yield p.query(dc(g,n,i,!1))}catch(R){}return!0})}function on(){return ae(this,null,function*(){return import("./chunk-M6J2OSA5.js").then(t=>t.BalanceTransactionStatusComponent)})}var Ll=[{path:"withdraw/failed",data:{name:"withdrawFailed"},loadComponent:()=>on()},{path:"withdraw/success",data:{name:"withdrawSuccess"},loadComponent:()=>on()},{path:"deposit/failed",data:{name:"depositFailed"},loadComponent:()=>on()},{path:"deposit/success",data:{name:"depositSuccess"},loadComponent:()=>on()},{path:"deposit/processing/:id",data:{name:"depositProcessing"},loadComponent:()=>on()},{path:"withdraw/processing/:id",data:{name:"withdrawProcessing"},loadComponent:()=>on()}];var xd=[{path:q.promo,loadChildren:()=>import("./chunk-CVX2RKVG.js").then(t=>t.buyerPromoRoutes),providers:[X("giveawayLandings")]},{path:q.promoChristmas,loadComponent:()=>import("./chunk-KGBZKMVL.js").then(t=>t.ChristmasPromoComponent),providers:[X("promoPages")]},{path:q.sellItemsPromo,loadChildren:()=>import("./chunk-YLCPETOU.js").then(t=>t.discountItemsLandingRoutes),providers:[X("giveawayLandings")]},{path:q.promoLimited,loadComponent:()=>import("./chunk-6I6KETLE.js").then(t=>t.PromoLimitedComponent),providers:[X("giveawayLandings")]}],Ul=[{path:q.careers,loadChildren:()=>import("./chunk-7MKXMMM4.js").then(t=>t.careersRoutes),providers:[X("careers")]},{path:q.privacyPolicy,loadChildren:()=>import("./chunk-WF2NE2HJ.js").then(t=>t.privacyPolicyRoutes),providers:[X("termsAndPolicy")]},{path:q.termsOfUse,loadChildren:()=>import("./chunk-3QTM2HJY.js").then(t=>t.termsOfUseRoutes),providers:[X("termsAndPolicy")]},{path:q.partnership,loadChildren:()=>import("./chunk-B772O5JZ.js").then(t=>t.gameIntegrationRoutes)},{path:q.tradeCsgoSkins,loadChildren:()=>import("./chunk-RZYOFZCJ.js").then(t=>t.tradeCsgoRoutes),providers:[X("gameLanding")]},{path:q.tradeDotaSkins,loadChildren:()=>import("./chunk-2X3SYGE2.js").then(t=>t.tradeDota2Routes),providers:[X("gameLanding")]},{path:q.tradeTf2Skins,loadChildren:()=>import("./chunk-T7H3NL6M.js").then(t=>t.tradeTf2Routes),providers:[X("gameLanding")]},{path:q.tradeRustSkins,loadChildren:()=>import("./chunk-CR2DJRWF.js").then(t=>t.tradeRustRoutes),providers:[X("gameLanding")]},{path:q.sellCsgoSkins,loadChildren:()=>import("./chunk-LWMANYOZ.js").then(t=>t.sellCsgoRoutes),providers:[X("gameLanding")]},{path:q.sellDotaSkins,loadChildren:()=>import("./chunk-INMWAMUW.js").then(t=>t.SellDota2Routes),providers:[X("gameLanding")]},{path:q.sellTf2Skins,loadChildren:()=>import("./chunk-L3B5K5BE.js").then(t=>t.sellTf2Routes),providers:[X("gameLanding")]},{path:q.sellRustSkins,loadChildren:()=>import("./chunk-HJYRJEPY.js").then(t=>t.sellRustRoutes),providers:[X("gameLanding")]},{path:q.faq,loadChildren:()=>import("./chunk-PD7KWXWZ.js").then(t=>t.faqRoutes)},{path:q.aboutUs,loadChildren:()=>import("./chunk-HX5BJEHS.js").then(t=>t.aboutUsRoutes),providers:[X("aboutUs")]},{path:q.gamedevPartnership,loadChildren:()=>import("./chunk-PA3CK7RL.js").then(t=>t.gamedevPartnershipRoutes)},{path:q.maincast,loadChildren:()=>import("./chunk-QIBUY6MP.js").then(t=>t.maincastLandingRoutes)},{path:q.navination,loadChildren:()=>import("./chunk-JIDTEDFX.js").then(t=>t.companionRoutes)},{path:q.cs2,loadChildren:()=>import("./chunk-A2NSLY5K.js").then(t=>t.cs2LandingRoutes),providers:[X("giveawayLandings")]},{path:q.rarevolution,loadChildren:()=>import("./chunk-KYUMW5QI.js").then(t=>t.rarevolutionRoutes),providers:[X("giveawayLandings")]},{path:q.referralProgram,loadChildren:()=>import("./chunk-ZU77L5UR.js").then(t=>t.referralRoutes),providers:[X("giveawayLandings")]}
2,{path:q.mobileApps,loadChildren:()=>import("./chunk-WYV77DDF.js").then(t=>t.mobileAppsRoutes),providers:[X("giveawayLandings")]},{path:q.standWithUkraine,loadChildren:()=>import("./chunk-DEF7R2IO.js").then(t=>t.standWithUkraineRoutes),providers:[X("standWithUkraine")]},{path:q.legionFarmRegForm,loadChildren:()=>import("./chunk-IP3UNFYA.js").then(t=>t.legionFarmRegFormRoutes)},...xd];var bd=t=>[t];function Td(t,a){if(t&1&&(Pe(0),x(1,"div",1)(2,"div",2)(3,"h1",3),U(4,"404"),E(),x(5,"p",4),U(6),E(),x(7,"a",5),Be(8,"routeTranslate"),Be(9,"async"),U(10),E()()(),Re()),t&2){let e=a.$implicit,n=f();h(6),me(e("Looks like you got lost\u2026")),h(),C("routerLink",Xe(9,5,Xe(8,3,ee(7,bd,n.marketUrl)))),h(3),me(e("Back to Homepage"))}}var Bl=(()=>{class t{constructor(){this.marketUrl=Mo,this.pageMetaQuery=gc(xo.MainPage,{robotsIndexStrategy:da.NoIndexNoFollow})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=le({type:t,selectors:[["app-error-page"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"c-errorPage"],[1,"l-container"],[1,"c-errorPage__title"],[1,"c-errorPage__text"],["matRipple","",1,"o-dmButton","o-dmButton--green",3,"routerLink"]],template:function(n,i){n&1&&K(0,Td,11,9,"ng-container",0)},dependencies:[er,Ee,na,ze,Gt,Yt],encapsulation:2,changeDetection:0})}}return t})();var Vl=()=>{let t=[{path:"",pathMatch:"full",canActivate:[fc()],loadComponent:()=>import("./chunk-I6MRYVMH.js").then(e=>e.MainPageComponent)},{path:"sso",children:Ds},{path:"trust-shield",loadComponent:()=>import("./chunk-IGGIXAYW.js").then(e=>e.TrustShieldPageComponent)},{path:"ingame-items/item-list/:gameId",loadComponent:()=>import("./chunk-IHWZOYES.js").then(e=>e.SeoAreaPageComponent),canActivate:[nn(),rn(),Fl()]},{path:`ingame-items/item-list/:gameId/:${Nr}`,loadComponent:()=>import("./chunk-IHWZOYES.js").then(e=>e.SeoAreaPageComponent),canActivate:[nn(),rn()]},{path:`ingame-items/item-list/:gameId/:${Nr}/:${ua}`,loadComponent:()=>import("./chunk-IHWZOYES.js").then(e=>e.SeoAreaPageComponent),canActivate:[nn(),rn()]},{path:":gameId/product-card/:itemSlug",loadComponent:()=>import("./chunk-IHWZOYES.js").then(e=>e.SeoAreaPageComponent),canActivate:[nn(),Yr(),rn(),Qr()]},{path:":gameId/product-card/:itemSlug/:subItemSlug",loadComponent:()=>import("./chunk-IHWZOYES.js").then(e=>e.SeoAreaPageComponent),canActivate:[nn(),Yr(),rn(),Qr()]},{path:"pay/:provider",loadChildren:()=>import("./chunk-3JNEQHOQ.js").then(e=>e.payPagesRoutes)},{path:"affiliate-program",loadChildren:()=>import("./chunk-XO5RTRFO.js").then(e=>e.affiliateProgramRoutes),providers:[X("affiliateProgram")]},{path:"top-txns",loadChildren:()=>import("./chunk-5WPENCS4.js").then(e=>e.topTradesRoutes),providers:[X("topNFTtxn")]},...Ul,...Ll,{path:"error",component:Bl}];return[...Ja(t),{path:"**",redirectTo:"error"}]};function Hl(){return _t([{provide:ys,useFactory:()=>{let t=m(fe);return Ss(()=>t.langChanges())}},Mt(()=>{let t=m(fe),a=m(_s),e=m($e);a.use(Ur(t.currentLanguage)),t.langChanges$.pipe(te(e)).subscribe(n=>a.use(Ur(n)))})])}var Ed=[Hl(),lo(Vl(),mo({anchorScrolling:"enabled",scrollPositionRestoration:"disabled"}),po(),uo({paramsInheritanceStrategy:"always"})),{provide:Ra,useExisting:sr},{provide:ss,useExisting:Vs},{provide:cs,useExisting:Bs},{provide:Us,useFactory:(t,a)=>({openSteamTradeProtection:e=>Ze(import("./chunk-HWRKXGCR.js")).pipe(re(({SteamTradeProtectionDialogComponent:n})=>t.open(n,{panelClass:["mt-auto","md:mt-0"],data:e}).afterClosed())),openAssetTradeLock:e=>{import("./chunk-ZSPIJN3M.js").then(({AssetTradeLockDialogComponent:n})=>t.open(n,{data:e}))},openP2pExplainer:e=>Ze(import("./chunk-XIEIM6PX.js")).pipe(re(({P2pExplainerDialogComponent:n})=>a.isOpen(Hr)?Cn:a.open(n,{id:Hr,contentClass:tc,context:{item:e}}).closed$))}),deps:[Dr,Cs]},{provide:Gs,useFactory:(t,a)=>({openSteamWeakWithdraw:()=>Ze(import("./chunk-66OW623S.js")).pipe(re(({SteamWeakWithdrawDialogComponent:e})=>t.open(e).afterClosed())),openDealInProgress:e=>Ze(import("./chunk-46FZZHOB.js")).pipe(re(({DealInProgressDialogComponent:n})=>t.open(n,{data:{flowType:e}}).afterClosed())),openLockedItems:e=>Ze(import("./chunk-M6QVFK6J.js")).pipe(re(({LockedItemsDialogComponent:n})=>t.open(n,{data:{flowType:e}}).afterClosed())),openCsSteamItemTemporaryUnavailable:()=>Ze(import("./chunk-UAIELKIH.js")).pipe(re(({CsSteamItemTemporaryUnavailableValidatorDialogComponent:e})=>t.open(e).afterClosed())),openSteamTradeProtection:e=>Ze(import("./chunk-HWRKXGCR.js")).pipe(re(({SteamTradeProtectionDialogComponent:n})=>t.open(n,{panelClass:["mt-auto","md:mt-0"],data:e}).afterClosed())),openSteamConnect:e=>{import("./chunk-PZC62QNO.js").then(({SteamConnectComponent:n})=>t.open(n,e?{data:e}:void 0)).catch(n=>a.handleError(n))},openLifeBeyondConnect:e=>{import("./chunk-OSHKRKBN.js").then(({LifeBeyondConnectComponent:n})=>t.open(n,{data:e})).catch(n=>a.handleError(n))},openTwitchConnect:e=>{import("./chunk-AM3FKFKY.js").then(({TwitchConnectComponent:n})=>t.open(n,{data:e})).catch(n=>a.handleError(n))},openEnhancedSteamTrading:()=>{import("./chunk-G5QBNWPS.js").then(({SteamTradingComponent:e})=>t.open(e,{panelClass:["c-sidePanel"]})).catch(e=>a.handleError(e))}}),deps:[Dr,En]},{provide:Ka,useFactory:t=>a=>t.setNewProposesFromFlowState(a,!1),deps:[Hs]},{provide:ws,useValue:(t,a)=>{let e=Ol(t,a);return{pricePennies:be(()=>e.data()?.pricePennies??null),offersCount:be(()=>e.data()?.offersCount??0),url:be(()=>e.data()?.uri??null),isLoading:e.isLoading}}}],Gl=On(kl,{providers:Ed});var jl=import("./chunk-ORIPYRRW.js").then(t=>t.handlers);var $l=On(Gl,vl,{providers:[_l(jl)]});Te()||eo();zi(zc,$l); 3/*! Bundled license information: 4 5localforage/dist/localforage.js: 6 (*! 7 localForage -- Offline Storage, Improved 8 Version 1.10.0 9 https://localforage.github.io/localForage 10 (c) 2013-2017 Mozilla, Apache License 2.0 11 *) 12 13@angular/service-worker/fesm2022/service-worker.mjs: 14 (** 15 * @license Angular v21.2.22 16 * (c) 2010-2026 Google LLC. https://angular.dev/ 17 * License: MIT 18 *) 19*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.