@mushi-mushi/web 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2220 +1,458 @@
1
- (function(){'use strict';var fi=Object.defineProperty;var St=(t,e)=>()=>(t&&(e=t(t=0)),e);var jn=(t,e)=>{for(var r in e)fi(t,r,{get:e[r],enumerable:true});};function mi(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function Wn(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function Et(t,e,r=""){let n=mi(t),s=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,i="",l=n?`length=${s}`:`type=${typeof t}`,f=a+"expected Uint8Array"+i+", got "+l;throw n?new RangeError(f):new TypeError(f)}return t}function zn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Wn(t.outputLen),Wn(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function at(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Kt(t,e){Et(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ne(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Vt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ae(t,e){return t<<32-e|t>>>e}function Ze(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var et,Gt=St(()=>{et=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Kn(t,e,r){return t&e^~t&r}function Vn(t,e,r){return t&e^t&r^e&r}var kt,Ue,Fe,se,oe,Gn=St(()=>{Gt();kt=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=Vt(this.buffer);}update(e){at(this),Et(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let a=0;a<o;){let i=Math.min(s-this.pos,o-a);if(i===s){let l=Vt(e);for(;s<=o-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){at(this),Kt(e,this),this.finished=true;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,Ne(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let h=a;h<s;h++)r[h]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=Vt(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let f=l/4,p=this.get();if(f>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<f;h++)i.setUint32(4*h,p[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:s,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Ue=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Fe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),se=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),oe=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function gi(t,e=false){return e?{h:Number(t&Xt),l:Number(t>>Xn&Xt)}:{h:Number(t>>Xn&Xt)|0,l:Number(t&Xt)|0}}function Yn(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:i}=gi(t[o],e);[n[o],s[o]]=[a,i];}return [n,s]}function He(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var Xt,Xn,Dr,Or,tt,rt,Rt,Ct,Jn,Qn,Zn,es,ts,rs,ns=St(()=>{Xt=BigInt(4294967295),Xn=BigInt(32);Dr=(t,e,r)=>t>>>r,Or=(t,e,r)=>t<<32-r|e>>>r,tt=(t,e,r)=>t>>>r|e<<32-r,rt=(t,e,r)=>t<<32-r|e>>>r,Rt=(t,e,r)=>t<<64-r|e>>>r-32,Ct=(t,e,r)=>t>>>r-32|e<<64-r;Jn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Qn=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Zn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),es=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,ts=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),rs=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var Br={};jn(Br,{_SHA224:()=>Qt,_SHA256:()=>Jt,_SHA384:()=>er,_SHA512:()=>Zt,_SHA512_224:()=>tr,_SHA512_256:()=>rr,sha224:()=>Si,sha256:()=>xi,sha384:()=>ki,sha512:()=>Ei,sha512_224:()=>Ci,sha512_256:()=>Ri});var yi,Ke,Yt,Jt,Qt,ss,vi,wi,Ve,Ge,lt,Zt,er,ce,ue,tr,rr,xi,Si,Ei,ki,Ri,Ci,Nr=St(()=>{Gn();ns();Gt();yi=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ke=new Uint32Array(64),Yt=class extends kt{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:s,E:o,F:a,G:i,H:l}=this;return [e,r,n,s,o,a,i,l]}set(e,r,n,s,o,a,i,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=a|0,this.G=i|0,this.H=l|0;}process(e,r){for(let h=0;h<16;h++,r+=4)Ke[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let g=Ke[h-15],d=Ke[h-2],E=Ae(g,7)^Ae(g,18)^g>>>3,v=Ae(d,17)^Ae(d,19)^d>>>10;Ke[h]=v+Ke[h-7]+E+Ke[h-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:f,H:p}=this;for(let h=0;h<64;h++){let g=Ae(i,6)^Ae(i,11)^Ae(i,25),d=p+g+Kn(i,l,f)+yi[h]+Ke[h]|0,v=(Ae(n,2)^Ae(n,13)^Ae(n,22))+Vn(n,s,o)|0;p=f,f=l,l=i,i=a+d|0,a=o,o=s,s=n,n=d+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(n,s,o,a,i,l,f,p);}roundClean(){Ne(Ke);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),Ne(this.buffer);}},Jt=class extends Yt{A=Ue[0]|0;B=Ue[1]|0;C=Ue[2]|0;D=Ue[3]|0;E=Ue[4]|0;F=Ue[5]|0;G=Ue[6]|0;H=Ue[7]|0;constructor(){super(32);}},Qt=class extends Yt{A=Fe[0]|0;B=Fe[1]|0;C=Fe[2]|0;D=Fe[3]|0;E=Fe[4]|0;F=Fe[5]|0;G=Fe[6]|0;H=Fe[7]|0;constructor(){super(28);}},ss=Yn(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),vi=ss[0],wi=ss[1],Ve=new Uint32Array(80),Ge=new Uint32Array(80),lt=class extends kt{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:a,Dh:i,Dl:l,Eh:f,El:p,Fh:h,Fl:g,Gh:d,Gl:E,Hh:v,Hl:k}=this;return [e,r,n,s,o,a,i,l,f,p,h,g,d,E,v,k]}set(e,r,n,s,o,a,i,l,f,p,h,g,d,E,v,k){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=a|0,this.Dh=i|0,this.Dl=l|0,this.Eh=f|0,this.El=p|0,this.Fh=h|0,this.Fl=g|0,this.Gh=d|0,this.Gl=E|0,this.Hh=v|0,this.Hl=k|0;}process(e,r){for(let M=0;M<16;M++,r+=4)Ve[M]=e.getUint32(r),Ge[M]=e.getUint32(r+=4);for(let M=16;M<80;M++){let w=Ve[M-15]|0,x=Ge[M-15]|0,y=tt(w,x,1)^tt(w,x,8)^Dr(w,x,7),S=rt(w,x,1)^rt(w,x,8)^Or(w,x,7),A=Ve[M-2]|0,b=Ge[M-2]|0,q=tt(A,b,19)^Rt(A,b,61)^Dr(A,b,6),W=rt(A,b,19)^Ct(A,b,61)^Or(A,b,6),Q=Zn(S,W,Ge[M-7],Ge[M-16]),G=es(Q,y,q,Ve[M-7],Ve[M-16]);Ve[M]=G|0,Ge[M]=Q|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:f,Dl:p,Eh:h,El:g,Fh:d,Fl:E,Gh:v,Gl:k,Hh:I,Hl:$}=this;for(let M=0;M<80;M++){let w=tt(h,g,14)^tt(h,g,18)^Rt(h,g,41),x=rt(h,g,14)^rt(h,g,18)^Ct(h,g,41),y=h&d^~h&v,S=g&E^~g&k,A=ts($,x,S,wi[M],Ge[M]),b=rs(A,I,w,y,vi[M],Ve[M]),q=A|0,W=tt(n,s,28)^Rt(n,s,34)^Rt(n,s,39),Q=rt(n,s,28)^Ct(n,s,34)^Ct(n,s,39),G=n&o^n&i^o&i,te=s&a^s&l^a&l;I=v|0,$=k|0,v=d|0,k=E|0,d=h|0,E=g|0,{h,l:g}=He(f|0,p|0,b|0,q|0),f=i|0,p=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let ae=Jn(q,Q,te);n=Qn(ae,b,W,G),s=ae|0;}(({h:n,l:s}=He(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l:a}=He(this.Bh|0,this.Bl|0,o|0,a|0),{h:i,l}=He(this.Ch|0,this.Cl|0,i|0,l|0),{h:f,l:p}=He(this.Dh|0,this.Dl|0,f|0,p|0),{h,l:g}=He(this.Eh|0,this.El|0,h|0,g|0),{h:d,l:E}=He(this.Fh|0,this.Fl|0,d|0,E|0),{h:v,l:k}=He(this.Gh|0,this.Gl|0,v|0,k|0),{h:I,l:$}=He(this.Hh|0,this.Hl|0,I|0,$|0),this.set(n,s,o,a,i,l,f,p,h,g,d,E,v,k,I,$);}roundClean(){Ne(Ve,Ge);}destroy(){this.destroyed=true,Ne(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Zt=class extends lt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(64);}},er=class extends lt{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(48);}},ce=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ue=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),tr=class extends lt{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(28);}},rr=class extends lt{Ah=ue[0]|0;Al=ue[1]|0;Bh=ue[2]|0;Bl=ue[3]|0;Ch=ue[4]|0;Cl=ue[5]|0;Dh=ue[6]|0;Dl=ue[7]|0;Eh=ue[8]|0;El=ue[9]|0;Fh=ue[10]|0;Fl=ue[11]|0;Gh=ue[12]|0;Gl=ue[13]|0;Hh=ue[14]|0;Hl=ue[15]|0;constructor(){super(32);}},xi=Ze(()=>new Jt,et(1)),Si=Ze(()=>new Qt,et(4)),Ei=Ze(()=>new Zt,et(3)),ki=Ze(()=>new er,et(2)),Ri=Ze(()=>new rr,et(6)),Ci=Ze(()=>new tr,et(5));});var os={};jn(os,{_HMAC:()=>Tt,hmac:()=>Ti});var Tt,Ti,is=St(()=>{Gt();Tt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(zn(e),Et(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),Ne(s);}update(e){return at(this),this.iHash.update(e),this}digestInto(e){at(this),Kt(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:s,destroyed:o,blockLen:a,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Ti=(()=>{let t=((e,r,n)=>new Tt(e,r).update(n).digest());return t.create=(e,r)=>new Tt(e,r),t})();});var $i=4194304,ks=1.5*1024*1024;function Mi(t){try{return JSON.stringify(t)}catch{return null}}function Ii(t,e=$i){let r=Mi(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${as(n)} exceeds limit ${as(e)}`}}function as(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Rs(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function ar(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Vr(t){let e=Rs();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return ar(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Nr(),Br));return ar(r(new TextEncoder().encode(t)))}async function Li(t,e){let r=Rs();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",a,new TextEncoder().encode(e));return ar(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(is(),os)),{sha256:s}=await Promise.resolve().then(()=>(Nr(),Br)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return ar(o)}var Ai=60*1024;function _i(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Hi(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Pi(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Di(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Hi(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let s=JSON.stringify(_i({path:t.path??Pi(t.url),headers:t.headers,body:n}));if(s.length>Ai)return false;try{return r(t.url,new Blob([s],{type:"application/json"}))}catch{return false}}var Cs=false;function Ts(){Cs=true;}function ls(){return Cs}var zr=null;function $s(){return zr?Di(zr):false}var cs=false,Oi="X-Mushi-User-Token",Bi="X-Mushi-Project",Ms="X-Mushi-SDK-Package",Is="X-Mushi-SDK-Version";function Ni(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Bi]:t.projectId};return t.sdkPackage&&(e[Ms]=t.sdkPackage),t.sdkVersion&&(e[Is]=t.sdkVersion),t.userToken&&(e[Oi]=t.userToken),t.internalKind&&(e[Mt]=t.internalKind),e}var $t="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Mt="X-Mushi-Internal",pt="__mushiInternal";function Ui(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??$t).replace(/\/$/,"")}var Fi=1e4,qi=2,ji=4,Wi=3e4,zi=1e4;function Ls(t){let{projectId:e,apiKey:r,apiEndpoint:n=$t,tunnel:s,timeout:o=Fi,maxRetries:a=qi,getUserToken:i,sdkPackage:l,sdkVersion:f,circuitBreaker:p}=t,h=Ui(n,s),g=p?.enabled!==false,d=Math.max(1,p?.threshold??ji),E=Math.max(1e3,p?.cooldownMs??Wi),v=0,k=0,I=()=>g&&k>Date.now(),$=()=>{v=0,k=0;},M=()=>{g&&(v+=1,v>=d&&(k=Date.now()+E));};async function w(y,S,A,b=a,q,W){if(I())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Q=`${h}${S}`,G=new AbortController,te=setTimeout(()=>G.abort(),o),ae=i?.()??null,J={...Ni({apiKey:r,projectId:e,sdkPackage:l,sdkVersion:f,userToken:ae,internalKind:q}),...W},U=A?JSON.stringify(A):void 0;U&&y!=="GET"&&(zr={url:Q,headers:J,body:U,path:S});try{let L=await fetch(Q,{method:y,headers:J,body:U,keepalive:ls(),signal:G.signal,...q?{[pt]:q}:{}});if(clearTimeout(te),L.status===307||L.status===308){let ne=L.headers.get("Location");if(ne&&b>0){let xe=ne.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(xe!==h)return h=xe,w(y,S,A,b-1,q,W)}}if(!L.ok){let ne=await L.json().catch(()=>({}));if((L.status===401||L.status===403)&&!cs){cs=!0;let T=h===$t?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${L.status}). Check your Project ID and API key scope (must be "report:write"). `+T);}let xe=L.status===429,Ie=L.status>=500||xe,ye=xe?Ki(L.headers.get("Retry-After")):null,R=ye===null||ye<=zi;return Ie&&b>0&&R?(await us(ye??ds(a-b)),w(y,S,A,b-1,q,W)):(Ie?M():$(),{ok:!1,error:{code:ne.error?.code||`HTTP_${L.status}`,message:ne.error?.message||ne.message||`HTTP ${L.status} error`}})}let _=await L.json(),ee=_&&typeof _=="object"&&"ok"in _&&"data"in _?_.data:_;return $(),{ok:!0,data:ee}}catch(L){return clearTimeout(te),b>0&&Vi(L)?(await us(ds(a-b)),w(y,S,A,b-1,q,W)):(M(),{ok:false,error:{code:"NETWORK_ERROR",message:L instanceof Error?L.message:"Unknown network error"}})}}async function x(y,S,A,b){let q=await Vr(A),W=String(Date.now()),Q=await Li(r,`${e}.${W}.${q}`),G=`${h}${S}`,te=await fetch(G,{method:y,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...l?{[Ms]:l}:{},...f?{[Is]:f}:{},[Mt]:"reporter-poll","X-Reporter-Token-Hash":q,"X-Reporter-Ts":W,"X-Reporter-Hmac":Q},body:b?JSON.stringify(b):void 0,keepalive:ls(),[pt]:"reporter-poll"});if(!te.ok){let J=await te.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${te.status}`,message:J.error?.message??J.message??`HTTP ${te.status} error`}}}let ae=await te.json();return {ok:true,data:ae.data??ae}}return {async submitReport(y){let S=Ii(y);return S.ok?w("POST","/v1/reports",y,a,"report-submit"):{ok:false,error:{code:S.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:S.reason??"Report payload exceeds size limit"}}},async getReportStatus(y){return w("GET",`/v1/reports/${y}/status`,void 0,a,"report-status")},async getSdkConfig(){return w("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(y){return w("POST","/v1/sdk/assistant",{message:y.message,threadId:y.threadId??null,context:y.context??null},1,"community")},async getLatestSdkVersion(y){let S=new URLSearchParams({package:y}).toString();return w("GET",`/v1/sdk/latest-version?${S}`,void 0,a,"sdk-config")},async postDiscoveryEvent(y){return w("POST","/v1/sdk/discovery",y,1,"discovery")},async listReporterReports(y){return x("GET","/v1/reporter/reports",y)},async listReporterComments(y,S){return x("GET",`/v1/reporter/reports/${y}/comments`,S)},async replyToReporterReport(y,S,A,b){return x("POST",`/v1/reporter/reports/${y}/reply`,S,{body:A,...b?{feedback_signal:b}:{}})},async reopenReporterReport(y,S,A){return x("POST",`/v1/reporter/reports/${y}/reopen`,S,{note:A??""})},async listNotifications(y,S){let A=new URLSearchParams;S?.since&&A.set("since",S.since),S?.limit&&A.set("limit",String(S.limit));let b=A.size?`?${A.toString()}`:"";return x("GET",`/v1/notifications${b}`,y)},async markNotificationRead(y,S){return x("POST",`/v1/notifications/${y}/read`,S,{})},async listReporterFeatureBoard(y){return x("GET","/v1/reporter/feature-board",y)},async voteReporterFeatureBoard(y,S){return x("POST",`/v1/reporter/feature-board/${y}/vote`,S,{})},async postSessionEvent(y){return w("POST","/v1/sdk/session",y,1,"discovery")},async submitActivity(y,S,A){return w("POST","/v1/sdk/activity",{user_id:y,user_traits:A?.userTraits,opted_in:A?.optedIn,reporter_token_hash:A?.reporterTokenHash,...A?.hostJwt?{host_jwt:A.hostJwt}:{},events:S},1,"discovery")},async getMyPoints(y){return w("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyTier(y){return w("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyHistory(y,S){let A=new URLSearchParams({userId:y,...S?.limit?{limit:String(S.limit)}:{}});return w("GET",`/v1/sdk/me/history?${A}`,void 0,1,"reporter-poll")},async getHallOfFame(y=10){return w("GET",`/v1/sdk/hall-of-fame?limit=${y}`,void 0,1,"reporter-poll")},async sendMagicLink(y){return w("POST","/v1/tester/magic-link",{email:y},1,"community")},async linkReporterToken(y,S){return w("POST","/v1/tester/link-reporter",{reporter_token_hash:y},1,"community",{Authorization:`Bearer ${S}`})},async getCrossAppReports(y,S){let A=new URLSearchParams;S?.limit&&A.set("limit",String(S.limit)),S?.offset&&A.set("offset",String(S.offset));let b=A.size?`?${A.toString()}`:"";return w("GET",`/v1/tester/cross-app-reports${b}`,void 0,1,"community",{Authorization:`Bearer ${y}`})},async getMyReputation(y){return w("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${y}`})},async getPublicLeaderboard(y=20){return w("GET",`/v1/public/tester-leaderboard?limit=${y}`,void 0,1,"reporter-poll")},async getTesterStatus(y){return w("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${y}`})}}}function us(t){return new Promise(e=>setTimeout(e,t))}function ds(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Ki(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let s=Date.parse(r);return Number.isNaN(s)?null:Math.max(s-e,0)}function Vi(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function Ur(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.test(t))return !0}catch{}}return false}function It(t){if(Ur(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&Ur(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!Ur(e,t.allowUrls)))}function Fr(...t){return t.find(e=>e!==void 0&&e!=="")}function Te(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function qe(t){try{return t()}catch{return}}function Gr(){let t=Fr(Te("VITE_MUSHI_PROJECT_ID"),Te("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Te("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Te("EXPO_PUBLIC_MUSHI_PROJECT_ID"),qe(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),qe(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),qe(()=>process.env.MUSHI_PROJECT_ID)),e=Fr(Te("VITE_MUSHI_API_KEY"),Te("NEXT_PUBLIC_MUSHI_API_KEY"),Te("NUXT_PUBLIC_MUSHI_API_KEY"),Te("EXPO_PUBLIC_MUSHI_API_KEY"),qe(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),qe(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),qe(()=>process.env.MUSHI_API_KEY)),r=Fr(Te("VITE_MUSHI_API_ENDPOINT"),Te("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Te("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),qe(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),qe(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),qe(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Gi=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Xi={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function As(){let t=Gr(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let i=undefined;return typeof i=="object"&&i!==null?i:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let i of e)for(let l of Gi){let f=`${l}${Xi[i]}`;r&&r[f]?s.push({field:i,key:f,via:"import.meta.env"}):n&&n[f]&&s.push({field:i,key:f,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let i of s)a.push(`[mushi] Found ${i.key} in ${i.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
2
- `)}}var ps=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],Yi=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function Ji(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function _s(t){let e=Ji(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function Qi(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function Hs(t){try{if(Qi()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!Yi.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!ps.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${ps.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Zi=10,ea=2e3,ta=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],ra=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Ps(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Zi,maxDescriptionLength:s=ea}=t;function o(i){if(!e)return {passed:true};let l=i.trim();if(l.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(l.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let p of ta)if(p.test(l))return {passed:false,reason:"Detected as spam"};if(ra.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(i){let l=i.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:o,truncate:a}}var hs={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},na={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},we={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},sa={debug:we.dim,info:we.green,warn:we.yellow,error:we.red,fatal:`${we.bgRed}${we.white}${we.bold}`};function oa(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function ia(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function aa(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=sa[r]??"",l=na[r]??r.toUpperCase(),f=Object.keys(o).length>0?` ${we.dim}${ia(o)}${we.reset}`:"";return `${we.dim}${a}${we.reset} ${i}${l}${we.reset} ${we.cyan}[${n}]${we.reset} ${s}${f}`}function la(t){return JSON.stringify(t)}function ca(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function Ds(t,e,r,n,s){let o=e;function a(i,l,f){if(hs[i]<hs[o])return;let p={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...f};s(i,n(p));}return {debug:(i,l)=>a("debug",i,l),info:(i,l)=>a("info",i,l),warn:(i,l)=>a("warn",i,l),error:(i,l)=>a("error",i,l),fatal:(i,l)=>a("fatal",i,l),child(i,l){return Ds(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function ur(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?oa():s)==="json"?la:aa,l=ca(o);return Ds(e,r,n,i,l)}var Xr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Xr,setLevel:()=>{}},ua="mushi-mushi-keyring",nt="keys",Os="offline-queue/v1",nr=null,sr=null;function da(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Bs(){return new Promise((t,e)=>{let r=indexedDB.open(ua,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(nt)||n.createObjectStore(nt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(nt)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function pa(){let t=await Bs();return new Promise((e,r)=>{let s=t.transaction(nt,"readonly").objectStore(nt).get(Os);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function ha(t){let e=await Bs();return new Promise((r,n)=>{let s=e.transaction(nt,"readwrite");s.objectStore(nt).put(t,Os),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function Ns(){if(nr)return nr;if(sr)return sr;if(!da())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return sr=(async()=>{let t=await pa();if(t)return nr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await ha(e),nr=e,e})(),sr}function fs(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function ms(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function fa(t){let e=await Ns(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:fs(r),ct:fs(s)}}function ma(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function ga(t){let e=await Ns(),r=ms(t.iv),n=ms(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var $e=ur({scope:"mushi:queue",level:"warn"}),ba="mushi-mushi",ge="offline-reports",ya=1,qr="mushi_offline_queue",va=10,wa=6e4,xa=3e4,Sa=8,Ea=1440*60*1e3;function Us(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null,l=null,f=null;async function p(R){let T=new Date().toISOString();if(!s)return {...R,queuedAt:T};try{let H=await fa(R);return {id:R.id,queuedAt:T,payload:H}}catch(H){return $e.warn("Offline queue: encryption failed, storing plaintext",{err:String(H)}),{...R,queuedAt:T}}}async function h(R){if(g(R))try{return await ga(R.payload)}catch(T){return $e.warn("Offline queue: decrypt failed, dropping row",{err:String(T),id:R.id}),null}return R}function g(R){return !!R.payload&&ma(R.payload)}function d(R){let T=R.attempts;return typeof T=="number"&&Number.isFinite(T)?T:0}function E(R,T){let H=R.queuedAt;if(!H)return false;let O=Date.parse(H);return Number.isNaN(O)?false:T-O>Ea}function v(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function k(){return new Promise((R,T)=>{let H=indexedDB.open(ba,ya);H.onupgradeneeded=()=>{try{let O=H.result;if(!O)return;O.objectStoreNames.contains(ge)||O.createObjectStore(ge,{keyPath:"id"});}catch{}},H.onsuccess=()=>{let O=H.result;if(!O||!O.objectStoreNames.contains(ge)){i="localstorage";try{O?.close();}catch{}T(new Error("queue object store unavailable"));return}R(O);},H.onerror=()=>{i="localstorage",T(H.error);};})}async function I(R){let T=await k(),H=await p(R);return new Promise((O,B)=>{let pe=T.transaction(ge,"readwrite");pe.objectStore(ge).put(H),pe.oncomplete=()=>O(),pe.onerror=()=>B(pe.error);})}async function $(){let R=await k();return new Promise((T,H)=>{let B=R.transaction(ge,"readonly").objectStore(ge).getAll();B.onsuccess=()=>T(B.result),B.onerror=()=>H(B.error);})}async function M(R){let T=await k();return new Promise((H,O)=>{let B=T.transaction(ge,"readwrite");B.objectStore(ge).delete(R),B.oncomplete=()=>H(),B.onerror=()=>O(B.error);})}async function w(R){let T=await k();return new Promise((H,O)=>{let B=T.transaction(ge,"readwrite");B.objectStore(ge).put(R),B.oncomplete=()=>H(),B.onerror=()=>O(B.error);})}async function x(){let R=await k();return new Promise((T,H)=>{let B=R.transaction(ge,"readonly").objectStore(ge).count();B.onsuccess=()=>T(B.result),B.onerror=()=>H(B.error);})}async function y(){let R=await k();return new Promise((T,H)=>{let O=R.transaction(ge,"readwrite");O.objectStore(ge).clear(),O.oncomplete=()=>T(),O.onerror=()=>H(O.error);})}function S(){try{let R=localStorage.getItem(qr);return R?JSON.parse(R):[]}catch{return []}}function A(R){try{localStorage.setItem(qr,JSON.stringify(R));}catch{}}async function b(R){let T=S(),H=await p(R),O=T.findIndex(B=>B.id===R.id);O>=0?T[O]=H:T.push(H),A(T);}function q(R){let T=S().filter(H=>H.id!==R);A(T);}function W(R){let T=S(),H=T.findIndex(O=>O.id===R.id);H>=0&&(T[H]=R,A(T));}async function Q(R,T){try{R==="indexeddb"?await M(T):q(T);}catch(H){$e.debug("Offline queue: row removal failed (will age out)",{id:T,err:String(H)});}}async function G(R,T){try{return R==="indexeddb"?await w(T):W(T),!0}catch(H){return $e.debug("Offline queue: row persist failed",{id:T.id,err:String(H)}),false}}async function te(){let R=v();if(R==="none")return {backend:R,rows:[]};if(R==="indexeddb")try{return {backend:R,rows:await $()}}catch{i="localstorage";}return {backend:"localstorage",rows:S()}}async function ae(R){let T=v();if(T==="none")return $e.debug("Offline queue: no storage backend, dropping report",{id:R.id}),T;if(T==="indexeddb")try{return await I(R),T}catch{i="localstorage";}return await b(R),"localstorage"}async function J(R){if(!e)return;if(await ne()>=r){$e.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await ae(R);}function U(R){return Math.min(1e3*2**R+Math.random()*500,wa)}function L(R){return new Promise(T=>setTimeout(T,R))}async function _(R){let{backend:T,rows:H}=await te(),O=H,B=Date.now(),pe=[];for(let he of O)if(E(he,B)){let Se=he.id;await Q(T,Se),$e.debug("Offline queue: evicting stale report",{id:Se});}else pe.push(he);O=pe;let Re=O.slice(0,va),Ce=0,Y=0;for(let he=0;he<Re.length;he++){let Se=Re[he],fe=Se.id,Je=await h(Se);if(!Je){await Q(T,fe),Y++;continue}let j=await R.submitReport(Je);if(j.ok){await Q(T,fe),Ce++;continue}if(Y++,j.error?.code==="CIRCUIT_OPEN"){$e.debug("Offline queue: circuit open, deferring the rest of the batch",{id:fe,remaining:Re.length-he});break}let Qe=j.error?.code==="HTTP_400"||j.error?.code==="HTTP_413"||j.error?.code==="HTTP_422"||j.error?.code==="INGEST_ERROR"||j.error?.code==="VALIDATION_ERROR"||j.error?.code==="PAYLOAD_TOO_LARGE"||j.error?.code==="SERIALIZE_FAILED"||typeof j.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(j.error.message),me=!Qe&&(j.error?.code==="NETWORK_ERROR"||j.error?.code==="HTTP_403"||j.error?.code==="HTTP_429"||j.error?.code==="HTTP_502"||j.error?.code==="HTTP_503"||j.error?.code==="HTTP_504"||typeof j.error?.code=="string"&&j.error.code.startsWith("HTTP_5"));if(Qe)await Q(T,fe);else {let X=d(Se)+1;X>=Sa?(await Q(T,fe),$e.warn("Offline queue: giving up on report after repeated failures",{id:fe,attempts:X,code:j.error?.code})):(Se.attempts=X,await G(T,Se)?$e.debug("Offline queue: delivery failed, will retry",{id:fe,attempts:X,code:j.error?.code,classified:me?"transient":"unclassified"}):(await Q(T,fe),$e.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:fe,code:j.error?.code})));}he<Re.length-1&&await L(U(he));}return {sent:Ce,failed:Y}}function ee(R){if(!e)return Promise.resolve({sent:0,failed:0});if(l)return f||(f=l.catch(()=>{}).then(()=>(f=null,ee(R)))),f;let T=_(R).finally(()=>{l===T&&(l=null);});return l=T,T}async function ne(){if(v()==="indexeddb")try{return await x()}catch{i="localstorage";}return S().length}async function xe(){if(v()==="indexeddb")try{await y();}catch{}try{localStorage.removeItem(qr);}catch{}}function Ie(R){if(!e||!n||typeof window>"u")return;o&&ye();let T=()=>{navigator.onLine&&ee(R).catch(H=>{$e.warn("Offline queue auto-flush failed",{err:String(H)});});};window.addEventListener("online",T),a=setInterval(()=>{ne().then(H=>{H>0&&T();});},xa),o=()=>{window.removeEventListener("online",T),a&&(clearInterval(a),a=null);};}function ye(){o?.(),o=null;}return {enqueue:J,flush:ee,size:ne,clear:xe,startAutoSync:Ie,stopAutoSync:ye}}function Yr(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Ra(t);let s=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,i=!!o?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",f=a||i||l?{...a?{capacitor:true}:{},...i?{cordova:true}:{},...l?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:ka(r),userAgentData:Ta(t),screen:$a(n,e),prefersColorScheme:Ma(e),prefersReducedMotion:Me(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Me(e,"(prefers-reduced-data: reduce)"),prefersContrast:Ia(e),forcedColors:Me(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:La(e),documentTitle:r?.title?.slice(0,200),buildId:Aa(r),pageLoadTiming:_a(e),...f?{native:f}:{}}}function ka(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var _e=null,gs=false;function Ra(t){if(gs)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(gs=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{_e=r;}).catch(()=>{}));}function Ca(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function Ta(t){let e=t?.userAgentData;if(!e&&!_e)return;let r=_e?.fullVersionList,n=Ca(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),_e?.platformVersion&&(s.osVersion=_e.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),_e?.model&&(s.model=_e.model),_e?.architecture&&(s.architecture=_e.architecture),_e?.bitness&&(s.bitness=_e.bitness),Object.keys(s).length===0?void 0:s}function $a(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Me(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Ma(t){if(t?.matchMedia)return Me(t,"(prefers-color-scheme: dark)")?"dark":Me(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Ia(t){if(t?.matchMedia)return Me(t,"(prefers-contrast: more)")?"more":Me(t,"(prefers-contrast: less)")?"less":Me(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function La(t){if(t?.matchMedia){if(Me(t,"(display-mode: fullscreen)"))return "fullscreen";if(Me(t,"(display-mode: standalone)"))return "standalone";if(Me(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Me(t,"(display-mode: browser)"))return "browser"}}function Aa(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function _a(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var jr="mushi_reporter_token";function Ha(t){return `mushi:reporter-token:${t}`}function bs(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function Wr(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function ys(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function ie(t){if(!t){let o=Wr(jr);if(o)return o;let a=bs();return ys(jr,a),a}let e=Ha(t),r=Wr(e);if(r)return r;let s=Wr(jr)??bs();return ys(e,s),s}function Jr(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var vs="mushi_fingerprint_hash";function Pa(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Da(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function Fs(){if(typeof localStorage<"u"){let n=localStorage.getItem(vs);if(n)return n}let t=Pa(),e=JSON.stringify(t),r=await Da(e);if(typeof localStorage<"u")try{localStorage.setItem(vs,r);}catch{}return r}var ws="mushi_session_id",or=null;function ht(){if(or)return or;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(ws);if(e)return or=e,e}let t=Oa();if(or=t,typeof sessionStorage<"u")try{sessionStorage.setItem(ws,t);}catch{}return t}function Oa(){return `ms_${Date.now().toString(36)}_${Ba()}`}function Ba(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var Na=6e4,lr=null,qs,Qr=null,js=null,cr=0,ir=null,Kr=false;function Ua(){return new Date().toISOString()}function ct(){return typeof window>"u"?"":window.location.pathname+window.location.search}function Fa(){return typeof navigator>"u"?null:navigator.userAgent??null}function ut(t,e){return {kind:t,session_id:ht(),ts:Ua(),page_view_count:cr,reporter_token_hash:js,user_id_hash:Qr,user_agent:Fa(),sdk_version:qs,...e}}function dt(t){lr&&lr.postSessionEvent(t).catch(()=>{});}function Ws(t){if(Kr||typeof window>"u")return;Kr=true,lr=t.client,qs=t.sdkVersion,js=t.reporterTokenHash??null,Qr=t.userIdHash??null;let e=ct();cr=1,dt(ut("session_start",{route:e,referrer:typeof document<"u"?document.referrer??null:null})),ir=setInterval(()=>{dt(ut("session_heartbeat",{route:ct()}));},Na);let r=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&dt(ut("session_end",{route:ct()}));};typeof document<"u"&&document.addEventListener("visibilitychange",r,{passive:true}),typeof window<"u"&&window.addEventListener("pagehide",()=>{dt(ut("session_end",{route:ct()}));},{passive:true}),qa();}function zs(t){Qr=t;}function Ks(){ir!=null&&(clearInterval(ir),ir=null),Kr=false,lr=null;}var xs=false;function qa(){if(xs||typeof history>"u")return;xs=true;let t=e=>function(...r){let n=e.apply(this,r);return e===history.pushState&&(cr+=1,dt(ut("page_view",{route:ct()}))),n};history.pushState=t(history.pushState),history.replaceState=t(history.replaceState),window.addEventListener("popstate",()=>{cr+=1,dt(ut("page_view",{route:ct()}));},{passive:true});}var ja=10,Wa=1,za=5e3;function Vs(t={}){let{maxBurst:e=ja,refillRate:r=Wa,refillIntervalMs:n=za}=t,s=e,o=Date.now();function a(){let p=Date.now(),h=p-o,g=Math.floor(h/n);g>0&&(s=Math.min(e,s+g*r),o=p);}function i(){return a(),s>0?(s--,true):false}function l(){s=e,o=Date.now();}function f(){return a(),s}return {tryConsume:i,reset:l,availableTokens:f}}var Ka={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},Gs=Ka.patterns,Va=Gs.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Ga=Gs.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Zr(t={}){let e={...Ga,...t},r=Va.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:i,replacement:l}of r)a=a.replace(new RegExp(i.source,i.flags),l);return a}function s(o,a){let i={...o};for(let l of a)typeof i[l]=="string"&&(i[l]=n(i[l]));return i}return {scrub:n,scrubObject:s}}var Xa=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Ya=/^(?:key|code|sig)$/i;function Ja(t){let e=t;try{e=decodeURIComponent(t);}catch{}return Xa.test(e)||Ya.test(e)}function Qa(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let s=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Ja(s))return `${s}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let i=e(a);return i!==a?`${s}=${encodeURIComponent(i)}`:r}).join("&")}function Lt(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Zr(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+Qa(o.slice(a+1),r)},s=t.indexOf("#");return s===-1?n(t):n(t.slice(0,s))+n(t.slice(s))}var Za=50,el=500;function Xs(t={}){let e=Math.max(1,t.max??Za),r=Math.max(50,t.maxMessageLength??el),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),a=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Ss=8*1024,tl=1e3;function Ys(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,Ss):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,tl)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,Ss):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var de={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},rl={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},en={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},dr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Js="#FAF7F0",Qs="#ffffff";var tn={light:"#9A2A1E",dark:"#7A1F15"},rn={light:"#B52F1F",dark:"#C4321E"},Zs={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function nn(t){return t==="dark"?rl:de}var pr={tight:4,snug:8,comfy:12,roomy:16,lounge:20,open:24,wide:32},sn={control:4,card:10},ft={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace",sizeBody:14,sizeLabel:12,lineBody:1.55},mt={base:99999,banner:99998,panel:1e5,overlay:2147483647},hr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},eo={instant:120,fast:200,base:220,panel:300,slow:420,ring:700};var gt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Es(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function to(t,e="",r=""){let n=nn(t),s=Es(e),o=Es(r),a=s||n.accent,i=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=o||n.accentInk;return {accent:a,accentWash:i,accentInk:l}}function nl(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ro(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=nl(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var sl=new Set(["kensaur.us","www.kensaur.us"]),ol={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},il={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},al=["www.google.com","icons.duckduckgo.com","icon.horse"];function no(t){try{let e=new URL(t).hostname.toLowerCase();return al.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function ll(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function so(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(ul(t.repo_url)),r(ol[t.project_slug.toLowerCase()]);let n=t.sdk_origin?cl(t.sdk_origin):null;return n&&!sl.has(n)&&r(n),e}function oo(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||no(a)||(r.add(a),n.push(a));},o=il[t.project_slug.toLowerCase()];o&&s(o);for(let a of so(t))for(let i of ll(a,e))s(i);return n}function cl(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function ul(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function io(t){return so(t)[0]??null}function ao(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),a=0,i=0,l=0;for(let p=0;p<o.length;p+=4){let h=o[p],g=o[p+1],d=o[p+2];if(o[p+3]<128)continue;a++;let v=Math.max(h,g,d),k=Math.min(h,g,d),I=v-k;l=Math.max(l,I),i+=I;}return a===0?!0:i/a<14&&l<24}catch{return no(t.src)}}function lo(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function co(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&dl(n))return n}return null}function dl(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function po(t,e=ks){if(!t.startsWith("data:image/")||uo(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let a=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),l=Math.max(1,Math.round(r.naturalHeight*o));a.width=i,a.height=l;let f=a.getContext("2d");if(f){f.drawImage(r,0,0,i,l);for(let p of n){let h=a.toDataURL("image/jpeg",p);if(uo(h)<=e)return h}}}return null}function uo(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var fr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"},moreCategoriesLabel:"More issue types",moreCategoriesCount:"{n} more"},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request",description:"Suggest a change"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Reports go to {email} \xB7 reviewed by the team",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Powered by Mushi v{version}"}};var ho={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"},moreCategoriesLabel:"\u305D\u306E\u4ED6\u306E\u554F\u984C\u306E\u7A2E\u985E",moreCategoriesCount:"\u4ED6{n}\u4EF6"},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u30EC\u30DD\u30FC\u30C8\u306F {email} \u306B\u5C4A\u304D\u3001\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"Mushi v{version}"}};var fo={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"},moreCategoriesLabel:"\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E2D\u0E37\u0E48\u0E19 \u0E46",moreCategoriesCount:"\u0E2D\u0E35\u0E01 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \xB7 \u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E17\u0E38\u0E01\u0E09\u0E1A\u0E31\u0E1A",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"Powered by Mushi v{version}"}};var mo={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"},moreCategoriesLabel:"M\xE1s tipos de problemas",moreCategoriesCount:"{n} m\xE1s"},step2:{heading:"\xBFQu\xE9 pas\xF3?",intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"Los reportes van a {email} \xB7 revisados por el equipo",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var pl={en:fr,ja:ho,th:fo,es:mo};function on(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return fr;let r=e.split("-")[0].toLowerCase();return pl[r]??fr}function hl(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${s},${o}`}function go(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=nn(s),a=to(s,e,r),i=Zs[s];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?tn.dark:tn.light,accentRgb:hl(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Js,inverse:Qs,neonBannerBg:dr.bg,neonBannerFg:dr.fg,neonBannerBorder:dr.border,brandBannerBorder:n?rn.dark:rn.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:ft.fontDisplay,fontBody:ft.fontBody,fontMono:ft.fontMono,easeStamp:hr.easeStamp,zBanner:mt.banner,zPanel:mt.panel,zOverlay:mt.overlay,fabSize:gt.fabSize,panelWidth:gt.panelWidth,panelSheetBreakpoint:gt.panelSheetBreakpoint}}function bo(t,e="",r=""){let n=go(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:f,inkDim:p,rule:h,ruleStrong:g,widgetAccent:d,widgetAccentWash:E,widgetAccentInk:v,widgetAccentShadow:k,accentRgb:I,shadowInk:$,ok:M,danger:w,onAccent:x,inverse:y,neonBannerBg:S,neonBannerFg:A,neonBannerBorder:b,brandBannerBorder:q,statusSent:W,statusReview:Q,statusFixing:G,statusFixed:te,statusClosedBg:ae,fontDisplay:J,fontBody:U,fontMono:L,easeStamp:_,zBanner:ee,fabSize:ne}=n,{sizeBody:xe,sizeLabel:Ie,lineBody:ye}=ft,{durationFast:R}=hr,{instant:T,fast:H,base:O,panel:B,slow:pe,ring:Re}=eo,{bannerHeight:Ce,gutter:Y,panelWidth:he,panelMaxHeight:Se,panelSheetBreakpoint:fe,edgeTabWidth:Je}=gt,j=ne+pr.comfy,{base:Qe}=mt,me=sn.control,X=sn.card,{tight:_r,snug:ot,comfy:it,roomy:Ut,lounge:Ft,open:qt,wide:jt}=pr;return `
3
- :host {
4
- all: initial;
5
- font-family: ${U};
6
- font-size: ${xe}px;
7
- line-height: ${ye};
8
- color: ${i};
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- font-feature-settings: 'ss01', 'cv11'; /* nicer system-ui glyphs where supported */
12
- --mushi-ok: ${M};
13
- /* Spacing + radius scales (MUSHI_SPACING / MUSHI_RADIUS) \u2014 prefer these
14
- over literal px so web + RN stay aligned with brand.tokens.json. */
15
- --mushi-space-tight: ${_r}px;
16
- --mushi-space-snug: ${ot}px;
17
- --mushi-space-comfy: ${it}px;
18
- --mushi-space-roomy: ${Ut}px;
19
- --mushi-space-lounge: ${Ft}px;
20
- --mushi-space-open: ${qt}px;
21
- --mushi-space-wide: ${jt}px;
22
- --mushi-radius-control: ${me}px;
23
- --mushi-radius-card: ${X}px;
24
- --mushi-touch-min: 44px;
25
- /* Derived channel vars \u2014 accent RGB triplet + shadow-ink triplet.
26
- Lets Shadow-DOM CSS compose rgba() values that respect host-accent
27
- overrides and dark-mode ink without repeating the hex guard. */
28
- --mushi-accent-rgb: ${I};
29
- --mushi-shadow-ink: ${$};
30
- /* SDK contract: the host element is always pass-through. Only the
31
- interactive surfaces (.mushi-trigger, .mushi-banner, .mushi-panel)
32
- opt back into pointer events so the widget never creates an
33
- invisible touch blocker over host-app UI. */
34
- pointer-events: none;
35
- }
36
- /* Only actual widget controls receive touch/mouse events. */
37
- .mushi-trigger,
38
- .mushi-banner,
39
- .mushi-panel {
40
- pointer-events: auto;
41
- }
42
- *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
43
- button { font-family: inherit; }
44
-
45
- .mushi-trigger {
46
- position: fixed;
47
- width: ${ne}px;
48
- height: ${ne}px;
49
- min-width: var(--mushi-touch-min);
50
- min-height: var(--mushi-touch-min);
51
- border: 1px solid ${g};
52
- border-radius: ${me}px;
53
- background: ${o};
54
- color: ${i};
55
- cursor: pointer;
56
- display: flex;
57
- align-items: center;
58
- justify-content: center;
59
- font-family: ${J};
60
- font-size: 22px;
61
- line-height: 1;
62
- box-shadow:
63
- 0 1px 0 ${h},
64
- 0 6px 14px -8px rgba(${$},0.35),
65
- inset 0 -3px 0 ${d};
66
- transition: transform ${R}ms ${_}, opacity ${R}ms ${_};
67
- overflow: visible;
68
- isolation: isolate;
69
- }
70
- .mushi-trigger::after {
71
- content: '';
72
- position: absolute;
73
- top: 6px;
74
- right: 6px;
75
- width: 6px;
76
- height: 6px;
77
- border-radius: 50%;
78
- background: ${d};
79
- box-shadow: 0 0 0 0 ${d};
80
- animation: mushi-pulse 2.4s ${_} infinite;
81
- }
82
- .mushi-trigger:hover {
83
- transform: translateY(-2px) rotate(-1.5deg);
84
- box-shadow:
85
- 0 1px 0 ${h},
86
- 0 14px 24px -10px rgba(${$},0.45),
87
- 0 0 20px -6px rgba(${I},0.22),
88
- inset 0 -3px 0 ${d};
89
- }
90
- .mushi-trigger:active {
91
- transform: translateY(0) rotate(0);
92
- box-shadow:
93
- 0 1px 0 ${h},
94
- 0 2px 4px -2px rgba(${$},0.35),
95
- inset 0 -2px 0 ${d};
96
- }
97
- .mushi-trigger:focus-visible {
98
- outline: 2px solid ${d};
99
- outline-offset: 3px;
100
- }
101
- /* First-session welcome pulse. Three soft halos at 800ms each, then
102
- auto-clear. Uses a box-shadow ring rather than transform/scale so it
103
- can compose with the hover transform without fighting it. Respects
104
- prefers-reduced-motion. */
105
- @keyframes mushi-trigger-pulse {
106
- 0% { box-shadow: 0 0 0 0 rgba(${I},0.55), 0 1px 0 ${h}, 0 10px 24px -14px rgba(${$},0.45); }
107
- 70% { box-shadow: 0 0 0 16px rgba(${I},0), 0 1px 0 ${h}, 0 10px 24px -14px rgba(${$},0.45); }
108
- 100% { box-shadow: 0 0 0 0 rgba(${I},0), 0 1px 0 ${h}, 0 10px 24px -14px rgba(${$},0.45); }
109
- }
110
- .mushi-trigger-pulse {
111
- animation: mushi-trigger-pulse 800ms ${_} 3;
112
- }
113
- @media (prefers-reduced-motion: reduce) {
114
- .mushi-trigger-pulse { animation: none; }
115
- }
116
- .mushi-trigger.bottom-right {
117
- bottom: var(--mushi-bottom, calc(${Y}px + env(safe-area-inset-bottom, 0px)));
118
- right: var(--mushi-right, calc(${Y}px + env(safe-area-inset-right, 0px)));
119
- }
120
- .mushi-trigger.bottom-left {
121
- bottom: var(--mushi-bottom, calc(${Y}px + env(safe-area-inset-bottom, 0px)));
122
- left: var(--mushi-left, calc(${Y}px + env(safe-area-inset-left, 0px)));
123
- }
124
- .mushi-trigger.top-right {
125
- top: var(--mushi-top, calc(${Y}px + env(safe-area-inset-top, 0px)));
126
- right: var(--mushi-right, calc(${Y}px + env(safe-area-inset-right, 0px)));
127
- }
128
- .mushi-trigger.top-left {
129
- top: var(--mushi-top, calc(${Y}px + env(safe-area-inset-top, 0px)));
130
- left: var(--mushi-left, calc(${Y}px + env(safe-area-inset-left, 0px)));
131
- }
132
- .mushi-trigger.edge-tab {
133
- width: ${Je}px;
134
- height: 88px;
135
- border-radius: ${me}px 0 0 ${me}px;
136
- writing-mode: vertical-rl;
137
- text-orientation: upright;
138
- font-size: 16px;
139
- box-shadow:
140
- 0 1px 0 ${h},
141
- 0 10px 24px -14px rgba(${$},0.45),
142
- inset -3px 0 0 ${d};
143
- }
144
- .mushi-trigger.edge-tab.bottom-right,
145
- .mushi-trigger.edge-tab.top-right {
146
- right: var(--mushi-right, 0);
147
- }
148
- .mushi-trigger.edge-tab.bottom-left,
149
- .mushi-trigger.edge-tab.top-left {
150
- left: var(--mushi-left, 0);
151
- border-radius: 0 ${me}px ${me}px 0;
152
- box-shadow:
153
- 0 1px 0 ${h},
154
- 0 10px 24px -14px rgba(${$},0.45),
155
- inset 3px 0 0 ${d};
156
- }
157
- .mushi-trigger.shrunk {
158
- width: ${Ce}px;
159
- height: ${Ce}px;
160
- opacity: 0.82;
161
- transform: scale(0.92);
162
- }
163
-
164
- /* \u2500\u2500 Draggable FAB \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
165
- When draggable is enabled the trigger uses CSS translate to apply the
166
- drag offset ON TOP of the existing inset positioning, so snapping and
167
- safe-area clamp still work correctly via the inset vars.
168
- --mushi-drag-active 0|1 gates the transform so non-draggable FABs are
169
- completely unaffected. touch-action: none prevents browser pan/scroll
170
- from racing the pointer capture. */
171
- .mushi-trigger {
172
- touch-action: none;
173
- translate:
174
- calc(var(--mushi-drag-active, 0) * var(--mushi-drag-x, 0px))
175
- calc(var(--mushi-drag-active, 0) * var(--mushi-drag-y, 0px));
176
- }
177
- .mushi-trigger.dragging {
178
- cursor: grabbing !important;
179
- z-index: calc(var(--z, ${Qe}) + 2);
180
- transition: none !important;
181
- box-shadow:
182
- 0 1px 0 ${h},
183
- 0 20px 40px -12px rgba(${$},0.55),
184
- inset 0 -3px 0 ${d};
185
- opacity: 0.92;
186
- }
187
- @media (prefers-reduced-motion: reduce) {
188
- .mushi-trigger { transition: none !important; }
189
- }
190
-
191
- @keyframes mushi-pulse {
192
- 0% { box-shadow: 0 0 0 0 ${d}; opacity: 1; }
193
- 70% { box-shadow: 0 0 0 8px ${d}00; opacity: 0.5; }
194
- 100% { box-shadow: 0 0 0 0 ${d}00; opacity: 1; }
195
- }
196
-
197
- .mushi-panel {
198
- position: fixed;
199
- width: ${he}px;
200
- max-width: calc(100vw - ${pr.wide}px);
201
- max-height: min(${Se}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
202
- background: ${o};
203
- border: 1px solid ${g};
204
- border-radius: 6px;
205
- box-shadow:
206
- 0 1px 0 ${h},
207
- 0 24px 56px -20px rgba(${$},0.30),
208
- 0 8px 16px -8px rgba(${$},0.20);
209
- overflow: hidden;
210
- display: flex;
211
- flex-direction: column;
212
- transform-origin: var(--mushi-origin, bottom right);
213
- /* Keyboard inset \u2014 layout exception (IME), not decorative (docs/MOTION.md) */
214
- transition: bottom ${T}ms ease, top ${T}ms ease, max-height ${T}ms ease;
215
- }
216
- /* Keyboard-safe: on narrow viewports lift above the keyboard */
217
- .mushi-panel.keyboard-open {
218
- bottom: calc(var(--mushi-keyboard-inset, 0px) + 8px) !important;
219
- }
220
- /* On narrow mobile, fill the width as a bottom sheet */
221
- @media (max-width: ${fe}px) {
222
- .mushi-panel {
223
- left: 0 !important;
224
- right: 0 !important;
225
- width: 100% !important;
226
- max-width: 100% !important;
227
- border-bottom-left-radius: 0;
228
- border-bottom-right-radius: 0;
229
- bottom: var(--mushi-keyboard-inset, 0px) !important;
230
- }
231
- .mushi-panel.keyboard-open {
232
- bottom: calc(var(--mushi-keyboard-inset, 0px) + 4px) !important;
233
- }
234
- }
235
- .mushi-panel.open { animation: mushi-stamp-in ${B}ms ${_} both; }
236
- .mushi-panel.closed { display: none; }
237
- .mushi-panel.bottom-right {
238
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${Y}px) + ${j}px));
239
- right: var(--mushi-right, calc(${Y}px + env(safe-area-inset-right, 0px)));
240
- --mushi-origin: bottom right;
241
- }
242
- .mushi-panel.bottom-left {
243
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${Y}px) + ${j}px));
244
- left: var(--mushi-left, calc(${Y}px + env(safe-area-inset-left, 0px)));
245
- --mushi-origin: bottom left;
246
- }
247
- .mushi-panel.top-right {
248
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${Y}px) + ${j}px));
249
- right: var(--mushi-right, calc(${Y}px + env(safe-area-inset-right, 0px)));
250
- --mushi-origin: top right;
251
- }
252
- .mushi-panel.top-left {
253
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${Y}px) + ${j}px));
254
- left: var(--mushi-left, calc(${Y}px + env(safe-area-inset-left, 0px)));
255
- --mushi-origin: top left;
256
- }
257
- .mushi-outdated {
258
- margin: 12px 14px 0;
259
- padding: 10px 12px;
260
- border: 1px solid ${E};
261
- background: ${E};
262
- color: ${v};
263
- font-family: ${U};
264
- font-size: 12px;
265
- line-height: 1.4;
266
- }
267
- .mushi-outdated strong {
268
- display: block;
269
- font-family: ${L};
270
- font-size: 10px;
271
- letter-spacing: 0.12em;
272
- text-transform: uppercase;
273
- margin-bottom: 2px;
274
- }
275
- .mushi-outdated span {
276
- display: block;
277
- margin-top: 3px;
278
- color: ${l};
279
- }
280
-
281
- @keyframes mushi-stamp-in {
282
- 0% { opacity: 0; transform: scale(0.94) translateY(6px); }
283
- 60% { opacity: 1; }
284
- 100% { opacity: 1; transform: scale(1) translateY(0); }
285
- }
286
-
287
- .mushi-header {
288
- padding: 13px 18px 10px;
289
- border-bottom: 1px solid ${h};
290
- display: grid;
291
- grid-template-columns: auto 1fr auto;
292
- align-items: end;
293
- gap: 10px;
294
- }
295
- .mushi-header-mark {
296
- display: inline-flex;
297
- align-items: center;
298
- justify-content: center;
299
- width: 22px;
300
- height: 22px;
301
- border-radius: 3px;
302
- background: ${d};
303
- color: ${x};
304
- font-family: ${J};
305
- font-size: 14px;
306
- font-weight: 600;
307
- line-height: 1;
308
- letter-spacing: -0.02em;
309
- transform: rotate(-3deg);
310
- flex-shrink: 0;
311
- }
312
- .mushi-header-titles {
313
- min-width: 0;
314
- display: flex;
315
- flex-direction: column;
316
- gap: 2px;
317
- }
318
- .mushi-header-eyebrow {
319
- font-family: ${L};
320
- font-size: 10px;
321
- letter-spacing: 0.18em;
322
- text-transform: uppercase;
323
- color: ${l};
324
- }
325
- .mushi-header h3 {
326
- font-family: ${J};
327
- font-size: 19px;
328
- font-weight: 500;
329
- line-height: 1.15;
330
- letter-spacing: -0.01em;
331
- color: ${i};
332
- }
333
- .mushi-header-meta {
334
- align-self: start;
335
- display: flex;
336
- align-items: center;
337
- gap: 6px;
338
- }
339
- .mushi-step-counter {
340
- font-family: ${L};
341
- font-size: 11px;
342
- color: ${l};
343
- letter-spacing: 0.06em;
344
- tab-size: 2ch;
345
- padding-top: 2px;
346
- }
347
- .mushi-step-counter b {
348
- font-weight: 600;
349
- color: ${i};
350
- }
351
- .mushi-close {
352
- background: none;
353
- border: none;
354
- cursor: pointer;
355
- padding: 2px 4px;
356
- color: ${l};
357
- font-family: ${U};
358
- font-size: 16px;
359
- line-height: 1;
360
- border-radius: 0;
361
- transition: opacity ${T}ms ${_};
362
- }
363
- .mushi-back {
364
- align-self: flex-start;
365
- background: none;
366
- border: none;
367
- cursor: pointer;
368
- padding: 3px 0;
369
- margin: 0 0 2px;
370
- min-height: 22px;
371
- color: ${l};
372
- font-family: ${L};
373
- font-size: 11px;
374
- font-weight: 500;
375
- letter-spacing: 0.06em;
376
- text-transform: uppercase;
377
- line-height: 1.2;
378
- border-radius: 0;
379
- display: inline-flex;
380
- align-items: center;
381
- gap: 4px;
382
- transition: opacity ${T}ms ${_};
383
- white-space: nowrap;
384
- }
385
- .mushi-close:hover { color: ${d}; }
386
- .mushi-back:hover { color: ${i}; }
387
- .mushi-close:focus-visible {
388
- outline: 1.5px solid ${d};
389
- outline-offset: 2px;
390
- }
391
- .mushi-back:focus-visible {
392
- outline: none;
393
- color: ${d};
394
- text-decoration: underline;
395
- text-underline-offset: 3px;
396
- }
397
-
398
- /* \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
399
- Generous left/right padding (22px) so type breathes. Vertical
400
- padding tighter at top because the header rule already creates
401
- breathing room. */
402
- .mushi-body {
403
- padding: 8px 22px 16px;
404
- overflow-y: auto;
405
- flex: 1;
406
- scrollbar-width: thin;
407
- scrollbar-color: ${f} transparent;
408
- }
409
- .mushi-body::-webkit-scrollbar { width: 6px; }
410
- .mushi-body::-webkit-scrollbar-thumb { background: ${f}; border-radius: 3px; }
411
-
412
- .mushi-option-btn {
413
- display: grid;
414
- grid-template-columns: auto 1fr auto;
415
- align-items: center;
416
- gap: ${it}px;
417
- width: 100%;
418
- min-height: var(--mushi-touch-min);
419
- padding: ${it}px 0;
420
- border: none;
421
- border-bottom: 1px solid ${h};
422
- background: transparent;
423
- cursor: pointer;
424
- color: inherit;
425
- text-align: left;
426
- transition: transform ${O}ms ${_}, opacity ${O}ms ${_};
427
- position: relative;
428
- }
429
- .mushi-option-btn:last-child { border-bottom: none; }
430
- .mushi-option-btn:hover {
431
- transform: translateX(6px);
432
- color: ${d};
433
- background: linear-gradient(90deg, rgba(${I},0.07), transparent 55%);
434
- }
435
- .mushi-option-btn:hover .mushi-option-arrow { opacity: 1; transform: translateX(0); color: ${d}; }
436
- .mushi-option-btn:focus-visible {
437
- outline: none;
438
- transform: translateX(6px);
439
- box-shadow: inset 2px 0 0 ${d};
440
- }
441
- .mushi-option-icon {
442
- font-size: 18px;
443
- line-height: 1;
444
- flex-shrink: 0;
445
- filter: ${s?"none":"grayscale(0.15)"};
446
- }
447
- .mushi-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
448
- .mushi-option-label {
449
- font-family: ${J};
450
- font-size: 16px;
451
- font-weight: 500;
452
- letter-spacing: -0.005em;
453
- line-height: 1.2;
454
- }
455
- .mushi-option-desc {
456
- font-size: 12px;
457
- color: ${l};
458
- letter-spacing: 0.005em;
459
- }
460
- .mushi-option-arrow {
461
- font-family: ${L};
462
- font-size: 14px;
463
- color: ${f};
464
- opacity: 0;
465
- transform: translateX(-4px);
466
- transition: opacity ${O}ms ${_}, transform ${O}ms ${_};
467
- }
468
- /* Feature-request and Reports-inbox entries sit above the five
469
- category cards as discoverable shortcuts. We give them a subtle
470
- left rule so the eye reads them as a separate group rather than
471
- "another category". The shortcut group has zero hover indent
472
- overshoot \u2014 we want them quiet until intent. */
473
- .mushi-feature-entry,
474
- .mushi-reports-entry {
475
- padding-left: 10px;
476
- border-left: 2px solid ${f};
477
- transition: opacity ${O}ms ${_}, transform ${O}ms ${_};
478
- }
479
- .mushi-feature-entry:hover,
480
- .mushi-reports-entry:hover {
481
- border-left-color: ${d};
482
- padding-left: 14px;
483
- }
484
- .mushi-feature-entry .mushi-option-icon {
485
- filter: none;
486
- }
487
- .mushi-report-row {
488
- width: 100%;
489
- display: grid;
490
- grid-template-columns: 1fr auto;
491
- gap: 10px;
492
- align-items: center;
493
- padding: 12px 4px 12px 0;
494
- border: 0;
495
- border-bottom: 1px solid ${h};
496
- background: transparent;
497
- color: ${i};
498
- cursor: pointer;
499
- text-align: left;
500
- transition: opacity ${H}ms ${_}, transform ${H}ms ${_};
501
- }
502
- .mushi-report-row:hover,
503
- .mushi-report-row:focus-visible {
504
- background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
505
- padding-left: 4px;
506
- }
507
- .mushi-report-main {
508
- min-width: 0;
509
- display: grid;
510
- gap: 6px;
511
- }
512
- .mushi-report-title {
513
- font-size: 13px;
514
- line-height: 1.35;
515
- display: -webkit-box;
516
- -webkit-line-clamp: 2;
517
- -webkit-box-orient: vertical;
518
- overflow: hidden;
519
- }
520
- .mushi-report-meta {
521
- display: flex;
522
- flex-wrap: wrap;
523
- align-items: center;
524
- gap: 8px;
525
- }
526
- .mushi-report-status {
527
- display: inline-flex;
528
- align-items: center;
529
- font-family: ${L};
530
- font-size: 10px;
531
- font-weight: 600;
532
- letter-spacing: 0.04em;
533
- text-transform: uppercase;
534
- padding: 2px 7px;
535
- border-radius: 999px;
536
- border: 1px solid transparent;
537
- }
538
- .mushi-status-sent {
539
- color: ${W.fg};
540
- background: ${W.bg};
541
- border-color: ${W.border};
542
- }
543
- .mushi-status-review {
544
- color: ${Q.fg};
545
- background: ${Q.bg};
546
- border-color: ${Q.border};
547
- }
548
- .mushi-status-fixing {
549
- color: ${G.fg};
550
- background: ${G.bg};
551
- border-color: ${G.border};
552
- }
553
- .mushi-status-fixed {
554
- color: ${te.fg};
555
- background: ${te.bg};
556
- border-color: ${te.border};
557
- }
558
- .mushi-status-closed,
559
- .mushi-status-unknown {
560
- color: ${l};
561
- background: ${ae};
562
- border-color: ${g};
563
- }
564
- .mushi-report-when {
565
- font-family: ${L};
566
- font-size: 10px;
567
- color: ${f};
568
- }
569
- .mushi-unread-badge {
570
- display: inline-flex;
571
- align-items: center;
572
- justify-content: center;
573
- min-width: 18px;
574
- height: 18px;
575
- padding: 0 5px;
576
- border-radius: 999px;
577
- font-family: ${L};
578
- font-size: 10px;
579
- font-weight: 700;
580
- color: ${v};
581
- background: ${d};
582
- }
583
- .mushi-report-chevron {
584
- font-size: 18px;
585
- line-height: 1;
586
- color: ${f};
587
- transition: opacity ${H}ms ${_}, transform ${H}ms ${_};
588
- }
589
- .mushi-report-row:hover .mushi-report-chevron,
590
- .mushi-report-row:focus-visible .mushi-report-chevron {
591
- color: ${d};
592
- transform: translateX(2px);
593
- }
594
- .mushi-thread-summary {
595
- border-bottom: 1px solid ${h};
596
- padding-bottom: 10px;
597
- margin-bottom: 10px;
598
- }
599
- .mushi-thread-summary-meta {
600
- display: flex;
601
- flex-wrap: wrap;
602
- align-items: center;
603
- gap: 10px;
604
- margin-bottom: 8px;
605
- }
606
- .mushi-thread {
607
- display: grid;
608
- gap: 8px;
609
- max-height: 180px;
610
- overflow: auto;
611
- margin-bottom: 12px;
612
- }
613
- .mushi-thread-comment {
614
- padding: 8px 10px;
615
- border: 1px solid ${h};
616
- background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
617
- }
618
- .mushi-thread-comment.reporter {
619
- border-color: ${E};
620
- background: ${E};
621
- }
622
- .mushi-thread-comment strong {
623
- display: block;
624
- font-family: ${L};
625
- font-size: 10px;
626
- letter-spacing: 0.04em;
627
- margin-bottom: 3px;
628
- }
629
- .mushi-thread-comment p,
630
- .mushi-muted,
631
- .mushi-error-inline {
632
- font-size: 12px;
633
- color: ${l};
634
- line-height: 1.45;
635
- }
636
- .mushi-error-inline { color: ${d}; }
637
-
638
- .mushi-selected-category {
639
- display: inline-flex;
640
- align-items: center;
641
- gap: 8px;
642
- padding: 6px 10px 6px 12px;
643
- border-left: 2px solid ${d};
644
- background: ${E};
645
- color: ${v};
646
- font-family: ${J};
647
- font-size: 13px;
648
- margin: 4px 0 14px;
649
- border-radius: 0 3px 3px 0;
650
- }
651
- .mushi-selected-category span:first-child { font-size: 14px; }
652
- .mushi-intents {
653
- display: flex;
654
- flex-direction: column;
655
- gap: 2px;
656
- }
657
- .mushi-intents .mushi-option-btn {
658
- grid-template-columns: 1fr auto;
659
- }
660
-
661
- /* Example starter chips \u2014 reduce first-report activation energy */
662
- .mushi-example-chips {
663
- display: flex;
664
- flex-wrap: wrap;
665
- gap: 6px;
666
- margin-bottom: 10px;
667
- }
668
- .mushi-example-chip {
669
- padding: 4px 10px;
670
- border: 1px solid ${h};
671
- border-radius: 12px;
672
- background: transparent;
673
- color: ${l};
674
- font-family: ${U};
675
- font-size: 11px;
676
- cursor: pointer;
677
- transition: opacity ${T}ms ${_}, transform ${T}ms ${_};
678
- white-space: nowrap;
679
- }
680
- .mushi-example-chip:hover {
681
- color: ${i};
682
- border-color: ${l};
683
- background: ${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};
684
- }
685
- .mushi-example-chip:focus-visible {
686
- outline: 2px solid ${d};
687
- outline-offset: 2px;
688
- }
689
-
690
- /* Textarea wrapper to position char counter */
691
- .mushi-textarea-wrap {
692
- position: relative;
693
- }
694
- .mushi-char-counter {
695
- position: absolute;
696
- bottom: 4px;
697
- right: 0;
698
- font-family: ${L};
699
- font-size: 10px;
700
- letter-spacing: 0.04em;
701
- color: ${f};
702
- pointer-events: none;
703
- transition: opacity ${H}ms ${_};
704
- }
705
-
706
- .mushi-textarea {
707
- width: 100%;
708
- min-height: 96px;
709
- padding: 8px 0 10px;
710
- border: none;
711
- border-bottom: 1px solid ${g};
712
- background: transparent;
713
- color: ${i};
714
- font-family: ${U};
715
- font-size: 14px;
716
- line-height: 1.5;
717
- resize: vertical;
718
- outline: none;
719
- transition: opacity ${H}ms ${_}, transform ${H}ms ${_};
720
- }
721
- .mushi-textarea::placeholder {
722
- color: ${f};
723
- font-style: italic;
724
- }
725
- .mushi-textarea:focus { border-bottom-color: ${d}; }
726
-
727
- .mushi-attachments {
728
- display: flex;
729
- flex-wrap: wrap;
730
- gap: 6px;
731
- margin-top: 12px;
732
- }
733
- .mushi-attach-btn {
734
- display: inline-flex;
735
- align-items: center;
736
- gap: 6px;
737
- padding: 5px 10px;
738
- border: 1px solid ${g};
739
- border-radius: 3px;
740
- background: transparent;
741
- color: ${l};
742
- font-family: ${L};
743
- font-size: 11px;
744
- letter-spacing: 0.04em;
745
- text-transform: uppercase;
746
- cursor: pointer;
747
- transition: opacity ${H}ms ${_}, transform ${H}ms ${_};
748
- }
749
- .mushi-attach-btn:hover {
750
- color: ${i};
751
- border-color: ${i};
752
- }
753
- .mushi-attach-btn.active {
754
- color: ${d};
755
- border-color: ${d};
756
- background: ${E};
757
- }
758
- .mushi-attach-btn.danger {
759
- color: ${v};
760
- border-color: ${E};
761
- background: transparent;
762
- }
763
- .mushi-attach-btn.danger:hover {
764
- color: ${d};
765
- border-color: ${d};
766
- background: ${E};
767
- }
768
- .mushi-attach-btn.loading {
769
- opacity: 0.7;
770
- cursor: wait;
771
- }
772
- .mushi-attach-btn.error {
773
- color: ${d};
774
- border-color: ${E};
775
- }
776
- .mushi-attach-btn:focus-visible {
777
- outline: 2px solid ${d};
778
- outline-offset: 2px;
779
- }
780
- .mushi-annotate-host {
781
- flex-basis: 100%;
782
- margin-top: 8px;
783
- }
784
- .mushi-annotate-host:empty {
785
- margin-top: 0;
786
- }
787
- .mushi-screenshot-preview {
788
- margin: 10px 0 0;
789
- display: flex;
790
- flex-direction: column;
791
- gap: 6px;
792
- }
793
- .mushi-screenshot-preview img {
794
- display: block;
795
- max-width: 100%;
796
- max-height: 160px;
797
- width: auto;
798
- border: 1px solid ${g};
799
- border-radius: 3px;
800
- object-fit: contain;
801
- align-self: flex-start;
802
- }
803
- .mushi-screenshot-hint {
804
- margin: 0;
805
- color: ${l};
806
- font-family: ${L};
807
- font-size: 10.5px;
808
- line-height: 1.4;
809
- letter-spacing: 0.02em;
810
- }
811
- .mushi-identified-user {
812
- margin: 8px 0 0;
813
- font-size: 11.5px;
814
- color: ${l};
815
- line-height: 1.4;
816
- }
817
- .mushi-identified-user strong {
818
- color: ${i};
819
- font-weight: 600;
820
- }
821
- .mushi-annotate-toolbar {
822
- display: flex;
823
- flex-wrap: wrap;
824
- gap: 6px;
825
- margin-bottom: 8px;
826
- }
827
- @keyframes mushi-spin {
828
- to { transform: rotate(360deg); }
829
- }
830
- @keyframes mushi-fade-in {
831
- from { opacity: 0; transform: translateY(4px); }
832
- to { opacity: 1; transform: translateY(0); }
833
- }
834
- .mushi-spinner {
835
- display: inline-block;
836
- width: 10px;
837
- height: 10px;
838
- border: 1.5px solid currentColor;
839
- border-top-color: transparent;
840
- border-radius: 50%;
841
- animation: mushi-spin ${Re}ms linear infinite;
842
- }
843
-
844
- .mushi-footer {
845
- padding: 14px 22px 16px;
846
- border-top: 1px solid ${h};
847
- display: flex;
848
- align-items: center;
849
- justify-content: space-between;
850
- gap: 12px;
851
- }
852
- .mushi-footer-hint {
853
- font-family: ${L};
854
- font-size: 10px;
855
- letter-spacing: 0.10em;
856
- text-transform: uppercase;
857
- color: ${f};
858
- }
859
- .mushi-submit {
860
- position: relative;
861
- display: inline-flex;
862
- align-items: center;
863
- gap: ${ot}px;
864
- min-height: var(--mushi-touch-min);
865
- padding: ${it}px ${Ft}px;
866
- border: 1px solid ${d};
867
- border-radius: ${me}px;
868
- background: linear-gradient(160deg, ${d} 0%, ${k} 100%);
869
- color: ${x};
870
- font-family: ${L};
871
- font-size: ${Ie}px;
872
- letter-spacing: 0.16em;
873
- text-transform: uppercase;
874
- cursor: pointer;
875
- overflow: hidden;
876
- transition: transform ${H}ms ${_}, opacity ${H}ms ${_};
877
- box-shadow: 0 2px 0 ${k};
878
- }
879
- .mushi-submit::after {
880
- content: '';
881
- position: absolute;
882
- inset: 0;
883
- background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
884
- opacity: 0;
885
- transform: scale(0.4);
886
- transition: opacity ${B}ms ${_}, transform ${pe}ms ${_};
887
- pointer-events: none;
888
- }
889
- .mushi-submit:hover {
890
- transform: translateY(-1px);
891
- box-shadow:
892
- 0 3px 0 ${k},
893
- 0 0 0 3px rgba(${I},0.18),
894
- 0 4px 16px -4px rgba(${I},0.35);
895
- }
896
- .mushi-submit:hover::after { opacity: 1; transform: scale(1.4); }
897
- .mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${k}; }
898
- .mushi-submit:disabled {
899
- cursor: wait;
900
- opacity: 0.7;
901
- }
902
- .mushi-submit:focus-visible {
903
- outline: 2px solid ${d};
904
- outline-offset: 3px;
905
- }
906
- .mushi-submit-arrow {
907
- display: inline-block;
908
- transition: transform ${O}ms ${_};
909
- }
910
- .mushi-submit:hover .mushi-submit-arrow { transform: translateX(3px); }
911
-
912
- .mushi-brand-footer {
913
- padding: 9px 14px 11px;
914
- border-top: 1px solid ${h};
915
- color: ${f};
916
- font-family: ${L};
917
- font-size: 9px;
918
- letter-spacing: 0.16em;
919
- text-align: center;
920
- text-transform: uppercase;
921
- }
922
-
923
- .mushi-step-indicator {
924
- display: flex;
925
- align-items: center;
926
- justify-content: center;
927
- gap: 8px;
928
- padding: 10px 22px 14px;
929
- color: ${f};
930
- font-family: ${L};
931
- font-size: 11px;
932
- letter-spacing: 0.10em;
933
- }
934
- .mushi-step-num {
935
- display: inline-flex;
936
- align-items: baseline;
937
- gap: 4px;
938
- transition: opacity ${H}ms ${_};
939
- }
940
- .mushi-step-num.done { color: ${l}; text-decoration: line-through; text-decoration-color: ${f}; }
941
- .mushi-step-num.active {
942
- color: ${d};
943
- font-family: ${J};
944
- font-size: 14px;
945
- font-weight: 600;
946
- letter-spacing: 0;
947
- }
948
- .mushi-step-sep { width: 14px; height: 1px; background: ${h}; }
949
-
950
- .mushi-success {
951
- text-align: center;
952
- padding: 28px 16px 20px;
953
- }
954
- .mushi-success-stamp {
955
- position: relative;
956
- width: 96px;
957
- height: 96px;
958
- margin: 0 auto 16px;
959
- display: inline-flex;
960
- align-items: center;
961
- justify-content: center;
962
- }
963
- .mushi-success-stamp svg {
964
- position: absolute;
965
- inset: 0;
966
- width: 100%;
967
- height: 100%;
968
- }
969
- .mushi-success-stamp circle {
970
- fill: none;
971
- stroke: ${d};
972
- stroke-width: 3;
973
- stroke-dasharray: 280;
974
- stroke-dashoffset: 280;
975
- transform: rotate(-90deg);
976
- transform-origin: center;
977
- animation: mushi-stamp-ring 700ms ${_} 80ms forwards;
978
- filter: drop-shadow(0 0 6px rgba(${I},0.5));
979
- }
980
- .mushi-success-stamp-label {
981
- font-family: ${J};
982
- font-size: 18px;
983
- font-weight: 600;
984
- color: ${d};
985
- letter-spacing: 0.04em;
986
- transform: rotate(-6deg);
987
- opacity: 0;
988
- animation: mushi-stamp-press 360ms ${_} 600ms forwards;
989
- }
990
- .mushi-success-headline {
991
- font-family: ${J};
992
- font-size: 18px;
993
- font-weight: 500;
994
- color: ${i};
995
- margin-bottom: 4px;
996
- }
997
- .mushi-success-meta {
998
- font-family: ${L};
999
- font-size: 11px;
1000
- letter-spacing: 0.10em;
1001
- text-transform: uppercase;
1002
- color: ${l};
1003
- }
1004
-
1005
- /* \u2500\u2500 Two-way receipt (success step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1006
- /* The receipt block sits below the stamp/meta. Three states: */
1007
- /* 1. delivering... (spinner pill, while host onSubmit awaits) */
1008
- /* 2. confirmed (Receipt id + Track on Mushi link) */
1009
- /* 3. queued offline (warn pill \u2014 degrade gracefully) */
1010
- .mushi-success-receipt {
1011
- margin-top: 14px;
1012
- width: 100%;
1013
- max-width: 280px;
1014
- display: flex;
1015
- flex-direction: column;
1016
- gap: 6px;
1017
- align-items: stretch;
1018
- }
1019
- .mushi-success-receipt-row {
1020
- display: flex;
1021
- align-items: center;
1022
- justify-content: center;
1023
- gap: 8px;
1024
- font-family: ${L};
1025
- font-size: 11px;
1026
- letter-spacing: 0.05em;
1027
- color: ${l};
1028
- }
1029
- .mushi-success-receipt-label {
1030
- text-transform: uppercase;
1031
- letter-spacing: 0.10em;
1032
- color: ${l};
1033
- }
1034
- .mushi-success-receipt-id {
1035
- display: inline-flex;
1036
- align-items: center;
1037
- gap: 5px;
1038
- padding: 3px 8px;
1039
- border-radius: 4px;
1040
- background: transparent;
1041
- border: 1px dashed ${h};
1042
- color: inherit;
1043
- font-family: ${L};
1044
- font-size: 12px;
1045
- letter-spacing: 0.02em;
1046
- cursor: pointer;
1047
- transition: opacity ${T}ms ${_};
1048
- }
1049
- .mushi-success-receipt-id:hover,
1050
- .mushi-success-receipt-id:focus-visible {
1051
- background: rgba(${I},0.06);
1052
- border-color: ${d};
1053
- color: ${d};
1054
- outline: none;
1055
- }
1056
- .mushi-success-receipt-copy {
1057
- font-size: 11px;
1058
- opacity: 0.7;
1059
- }
1060
- .mushi-success-receipt-track {
1061
- display: inline-flex;
1062
- align-items: center;
1063
- justify-content: center;
1064
- gap: 4px;
1065
- padding: 6px 10px;
1066
- border-radius: 4px;
1067
- background: ${d};
1068
- color: ${y};
1069
- font-family: ${L};
1070
- font-size: 11px;
1071
- letter-spacing: 0.10em;
1072
- text-transform: uppercase;
1073
- text-decoration: none;
1074
- transition: filter ${T}ms ease;
1075
- }
1076
- .mushi-success-receipt-track:hover,
1077
- .mushi-success-receipt-track:focus-visible {
1078
- filter: brightness(0.95);
1079
- outline: none;
1080
- }
1081
- .mushi-success-receipt-spinner {
1082
- width: 11px;
1083
- height: 11px;
1084
- border-radius: 50%;
1085
- border: 1.5px solid ${h};
1086
- border-top-color: ${d};
1087
- animation: mushi-receipt-spin 0.8s linear infinite;
1088
- }
1089
- @keyframes mushi-receipt-spin {
1090
- to { transform: rotate(360deg); }
1091
- }
1092
- .mushi-success-receipt-hint {
1093
- color: ${l};
1094
- font-style: italic;
1095
- }
1096
- .mushi-success-receipt-warn {
1097
- color: ${d};
1098
- }
1099
- .mushi-success-my-reports {
1100
- display: block;
1101
- margin: 12px auto 0;
1102
- font-size: 12px;
1103
- font-family: ${L};
1104
- color: ${d};
1105
- text-decoration: underline;
1106
- text-underline-offset: 2px;
1107
- background: none;
1108
- border: none;
1109
- cursor: pointer;
1110
- padding: 4px 2px;
1111
- }
1112
- .mushi-success-my-reports:hover { opacity: 0.75; }
1113
- .mushi-success-sla {
1114
- margin-top: 2px;
1115
- font-family: ${J};
1116
- font-size: 12px;
1117
- line-height: 1.45;
1118
- text-align: center;
1119
- color: ${l};
1120
- max-width: 260px;
1121
- }
1122
- .mushi-success-sla-default {
1123
- opacity: 0.85;
1124
- }
1125
-
1126
- @keyframes mushi-stamp-ring {
1127
- to { stroke-dashoffset: 0; }
1128
- }
1129
- @keyframes mushi-stamp-press {
1130
- 0% { opacity: 0; transform: rotate(-6deg) scale(1.3); }
1131
- 60% { opacity: 1; transform: rotate(-6deg) scale(0.94); }
1132
- 100% { opacity: 1; transform: rotate(-6deg) scale(1); }
1133
- }
1134
-
1135
- .mushi-error {
1136
- margin-top: 10px;
1137
- padding: 8px 0 8px 10px;
1138
- border-left: 2px solid ${d};
1139
- color: ${d};
1140
- font-size: 12px;
1141
- font-family: ${L};
1142
- letter-spacing: 0.02em;
1143
- }
1144
-
1145
- /* \u2500\u2500 Rewards nudge (category step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1146
- .mushi-rewards-nudge {
1147
- border-top: 1px solid ${h};
1148
- padding: 10px 0 4px;
1149
- margin-top: 6px;
1150
- }
1151
- .mushi-rewards-row {
1152
- display: flex;
1153
- align-items: center;
1154
- gap: 6px;
1155
- margin-bottom: 8px;
1156
- }
1157
- .mushi-tier-pip {
1158
- width: 7px;
1159
- height: 7px;
1160
- border-radius: 50%;
1161
- flex-shrink: 0;
1162
- }
1163
- .mushi-rewards-tier-name {
1164
- font-family: ${L};
1165
- font-size: 11px;
1166
- letter-spacing: 0.08em;
1167
- text-transform: uppercase;
1168
- color: ${i};
1169
- }
1170
- .mushi-rewards-pts-count {
1171
- font-family: ${L};
1172
- font-size: 11px;
1173
- color: ${l};
1174
- margin-right: auto;
1175
- }
1176
- .mushi-rewards-pts-earn {
1177
- font-family: ${L};
1178
- font-size: 10px;
1179
- color: ${d};
1180
- letter-spacing: 0.04em;
1181
- white-space: nowrap;
1182
- }
1183
- .mushi-tier-bar-track {
1184
- height: 3px;
1185
- background: ${g};
1186
- border-radius: 2px;
1187
- overflow: hidden;
1188
- margin-bottom: 5px;
1189
- }
1190
- .mushi-tier-bar-fill {
1191
- height: 100%;
1192
- width: 100%;
1193
- background: ${d};
1194
- border-radius: 2px;
1195
- /* Meter fill \u2014 scaleX keeps compositor-friendly motion (docs/MOTION.md). */
1196
- transform-origin: left center;
1197
- transform: scaleX(var(--mushi-tier-pct, 0));
1198
- transition: transform ${pe}ms ${_};
1199
- }
1200
- .mushi-rewards-next-label {
1201
- font-family: ${L};
1202
- font-size: 10px;
1203
- color: ${l};
1204
- text-align: right;
1205
- letter-spacing: 0.02em;
1206
- }
1207
-
1208
- /* \u2500\u2500 Rewards on success step \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1209
- .mushi-success-rewards {
1210
- margin-top: 14px;
1211
- padding-top: 12px;
1212
- border-top: 1px solid ${h};
1213
- width: 100%;
1214
- }
1215
- .mushi-success-pts-award {
1216
- font-family: ${L};
1217
- font-size: 22px;
1218
- font-weight: 700;
1219
- color: ${d};
1220
- text-align: center;
1221
- letter-spacing: 0.06em;
1222
- margin-bottom: 10px;
1223
- opacity: 0;
1224
- animation: mushi-pts-pop ${pe}ms ${_} 900ms forwards;
1225
- }
1226
- .success-bar { margin: 0 0 5px; }
1227
-
1228
- @keyframes mushi-pts-pop {
1229
- from { opacity: 0; transform: scale(0.75) translateY(6px); }
1230
- to { opacity: 1; transform: scale(1) translateY(0); }
1231
- }
1232
-
1233
- /* \u2500\u2500\u2500 Beta mode strip (category step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1234
- /* Brand palette: widgetAccent (vermillion) + washi ink for the strip.
1235
- The previous generic indigo purple is the single most recognisable AI-template
1236
- colour; replaced with the widget's own vermillion wash so the beta panel
1237
- reads as a Mushi-native surface rather than a generic SaaS plug-in. */
1238
-
1239
- .mushi-beta-strip {
1240
- margin: 0 16px 2px;
1241
- padding: 9px 12px;
1242
- background: ${E};
1243
- border: 1px solid rgba(${I},${s?"0.22":"0.16"});
1244
- border-radius: 4px;
1245
- display: flex;
1246
- flex-direction: column;
1247
- gap: 4px;
1248
- }
1249
-
1250
- .mushi-beta-strip-row {
1251
- display: flex;
1252
- align-items: center;
1253
- gap: 8px;
1254
- }
1255
-
1256
- .mushi-beta-tag {
1257
- display: inline-flex;
1258
- align-items: center;
1259
- padding: 1px 6px;
1260
- border-radius: 3px;
1261
- background: ${d};
1262
- color: ${x};
1263
- font-family: ${L};
1264
- font-size: 9px;
1265
- font-weight: 700;
1266
- letter-spacing: 0.14em;
1267
- line-height: 1.6;
1268
- white-space: nowrap;
1269
- flex-shrink: 0;
1270
- text-transform: uppercase;
1271
- }
1272
-
1273
- .mushi-beta-msg {
1274
- font-size: 11px;
1275
- color: ${l};
1276
- line-height: 1.45;
1277
- }
1278
-
1279
- .mushi-beta-contact-hint {
1280
- font-size: 10px;
1281
- color: ${f};
1282
- font-family: ${L};
1283
- letter-spacing: 0.06em;
1284
- }
1285
-
1286
- .mushi-beta-perks {
1287
- list-style: none;
1288
- margin: 2px 0 0;
1289
- padding: 0;
1290
- display: flex;
1291
- flex-direction: column;
1292
- gap: 2px;
1293
- }
1294
-
1295
- .mushi-beta-perks li {
1296
- font-size: 12px;
1297
- color: ${v};
1298
- font-weight: 500;
1299
- }
1300
-
1301
- /* \u2500\u2500\u2500 Beta changelog (collapsible What's new) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1302
-
1303
- .mushi-changelog {
1304
- margin-top: 5px;
1305
- }
1306
-
1307
- .mushi-changelog-summary {
1308
- font-size: 11px;
1309
- color: ${p};
1310
- cursor: pointer;
1311
- list-style: none;
1312
- display: flex;
1313
- align-items: center;
1314
- gap: 4px;
1315
- user-select: none;
1316
- }
1317
-
1318
- .mushi-changelog-summary::before {
1319
- content: '\u25B6';
1320
- font-size: 7px;
1321
- opacity: 0.6;
1322
- transition: transform ${T}ms ${_};
1323
- }
1324
-
1325
- .mushi-changelog[open] .mushi-changelog-summary::before {
1326
- transform: rotate(90deg);
1327
- }
1328
-
1329
- .mushi-changelog-list {
1330
- margin: 5px 0 0 4px;
1331
- padding: 0;
1332
- list-style: none;
1333
- display: flex;
1334
- flex-direction: column;
1335
- gap: 2px;
1336
- }
1337
-
1338
- .mushi-changelog-list li {
1339
- font-size: 11px;
1340
- color: ${p};
1341
- line-height: 1.5;
1342
- }
1343
-
1344
- /* \u2500\u2500\u2500 Beta success footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1345
-
1346
- .mushi-beta-success-footer {
1347
- margin-top: 14px;
1348
- padding: 10px 14px;
1349
- background: ${E};
1350
- border: 1px solid rgba(${I},${s?"0.18":"0.14"});
1351
- border-radius: 4px;
1352
- display: flex;
1353
- flex-direction: column;
1354
- gap: 3px;
1355
- text-align: left;
1356
- }
1357
-
1358
- .mushi-beta-success-line {
1359
- font-size: 12px;
1360
- color: ${v};
1361
- line-height: 1.5;
1362
- }
1363
-
1364
- .mushi-beta-success-dim {
1365
- opacity: 0.65;
1366
- font-size: 12px;
1367
- }
1368
-
1369
- /* \u2500\u2500\u2500 Banner launcher (trigger: 'banner') \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1370
-
1371
- .mushi-banner {
1372
- position: fixed;
1373
- left: 0;
1374
- right: 0;
1375
- /* min-height (not fixed height) + border-box so the safe-area padding
1376
- below extends the bar into the notch/home-indicator zone instead of
1377
- letting content bleed under the status bar (mobile safe-area bleed
1378
- fix \u2014 Workstream C). Horizontal padding also clears the left/right
1379
- insets for landscape notches. */
1380
- box-sizing: border-box;
1381
- min-height: ${Ce}px;
1382
- display: flex;
1383
- align-items: center;
1384
- justify-content: center;
1385
- gap: 10px;
1386
- padding: 0 calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
1387
- font-family: ${L};
1388
- font-size: 12px;
1389
- letter-spacing: 0.04em;
1390
- white-space: nowrap;
1391
- overflow: hidden;
1392
- z-index: var(--mushi-banner-z, ${ee});
1393
- animation: mushi-banner-slide-in ${B}ms ${_} both;
1394
- }
1395
-
1396
- .mushi-banner.top { top: 0; padding-top: env(safe-area-inset-top, 0px); }
1397
- .mushi-banner.bottom { bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
1398
-
1399
- /* --- neon variant (electric lime \u2014 dev / beta tool aesthetic) --- */
1400
- .mushi-banner.neon {
1401
- background: ${S};
1402
- color: ${A};
1403
- border-bottom: 1.5px solid ${b};
1404
- }
1405
- .mushi-banner.neon.bottom {
1406
- border-top: 1.5px solid ${b};
1407
- border-bottom: none;
1408
- }
1409
- .mushi-banner.neon .mushi-banner-btn {
1410
- background: rgba(0,0,0,0.14);
1411
- color: ${A};
1412
- border: 1px solid rgba(0,0,0,0.22);
1413
- }
1414
- .mushi-banner.neon .mushi-banner-btn:hover {
1415
- background: rgba(0,0,0,0.22);
1416
- }
1417
-
1418
- /* --- brand variant (widgetAccent \u2014 editorial, app-quality) --- */
1419
- .mushi-banner.brand {
1420
- background: ${d};
1421
- color: ${y};
1422
- border-bottom: 1.5px solid ${q};
1423
- }
1424
- .mushi-banner.brand.bottom {
1425
- border-top: 1.5px solid ${q};
1426
- border-bottom: none;
1427
- }
1428
- .mushi-banner.brand .mushi-banner-btn {
1429
- background: rgba(255,255,255,0.18);
1430
- color: ${y};
1431
- border: 1px solid rgba(255,255,255,0.32);
1432
- }
1433
- .mushi-banner.brand .mushi-banner-btn:hover {
1434
- background: rgba(255,255,255,0.28);
1435
- }
1436
-
1437
- /* --- subtle variant (frosted-glass, muted \u2014 least disruptive) ---
1438
- Uses the widget's own paper colour at high opacity + backdrop-blur so
1439
- it blends with the host app while remaining legible. The previous 4-6%
1440
- opacity values were effectively invisible \u2014 users could not distinguish
1441
- the banner from the page content below it. */
1442
- .mushi-banner.subtle {
1443
- background: ${s?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};
1444
- backdrop-filter: blur(14px);
1445
- -webkit-backdrop-filter: blur(14px);
1446
- color: ${i};
1447
- border-bottom: 1px solid ${g};
1448
- }
1449
- .mushi-banner.subtle.bottom {
1450
- border-top: 1px solid ${g};
1451
- border-bottom: none;
1452
- }
1453
- .mushi-banner.subtle .mushi-banner-btn {
1454
- background: ${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};
1455
- color: ${i};
1456
- border: 1px solid ${g};
1457
- }
1458
- .mushi-banner.subtle .mushi-banner-btn:hover {
1459
- background: ${s?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};
1460
- }
1461
-
1462
- .mushi-banner-label {
1463
- flex: 1;
1464
- text-align: center;
1465
- overflow: hidden;
1466
- text-overflow: ellipsis;
1467
- }
1468
-
1469
- /* Rich layout \u2014 pill + message + flat text actions (admin BetaBanner parity) */
1470
- .mushi-banner--rich {
1471
- justify-content: space-between;
1472
- gap: 12px;
1473
- min-height: ${Ce}px;
1474
- height: auto;
1475
- padding: 4px 12px 4px 16px;
1476
- white-space: normal;
1477
- }
1478
- .mushi-banner-body {
1479
- display: flex;
1480
- align-items: center;
1481
- gap: 8px;
1482
- flex: 1;
1483
- min-width: 0;
1484
- overflow: hidden;
1485
- }
1486
- .mushi-banner-pill {
1487
- display: inline-flex;
1488
- flex-shrink: 0;
1489
- align-items: center;
1490
- padding: 1px 6px;
1491
- border-radius: 3px;
1492
- border: 1px solid currentColor;
1493
- font-size: 10px;
1494
- font-weight: 700;
1495
- letter-spacing: 0.18em;
1496
- text-transform: uppercase;
1497
- opacity: 0.92;
1498
- }
1499
- .mushi-banner.neon .mushi-banner-pill {
1500
- border-color: rgba(10,26,10,0.45);
1501
- background: rgba(10,26,10,0.12);
1502
- }
1503
- .mushi-banner.brand .mushi-banner-pill {
1504
- border-color: rgba(255,255,255,0.45);
1505
- background: rgba(255,255,255,0.14);
1506
- }
1507
- .mushi-banner.subtle .mushi-banner-pill {
1508
- border-color: ${g};
1509
- background: ${s?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};
1510
- }
1511
- .mushi-banner-message {
1512
- min-width: 0;
1513
- overflow: hidden;
1514
- text-overflow: ellipsis;
1515
- white-space: nowrap;
1516
- font-size: 12px;
1517
- font-weight: 500;
1518
- line-height: 1.3;
1519
- opacity: 0.9;
1520
- }
1521
- .mushi-banner-actions {
1522
- display: inline-flex;
1523
- align-items: center;
1524
- gap: 0;
1525
- /* Shrinkable + swipe-scrollable so a long action row can never push
1526
- past the viewport edge (dismiss sits outside this nav). */
1527
- flex-shrink: 1;
1528
- min-width: 0;
1529
- overflow-x: auto;
1530
- scrollbar-width: none;
1531
- font-size: 11px;
1532
- }
1533
- .mushi-banner-actions::-webkit-scrollbar { display: none; }
1534
- @media (max-width: ${fe}px) {
1535
- /* Phones: keep only the primary bug CTA (+ dismiss outside the nav). */
1536
- .mushi-banner-actions .mushi-banner-extra { display: none; }
1537
- }
1538
- .mushi-banner-link {
1539
- display: inline-flex;
1540
- align-items: center;
1541
- padding: 2px 8px;
1542
- border: none;
1543
- background: transparent;
1544
- color: inherit;
1545
- cursor: pointer;
1546
- font: inherit;
1547
- letter-spacing: inherit;
1548
- text-decoration: none;
1549
- opacity: 0.88;
1550
- transition: opacity ${T}ms ${_};
1551
- flex-shrink: 0;
1552
- }
1553
- .mushi-banner-link:hover { opacity: 1; }
1554
- .mushi-banner-link:focus-visible {
1555
- outline: 2px solid ${d};
1556
- outline-offset: 2px;
1557
- border-radius: 2px;
1558
- }
1559
- .mushi-banner-divider {
1560
- opacity: 0.28;
1561
- padding: 0 1px;
1562
- user-select: none;
1563
- flex-shrink: 0;
1564
- }
1565
- .mushi-banner--rich .mushi-banner-dismiss {
1566
- margin-left: 4px;
1567
- }
1568
-
1569
- .mushi-banner-btn {
1570
- display: inline-flex;
1571
- align-items: center;
1572
- gap: 4px;
1573
- padding: 3px 10px;
1574
- border-radius: 3px;
1575
- cursor: pointer;
1576
- font: inherit;
1577
- letter-spacing: inherit;
1578
- transition: opacity ${T}ms ${_};
1579
- flex-shrink: 0;
1580
- height: 24px;
1581
- line-height: 1;
1582
- }
1583
- .mushi-banner-btn:focus-visible {
1584
- outline: 2px solid ${d};
1585
- outline-offset: 2px;
1586
- }
1587
-
1588
- .mushi-banner-dismiss {
1589
- background: transparent !important;
1590
- border: none !important;
1591
- opacity: 0.65;
1592
- cursor: pointer;
1593
- font-size: 14px;
1594
- line-height: 1;
1595
- padding: 4px 8px;
1596
- margin-left: auto;
1597
- flex-shrink: 0;
1598
- color: inherit;
1599
- border-radius: 3px;
1600
- transition: opacity ${T}ms ${_};
1601
- }
1602
- .mushi-banner-dismiss:hover {
1603
- opacity: 1;
1604
- background: rgba(0,0,0,0.12) !important;
1605
- }
1606
- .mushi-banner.neon .mushi-banner-dismiss:hover { background: rgba(0,0,0,0.18) !important; }
1607
-
1608
- /* "My reports" link in the simple (non-rich) banner layout */
1609
- .mushi-banner-my-reports {
1610
- background: transparent;
1611
- border: none;
1612
- cursor: pointer;
1613
- font-size: 11px;
1614
- font-family: ${L};
1615
- opacity: 0.75;
1616
- color: inherit;
1617
- padding: 2px 6px;
1618
- border-radius: 3px;
1619
- white-space: nowrap;
1620
- flex-shrink: 0;
1621
- transition: opacity ${T}ms ${_};
1622
- margin-left: 4px;
1623
- }
1624
- .mushi-banner-my-reports:hover {
1625
- opacity: 1;
1626
- background: rgba(0,0,0,0.10);
1627
- }
1628
- .mushi-banner.neon .mushi-banner-my-reports:hover { background: rgba(0,0,0,0.18); }
1629
-
1630
- @keyframes mushi-banner-slide-in {
1631
- from { transform: translateY(calc(-1 * 100%)); opacity: 0.5; }
1632
- to { transform: translateY(0); opacity: 1; }
1633
- }
1634
- .mushi-banner.bottom {
1635
- animation-name: mushi-banner-slide-in-bottom;
1636
- }
1637
- @keyframes mushi-banner-slide-in-bottom {
1638
- from { transform: translateY(100%); opacity: 0.5; }
1639
- to { transform: translateY(0); opacity: 1; }
1640
- }
1641
-
1642
- @media (prefers-reduced-motion: reduce) {
1643
- *,
1644
- *::before,
1645
- *::after {
1646
- animation-duration: 0.001ms !important;
1647
- animation-iteration-count: 1 !important;
1648
- transition-duration: 0.001ms !important;
1649
- }
1650
- .mushi-success-stamp circle { stroke-dashoffset: 0; }
1651
- .mushi-success-stamp-label { opacity: 1; }
1652
- .mushi-success-pts-award { opacity: 1; }
1653
- }
1654
-
1655
- .mushi-community-footer{display:flex;align-items:center;gap:8px;padding:10px 0 2px;border-top:1px solid ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.07)"};margin-top:8px;flex-wrap:wrap}
1656
- .mushi-community-btn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1657
- .mushi-section-label{
1658
- margin:0 0 6px;
1659
- font-family:${L};
1660
- font-size:11px;
1661
- letter-spacing:0.06em;
1662
- text-transform:uppercase;
1663
- color:${f};
1664
- }
1665
- .mushi-more-nav{margin-top:4px}
1666
- .mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${h};padding-top:2px}
1667
- .mushi-more-nav-link{align-self:flex-start;margin:6px 0 2px;padding:0}
1668
- /* \u2500\u2500 "More issue types \u2192" toggle (progressive disclosure) \u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1669
- .mushi-more-toggle {
1670
- display: flex;
1671
- align-items: center;
1672
- gap: 8px;
1673
- width: 100%;
1674
- padding: 11px 0;
1675
- border: none;
1676
- border-top: 1px dashed ${h};
1677
- background: transparent;
1678
- cursor: pointer;
1679
- color: ${l};
1680
- font-family: ${U};
1681
- font-size: 13px;
1682
- text-align: left;
1683
- transition: opacity ${H}ms ${_};
1684
- }
1685
- .mushi-more-toggle:hover { color: ${d}; }
1686
- .mushi-more-toggle:hover .mushi-more-toggle-arrow { transform: translateX(3px); }
1687
- .mushi-more-toggle-text { flex: 1; }
1688
- .mushi-more-toggle-count {
1689
- font-family: ${L};
1690
- font-size: 10px;
1691
- letter-spacing: 0.08em;
1692
- text-transform: uppercase;
1693
- color: ${f};
1694
- background: ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"};
1695
- padding: 2px 6px;
1696
- border-radius: 10px;
1697
- }
1698
- .mushi-more-toggle-arrow {
1699
- font-size: 14px;
1700
- opacity: 0.5;
1701
- transition: transform ${H}ms ${_};
1702
- }
1703
- /* \u2500\u2500 Step slide-in \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1704
- @keyframes mushi-step-in {
1705
- 0% { opacity: 0; transform: translateX(8px); }
1706
- 100% { opacity: 1; transform: translateX(0); }
1707
- }
1708
- .mushi-body {
1709
- animation: mushi-step-in 160ms ease both;
1710
- }
1711
- @media (prefers-reduced-motion: reduce) {
1712
- .mushi-body { animation: none; }
1713
- }
1714
- /* Expanded secondary categories animate in */
1715
- .mushi-categories-expanded {
1716
- animation: mushi-step-in ${H}ms ${_} both;
1717
- }
1718
- .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${d};font-size:12px;font-family:${L};text-decoration:underline;text-underline-offset:2px}
1719
- .mushi-link-btn:hover{opacity:0.8}
1720
- .mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px}
1721
- .mushi-nav-item{display:block;width:100%;text-align:left;background:${s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"};border:1px solid ${s?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"};border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;font-size:13px;color:${i};transition:opacity ${T}ms ${_}}
1722
- .mushi-nav-item:hover{background:${s?"rgba(255,255,255,0.09)":"rgba(0,0,0,0.07)"}}
1723
- .mushi-account-card{display:flex;align-items:center;gap:12px;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};border-radius:10px;padding:12px 14px;margin-bottom:14px}
1724
- .mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${E};color:${v};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
1725
- .mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}
1726
- .mushi-account-info strong{font:700 14px/1.3 inherit;color:${i}}
1727
- .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${p};font-family:${L}}
1728
- .mushi-account-rank{display:block}
1729
- .mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}
1730
- .mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}
1731
- .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${a};overflow:hidden;flex-shrink:0}
1732
- .mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}
1733
- .mushi-app-icon-initials{font-size:9px;font-weight:700;color:${p};line-height:1}
1734
- .mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}
1735
- .mushi-header-host-icon{display:block;width:20px;height:20px;border-radius:4px;object-fit:contain}
1736
- .mushi-xapp-group{margin-bottom:14px}
1737
- .mushi-label{display:block;font-weight:600;margin-bottom:6px}
1738
-
1739
- /* \u2500\u2500 Assistant tab (P5) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1740
- .mushi-assistant{display:flex;flex-direction:column;height:100%;min-height:0;max-height:60vh}
1741
- .mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}
1742
- .mushi-assistant-greeting{font:400 14px/1.5 ${U};color:${l};padding:6px 2px}
1743
- .mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
1744
- .mushi-assistant-chip{background:${E};color:${v};border:1px solid ${g};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${U};transition:opacity ${T}ms ${_},transform ${T}ms ${_}}
1745
- .mushi-assistant-chip:hover{background:rgba(${I},${s?"0.22":"0.14"})}
1746
- .mushi-assistant-chip:focus-visible{outline:2px solid ${d};outline-offset:2px}
1747
- .mushi-assistant-msg{max-width:85%;padding:8px 12px;border-radius:12px;font:400 14px/1.45 ${U};white-space:pre-wrap;word-break:break-word}
1748
- .mushi-assistant-msg-user{align-self:flex-end;background:${d};color:${y};border-bottom-right-radius:4px}
1749
- .mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${i};border-bottom-left-radius:4px}
1750
- .mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}
1751
- .mushi-assistant-error{align-self:flex-start;color:${w};font-size:12px;padding:4px 2px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
1752
- .mushi-assistant-recovery{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
1753
- .mushi-assistant-recovery-footer{margin-top:4px;padding-top:4px}
1754
- .mushi-assistant-report-cta{background:${d};color:${y};border:none;border-radius:999px;padding:6px 14px;font-size:12px;cursor:pointer;font-family:${U};font-weight:600}
1755
- .mushi-assistant-report-cta:hover{opacity:0.92}
1756
- .mushi-assistant-report-cta:focus-visible{outline:2px solid ${d};outline-offset:2px}
1757
- .mushi-assistant-report-link{background:transparent;color:${v};border:none;padding:0;font-size:12px;cursor:pointer;font-family:${U};text-decoration:underline;text-underline-offset:2px}
1758
- .mushi-assistant-report-link:hover{opacity:0.85}
1759
- .mushi-assistant-report-link:focus-visible{outline:2px solid ${d};outline-offset:2px}
1760
- .mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${h};padding-top:8px}
1761
- .mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${g};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${U};background:${o};color:${i}}
1762
- .mushi-assistant-input:focus-visible{outline:2px solid ${d};outline-offset:1px}
1763
- .mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${d};color:${y};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
1764
- .mushi-assistant-submit:hover{transform:translateY(-1px)}
1765
- .mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}
1766
- .mushi-assistant-submit:focus-visible{outline:2px solid ${d};outline-offset:2px}
1767
- `}var je="@mushi-mushi/web",be="1.28.0";var mr="mushi-assistant-session-v1";function yo(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(mr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let s=[];for(let a of n){if(!a||typeof a!="object")continue;let i=a;if(i.role!=="user"&&i.role!=="assistant"||typeof i.text!="string")continue;let l={role:i.role,text:i.text};if(Array.isArray(i.options)){let f=i.options.filter(p=>typeof p=="string");f.length&&(l.options=f);}i.offerReport===!0&&(l.offerReport=!0),s.push(l);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:s,threadId:o}}catch{return null}}function vo(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(mr);return}sessionStorage.setItem(mr,JSON.stringify(t));}catch{}}function wo(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(mr);}catch{}}var gr={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},an="Feature request";function ln(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function xo(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function br(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function yr(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let i=Math.floor(a/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function cn(t){return t<10?`0${t}`:String(t)}var un=3,vr={category:1,intent:2,details:3};function So(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function m(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Eo(t){let e=t.appDomain??io({project_slug:t.appSlug??""}),r=m(lo(t.appName)),n=oo({project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${m(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${m(e??t.appName)}">
1768
- <img class="mushi-app-icon-img" src="${m(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1
+ (function(){'use strict';var Ta=Object.defineProperty;var it=(t,e)=>()=>(t&&(e=t(t=0)),e);var ur=(t,e)=>{for(var r in e)Ta(t,r,{get:e[r],enumerable:true});};function Ia(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function _s(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function Dt(t,e,r=""){let n=Ia(t),s=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,i="",l=n?`length=${s}`:`type=${typeof t}`,m=a+"expected Uint8Array"+i+", got "+l;throw n?new RangeError(m):new TypeError(m)}return t}function As(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(_s(t.outputLen),_s(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function wt(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function dr(t,e){Dt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function je(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function pr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function _e(t,e){return t<<32-e|t>>>e}function at(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var lt,hr=it(()=>{lt=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Ps(t,e,r){return t&e^~t&r}function Ds(t,e,r){return t&e^t&r^e&r}var Ht,We,ze,se,oe,Hs=it(()=>{hr();Ht=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=pr(this.buffer);}update(e){wt(this),Dt(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let a=0;a<o;){let i=Math.min(s-this.pos,o-a);if(i===s){let l=pr(e);for(;s<=o-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){wt(this),dr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,je(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let p=a;p<s;p++)r[p]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=pr(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let m=l/4,h=this.get();if(m>h.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<m;p++)i.setUint32(4*p,h[p],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:s,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},We=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ze=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),se=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),oe=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function $a(t,e=false){return e?{h:Number(t&fr),l:Number(t>>Os&fr)}:{h:Number(t>>Os&fr)|0,l:Number(t&fr)|0}}function Bs(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:i}=$a(t[o],e);[n[o],s[o]]=[a,i];}return [n,s]}function He(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var fr,Os,sn,on,ct,ut,Ot,Bt,Ns,Us,Fs,qs,js,Ws,zs=it(()=>{fr=BigInt(4294967295),Os=BigInt(32);sn=(t,e,r)=>t>>>r,on=(t,e,r)=>t<<32-r|e>>>r,ct=(t,e,r)=>t>>>r|e<<32-r,ut=(t,e,r)=>t<<32-r|e>>>r,Ot=(t,e,r)=>t<<64-r|e>>>r-32,Bt=(t,e,r)=>t>>>r-32|e<<64-r;Ns=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Us=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Fs=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),qs=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,js=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Ws=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var an={};ur(an,{_SHA224:()=>br,_SHA256:()=>gr,_SHA384:()=>vr,_SHA512:()=>yr,_SHA512_224:()=>wr,_SHA512_256:()=>xr,sha224:()=>Da,sha256:()=>Pa,sha384:()=>Oa,sha512:()=>Ha,sha512_224:()=>Na,sha512_256:()=>Ba});var La,Je,mr,gr,br,Ks,_a,Aa,Qe,Ze,xt,yr,vr,ce,ue,wr,xr,Pa,Da,Ha,Oa,Ba,Na,ln=it(()=>{Hs();zs();hr();La=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Je=new Uint32Array(64),mr=class extends Ht{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:s,E:o,F:a,G:i,H:l}=this;return [e,r,n,s,o,a,i,l]}set(e,r,n,s,o,a,i,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=a|0,this.G=i|0,this.H=l|0;}process(e,r){for(let p=0;p<16;p++,r+=4)Je[p]=e.getUint32(r,false);for(let p=16;p<64;p++){let y=Je[p-15],d=Je[p-2],S=_e(y,7)^_e(y,18)^y>>>3,v=_e(d,17)^_e(d,19)^d>>>10;Je[p]=v+Je[p-7]+S+Je[p-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:m,H:h}=this;for(let p=0;p<64;p++){let y=_e(i,6)^_e(i,11)^_e(i,25),d=h+y+Ps(i,l,m)+La[p]+Je[p]|0,v=(_e(n,2)^_e(n,13)^_e(n,22))+Ds(n,s,o)|0;h=m,m=l,l=i,i=a+d|0,a=o,o=s,s=n,n=d+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,m=m+this.G|0,h=h+this.H|0,this.set(n,s,o,a,i,l,m,h);}roundClean(){je(Je);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),je(this.buffer);}},gr=class extends mr{A=We[0]|0;B=We[1]|0;C=We[2]|0;D=We[3]|0;E=We[4]|0;F=We[5]|0;G=We[6]|0;H=We[7]|0;constructor(){super(32);}},br=class extends mr{A=ze[0]|0;B=ze[1]|0;C=ze[2]|0;D=ze[3]|0;E=ze[4]|0;F=ze[5]|0;G=ze[6]|0;H=ze[7]|0;constructor(){super(28);}},Ks=Bs(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),_a=Ks[0],Aa=Ks[1],Qe=new Uint32Array(80),Ze=new Uint32Array(80),xt=class extends Ht{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:a,Dh:i,Dl:l,Eh:m,El:h,Fh:p,Fl:y,Gh:d,Gl:S,Hh:v,Hl:k}=this;return [e,r,n,s,o,a,i,l,m,h,p,y,d,S,v,k]}set(e,r,n,s,o,a,i,l,m,h,p,y,d,S,v,k){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=a|0,this.Dh=i|0,this.Dl=l|0,this.Eh=m|0,this.El=h|0,this.Fh=p|0,this.Fl=y|0,this.Gh=d|0,this.Gl=S|0,this.Hh=v|0,this.Hl=k|0;}process(e,r){for(let $=0;$<16;$++,r+=4)Qe[$]=e.getUint32(r),Ze[$]=e.getUint32(r+=4);for(let $=16;$<80;$++){let g=Qe[$-15]|0,w=Ze[$-15]|0,b=ct(g,w,1)^ct(g,w,8)^sn(g,w,7),E=ut(g,w,1)^ut(g,w,8)^on(g,w,7),M=Qe[$-2]|0,A=Ze[$-2]|0,R=ct(M,A,19)^Ot(M,A,61)^sn(M,A,6),W=ut(M,A,19)^Bt(M,A,61)^on(M,A,6),G=Fs(E,W,Ze[$-7],Ze[$-16]),Z=qs(G,b,R,Qe[$-7],Qe[$-16]);Qe[$]=Z|0,Ze[$]=G|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:m,Dl:h,Eh:p,El:y,Fh:d,Fl:S,Gh:v,Gl:k,Hh:_,Hl:T}=this;for(let $=0;$<80;$++){let g=ct(p,y,14)^ct(p,y,18)^Ot(p,y,41),w=ut(p,y,14)^ut(p,y,18)^Bt(p,y,41),b=p&d^~p&v,E=y&S^~y&k,M=js(T,w,E,Aa[$],Ze[$]),A=Ws(M,_,g,b,_a[$],Qe[$]),R=M|0,W=ct(n,s,28)^Ot(n,s,34)^Ot(n,s,39),G=ut(n,s,28)^Bt(n,s,34)^Bt(n,s,39),Z=n&o^n&i^o&i,ae=s&a^s&l^a&l;_=v|0,T=k|0,v=d|0,k=S|0,d=p|0,S=y|0,{h:p,l:y}=He(m|0,h|0,A|0,R|0),m=i|0,h=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let Ce=Ns(R,G,ae);n=Us(Ce,A,W,Z),s=Ce|0;}(({h:n,l:s}=He(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l:a}=He(this.Bh|0,this.Bl|0,o|0,a|0),{h:i,l}=He(this.Ch|0,this.Cl|0,i|0,l|0),{h:m,l:h}=He(this.Dh|0,this.Dl|0,m|0,h|0),{h:p,l:y}=He(this.Eh|0,this.El|0,p|0,y|0),{h:d,l:S}=He(this.Fh|0,this.Fl|0,d|0,S|0),{h:v,l:k}=He(this.Gh|0,this.Gl|0,v|0,k|0),{h:_,l:T}=He(this.Hh|0,this.Hl|0,_|0,T|0),this.set(n,s,o,a,i,l,m,h,p,y,d,S,v,k,_,T);}roundClean(){je(Qe,Ze);}destroy(){this.destroyed=true,je(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},yr=class extends xt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(64);}},vr=class extends xt{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(48);}},ce=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ue=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),wr=class extends xt{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(28);}},xr=class extends xt{Ah=ue[0]|0;Al=ue[1]|0;Bh=ue[2]|0;Bl=ue[3]|0;Ch=ue[4]|0;Cl=ue[5]|0;Dh=ue[6]|0;Dl=ue[7]|0;Eh=ue[8]|0;El=ue[9]|0;Fh=ue[10]|0;Fl=ue[11]|0;Gh=ue[12]|0;Gl=ue[13]|0;Hh=ue[14]|0;Hl=ue[15]|0;constructor(){super(32);}},Pa=at(()=>new gr,lt(1)),Da=at(()=>new br,lt(4)),Ha=at(()=>new yr,lt(3)),Oa=at(()=>new vr,lt(2)),Ba=at(()=>new xr,lt(6)),Na=at(()=>new wr,lt(5));});var Vs={};ur(Vs,{_HMAC:()=>Nt,hmac:()=>Ua});var Nt,Ua,Gs=it(()=>{hr();Nt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(As(e),Dt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),je(s);}update(e){return wt(this),this.iHash.update(e),this}digestInto(e){wt(this),dr(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:s,destroyed:o,blockLen:a,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Ua=(()=>{let t=((e,r,n)=>new Nt(e,r).update(n).digest());return t.create=(e,r)=>new Nt(e,r),t})();});var ba={};ur(ba,{grabMaskedTabFrame:()=>Rd});async function Rd(t,e){let r=await t,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(i=>i.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let s=e.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${s}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${s}) *{visibility:hidden!important}`,document.head.appendChild(o);let a=document.createElement("video");try{a.muted=!0,a.srcObject=r,await a.play(),await new Promise(l=>setTimeout(l,150));let i=document.createElement("canvas");return i.width=a.videoWidth,i.height=a.videoHeight,i.getContext("2d")?.drawImage(a,0,0),i.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(i=>i.stop()),a.srcObject=null,o.remove();}}var ya=it(()=>{});var va={};ur(va,{createScreenshotAnnotation:()=>Cd});function Cd(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),i=document.createElement("canvas"),l=Math.min(1,720/s.width),m=Math.round(s.width*l),h=Math.round(s.height*l);for(let w of [a,i])w.width=m,w.height=h,w.style.width="100%",w.style.height="auto",w.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let p=a.getContext("2d"),y=i.getContext("2d");if(!p||!y){n(new Error("Canvas not supported"));return}p.drawImage(s,0,0,m,h),o.appendChild(a),o.appendChild(i),e.appendChild(o);let d="highlight",S=false,v=null,k=[],_=w=>{let b=i.getBoundingClientRect(),E="touches"in w?w.touches[0]??w.changedTouches[0]:null,M=E?E.clientX:w.clientX,A=E?E.clientY:w.clientY;return {x:(M-b.left)/b.width*m,y:(A-b.top)/b.height*h}},T=()=>{y.clearRect(0,0,m,h);for(let w of k)if(w.tool==="highlight"&&w.points.length>=2){let[b,E]=w.points;y.fillStyle="rgba(255, 230, 0, 0.35)",y.fillRect(Math.min(b.x,E.x),Math.min(b.y,E.y),Math.abs(E.x-b.x),Math.abs(E.y-b.y));}else if(w.tool==="arrow"&&w.points.length>=2){let[b,E]=w.points;y.strokeStyle="#ef4444",y.lineWidth=3,y.beginPath(),y.moveTo(b.x,b.y),y.lineTo(E.x,E.y),y.stroke();}},$=w=>{S=true,v=_(w);},g=w=>{if(!S||!v)return;S=false;let b=_(w);if(d==="blur"){let E=Math.min(v.x,b.x),M=Math.min(v.y,b.y),A=Math.abs(b.x-v.x),R=Math.abs(b.y-v.y);A>=1&&R>=1&&(p.filter="blur(8px)",p.drawImage(a,E,M,A,R,E,M,A,R),p.filter="none");}else k.push({tool:d,points:[v,b]});v=null,T();};i.addEventListener("mousedown",$),i.addEventListener("mouseup",g),i.addEventListener("touchstart",$,{passive:true}),i.addEventListener("touchend",g),r({canvas:a,setTool(w){d=w;},getDataUrl(){let w=document.createElement("canvas");w.width=m,w.height=h;let b=w.getContext("2d");return b?(b.drawImage(a,0,0),b.drawImage(i,0,0),w.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",$),i.removeEventListener("mouseup",g),i.removeEventListener("touchstart",$),i.removeEventListener("touchend",g),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}var wa=it(()=>{});var Fa=4194304,mo=1.5*1024*1024;function qa(t){try{return JSON.stringify(t)}catch{return null}}function ja(t,e=Fa){let r=qa(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${Xs(n)} exceeds limit ${Xs(e)}`}}function Xs(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function go(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Tr(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Gt(t){let e=go();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Tr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(ln(),an));return Tr(r(new TextEncoder().encode(t)))}async function Wa(t,e){let r=go();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",a,new TextEncoder().encode(e));return Tr(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(Gs(),Vs)),{sha256:s}=await Promise.resolve().then(()=>(ln(),an)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Tr(o)}var za=60*1024;function Ka(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Va(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Ga(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function Xa(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Va(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let s=JSON.stringify(Ka({path:t.path??Ga(t.url),headers:t.headers,body:n}));if(s.length>za)return false;try{return r(t.url,new Blob([s],{type:"application/json"}))}catch{return false}}var bo=false;function yo(){bo=true;}function Ya(){return bo}var mn=null;function vo(){return mn?Xa(mn):false}var Ys=false,Ja="X-Mushi-User-Token",Qa="X-Mushi-Project",Za="X-Mushi-SDK-Package",el="X-Mushi-SDK-Version";function tl(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Qa]:t.projectId};return t.sdkPackage&&(e[Za]=t.sdkPackage),t.sdkVersion&&(e[el]=t.sdkVersion),t.userToken&&(e[Ja]=t.userToken),t.internalKind&&(e[Mr]=t.internalKind),e}var Ut="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Mr="X-Mushi-Internal",Xt="__mushiInternal";function rl(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??Ut).replace(/\/$/,"")}var nl=1e4,sl=2,ol=4,il=3e4,al=1e4;function wo(t){let{projectId:e,apiKey:r,apiEndpoint:n=Ut,tunnel:s,timeout:o=nl,maxRetries:a=sl,getUserToken:i,sdkPackage:l,sdkVersion:m,circuitBreaker:h}=t,p=rl(n,s),y=h?.enabled!==false,d=Math.max(1,h?.threshold??ol),S=Math.max(1e3,h?.cooldownMs??il),v=0,k=0,_=()=>y&&k>Date.now(),T=()=>{v=0,k=0;},$=()=>{y&&(v+=1,v>=d&&(k=Date.now()+S));};async function g(b,E,M,A=a,R,W){let G=R!=="reporter-poll";if(G&&_())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Z=`${p}${E}`,ae=new AbortController,Ce=setTimeout(()=>ae.abort(),o),he=i?.()??null,Y={...tl({apiKey:r,projectId:e,sdkPackage:l,sdkVersion:m,userToken:he,internalKind:R}),...W},O=M?JSON.stringify(M):void 0;O&&b!=="GET"&&R!=="reporter-poll"&&(mn={url:Z,headers:Y,body:O,path:E});try{let I=await fetch(Z,{method:b,headers:Y,body:O,keepalive:Ya(),signal:ae.signal,...R?{[Xt]:R}:{}});if(clearTimeout(Ce),I.status===307||I.status===308){let xe=I.headers.get("Location");if(xe&&A>0){let Se=xe.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Se!==p)return p=Se,g(b,E,M,A-1,R,W)}}if(!I.ok){let xe=await I.json().catch(()=>({}));if((I.status===401||I.status===403)&&!Ys){Ys=!0;let D=p===Ut?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${I.status}). Check your Project ID and API key scope (must be "report:write"). `+D);}let Se=I.status===429,Te=I.status>=500||Se,L=Se?ll(I.headers.get("Retry-After")):null,x=L===null||L<=al;return Te&&A>0&&x?(await Js(L??Qs(a-A)),g(b,E,M,A-1,R,W)):(G&&(Te?$():T()),{ok:!1,error:{code:xe.error?.code||`HTTP_${I.status}`,message:xe.error?.message||xe.message||`HTTP ${I.status} error`,status:I.status}})}let ee=await I.json(),te=ee&&typeof ee=="object"&&"ok"in ee&&"data"in ee?ee.data:ee;return G&&T(),{ok:!0,data:te}}catch(I){return clearTimeout(Ce),A>0&&cl(I)?(await Js(Qs(a-A)),g(b,E,M,A-1,R,W)):(G&&$(),{ok:false,error:{code:"NETWORK_ERROR",message:I instanceof Error?I.message:"Unknown network error"}})}}async function w(b,E,M,A){try{let R=await Gt(M),W=String(Date.now());return await g(b,E,A,a,"reporter-poll",{"X-Reporter-Token-Hash":R,"X-Reporter-Ts":W,"X-Reporter-Hmac":await Wa(r,`${e}.${W}.${R}`)})}catch(R){return {ok:false,error:{code:"NETWORK_ERROR",message:R instanceof Error?R.message:"Unknown error"}}}}return {async submitReport(b){let E=ja(b);return E.ok?g("POST","/v1/reports",b,a,"report-submit"):{ok:false,error:{code:E.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:E.reason??"Report payload exceeds size limit"}}},async getReportStatus(b){return g("GET",`/v1/reports/${b}/status`,void 0,a,"report-status")},async getSdkConfig(){return g("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(b){return g("POST","/v1/sdk/assistant",{message:b.message,threadId:b.threadId??null,context:b.context??null},1,"community")},async getLatestSdkVersion(b){let E=new URLSearchParams({package:b}).toString();return g("GET",`/v1/sdk/latest-version?${E}`,void 0,a,"sdk-config")},async postDiscoveryEvent(b){return g("POST","/v1/sdk/discovery",b,1,"discovery")},async listReporterReports(b){return w("GET","/v1/reporter/reports",b)},async listReporterComments(b,E){return w("GET",`/v1/reporter/reports/${b}/comments`,E)},async replyToReporterReport(b,E,M,A){return w("POST",`/v1/reporter/reports/${b}/reply`,E,{body:M,...A?{feedback_signal:A}:{}})},async reopenReporterReport(b,E,M){return w("POST",`/v1/reporter/reports/${b}/reopen`,E,{note:M??""})},async listNotifications(b,E){let M=new URLSearchParams;E?.since&&M.set("since",E.since),E?.limit&&M.set("limit",String(E.limit));let A=M.size?`?${M.toString()}`:"";return w("GET",`/v1/notifications${A}`,b)},async markNotificationRead(b,E){return w("POST",`/v1/notifications/${b}/read`,E,{})},async listReporterFeatureBoard(b){return w("GET","/v1/reporter/feature-board",b)},async voteReporterFeatureBoard(b,E){return w("POST",`/v1/reporter/feature-board/${b}/vote`,E,{})},async postSessionEvent(b){return g("POST","/v1/sdk/session",b,1,"discovery")},async postProductEvents(b){return g("POST","/v1/sdk/events",b,1,"discovery")},async submitActivity(b,E,M){return g("POST","/v1/sdk/activity",{user_id:b,user_traits:M?.userTraits,opted_in:M?.optedIn,reporter_token_hash:M?.reporterTokenHash,...M?.hostJwt?{host_jwt:M.hostJwt}:{},events:E},1,"discovery")},async getMyPoints(b){return g("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyTier(b){return g("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(b)}`,void 0,1,"reporter-poll")},async getMyHistory(b,E){let M=new URLSearchParams({userId:b,...E?.limit?{limit:String(E.limit)}:{}});return g("GET",`/v1/sdk/me/history?${M}`,void 0,1,"reporter-poll")},async getHallOfFame(b=10){return g("GET",`/v1/sdk/hall-of-fame?limit=${b}`,void 0,1,"reporter-poll")},async sendMagicLink(b){return g("POST","/v1/tester/magic-link",{email:b},1,"community")},async linkReporterToken(b,E){return g("POST","/v1/tester/link-reporter",{reporter_token_hash:b},1,"community",{Authorization:`Bearer ${E}`})},async getCrossAppReports(b,E){let M=new URLSearchParams;E?.limit&&M.set("limit",String(E.limit)),E?.offset&&M.set("offset",String(E.offset));let A=M.size?`?${M.toString()}`:"";return g("GET",`/v1/tester/cross-app-reports${A}`,void 0,1,"community",{Authorization:`Bearer ${b}`})},async getMyReputation(b){return g("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${b}`})},async getPublicLeaderboard(b=20){return g("GET",`/v1/public/tester-leaderboard?limit=${b}`,void 0,1,"reporter-poll")},async getTesterStatus(b){return g("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${b}`})}}}function Js(t){return new Promise(e=>setTimeout(e,t))}function Qs(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function ll(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let s=Date.parse(r);return Number.isNaN(s)?null:Math.max(s-e,0)}function cl(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function cn(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.test(t))return !0}catch{}}return false}function Yt(t){if(cn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&cn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!cn(e,t.allowUrls)))}function un(...t){return t.find(e=>e!==void 0&&e!=="")}function Ie(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ke(t){try{return t()}catch{return}}function Rn(){let t=un(Ie("VITE_MUSHI_PROJECT_ID"),Ie("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Ie("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Ie("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.MUSHI_PROJECT_ID)),e=un(Ie("VITE_MUSHI_API_KEY"),Ie("NEXT_PUBLIC_MUSHI_API_KEY"),Ie("NUXT_PUBLIC_MUSHI_API_KEY"),Ie("EXPO_PUBLIC_MUSHI_API_KEY"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.MUSHI_API_KEY)),r=un(Ie("VITE_MUSHI_API_ENDPOINT"),Ie("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Ie("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Ie("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var ul=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],dl={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function xo(){let t=Rn(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let i=undefined;return typeof i=="object"&&i!==null?i:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let i of e)for(let l of ul){let m=`${l}${dl[i]}`;r&&r[m]?s.push({field:i,key:m,via:"import.meta.env"}):n&&n[m]&&s.push({field:i,key:m,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let i of s)a.push(`[mushi] Found ${i.key} in ${i.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
2
+ `)}}var Zs=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],pl=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function hl(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function So(t){let e=hl(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function fl(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function Eo(t){try{if(fl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!pl.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!Zs.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Zs.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var ml=10,gl=2e3,bl=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],yl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ko(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=ml,maxDescriptionLength:s=gl}=t;function o(i){if(!e)return {passed:true};let l=i.trim();if(l.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(l.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let h of bl)if(h.test(l))return {passed:false,reason:"Detected as spam"};if(yl.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(h=>h.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(i){let l=i.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:o,truncate:a}}var eo={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},vl={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ve={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},wl={debug:ve.dim,info:ve.green,warn:ve.yellow,error:ve.red,fatal:`${ve.bgRed}${ve.white}${ve.bold}`};function xl(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function Sl(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function El(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=wl[r]??"",l=vl[r]??r.toUpperCase(),m=Object.keys(o).length>0?` ${ve.dim}${Sl(o)}${ve.reset}`:"";return `${ve.dim}${a}${ve.reset} ${i}${l}${ve.reset} ${ve.cyan}[${n}]${ve.reset} ${s}${m}`}function kl(t){return JSON.stringify(t)}function Rl(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function Ro(t,e,r,n,s){let o=e;function a(i,l,m){if(eo[i]<eo[o])return;let h={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...m};s(i,n(h));}return {debug:(i,l)=>a("debug",i,l),info:(i,l)=>a("info",i,l),warn:(i,l)=>a("warn",i,l),error:(i,l)=>a("error",i,l),fatal:(i,l)=>a("fatal",i,l),child(i,l){return Ro(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function Rt(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?xl():s)==="json"?kl:El,l=Rl(o);return Ro(e,r,n,i,l)}var Cn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Cn,setLevel:()=>{}},Cl="mushi-mushi-keyring",dt="keys",Co="offline-queue/v1",Sr=null,Er=null;function Tl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function To(){return new Promise((t,e)=>{let r=indexedDB.open(Cl,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(dt)||n.createObjectStore(dt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(dt)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function Il(){let t=await To();return new Promise((e,r)=>{let s=t.transaction(dt,"readonly").objectStore(dt).get(Co);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function $l(t){let e=await To();return new Promise((r,n)=>{let s=e.transaction(dt,"readwrite");s.objectStore(dt).put(t,Co),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function Io(){if(Sr)return Sr;if(Er)return Er;if(!Tl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Er=(async()=>{let t=await Il();if(t)return Sr=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await $l(e),Sr=e,e})(),Er}function to(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function ro(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function Ml(t){let e=await Io(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:to(r),ct:to(s)}}function Ll(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function _l(t){let e=await Io(),r=ro(t.iv),n=ro(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var $e=Rt({scope:"mushi:queue",level:"warn"}),Al="mushi-mushi",ge="offline-reports",Pl=1,dn="mushi_offline_queue",Dl=10,Hl=6e4,Ol=3e4,Bl=8,Nl=1440*60*1e3;function $o(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null,l=null,m=null;async function h(L){let x=new Date().toISOString();if(!s)return {...L,queuedAt:x};try{let D=await Ml(L);return {id:L.id,queuedAt:x,payload:D}}catch(D){return $e.warn("Offline queue: encryption failed, storing plaintext",{err:String(D)}),{...L,queuedAt:x}}}async function p(L){if(y(L))try{return await _l(L.payload)}catch(x){return $e.warn("Offline queue: decrypt failed, dropping row",{err:String(x),id:L.id}),null}return L}function y(L){return !!L.payload&&Ll(L.payload)}function d(L){let x=L.attempts;return typeof x=="number"&&Number.isFinite(x)?x:0}function S(L,x){let D=L.queuedAt;if(!D)return false;let B=Date.parse(D);return Number.isNaN(B)?false:x-B>Nl}function v(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function k(){return new Promise((L,x)=>{let D=indexedDB.open(Al,Pl);D.onupgradeneeded=()=>{try{let B=D.result;if(!B)return;B.objectStoreNames.contains(ge)||B.createObjectStore(ge,{keyPath:"id"});}catch{}},D.onsuccess=()=>{let B=D.result;if(!B||!B.objectStoreNames.contains(ge)){i="localstorage";try{B?.close();}catch{}x(new Error("queue object store unavailable"));return}L(B);},D.onerror=()=>{i="localstorage",x(D.error);};})}async function _(L){let x=await k(),D=await h(L);return new Promise((B,U)=>{let z=x.transaction(ge,"readwrite");z.objectStore(ge).put(D),z.oncomplete=()=>B(),z.onerror=()=>U(z.error);})}async function T(){let L=await k();return new Promise((x,D)=>{let U=L.transaction(ge,"readonly").objectStore(ge).getAll();U.onsuccess=()=>x(U.result),U.onerror=()=>D(U.error);})}async function $(L){let x=await k();return new Promise((D,B)=>{let U=x.transaction(ge,"readwrite");U.objectStore(ge).delete(L),U.oncomplete=()=>D(),U.onerror=()=>B(U.error);})}async function g(L){let x=await k();return new Promise((D,B)=>{let U=x.transaction(ge,"readwrite");U.objectStore(ge).put(L),U.oncomplete=()=>D(),U.onerror=()=>B(U.error);})}async function w(){let L=await k();return new Promise((x,D)=>{let U=L.transaction(ge,"readonly").objectStore(ge).count();U.onsuccess=()=>x(U.result),U.onerror=()=>D(U.error);})}async function b(){let L=await k();return new Promise((x,D)=>{let B=L.transaction(ge,"readwrite");B.objectStore(ge).clear(),B.oncomplete=()=>x(),B.onerror=()=>D(B.error);})}function E(){try{let L=localStorage.getItem(dn);return L?JSON.parse(L):[]}catch{return []}}function M(L){try{localStorage.setItem(dn,JSON.stringify(L));}catch{}}async function A(L){let x=E(),D=await h(L),B=x.findIndex(U=>U.id===L.id);B>=0?x[B]=D:x.push(D),M(x);}function R(L){let x=E().filter(D=>D.id!==L);M(x);}function W(L){let x=E(),D=x.findIndex(B=>B.id===L.id);D>=0&&(x[D]=L,M(x));}async function G(L,x){try{L==="indexeddb"?await $(x):R(x);}catch(D){$e.debug("Offline queue: row removal failed (will age out)",{id:x,err:String(D)});}}async function Z(L,x){try{return L==="indexeddb"?await g(x):W(x),!0}catch(D){return $e.debug("Offline queue: row persist failed",{id:x.id,err:String(D)}),false}}async function ae(){let L=v();if(L==="none")return {backend:L,rows:[]};if(L==="indexeddb")try{return {backend:L,rows:await T()}}catch{i="localstorage";}return {backend:"localstorage",rows:E()}}async function Ce(L){let x=v();if(x==="none")return $e.debug("Offline queue: no storage backend, dropping report",{id:L.id}),x;if(x==="indexeddb")try{return await _(L),x}catch{i="localstorage";}return await A(L),"localstorage"}async function he(L){if(!e)return;if(await te()>=r){$e.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await Ce(L);}function Y(L){return Math.min(1e3*2**L+Math.random()*500,Hl)}function O(L){return new Promise(x=>setTimeout(x,L))}async function I(L){let{backend:x,rows:D}=await ae(),B=D,U=Date.now(),z=[];for(let ne of B)if(S(ne,U)){let fe=ne.id;await G(x,fe),$e.debug("Offline queue: evicting stale report",{id:fe});}else z.push(ne);B=z;let De=B.slice(0,Dl),be=0,J=0;for(let ne=0;ne<De.length;ne++){let fe=De[ne],me=fe.id,st=await p(fe);if(!st){await G(x,me),J++;continue}let q=await L.submitReport(st);if(q.ok){await G(x,me),be++;continue}if(J++,q.error?.code==="CIRCUIT_OPEN"){$e.debug("Offline queue: circuit open, deferring the rest of the batch",{id:me,remaining:De.length-ne});break}let ot=q.error?.code==="HTTP_400"||q.error?.code==="HTTP_413"||q.error?.code==="HTTP_422"||q.error?.code==="INGEST_ERROR"||q.error?.code==="VALIDATION_ERROR"||q.error?.code==="PAYLOAD_TOO_LARGE"||q.error?.code==="SERIALIZE_FAILED"||typeof q.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(q.error.message),Ee=!ot&&(q.error?.code==="NETWORK_ERROR"||q.error?.code==="HTTP_403"||q.error?.code==="HTTP_429"||q.error?.code==="HTTP_502"||q.error?.code==="HTTP_503"||q.error?.code==="HTTP_504"||typeof q.error?.code=="string"&&q.error.code.startsWith("HTTP_5"));if(ot)await G(x,me);else {let Ue=d(fe)+1;Ue>=Bl?(await G(x,me),$e.warn("Offline queue: giving up on report after repeated failures",{id:me,attempts:Ue,code:q.error?.code})):(fe.attempts=Ue,await Z(x,fe)?$e.debug("Offline queue: delivery failed, will retry",{id:me,attempts:Ue,code:q.error?.code,classified:Ee?"transient":"unclassified"}):(await G(x,me),$e.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:me,code:q.error?.code})));}ne<De.length-1&&await O(Y(ne));}return {sent:be,failed:J}}function ee(L){if(!e)return Promise.resolve({sent:0,failed:0});if(l)return m||(m=l.catch(()=>{}).then(()=>(m=null,ee(L)))),m;let x=I(L).finally(()=>{l===x&&(l=null);});return l=x,x}async function te(){if(v()==="indexeddb")try{return await w()}catch{i="localstorage";}return E().length}async function xe(){if(v()==="indexeddb")try{await b();}catch{}try{localStorage.removeItem(dn);}catch{}}function Se(L){if(!e||!n||typeof window>"u")return;o&&Te();let x=()=>{navigator.onLine&&ee(L).catch(D=>{$e.warn("Offline queue auto-flush failed",{err:String(D)});});};window.addEventListener("online",x),a=setInterval(()=>{te().then(D=>{D>0&&x();});},Ol),o=()=>{window.removeEventListener("online",x),a&&(clearInterval(a),a=null);};}function Te(){o?.(),o=null;}return {enqueue:he,flush:ee,size:te,clear:xe,startAutoSync:Se,stopAutoSync:Te}}function Tn(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Fl(t);let s=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,i=!!o?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",m=a||i||l?{...a?{capacitor:true}:{},...i?{cordova:true}:{},...l?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Ul(r),userAgentData:jl(t),screen:Wl(n,e),prefersColorScheme:zl(e),prefersReducedMotion:Me(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Me(e,"(prefers-reduced-data: reduce)"),prefersContrast:Kl(e),forcedColors:Me(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Vl(e),documentTitle:r?.title?.slice(0,200),buildId:Gl(r),pageLoadTiming:Xl(e),...m?{native:m}:{}}}function Ul(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var Ae=null,no=false;function Fl(t){if(no)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(no=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ae=r;}).catch(()=>{}));}function ql(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function jl(t){let e=t?.userAgentData;if(!e&&!Ae)return;let r=Ae?.fullVersionList,n=ql(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),Ae?.platformVersion&&(s.osVersion=Ae.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),Ae?.model&&(s.model=Ae.model),Ae?.architecture&&(s.architecture=Ae.architecture),Ae?.bitness&&(s.bitness=Ae.bitness),Object.keys(s).length===0?void 0:s}function Wl(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Me(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function zl(t){if(t?.matchMedia)return Me(t,"(prefers-color-scheme: dark)")?"dark":Me(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Kl(t){if(t?.matchMedia)return Me(t,"(prefers-contrast: more)")?"more":Me(t,"(prefers-contrast: less)")?"less":Me(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Vl(t){if(t?.matchMedia){if(Me(t,"(display-mode: fullscreen)"))return "fullscreen";if(Me(t,"(display-mode: standalone)"))return "standalone";if(Me(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Me(t,"(display-mode: browser)"))return "browser"}}function Gl(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Xl(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var pn="mushi_reporter_token";function Yl(t){return `mushi:reporter-token:${t}`}function so(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function hn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function oo(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function ie(t){if(!t){let o=hn(pn);if(o)return o;let a=so();return oo(pn,a),a}let e=Yl(t),r=hn(e);if(r)return r;let s=hn(pn)??so();return oo(e,s),s}function In(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var io="mushi_fingerprint_hash";function Jl(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Ql(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function Mo(){if(typeof localStorage<"u"){let n=localStorage.getItem(io);if(n)return n}let t=Jl(),e=JSON.stringify(t),r=await Ql(e);if(typeof localStorage<"u")try{localStorage.setItem(io,r);}catch{}return r}var ao="mushi_session_id",kr=null;function bt(){if(kr)return kr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(ao);if(e)return kr=e,e}let t=Zl();if(kr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(ao,t);}catch{}return t}function Zl(){return `ms_${Date.now().toString(36)}_${ec()}`}function ec(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var tc=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function Lo(t){return "mushi_events_consent_"+t}var gn=new Set;function rc(){if(typeof navigator>"u")return false;let t=navigator;if(t.globalPrivacyControl===true)return true;let e=typeof window<"u"?window.doNotTrack:void 0,r=t.doNotTrack??t.msDoNotTrack??e;return r==="1"||r==="yes"}function nc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:tc.test(navigator.userAgent??"")}function _o(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&rc()?"dnt":t?.excludeBots!==false&&nc()?"automation":null}function sc(t){if(!t)return null;try{let e=localStorage.getItem(Lo(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function oc(t,e){if(t)try{localStorage.setItem(Lo(t),e);}catch{}}function Ao(t,e){let r=sc(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function ic(t,e){oc(t,e);for(let r of [...gn])try{r(e);}catch{}}function Po(t){return gn.add(t),()=>{gn.delete(t);}}var ac=6e4,Ft=null,Do,$n=null,Ho=null,Mn=0,Rr=null,qt=false,jt=false,bn=false,yn=null;function lc(){return new Date().toISOString()}function mt(){return typeof window>"u"?"":window.location.pathname}function cc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function uc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Wt(t,e){return {kind:t,session_id:bt(),ts:lc(),page_view_count:Mn,reporter_token_hash:Ho,user_id_hash:$n,user_agent:uc(),sdk_version:Do,...e}}function zt(t){!Ft||!jt||Ft.postSessionEvent(t).catch(()=>{});}function vn(t){jt&&(Mn+=1,zt(Wt("page_view",{route:t})));}function lo(){jt||!qt||(jt=true,bn||(bn=true,Mn=1,zt(Wt("session_start",{route:mt(),referrer:cc()}))),Rr=setInterval(()=>{zt(Wt("session_heartbeat",{route:mt()}));},ac));}function Oo(){jt=false,Rr!=null&&(clearInterval(Rr),Rr=null);}function Bo(t){if(qt||typeof window>"u"||_o(t.analytics)!==null)return;qt=true,Ft=t.client,Do=t.sdkVersion,Ho=t.reporterToken??t.reporterTokenHash??null,$n=t.userIdHash??null;let e=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&zt(Wt("session_end",{route:mt()}));};typeof document<"u"&&document.addEventListener("visibilitychange",e,{passive:true}),window.addEventListener("pagehide",()=>{zt(Wt("session_end",{route:mt()}));},{passive:true}),yn=Po(r=>{r==="granted"?lo():Oo();}),Ao(t.projectId??"",t.analytics)==="granted"&&lo();}function Ln(t){!qt||!Ft||vn(mt());}function No(t){$n=t;}function Uo(){Oo(),yn?.(),yn=null,qt=false,bn=false,Ft=null;}var pc=/^[a-z][a-z0-9_]{1,63}$/,pt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},hc="$",fc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function gc(t){return typeof t=="string"&&pc.test(t)}function uo(t,e={}){let r={},n=[];if(!t||typeof t!="object"||Array.isArray(t))return {properties:r,dropped:n};let s=new Set(e.allowlist??[]),o=0;for(let[a,i]of Object.entries(t)){if(o>=pt.maxKeys){n.push(a);continue}let l=a.slice(0,pt.maxKeyLength);if(l.startsWith(hc)&&!e.allowReserved){n.push(l);continue}if(fc.test(l)&&!s.has(l)){n.push(l);continue}let m;if(i===null||typeof i=="boolean")m=i;else if(typeof i=="number")m=Number.isFinite(i)?i:null;else if(typeof i=="string"){let h=i.slice(0,pt.maxValueLength);m=e.scrub?e.scrub(h):h;}else if(i instanceof Date)m=i.toISOString();else {n.push(l);continue}r[l]=m,o+=1;}return {properties:r,dropped:n}}function bc(t){try{return JSON.stringify(t).length<=pt.maxBytes}catch{return false}}var Ir=null,Kt="",ht=null,Lr=null,_n=null,Fo,et=An(),wn,xn,Oe=[],St=[],we="granted",Vt=true,Cr=null,gt=false,fn=false,ft=false,Sn=null,yc=50,qo=200,vc=1440*60*1e3;function An(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function jo(){return new Date().toISOString()}function $r(){return "mushi_events_spill_"+Kt}function wc(t){return t===void 0||t===429||t>=500}function En(){return "mushi_analytics_id_"+Kt}function xc(){try{let t=localStorage.getItem(En());if(t)return t}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function Sc(){if(ht)try{localStorage.getItem(En())!==ht&&localStorage.setItem(En(),ht);}catch{}}function Ec(t){let e=2166136261;for(let r=0;r<t.length;r+=1)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return (e>>>0)/4294967296}function kn(){try{let t=localStorage.getItem($r());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>vc?(localStorage.removeItem($r()),[]):Array.isArray(e.events)?e.events.slice(0,qo):[]}catch{return []}}function Et(t){try{if(t.length===0){localStorage.removeItem($r());return}localStorage.setItem($r(),JSON.stringify({at:Date.now(),events:t.slice(-qo)}));}catch{}}function Wo(){let t=kn();return t.length>0&&Et([]),t}function kc(t){return {anon_id:ht,user_id:Lr,user_traits:_n,session_id:xn?xn():null,sdk_version:Fo,surface:et.surface,events:t}}async function tt(){if(!Ir||fn||we!=="granted"||Oe.length===0&&!ft)return;fn=true,Sc();let t=Oe.splice(0,pt.maxServerBatch);ft&&(t.unshift({name:"identify",ts:jo(),properties:{}}),ft=false);try{let e=await Ir.postProductEvents(kc(t));e.ok?Et([]):wc(e.error?.status)&&Et([...kn(),...t.filter(r=>r.name!=="identify")]);}catch{Et([...kn(),...t.filter(e=>e.name!=="identify")]);}finally{fn=false;}Oe.length>=pt.maxClientBatch&&tt();}function Rc(t){return we==="denied"?false:we==="pending"?St.length>=yc?false:(St.push(t),true):(Oe.push(t),Oe.length>=pt.maxClientBatch&&tt(),true)}function Cc(t){if(t==="denied"){we="denied",Oe=[],St=[],ft=false,Et([]);return}let e=we==="pending";we="granted",e&&(Oe.push(...Wo(),...St),St=[]),(Oe.length>0||ft)&&tt();}function Tc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function zo(){return !gt||we==="denied"?null:ht}function Ko(t){if(gt||typeof window>"u")return;let e=t.config??{};if(et={...An(),...Tc(e),propertyAllowlist:e.propertyAllowlist??[]},Kt=t.projectId,_o(e)!==null)return;gt=true,Ir=t.client,ht=t.anonId??xc(),Lr=t.userId??null,Fo=t.sdkVersion,wn=t.scrub,xn=t.getSessionId;let r=Math.min(1,Math.max(0,et.sampleRate));if(Vt=r>=1?true:r<=0?false:Ec(ht??"anon")<r,!Vt)return;we=Ao(Kt,e),we==="granted"?Oe.push(...Wo()):we==="denied"&&Et([]),Sn=Po(Cc);let n=Math.max(1e3,et.flushIntervalMs);Cr=setInterval(()=>{tt();},n);let s=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&tt();};typeof document<"u"&&document.addEventListener("visibilitychange",s,{passive:true}),window.addEventListener("pagehide",()=>{tt();},{passive:true}),et.autoPageviews&&Ic();}function kt(t,e,r){if(!gt||!Vt||!gc(t))return false;let{properties:n}=uo(e,{allowlist:et.propertyAllowlist,scrub:wn}),s=n;if(r?.reserved){let{properties:o}=uo(r.reserved,{allowReserved:true,scrub:wn});s={...n,...o};}return s.$surface=et.surface,typeof location<"u"&&s.$route===void 0&&(s.$route=location.pathname),bc(s)?Rc({name:t,ts:r?.ts??jo(),properties:s,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Vo(t){gt||(we=t),ic(Kt,t);}function Go(t,e){Lr=t,_n=e??null,!(!gt||!Vt||!t||we==="denied")&&(ft=true,we==="granted"&&tt());}function Xo(){return tt()}function Yo(){Cr!=null&&(clearInterval(Cr),Cr=null),Sn?.(),Sn=null,gt=false,Ir=null,Oe=[],St=[],we="granted",Vt=true,ft=false,Lr=null,_n=null,et=An();}var po=false;function Ic(){if(po||typeof history>"u")return;po=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return kt("page_view"),r},window.addEventListener("popstate",()=>{kt("page_view");},{passive:true});}var $c=10,Mc=1,Lc=5e3;function Jo(t={}){let{maxBurst:e=$c,refillRate:r=Mc,refillIntervalMs:n=Lc}=t,s=e,o=Date.now();function a(){let h=Date.now(),p=h-o,y=Math.floor(p/n);y>0&&(s=Math.min(e,s+y*r),o=h);}function i(){return a(),s>0?(s--,true):false}function l(){s=e,o=Date.now();}function m(){return a(),s}return {tryConsume:i,reset:l,availableTokens:m}}var _c={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},Qo=_c.patterns,Ac=Qo.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Pc=Qo.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Pn(t={}){let e={...Pc,...t},r=Ac.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:i,replacement:l}of r)a=a.replace(new RegExp(i.source,i.flags),l);return a}function s(o,a){let i={...o};for(let l of a)typeof i[l]=="string"&&(i[l]=n(i[l]));return i}return {scrub:n,scrubObject:s}}var Dc=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Hc=/^(?:key|code|sig)$/i;function Oc(t){let e=t;try{e=decodeURIComponent(t);}catch{}return Dc.test(e)||Hc.test(e)}function Bc(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let s=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Oc(s))return `${s}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let i=e(a);return i!==a?`${s}=${encodeURIComponent(i)}`:r}).join("&")}function Jt(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Pn(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+Bc(o.slice(a+1),r)},s=t.indexOf("#");return s===-1?n(t):n(t.slice(0,s))+n(t.slice(s))}var Nc=50,Uc=500;function Zo(t={}){let e=Math.max(1,t.max??Nc),r=Math.max(50,t.maxMessageLength??Uc),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),a=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var ho=8*1024,Fc=1e3;function ei(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,ho):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,Fc)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,ho):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var de={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},qc={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},Dn={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},_r={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},ti="#FAF7F0",ri="#ffffff";var Hn={light:"#9A2A1E",dark:"#7A1F15"},On={light:"#B52F1F",dark:"#C4321E"},ni={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Bn(t){return t==="dark"?qc:de}var Ar={tight:4,snug:8,comfy:12,roomy:16,lounge:20,open:24,wide:32},Nn={control:4,card:10},Ct={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace",sizeBody:14,sizeLabel:12,lineBody:1.55},Tt={base:99999,banner:99998,panel:1e5,overlay:2147483647},Pr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},si={instant:120,fast:200,base:220,panel:300,slow:420,ring:700};var It={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function fo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function oi(t,e="",r=""){let n=Bn(t),s=fo(e),o=fo(r),a=s||n.accent,i=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=o||n.accentInk;return {accent:a,accentWash:i,accentInk:l}}function jc(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ii(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=jc(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var Wc=new Set(["kensaur.us","www.kensaur.us"]),zc={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},Kc={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Vc=["www.google.com","icons.duckduckgo.com","icon.horse"];function ai(t){try{let e=new URL(t).hostname.toLowerCase();return Vc.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Gc(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function li(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Yc(t.repo_url)),r(zc[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Xc(t.sdk_origin):null;return n&&!Wc.has(n)&&r(n),e}function ci(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||ai(a)||(r.add(a),n.push(a));},o=Kc[t.project_slug.toLowerCase()];o&&s(o);for(let a of li(t))for(let i of Gc(a,e))s(i);return n}function Xc(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Yc(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function ui(t){return li(t)[0]??null}function di(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),a=0,i=0,l=0;for(let h=0;h<o.length;h+=4){let p=o[h],y=o[h+1],d=o[h+2];if(o[h+3]<128)continue;a++;let v=Math.max(p,y,d),k=Math.min(p,y,d),_=v-k;l=Math.max(l,_),i+=_;}return a===0?!0:i/a<14&&l<24}catch{return ai(t.src)}}function pi(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function hi(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&Jc(n))return n}return null}function Jc(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function mi(t,e=mo){if(!t.startsWith("data:image/")||fi(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let a=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),l=Math.max(1,Math.round(r.naturalHeight*o));a.width=i,a.height=l;let m=a.getContext("2d");if(m){m.drawImage(r,0,0,i,l);for(let h of n){let p=a.toDataURL("image/jpeg",h);if(fi(p)<=e)return p}}}return null}function fi(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var Dr="mushi-assistant-session-v1";function gi(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(Dr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let s=[];for(let a of n){if(!a||typeof a!="object")continue;let i=a;if(i.role!=="user"&&i.role!=="assistant"||typeof i.text!="string")continue;let l={role:i.role,text:i.text};if(Array.isArray(i.options)){let m=i.options.filter(h=>typeof h=="string");m.length&&(l.options=m);}i.offerReport===!0&&(l.offerReport=!0),s.push(l);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:s,threadId:o}}catch{return null}}function bi(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(Dr);return}sessionStorage.setItem(Dr,JSON.stringify(t));}catch{}}function yi(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(Dr);}catch{}}var Hr={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Or="Feature request";function Un(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function vi(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function Br(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function Nr(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let i=Math.floor(a/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Fn(t){return t<10?`0${t}`:String(t)}var Qc="https://kensaur.us/mushi-mushi/",Zc="utm_source=widget&utm_medium=powered-by";function wi(t){let e=`${Qc}?${Zc}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}var qn=3,Ur={category:1,intent:2,details:3};function xi(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function Si(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function Ei(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function ki(t,e,r){if(t==="banner")return true;if(t==="console-only"||t==="off")return false;if(e)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Fr(t,e){return new Promise((r,n)=>{let s=setTimeout(()=>n(new Error("Timed out")),e);t.then(o=>{clearTimeout(s),r(o);},o=>{clearTimeout(s),n(o);});})}var qr=15e3,jn=4e3;function Qt(t,e,r){let n=t.trim().length;return n<e?r.replace("{n}",String(e-n)):`${t.length}/${jn}`}function Ri(t,e){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return t.toLocaleString(e,r)}catch{return t.toLocaleString(void 0,r)}}function f(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ci(t){let e=t.appDomain??ui({project_slug:t.appSlug??""}),r=f(pi(t.appName)),n=ci({project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${f(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${f(e??t.appName)}">
3
+ <img class="mushi-app-icon-img" src="${f(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1769
4
  <span class="mushi-app-icon-initials" hidden>${r}</span>
1770
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function ko(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,a=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{ao(r)&&a();};});}function Co(t){switch(t.step){case "category":return bl(t);case "intent":return Tl(t);case "details":return $l(t);case "success":return Ml(t);case "reports":return xl(t);case "report-detail":return Cl(t);case "leaderboard":return El(t);case "roadmap":return Sl(t);case "account":return kl(t);case "cross-app-reports":return Rl(t);case "assistant":return fl(t)}}function fl(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],o=t.assistantTurns.length===0,a=o?`<div class="mushi-assistant-greeting">${m(n)}</div>
1771
- ${s.length?`<div class="mushi-assistant-suggestions">${s.map(p=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${m(p)}">${m(p)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(p=>{let h=p.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",g=p.options&&p.options.length?`<div class="mushi-assistant-suggestions">${p.options.map(E=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${m(E)}">${m(E)}</button>`).join("")}</div>`:"",d=p.offerReport?`<div class="mushi-assistant-recovery">
1772
- <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${m(e.assistant.fileReportCta)}</button>
1773
- </div>`:"";return `<div class="mushi-assistant-msg ${h}">${m(p.text)}</div>${g}${d}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${m(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${m(t.assistantError)}
1774
- <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${m(e.assistant.fileReportCta)}</button>
1775
- </div>`:"",f=!o&&!t.assistantSending&&!t.assistantError?`<div class="mushi-assistant-recovery mushi-assistant-recovery-footer">
1776
- <button type="button" class="mushi-assistant-report-link" data-action="assistant-report">${m(e.assistant.stillStuckCta)}</button>
1777
- </div>`:"";return `
1778
- ${Ee(t,{title:r,showBack:true})}
1779
- <div class="mushi-assistant">
1780
- <div class="mushi-assistant-log">
1781
- ${a}
1782
- ${i}
1783
- ${l}
1784
- ${f}
1785
- </div>
1786
- <form class="mushi-assistant-form" data-action="assistant-send">
1787
- <textarea
1788
- class="mushi-assistant-input"
1789
- rows="1"
1790
- placeholder="${m(e.assistant.inputPlaceholder)}"
1791
- ${t.assistantSending?"disabled":""}
1792
- ></textarea>
1793
- <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${m(e.assistant.sendAriaLabel)}">\u2191</button>
1794
- </form>
1795
- </div>
1796
- `}function To(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1797
- <div class="mushi-outdated" role="status">
1798
- <strong>Mushi SDK ${m(r)}</strong>
1799
- ${e?`latest is ${m(e)}.`:"needs attention."}
1800
- ${s?`<span>${m(s)}</span>`:""}
1801
- </div>
1802
- `}function $o(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${m(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function Ee(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:a}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${m(r.widget.back)}">\u2190 ${m(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${m(a??"Mushi \xB7 Report")}</span>`,l=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${un}"><b>${cn(o)}</b> / ${cn(un)}</span>`:"";return `
1803
- <div class="mushi-header">
1804
- <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${m(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
1805
- <div class="mushi-header-titles">
1806
- ${i}
1807
- <h3>${n}</h3>
1808
- </div>
1809
- <div class="mushi-header-meta">
1810
- ${l}
1811
- <button type="button" class="mushi-close" data-action="close" aria-label="${m(r.widget.close)}">\u2715</button>
1812
- </div>
1813
- </div>
1814
- `}function ml(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function gl(t){let e=t.locale,r=e.step1.moreNav,n=ml(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),a=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1815
- <span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
1816
- <div class="mushi-option-text">
1817
- <span class="mushi-option-label">${m(a)}</span>
1818
- <span class="mushi-option-desc">${m(r.yourReportsDesc)}</span>
1819
- </div>
1820
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1821
- </button>`];t.callbacks.onFeatureBoardRequest&&i.push(`
1822
- <button type="button" class="mushi-option-btn" data-action="roadmap">
1823
- <span class="mushi-option-icon" aria-hidden="true">\u{1F5F3}\uFE0F</span>
1824
- <div class="mushi-option-text">
1825
- <span class="mushi-option-label">${m(r.communityIdeas)}</span>
1826
- <span class="mushi-option-desc">${m(r.communityIdeasDesc)}</span>
1827
- </div>
1828
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1829
- </button>`),t.callbacks.assistantEnabled&&i.push(`
1830
- <button type="button" class="mushi-option-btn" data-action="assistant">
1831
- <span class="mushi-option-icon" aria-hidden="true">\u{1F4AC}</span>
1832
- <div class="mushi-option-text">
1833
- <span class="mushi-option-label">${m(t.callbacks.assistantLabel||e.assistant.defaultLabel)}</span>
1834
- <span class="mushi-option-desc">${m(e.assistant.hubDescription)}</span>
1835
- </div>
1836
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1837
- </button>`),t.rewardsState&&i.push(`
1838
- <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${m(r.leaderboard)}</button>`),i.push(`
1839
- <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
1840
- ${t.testerInfo?`\u{1F464} ${m(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${m(r.joinCommunity)}`}
1841
- </button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1842
- <div class="mushi-more-nav">
1843
- <button
1844
- type="button"
1845
- class="mushi-more-toggle mushi-more-nav-toggle"
1846
- data-action="toggle-more-nav"
1847
- aria-expanded="${t.showMoreNav?"true":"false"}"
1848
- >
1849
- <span class="mushi-more-toggle-text">${m(s)}</span>
1850
- <span class="mushi-more-toggle-arrow" aria-hidden="true">${t.showMoreNav?"\u25BE":"\u25B8"}</span>
1851
- </button>
1852
- ${l}
1853
- </div>
1854
- `}function bl(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(g=>({id:g.id,icon:g.icon??"\u{1F4AC}",label:g.label,desc:g.description??""})):["bug","slow","visual","confusing","other"].map(g=>({id:g,icon:gr[g],label:e.step1.categories[g],desc:e.step1.categoryDescriptions[g]})),n=({id:g,icon:d,label:E,desc:v})=>`
1855
- <button type="button" class="mushi-option-btn" data-category="${m(g)}" role="radio" aria-checked="false">
1856
- <span class="mushi-option-icon" aria-hidden="true">${m(d)}</span>
1857
- <div class="mushi-option-text">
1858
- <span class="mushi-option-label">${m(E)}</span>
1859
- ${v?`<span class="mushi-option-desc">${m(v)}</span>`:""}
1860
- </div>
1861
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1862
- </button>
1863
- `,s=t.config.categories&&t.config.categories.length>0,o=1,a=s?r:r.slice(0,o),i=s?[]:r.slice(o),l=i.length>0,f=a.map(n).join(""),p=i.map(n).join(""),h=l?t.showAllCategories?`<div class="mushi-categories-expanded">${p}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1864
- <span class="mushi-more-toggle-text">${m(e.step1.moreCategoriesLabel)}</span>
1865
- <span class="mushi-more-toggle-count">${m(e.step1.moreCategoriesCount.replace("{n}",String(i.length)))}</span>
1866
- <span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
1867
- </button>`:"";return `
1868
- ${Ee(t,{title:e.step1.heading,step:vr.category})}
1869
- ${t.config.betaMode?.enabled?wl(t):""}
1870
- <div class="mushi-body" role="radiogroup" aria-label="${m(e.step1.heading)}">
1871
- <p class="mushi-section-label">${m(e.step1.reportSectionLabel)}</p>
1872
- ${yl(t)}
1873
- ${f}
1874
- ${h}
1875
- ${t.rewardsState?Al(t):""}
1876
- ${gl(t)}
1877
- </div>
1878
- `}function yl(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1879
- <button
1880
- type="button"
1881
- class="mushi-option-btn mushi-feature-entry"
1882
- data-action="feature-request"
1883
- aria-label="${m(n)}"
1884
- >
1885
- <span class="mushi-option-icon" aria-hidden="true">\u2728</span>
1886
- <div class="mushi-option-text">
1887
- <span class="mushi-option-label">${m(n)}</span>
1888
- <span class="mushi-option-desc">${m(s)}</span>
1889
- </div>
1890
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1891
- </button>
1892
- `}function vl(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(a=>`<li>\u2022 ${m(a)}</li>`).join(""),s=m(t.locale.flows.changelog.whatsNew.replace("{version}",r.version));return `
1893
- <details class="mushi-changelog">
1894
- <summary class="mushi-changelog-summary">${r.date?`${s} \xB7 ${m(r.date)}`:s}</summary>
1895
- <ul class="mushi-changelog-list">${n}</ul>
1896
- </details>
1897
- `}function wl(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=m(e.appName??"This app"),s=e.message?m(e.message):m(r.defaultMessage).replace("{appName}",n),o=e.contactEmail?m(e.contactEmail):null,a=e.perks??[];return `
1898
- <div class="mushi-beta-strip" role="note" aria-label="${m(r.ariaLabel)}">
1899
- <div class="mushi-beta-strip-row">
1900
- <span class="mushi-beta-tag" aria-hidden="true">BETA</span>
1901
- <span class="mushi-beta-msg">${s}</span>
1902
- </div>
1903
- ${o?`<div class="mushi-beta-contact-hint">${m(r.contactHint).replace("{email}",o)}</div>`:""}
1904
- ${a.length>0?`
1905
- <ul class="mushi-beta-perks" aria-label="Beta tester perks">
1906
- ${a.map(i=>`<li>\u2713 ${m(i)}</li>`).join("")}
1907
- </ul>
1908
- `:""}
1909
- ${vl(t)}
1910
- </div>
1911
- `}function xl(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=br(s.status),i=yr(s.created_at),l=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1912
- <button type="button" class="mushi-report-row" data-report-id="${m(s.id)}" aria-label="View report: ${m(o)}">
1913
- <div class="mushi-report-main">
1914
- <span class="mushi-report-title">${m(o)}</span>
1915
- <span class="mushi-report-meta">
1916
- <span class="mushi-report-status mushi-status-${a}">${m(ln(s.status))}</span>
1917
- ${i?`<span class="mushi-report-when">${m(i)}</span>`:""}
1918
- ${l}
1919
- </span>
1920
- </div>
1921
- <span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
1922
- </button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${m(e.reports.leaderboardLink)}</button>`:"";return `
1923
- ${Ee(t,{title:e.reports.title,showBack:true,eyebrow:e.eyebrows.inbox})}
1924
- <div class="mushi-body">
1925
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.reports.loading)}</p>`:""}
1926
- ${t.reporterError?`<p class="mushi-error-inline">${m(t.reporterError)}</p>`:""}
1927
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${m(e.reports.empty)}</p>`)}
1928
- ${n}
1929
- </div>
1930
- `}function Sl(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=m(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),i=!!n.shipped_at,l=!!n.my_vote,f=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),p=e.roadmap.voteCount.replace("{n}",String(a));return `
1931
- <div class="mushi-report-row mushi-roadmap-row">
1932
- <div class="mushi-report-main">
1933
- <span class="mushi-report-title">${o}</span>
1934
- <span class="mushi-report-meta">
1935
- <span class="mushi-report-status">${m(f)}</span>
1936
- <span class="mushi-report-when">${m(p)}</span>
1937
- </span>
1938
- </div>
1939
- ${t.callbacks.onFeatureBoardVote?`
1940
- <button type="button" class="mushi-vote-btn" data-vote-id="${m(s)}" aria-pressed="${l}">
1941
- ${l?m(e.roadmap.voted):m(e.roadmap.vote)}
1942
- </button>`:""}
1943
- </div>`}).join("");return `
1944
- ${Ee(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
1945
- <div class="mushi-body">
1946
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.roadmap.loading)}</p>`:""}
1947
- ${t.reporterError?`<p class="mushi-error-inline">${m(t.reporterError)}</p>`:""}
1948
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${m(e.roadmap.empty)}</p>`)}
1949
- </div>
1950
- `}function El(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(l=>({tester_id:"",public_handle:null,display_name:l.display_name,rank:0,points_30d:l.points_30d,total_points:l.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,a=n.map((l,f)=>{let p=l.rank||f+1,h=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
1951
- <div class="mushi-lb-row ${p===1?"mushi-lb-top":""}${h?" mushi-lb-me":""}">
1952
- <span class="mushi-lb-rank">#${p}</span>
1953
- <span class="mushi-lb-name">${m(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
1954
- <span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
1955
- </div>
1956
- `}).join(""),i=o?`<div class="mushi-lb-myrank">${m(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${m(e.leaderboard.signInPrompt)}</button>`;return `
1957
- ${Ee(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
1958
- <div class="mushi-body">
1959
- ${s?`<p class="mushi-muted">${m(e.leaderboard.loading)}</p>`:""}
1960
- ${!s&&!n.length?`<p class="mushi-muted">${m(e.leaderboard.empty)}</p>`:""}
1961
- <div class="mushi-lb-list">${a}</div>
1962
- ${i}
1963
- <p class="mushi-lb-note">${m(e.leaderboard.footer)}</p>
1964
- </div>
1965
- `}function kl(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1966
- ${Ee(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
1967
- <div class="mushi-body">
1968
- <div class="mushi-account-card">
1969
- <div class="mushi-account-avatar">${m(n.charAt(0).toUpperCase())}</div>
1970
- <div class="mushi-account-info">
1971
- <strong>${m(n)}</strong>
1972
- ${s?`<span class="mushi-account-rank">${m(o)}</span>`:""}
1973
- </div>
1974
- </div>
1975
- <button type="button" class="mushi-nav-item" data-action="open-cross-app-reports">
1976
- ${m(e.account.crossAppReports)}
1977
- </button>
1978
- <button type="button" class="mushi-nav-item" data-action="open-global-leaderboard">
1979
- ${m(e.account.viewLeaderboard)}
1980
- </button>
1981
- <button type="button" class="mushi-link-btn" data-action="sign-out-tester">${m(e.account.signOut)}</button>
1982
- </div>
1983
- `}return t.magicLinkSent?`
1984
- ${Ee(t,{title:e.account.checkEmailTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
1985
- <div class="mushi-body">
1986
- <p class="mushi-muted">${m(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
1987
- <button type="button" class="mushi-link-btn" data-action="resend-magic-link">${m(e.account.resendEmail)}</button>
1988
- ${t.magicLinkError?`<p class="mushi-error">${m(t.magicLinkError)}</p>`:""}
1989
- </div>
1990
- `:`
1991
- ${Ee(t,{title:e.account.joinTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
1992
- <div class="mushi-body">
1993
- <p class="mushi-muted">${m(e.account.signInPrompt)}</p>
1994
- <label class="mushi-label" for="mushi-email-input">${m(e.account.emailLabel)}</label>
1995
- <input
1996
- id="mushi-email-input"
1997
- type="email"
1998
- class="mushi-textarea"
1999
- data-role="magic-link-email"
2000
- placeholder="${m(e.account.emailPlaceholder)}"
2001
- autocomplete="email"
2002
- value="${m(t.magicLinkEmail)}"
2003
- style="padding: 10px 12px; height: auto; resize: none;"
2004
- />
2005
- ${t.magicLinkError?`<p class="mushi-error">${m(t.magicLinkError)}</p>`:""}
2006
- <button type="button" class="mushi-submit" data-action="send-magic-link"${t.magicLinkSending?' disabled aria-disabled="true"':""}>
2007
- <span>${t.magicLinkSending?m(e.account.sending):m(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2008
- </button>
2009
- </div>
2010
- `}function Rl(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let s=[...n.entries()].map(([o,a])=>`
2011
- <div class="mushi-xapp-group">
2012
- <div class="mushi-xapp-app-head">
2013
- ${Eo({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
2014
- <h4 class="mushi-xapp-app-name">${m(a.name)}</h4>
2015
- </div>
2016
- ${a.reports.map(l=>{let f=br(l.status);return `
2017
- <div class="mushi-report-row" data-report-id="${m(l.id)}" tabindex="0" role="button">
2018
- <span class="mushi-report-status mushi-status-${f}">${m(ln(l.status))}</span>
2019
- <span class="mushi-report-title">${m(l.title??l.category)}</span>
2020
- <span class="mushi-report-when">${m(yr(l.created_at))}</span>
2021
- </div>
2022
- `}).join("")}
2023
- </div>
2024
- `).join("");return `
2025
- ${Ee(t,{title:e.crossApp.title,showBack:true,eyebrow:e.eyebrows.allApps})}
2026
- <div class="mushi-body">
2027
- ${t.crossAppLoading?`<p class="mushi-muted">${m(e.crossApp.loading)}</p>`:""}
2028
- ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${m(e.crossApp.empty)}</p>`:""}
2029
- ${s}
2030
- </div>
2031
- `}function Cl(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=br(n),o=r?.created_at?yr(r.created_at):"",a=t.reporterComments.map(i=>`
2032
- <div class="mushi-thread-comment ${i.author_kind}">
2033
- <strong>${m(i.author_kind==="reporter"?"You":i.author_name??"Developer")}</strong>
2034
- <p>${m(i.body)}</p>
2035
- </div>
2036
- `).join("");return `
2037
- ${Ee(t,{title:e.thread.title,showBack:true,eyebrow:e.eyebrows.thread})}
2038
- <div class="mushi-body">
2039
- <div class="mushi-thread-summary">
2040
- <div class="mushi-thread-summary-meta">
2041
- <span class="mushi-report-status mushi-status-${s}">${m(xo(n))}</span>
2042
- ${o?`<span class="mushi-report-when">Reported ${m(o)}</span>`:""}
2043
- </div>
2044
- <p>${m(r?.summary??r?.description??"Report details")}</p>
2045
- </div>
2046
- <div class="mushi-thread">
2047
- ${t.reporterLoading?`<p class="mushi-muted">${m(e.thread.loading)}</p>`:a||`<p class="mushi-muted">${m(e.thread.empty)}</p>`}
2048
- </div>
2049
- ${["fixed","resolved","verified"].includes(n)?`
2050
- <div class="mushi-verify-actions" role="group" aria-label="Fix verification">
2051
- <button type="button" class="mushi-option-btn" data-action="reporter-confirms">${m(e.thread.confirmFixed)}</button>
2052
- <button type="button" class="mushi-option-btn" data-action="reporter-not-fixed">${m(e.thread.notFixed)}</button>
2053
- </div>
2054
- `:""}
2055
- <textarea class="mushi-textarea" data-role="reporter-reply" rows="3" placeholder="Reply to the developer\u2026"></textarea>
2056
- <button type="button" class="mushi-submit" data-action="reporter-reply">
2057
- <span>Reply</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2058
- </button>
2059
- </div>
2060
- `}function Tl(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
2061
- <button type="button" class="mushi-option-btn" data-intent="${m(l)}">
2062
- <span class="mushi-option-text"><span class="mushi-option-label">${m(l)}</span></span>
2063
- <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
2064
- </button>
2065
- `).join(""),a=t.categoryIcon(r),i=t.categoryLabel(r);return `
2066
- ${Ee(t,{title:e.step2.heading,showBack:true,step:vr.intent})}
2067
- <div class="mushi-body">
2068
- <div class="mushi-selected-category">
2069
- <span aria-hidden="true">${m(a)}</span>
2070
- <span>${m(i)}</span>
2071
- </div>
2072
- <div class="mushi-intents">
2073
- ${o}
2074
- </div>
2075
- </div>
2076
- `}function $l(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementError?e.step3.elementFailed:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementError?"error":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(l=>`<button type="button" class="mushi-example-chip" data-example="${m(l)}">${m(l)}</button>`).join("");return `
2077
- ${Ee(t,{title:e.step3.heading,showBack:true,step:vr.details})}
2078
- <div class="mushi-body">
2079
- <div class="mushi-example-chips" aria-label="Example prompts">${i}</div>
2080
- <div class="mushi-textarea-wrap">
2081
- <textarea
2082
- class="mushi-textarea"
2083
- placeholder="${m(e.step3.descriptionPlaceholder)}"
2084
- rows="4"
2085
- maxlength="4000"
2086
- aria-label="${m(e.step3.heading)}"
2087
- autofocus
2088
- ></textarea>
2089
- <div class="mushi-char-counter" data-role="char-counter" aria-hidden="true">
2090
- <span data-role="char-current">0</span>/<span data-role="char-min">${r}</span>
2091
- </div>
2092
- </div>
2093
- <div class="mushi-attachments">
2094
- ${t.screenshotAvailable?`<button type="button" class="${s}"
2095
- data-action="screenshot"
2096
- ${t.screenshotCapturing?"disabled":""}
2097
- aria-label="${m(n)}"
2098
- >
2099
- ${t.screenshotCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F4F8}"}
2100
- ${m(n)}
2101
- </button>`:""}
2102
- ${t.screenshotAttached&&t.allowScreenshotRemove?'<button type="button" class="mushi-attach-btn danger" data-action="remove-screenshot" aria-label="Remove screenshot">\u2715 Remove</button>':""}
2103
- ${t.screenshotAttached?'<button type="button" class="mushi-attach-btn" data-action="annotate-screenshot" aria-label="Mark up screenshot">\u270F Mark up</button><div class="mushi-annotate-host" data-role="annotate-host"></div>':""}
2104
- ${t.elementAvailable?`<button type="button" class="${a}"
2105
- data-action="element"
2106
- ${t.elementCapturing?"disabled":""}
2107
- aria-label="${m(o)}"
2108
- >
2109
- ${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
2110
- ${m(o)}
2111
- </button>`:""}
2112
- </div>
2113
- ${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
2114
- <img src="${m(t.screenshotPreview)}" alt="${m(e.step3.screenshotPreviewAlt)}" />
2115
- ${t.screenshotHint?`<figcaption class="mushi-screenshot-hint">\u26A0 ${m(t.screenshotHint)}</figcaption>`:""}
2116
- </figure>`:""}
2117
- <div class="mushi-error" style="display:none" role="alert"></div>
2118
- ${t.identifiedUser?`<p class="mushi-identified-user" aria-label="Reporting as ${m(t.identifiedUser.name??t.identifiedUser.email??"")}">\u{1F464} Reporting as <strong>${m(t.identifiedUser.name??t.identifiedUser.email??"you")}</strong></p>`:""}
2119
- </div>
2120
- <div class="mushi-footer">
2121
- <span class="mushi-footer-hint" aria-hidden="true">\u2318 + ENTER \u2192 send</span>
2122
- <button type="button" class="mushi-submit" data-action="submit"${t.submitting?" disabled":""}>
2123
- <span>${t.submitting?e.widget.submitting:e.widget.submit}</span>
2124
- <span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2125
- </button>
2126
- </div>
2127
- `}function Ml(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2128
- ${Ee(t,{title:e.widget.title,showBack:true,eyebrow:"Mushi \xB7 Receipt"})}
2129
- <div class="mushi-body">
2130
- <div class="mushi-success">
2131
- <div class="mushi-success-stamp" aria-hidden="true">
2132
- <svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><circle cx="50" cy="50" r="44"/></svg>
2133
- <span class="mushi-success-stamp-label">\u53D7</span>
2134
- </div>
2135
- <div class="mushi-success-headline">${e.widget.submitted}</div>
2136
- <div class="mushi-success-meta">REPORT \xB7 ${n}</div>
2137
- ${Il(t)}
2138
- ${t.rewardsState?_l(t):""}
2139
- ${t.config.betaMode?.enabled?Ll(t):""}
2140
- <button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="view-my-reports">
2141
- ${m(t.locale.flows.success.trackReport)}
2142
- </button>
2143
- </div>
2144
- </div>
2145
- `}function Il(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(r==="rate_limited"||r==="quota"||r==="permanent"||r==="retrying"||t.lastSubmitQueuedOffline){let i=r==="rate_limited"?e.rateLimited:r==="quota"?e.quotaBlocked:r==="permanent"?e.permanentFailed:r==="retrying"?e.retrying:e.queuedOffline,l=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `
2146
- <div class="mushi-success-receipt" role="status">
2147
- <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2148
- <span class="mushi-success-receipt-label">${m(i)}</span>
2149
- <span class="mushi-success-receipt-hint">${m(l)}</span>
2150
- </div>
2151
- </div>
2152
- `}if(!t.lastReportId)return `
2153
- <div class="mushi-success-receipt" role="status">
2154
- <div class="mushi-success-receipt-row">
2155
- <span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
2156
- <span class="mushi-success-receipt-hint">${m(e.delivering)}</span>
2157
- </div>
2158
- ${Ro(t)}
2159
- </div>
2160
- `;let n=`#${t.lastReportId.slice(0,8)}`,s=(t.config.dashboardUrl??"").replace(/\/$/,""),o=s?`${s}/reports/${encodeURIComponent(t.lastReportId)}`:"",a=t.lastSubmitScreenshotDropped?`
2161
- <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2162
- <span class="mushi-success-receipt-hint">${m(e.screenshotDropped)}</span>
2163
- </div>
2164
- `:"";return `
2165
- <div class="mushi-success-receipt" role="status">
2166
- <div class="mushi-success-receipt-row">
2167
- <span class="mushi-success-receipt-label">${m(e.receipt)}</span>
2168
- <button
2169
- type="button"
2170
- class="mushi-success-receipt-id"
2171
- data-action="copy-report-id"
2172
- data-copy-id="${m(t.lastReportId)}"
2173
- title="Copy report id ${m(t.lastReportId)}"
2174
- aria-label="Copy report id ${m(t.lastReportId)}"
2175
- >${m(n)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
2176
- </div>
2177
- ${o?`
2178
- <a
2179
- class="mushi-success-receipt-track"
2180
- href="${m(o)}"
2181
- target="_blank"
2182
- rel="noopener noreferrer"
2183
- >${m(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
2184
- `:""}
2185
- ${a}
2186
- ${Ro(t)}
2187
- </div>
2188
- `}function Ro(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${m(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${m(t.locale.flows.success.slaDefault)}</div>`}function Ll(t){let e=t.config.betaMode,r=e.contactEmail?m(e.contactEmail):null,n=m(e.appName??"the team");return `
2189
- <div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
2190
- ${r?`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${r}</div>`:`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${n}</div>`}
2191
- </div>
2192
- `}function Al(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",a=e?.slug??"free",i=t.tierColor(a),l=100,f="";if(r){let p=e?.pointsThreshold??0,h=r.pointsThreshold;l=h>p?Math.round(Math.min(1,(n-p)/(h-p))*100):100,f=`${Math.max(0,h-n).toLocaleString()} pts to ${m(r.displayName)}`;}return `
2193
- <div class="mushi-rewards-nudge" aria-label="Rewards progress">
2194
- <div class="mushi-rewards-row">
2195
- <span class="mushi-tier-pip" style="background:${i}" aria-hidden="true"></span>
2196
- <span class="mushi-rewards-tier-name">${m(o)}</span>
2197
- <span class="mushi-rewards-pts-count">${n.toLocaleString()} pts</span>
2198
- <span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
2199
- </div>
2200
- ${r?`
2201
- <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${m(r.displayName)}">
2202
- <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${l/100}"></div>
2203
- </div>
2204
- <div class="mushi-rewards-next-label">${f}</div>
2205
- `:""}
2206
- </div>
2207
- `}function _l(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,a=100,i="";if(r){let l=e?.pointsThreshold??0,f=r.pointsThreshold;a=f>l?Math.round(Math.min(1,(o-l)/(f-l))*100):100;let p=Math.max(0,f-o);i=p>0?`${p.toLocaleString()} pts to ${m(r.displayName)}`:`\u{1F389} ${m(r.displayName)} reached!`;}return `
2208
- <div class="mushi-success-rewards">
2209
- <div class="mushi-success-pts-award">+${s} pts</div>
2210
- ${r?`
2211
- <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${m(r.displayName)}">
2212
- <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div>
2213
- </div>
2214
- <div class="mushi-rewards-next-label">${i}</div>
2215
- `:""}
2216
- </div>
2217
- `}function Hl(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var wr=class t{constructor(e={},r,n=be){this.sdkVersion=n;this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=on(this.config.locale==="auto"?void 0:this.config.locale);let s=yo();s?.turns.length&&(this.assistantTurns=s.turns,this.assistantThreadId=s.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=on(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:gr[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=an,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let s=n.text??"\u2026",o=Hl(s);this.assistantTurns.push({role:"assistant",text:s,...o?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}persistAssistantSession(){vo({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,wo(),this.step==="assistant"&&this.render();}openReportFromAssistant(){this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false,this.step="category",this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>{e.classList.remove("mushi-trigger-pulse");},2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e&&(this.screenshotError=false),e||(this.screenshotPreview=null),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="");}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText=`
5
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Ti(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,a=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{di(r)&&a();};});}var jr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"},moreCategoriesLabel:"More issue types",moreCategoriesCount:"{n} more"},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",featurePlaceholder:"Describe your idea\u2026",featureExamples:["Add a dark mode","Export my data","Keyboard shortcuts"],otherPlaceholder:"What's on your mind?",submitHint:"{key} + Enter to send",charsNeeded:"{n} more characters",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send",loadFailed:"Couldn't load this thread.",retry:"Try again"},success:{title:"Thanks \u2014 report received",done:"Done",trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request",description:"Suggest a change"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Reports go to {email} \xB7 reviewed by the team",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi"}};var Ii={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"},moreCategoriesLabel:"\u305D\u306E\u4ED6\u306E\u554F\u984C\u306E\u7A2E\u985E",moreCategoriesCount:"\u4ED6{n}\u4EF6"},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",featureExamples:["\u30C0\u30FC\u30AF\u30E2\u30FC\u30C9\u304C\u307B\u3057\u3044","\u30C7\u30FC\u30BF\u3092\u66F8\u304D\u51FA\u3057\u305F\u3044","\u30AD\u30FC\u30DC\u30FC\u30C9\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8"],otherPlaceholder:"\u3069\u3093\u306A\u3053\u3068\u3067\u3082\u3069\u3046\u305E",submitHint:"{key} + Enter \u3067\u9001\u4FE1",charsNeeded:"\u3042\u3068{n}\u6587\u5B57",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",screenshotRetry:"\u3082\u3046\u4E00\u5EA6",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u5185\u5BB9\u306E\u305F\u3081\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",timeout:"\u53D6\u5F97\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1",loadFailed:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002",retry:"\u518D\u8A66\u884C"},success:{title:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059 \u2014 \u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",done:"\u9589\u3058\u308B",trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u30EC\u30DD\u30FC\u30C8\u306F {email} \u306B\u5C4A\u304D\u3001\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi \u3067"}};var $i={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"},moreCategoriesLabel:"\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E2D\u0E37\u0E48\u0E19 \u0E46",moreCategoriesCount:"\u0E2D\u0E35\u0E01 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",featureExamples:["\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E42\u0E2B\u0E21\u0E14\u0E21\u0E37\u0E14","\u0E2A\u0E48\u0E07\u0E2D\u0E2D\u0E01\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25","\u0E04\u0E35\u0E22\u0E4C\u0E25\u0E31\u0E14"],otherPlaceholder:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E2D\u0E22\u0E32\u0E01\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32?",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",charsNeeded:"\u0E2D\u0E35\u0E01 {n} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07",loadFailed:"\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},success:{title:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \xB7 \u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E17\u0E38\u0E01\u0E09\u0E1A\u0E31\u0E1A",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi"}};var Mi={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"},moreCategoriesLabel:"M\xE1s tipos de problemas",moreCategoriesCount:"{n} m\xE1s"},step2:{heading:"\xBFQu\xE9 pas\xF3?",intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",featurePlaceholder:"Describe tu idea\u2026",featureExamples:["A\xF1adir modo oscuro","Exportar mis datos","Atajos de teclado"],otherPlaceholder:"\xBFQu\xE9 quieres contarnos?",submitHint:"{key} + Enter para enviar",charsNeeded:"Faltan {n} caracteres",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar",loadFailed:"No se pudo cargar el hilo.",retry:"Reintentar"},success:{title:"Gracias \u2014 reporte recibido",done:"Listo",trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"Los reportes van a {email} \xB7 revisados por el equipo",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi"}};var eu={en:jr,ja:Ii,th:$i,es:Mi};function Wn(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return jr;let r=e.split("-")[0].toLowerCase();return eu[r]??jr}function tu(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${s},${o}`}function Li(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=Bn(s),a=oi(s,e,r),i=ni[s];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?Hn.dark:Hn.light,accentRgb:tu(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:ti,inverse:ri,neonBannerBg:_r.bg,neonBannerFg:_r.fg,neonBannerBorder:_r.border,brandBannerBorder:n?On.dark:On.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Ct.fontDisplay,fontBody:Ct.fontBody,fontMono:Ct.fontMono,easeStamp:Pr.easeStamp,zBanner:Tt.banner,zPanel:Tt.panel,zOverlay:Tt.overlay,fabSize:It.fabSize,panelWidth:It.panelWidth,panelSheetBreakpoint:It.panelSheetBreakpoint}}function _i(t,e="",r=""){let n=Li(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:m,inkDim:h,rule:p,ruleStrong:y,widgetAccent:d,widgetAccentWash:S,widgetAccentInk:v,widgetAccentShadow:k,accentRgb:_,shadowInk:T,ok:$,danger:g,onAccent:w,inverse:b,neonBannerBg:E,neonBannerFg:M,neonBannerBorder:A,brandBannerBorder:R,statusSent:W,statusReview:G,statusFixing:Z,statusFixed:ae,statusClosedBg:Ce,fontDisplay:he,fontBody:Y,fontMono:O,easeStamp:I,zBanner:ee,fabSize:te}=n,{sizeBody:xe,sizeLabel:Se,lineBody:Te}=Ct,{durationFast:L}=Pr,{instant:x,fast:D,base:B,panel:U,slow:z,ring:De}=si,{bannerHeight:be,gutter:J,panelWidth:ne,panelMaxHeight:fe,panelSheetBreakpoint:me,edgeTabWidth:st}=It,q=te+Ar.comfy,{base:ot}=Tt,Ee=Nn.control,Ue=Nn.card,{tight:Pt,snug:Ye,comfy:X,roomy:Ss,lounge:vt,open:rn,wide:ar}=Ar;return ` :host{all:initial;font-family:${Y};font-size:${xe}px;line-height:${Te};color:${i};-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:'ss01','cv11';--mushi-ok:${$};--mushi-space-tight:${Pt}px;--mushi-space-snug:${Ye}px;--mushi-space-comfy:${X}px;--mushi-space-roomy:${Ss}px;--mushi-space-lounge:${vt}px;--mushi-space-open:${rn}px;--mushi-space-wide:${ar}px;--mushi-radius-control:${Ee}px;--mushi-radius-card:${Ue}px;--mushi-touch-min:44px;--mushi-accent-rgb:${_};--mushi-shadow-ink:${T};pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${te}px;height:${te}px;min-width:var(--mushi-touch-min);min-height:var(--mushi-touch-min);border:1px solid ${y};border-radius:${Ee}px;background:${o};color:${i};cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:${he};font-size:22px;line-height:1;box-shadow:0 1px 0 ${p},0 6px 14px -8px rgba(${T},0.35),inset 0 -3px 0 ${d};transition:transform ${L}ms ${I},opacity ${L}ms ${I};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:${d};box-shadow:0 0 0 0 ${d};animation:mushi-pulse 2.4s ${I} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 ${p},0 14px 24px -10px rgba(${T},0.45),0 0 20px -6px rgba(${_},0.22),inset 0 -3px 0 ${d};}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 ${p},0 2px 4px -2px rgba(${T},0.35),inset 0 -2px 0 ${d};}.mushi-trigger:focus-visible{outline:2px solid ${d};outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 rgba(${_},0.55),0 1px 0 ${p},0 10px 24px -14px rgba(${T},0.45);}70%{box-shadow:0 0 0 16px rgba(${_},0),0 1px 0 ${p},0 10px 24px -14px rgba(${T},0.45);}100%{box-shadow:0 0 0 0 rgba(${_},0),0 1px 0 ${p},0 10px 24px -14px rgba(${T},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${I} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${J}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${J}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${J}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${J}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${J}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${J}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${J}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${J}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${st}px;height:88px;border-radius:${Ee}px 0 0 ${Ee}px;writing-mode:vertical-rl;text-orientation:upright;font-size:16px;box-shadow:0 1px 0 ${p},0 10px 24px -14px rgba(${T},0.45),inset -3px 0 0 ${d};}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:var(--mushi-right,0);}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:var(--mushi-left,0);border-radius:0 ${Ee}px ${Ee}px 0;box-shadow:0 1px 0 ${p},0 10px 24px -14px rgba(${T},0.45),inset 3px 0 0 ${d};}.mushi-trigger.shrunk{width:${be}px;height:${be}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${ot}) + 2);transition:none !important;box-shadow:0 1px 0 ${p},0 20px 40px -12px rgba(${T},0.55),inset 0 -3px 0 ${d};opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger{transition:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 ${d};opacity:1;}70%{box-shadow:0 0 0 8px ${d}00;opacity:0.5;}100%{box-shadow:0 0 0 0 ${d}00;opacity:1;}}.mushi-panel{position:fixed;width:${ne}px;max-width:calc(100vw - ${Ar.wide}px);max-height:min(${fe}px,calc(100dvh - 120px - var(--mushi-keyboard-inset,0px)));background:${o};border:1px solid ${y};border-radius:6px;box-shadow:0 1px 0 ${p},0 24px 56px -20px rgba(${T},0.30),0 8px 16px -8px rgba(${T},0.20);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);transition:bottom ${x}ms ease,top ${x}ms ease,max-height ${x}ms ease;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${me}px){.mushi-panel{left:0 !important;right:0 !important;width:100% !important;max-width:100% !important;border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:var(--mushi-keyboard-inset,0px) !important;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 4px) !important;}}.mushi-panel.open{animation:mushi-stamp-in ${U}ms ${I} both;}.mushi-panel.closed{display:none;}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${J}px) + ${q}px));right:var(--mushi-right,calc(${J}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${J}px) + ${q}px));left:var(--mushi-left,calc(${J}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${J}px) + ${q}px));right:var(--mushi-right,calc(${J}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${J}px) + ${q}px));left:var(--mushi-left,calc(${J}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-outdated{margin:12px 14px 0;padding:10px 12px;border:1px solid ${S};background:${S};color:${v};font-family:${Y};font-size:12px;line-height:1.4;}.mushi-outdated strong{display:block;font-family:${O};font-size:10px;letter-spacing:0.12em;text-transform:uppercase;margin-bottom:2px;}.mushi-outdated span{display:block;margin-top:3px;color:${l};}@keyframes mushi-stamp-in{0%{opacity:0;transform:scale(0.94) translateY(6px);}60%{opacity:1;}100%{opacity:1;transform:scale(1) translateY(0);}}.mushi-header{padding:13px 18px 10px;border-bottom:1px solid ${p};display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:10px;}.mushi-header-mark{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:3px;background:${d};color:${w};font-family:${he};font-size:14px;font-weight:600;line-height:1;letter-spacing:-0.02em;transform:rotate(-3deg);flex-shrink:0;}.mushi-header-titles{min-width:0;display:flex;flex-direction:column;gap:2px;}.mushi-header-eyebrow{font-family:${O};font-size:10px;letter-spacing:0.18em;text-transform:uppercase;color:${l};}.mushi-header h3{font-family:${he};font-size:19px;font-weight:500;line-height:1.15;letter-spacing:-0.01em;color:${i};}.mushi-header-meta{align-self:start;display:flex;align-items:center;gap:6px;}.mushi-step-counter{font-family:${O};font-size:11px;color:${l};letter-spacing:0.06em;tab-size:2ch;padding-top:2px;}.mushi-step-counter b{font-weight:600;color:${i};}.mushi-close{background:none;border:none;cursor:pointer;padding:2px 4px;color:${l};font-family:${Y};font-size:16px;line-height:1;border-radius:0;transition:opacity ${x}ms ${I};}.mushi-back{align-self:flex-start;background:none;border:none;cursor:pointer;padding:3px 0;margin:0 0 2px;min-height:22px;color:${l};font-family:${O};font-size:11px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase;line-height:1.2;border-radius:0;display:inline-flex;align-items:center;gap:4px;transition:opacity ${x}ms ${I};white-space:nowrap;}.mushi-close:hover{color:${d};}.mushi-back:hover{color:${i};}.mushi-close:focus-visible{outline:1.5px solid ${d};outline-offset:2px;}.mushi-back:focus-visible{outline:none;color:${d};text-decoration:underline;text-underline-offset:3px;}.mushi-body{padding:8px 22px 16px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:${m} transparent;}.mushi-body::-webkit-scrollbar{width:6px;}.mushi-body::-webkit-scrollbar-thumb{background:${m};border-radius:3px;}.mushi-option-btn{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:${X}px;width:100%;min-height:var(--mushi-touch-min);padding:${X}px 0;border:none;border-bottom:1px solid ${p};background:transparent;cursor:pointer;color:inherit;text-align:left;transition:transform ${B}ms ${I},opacity ${B}ms ${I};position:relative;}.mushi-option-btn:last-child{border-bottom:none;}.mushi-option-btn:hover{transform:translateX(6px);color:${d};background:linear-gradient(90deg,rgba(${_},0.07),transparent 55%);}.mushi-option-btn:hover .mushi-option-arrow{opacity:1;transform:translateX(0);color:${d};}.mushi-option-btn:focus-visible{outline:none;transform:translateX(6px);box-shadow:inset 2px 0 0 ${d};}.mushi-option-icon{font-size:18px;line-height:1;flex-shrink:0;filter:${s?"none":"grayscale(0.15)"};}.mushi-option-text{display:flex;flex-direction:column;gap:3px;min-width:0;}.mushi-option-label{font-family:${he};font-size:16px;font-weight:500;letter-spacing:-0.005em;line-height:1.2;}.mushi-option-desc{font-size:12px;color:${l};letter-spacing:0.005em;}.mushi-option-arrow{font-family:${O};font-size:14px;color:${m};opacity:0;transform:translateX(-4px);transition:opacity ${B}ms ${I},transform ${B}ms ${I};}.mushi-feature-entry,.mushi-reports-entry{padding-left:10px;border-left:2px solid ${m};transition:opacity ${B}ms ${I},transform ${B}ms ${I};}.mushi-feature-entry:hover,.mushi-reports-entry:hover{border-left-color:${d};padding-left:14px;}.mushi-feature-entry .mushi-option-icon{filter:none;}.mushi-report-row{width:100%;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px 4px 12px 0;border:0;border-bottom:1px solid ${p};background:transparent;color:${i};cursor:pointer;text-align:left;transition:opacity ${D}ms ${I},transform ${D}ms ${I};}.mushi-report-row:hover,.mushi-report-row:focus-visible{background:${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};padding-left:4px;}.mushi-report-main{min-width:0;display:grid;gap:6px;}.mushi-report-title{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.mushi-report-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}.mushi-report-status{display:inline-flex;align-items:center;font-family:${O};font-size:10px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;padding:2px 7px;border-radius:999px;border:1px solid transparent;}.mushi-status-sent{color:${W.fg};background:${W.bg};border-color:${W.border};}.mushi-status-review{color:${G.fg};background:${G.bg};border-color:${G.border};}.mushi-status-fixing{color:${Z.fg};background:${Z.bg};border-color:${Z.border};}.mushi-status-fixed{color:${ae.fg};background:${ae.bg};border-color:${ae.border};}.mushi-status-closed,.mushi-status-unknown{color:${l};background:${Ce};border-color:${y};}.mushi-report-when{font-family:${O};font-size:10px;color:${m};}.mushi-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-family:${O};font-size:10px;font-weight:700;color:${v};background:${d};}.mushi-report-chevron{font-size:18px;line-height:1;color:${m};transition:opacity ${D}ms ${I},transform ${D}ms ${I};}.mushi-report-row:hover .mushi-report-chevron,.mushi-report-row:focus-visible .mushi-report-chevron{color:${d};transform:translateX(2px);}.mushi-thread-summary{border-bottom:1px solid ${p};padding-bottom:10px;margin-bottom:10px;}.mushi-thread-summary-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px;}.mushi-thread{display:grid;gap:8px;max-height:180px;overflow:auto;margin-bottom:12px;}.mushi-thread-skeleton{display:grid;gap:8px;}.mushi-thread-skeleton span{height:34px;border:1px solid ${p};background:${p};opacity:0.5;}.mushi-thread-action-error{margin:0;padding:8px 22px 0;}.mushi-thread-composer{align-items:flex-end;}.mushi-thread-composer .mushi-textarea{flex:1;min-width:0;margin:0;}.mushi-thread-comment{padding:8px 10px;border:1px solid ${p};background:${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};}.mushi-thread-comment.reporter{border-color:${S};background:${S};}.mushi-thread-comment strong{display:block;font-family:${O};font-size:10px;letter-spacing:0.04em;margin-bottom:3px;}.mushi-thread-comment p,.mushi-muted,.mushi-error-inline{font-size:12px;color:${l};line-height:1.45;}.mushi-error-inline{color:${d};}.mushi-selected-category{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-left:2px solid ${d};background:${S};color:${v};font-family:${he};font-size:13px;margin:4px 0 14px;border-radius:0 3px 3px 0;}.mushi-selected-category span:first-child{font-size:14px;}.mushi-intents{display:flex;flex-direction:column;gap:2px;}.mushi-intents .mushi-option-btn{grid-template-columns:1fr auto;}.mushi-example-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}.mushi-example-chip{padding:4px 10px;border:1px solid ${p};border-radius:12px;background:transparent;color:${l};font-family:${Y};font-size:11px;cursor:pointer;transition:opacity ${x}ms ${I},transform ${x}ms ${I};white-space:nowrap;}.mushi-example-chip:hover{color:${i};border-color:${l};background:${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};}.mushi-example-chip:focus-visible{outline:2px solid ${d};outline-offset:2px;}.mushi-textarea-wrap{position:relative;}.mushi-char-counter{position:absolute;bottom:4px;right:0;font-family:${O};font-size:10px;letter-spacing:0.04em;color:${m};pointer-events:none;transition:opacity ${D}ms ${I};}.mushi-textarea{width:100%;min-height:96px;padding:8px 0 10px;border:none;border-bottom:1px solid ${y};background:transparent;color:${i};font-family:${Y};font-size:14px;line-height:1.5;resize:vertical;outline:none;transition:opacity ${D}ms ${I},transform ${D}ms ${I};}.mushi-textarea::placeholder{color:${m};font-style:italic;}.mushi-textarea:focus{border-bottom-color:${d};}.mushi-attachments{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid ${y};border-radius:3px;background:transparent;color:${l};font-family:${O};font-size:11px;letter-spacing:0.04em;text-transform:uppercase;cursor:pointer;transition:opacity ${D}ms ${I},transform ${D}ms ${I};}.mushi-attach-btn:hover{color:${i};border-color:${i};}.mushi-attach-btn.active{color:${d};border-color:${d};background:${S};}.mushi-attach-btn.danger{color:${v};border-color:${S};background:transparent;}.mushi-attach-btn.danger:hover{color:${d};border-color:${d};background:${S};}.mushi-attach-btn.loading{opacity:0.7;cursor:wait;}.mushi-attach-btn.error{color:${d};border-color:${S};}.mushi-attach-btn:focus-visible{outline:2px solid ${d};outline-offset:2px;}.mushi-annotate-host{flex-basis:100%;margin-top:8px;}.mushi-annotate-host:empty{margin-top:0;}.mushi-screenshot-preview{margin:10px 0 0;display:flex;flex-direction:column;gap:6px;}.mushi-screenshot-preview img{display:block;max-width:100%;max-height:160px;width:auto;border:1px solid ${y};border-radius:3px;object-fit:contain;align-self:flex-start;}.mushi-screenshot-hint{margin:0;color:${l};font-family:${O};font-size:10.5px;line-height:1.4;letter-spacing:0.02em;}.mushi-identified-user{margin:8px 0 0;font-size:11.5px;color:${l};line-height:1.4;}.mushi-identified-user strong{color:${i};font-weight:600;}.mushi-annotate-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}@keyframes mushi-spin{to{transform:rotate(360deg);}}@keyframes mushi-fade-in{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}.mushi-spinner{display:inline-block;width:10px;height:10px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:mushi-spin ${De}ms linear infinite;}.mushi-footer{flex-shrink:0;padding:14px 22px 16px;border-top:1px solid ${p};display:flex;align-items:center;justify-content:space-between;gap:12px;}.mushi-footer-hint{font-family:${O};font-size:10px;letter-spacing:0.10em;text-transform:uppercase;color:${m};}.mushi-submit{position:relative;display:inline-flex;align-items:center;gap:${Ye}px;min-height:var(--mushi-touch-min);padding:${X}px ${vt}px;border:1px solid ${d};border-radius:${Ee}px;background:linear-gradient(160deg,${d} 0%,${k} 100%);color:${w};font-family:${O};font-size:${Se}px;letter-spacing:0.16em;text-transform:uppercase;cursor:pointer;overflow:hidden;transition:transform ${D}ms ${I},opacity ${D}ms ${I};box-shadow:0 2px 0 ${k};}.mushi-submit::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at center,rgba(255,255,255,0.35) 0%,transparent 60%);opacity:0;transform:scale(0.4);transition:opacity ${U}ms ${I},transform ${z}ms ${I};pointer-events:none;}.mushi-submit:hover{transform:translateY(-1px);box-shadow:0 3px 0 ${k},0 0 0 3px rgba(${_},0.18),0 4px 16px -4px rgba(${_},0.35);}.mushi-submit:hover::after{opacity:1;transform:scale(1.4);}.mushi-submit:active{transform:translateY(1px);box-shadow:0 1px 0 ${k};}.mushi-submit:disabled{cursor:wait;opacity:0.7;}.mushi-submit:focus-visible{outline:2px solid ${d};outline-offset:3px;}.mushi-submit-arrow{display:inline-block;transition:transform ${B}ms ${I};}.mushi-submit:hover .mushi-submit-arrow{transform:translateX(3px);}.mushi-brand-footer{padding:9px 14px 11px;border-top:1px solid ${p};color:${m};font-family:${O};font-size:9px;letter-spacing:0.16em;text-align:center;text-transform:uppercase;}.mushi-brand-link{color:inherit;text-decoration:none;text-underline-offset:3px;}.mushi-brand-link:hover{color:${l};text-decoration:underline;}.mushi-brand-link:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px;color:${d};text-decoration:underline;}.mushi-success{text-align:center;padding:28px 16px 20px;}.mushi-success-stamp{position:relative;width:96px;height:96px;margin:0 auto 16px;display:inline-flex;align-items:center;justify-content:center;}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:none;stroke:${d};stroke-width:3;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-stamp-ring 700ms ${I} 80ms forwards;filter:drop-shadow(0 0 6px rgba(${_},0.5));}.mushi-success-stamp-label{font-family:${he};font-size:18px;font-weight:600;color:${d};letter-spacing:0.04em;transform:rotate(-6deg);opacity:0;animation:mushi-stamp-press 360ms ${I} 600ms forwards;}.mushi-success-meta{font-family:${O};font-size:11px;letter-spacing:0.10em;text-transform:uppercase;color:${l};}.mushi-success-receipt{margin-top:14px;width:100%;max-width:280px;display:flex;flex-direction:column;gap:6px;align-items:stretch;}.mushi-success-receipt-row{display:flex;align-items:center;justify-content:center;gap:8px;font-family:${O};font-size:11px;letter-spacing:0.05em;color:${l};}.mushi-success-receipt-label{text-transform:uppercase;letter-spacing:0.10em;color:${l};}.mushi-success-receipt-id{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:4px;background:transparent;border:1px dashed ${p};color:inherit;font-family:${O};font-size:12px;letter-spacing:0.02em;cursor:pointer;transition:opacity ${x}ms ${I};}.mushi-success-receipt-id:hover,.mushi-success-receipt-id:focus-visible{background:rgba(${_},0.06);border-color:${d};color:${d};outline:none;}.mushi-success-receipt-copy{font-size:11px;opacity:0.7;}.mushi-success-receipt-track{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 10px;border-radius:4px;background:${d};color:${b};font-family:${O};font-size:11px;letter-spacing:0.10em;text-transform:uppercase;text-decoration:none;transition:filter ${x}ms ease;}.mushi-success-receipt-track:hover,.mushi-success-receipt-track:focus-visible{filter:brightness(0.95);outline:none;}.mushi-success-receipt-spinner{width:11px;height:11px;border-radius:50%;border:1.5px solid ${p};border-top-color:${d};animation:mushi-receipt-spin 0.8s linear infinite;}@keyframes mushi-receipt-spin{to{transform:rotate(360deg);}}.mushi-success-receipt-hint{color:${l};font-style:italic;}.mushi-success-receipt-warn{color:${d};}.mushi-success-my-reports{display:block;margin:12px auto 0;font-size:12px;font-family:${O};color:${d};text-decoration:underline;text-underline-offset:2px;background:none;border:none;cursor:pointer;padding:4px 2px;}.mushi-success-my-reports:hover{opacity:0.75;}.mushi-success-sla{margin-top:2px;font-family:${he};font-size:12px;line-height:1.45;text-align:center;color:${l};max-width:260px;}.mushi-success-sla-default{opacity:0.85;}@keyframes mushi-stamp-ring{to{stroke-dashoffset:0;}}@keyframes mushi-stamp-press{0%{opacity:0;transform:rotate(-6deg) scale(1.3);}60%{opacity:1;transform:rotate(-6deg) scale(0.94);}100%{opacity:1;transform:rotate(-6deg) scale(1);}}.mushi-error{margin-top:10px;padding:8px 0 8px 10px;border-left:2px solid ${d};color:${d};font-size:12px;font-family:${O};letter-spacing:0.02em;}.mushi-rewards-nudge{border-top:1px solid ${p};padding:10px 0 4px;margin-top:6px;}.mushi-rewards-row{display:flex;align-items:center;gap:6px;margin-bottom:8px;}.mushi-tier-pip{width:7px;height:7px;border-radius:50%;flex-shrink:0;}.mushi-rewards-tier-name{font-family:${O};font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:${i};}.mushi-rewards-pts-count{font-family:${O};font-size:11px;color:${l};margin-right:auto;}.mushi-rewards-pts-earn{font-family:${O};font-size:10px;color:${d};letter-spacing:0.04em;white-space:nowrap;}.mushi-tier-bar-track{height:3px;background:${y};border-radius:2px;overflow:hidden;margin-bottom:5px;}.mushi-tier-bar-fill{height:100%;width:100%;background:${d};border-radius:2px;transform-origin:left center;transform:scaleX(var(--mushi-tier-pct,0));transition:transform ${z}ms ${I};}.mushi-rewards-next-label{font-family:${O};font-size:10px;color:${l};text-align:right;letter-spacing:0.02em;}.mushi-success-rewards{margin-top:14px;padding-top:12px;border-top:1px solid ${p};width:100%;}.mushi-success-pts-award{font-family:${O};font-size:22px;font-weight:700;color:${d};text-align:center;letter-spacing:0.06em;margin-bottom:10px;opacity:0;animation:mushi-pts-pop ${z}ms ${I} 900ms forwards;}.success-bar{margin:0 0 5px;}@keyframes mushi-pts-pop{from{opacity:0;transform:scale(0.75) translateY(6px);}to{opacity:1;transform:scale(1) translateY(0);}}.mushi-beta-strip{margin:0 16px 2px;padding:9px 12px;background:${S};border:1px solid rgba(${_},${s?"0.22":"0.16"});border-radius:4px;display:flex;flex-direction:column;gap:4px;}.mushi-beta-strip-row{display:flex;align-items:center;gap:8px;}.mushi-beta-tag{display:inline-flex;align-items:center;padding:1px 6px;border-radius:3px;background:${d};color:${w};font-family:${O};font-size:9px;font-weight:700;letter-spacing:0.14em;line-height:1.6;white-space:nowrap;flex-shrink:0;text-transform:uppercase;}.mushi-beta-msg{font-size:11px;color:${l};line-height:1.45;}.mushi-beta-contact-hint{font-size:10px;color:${m};font-family:${O};letter-spacing:0.06em;}.mushi-beta-perks{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;}.mushi-beta-perks li{font-size:12px;color:${v};font-weight:500;}.mushi-changelog{margin-top:5px;}.mushi-changelog-summary{font-size:11px;color:${h};cursor:pointer;list-style:none;display:flex;align-items:center;gap:4px;user-select:none;}.mushi-changelog-summary::before{content:'\u25B6';font-size:7px;opacity:0.6;transition:transform ${x}ms ${I};}.mushi-changelog[open] .mushi-changelog-summary::before{transform:rotate(90deg);}.mushi-changelog-list{margin:5px 0 0 4px;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;}.mushi-changelog-list li{font-size:11px;color:${h};line-height:1.5;}.mushi-beta-success-footer{margin-top:14px;padding:10px 14px;background:${S};border:1px solid rgba(${_},${s?"0.18":"0.14"});border-radius:4px;display:flex;flex-direction:column;gap:3px;text-align:left;}.mushi-beta-success-line{font-size:12px;color:${v};line-height:1.5;}.mushi-beta-success-dim{opacity:0.65;font-size:12px;}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${be}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${O};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${ee});animation:mushi-banner-slide-in ${U}ms ${I} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${E};color:${M};border-bottom:1.5px solid ${A};}.mushi-banner.neon.bottom{border-top:1.5px solid ${A};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${M};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${d};color:${b};border-bottom:1.5px solid ${R};}.mushi-banner.brand.bottom{border-top:1.5px solid ${R};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${b};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${s?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${i};border-bottom:1px solid ${y};}.mushi-banner.subtle.bottom{border-top:1px solid ${y};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${i};border:1px solid ${y};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${s?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${be}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${y};background:${s?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${me}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${x}ms ${I};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${x}ms ${I};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${d};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${x}ms ${I};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${O};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${x}ms ${I};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle{stroke-dashoffset:0;}.mushi-success-stamp-label{opacity:1;}.mushi-success-pts-award{opacity:1;}}.mushi-community-footer{display:flex;align-items:center;gap:8px;padding:10px 0 2px;border-top:1px solid ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.07)"};margin-top:8px;flex-wrap:wrap}.mushi-community-btn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mushi-section-label{margin:0 0 6px;font-family:${O};font-size:11px;letter-spacing:0.06em;text-transform:uppercase;color:${m};}.mushi-more-nav{margin-top:4px}.mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${p};padding-top:2px}.mushi-more-nav-link{align-self:flex-start;margin:6px 0 2px;padding:0}.mushi-more-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:11px 0;border:none;border-top:1px dashed ${p};background:transparent;cursor:pointer;color:${l};font-family:${Y};font-size:13px;text-align:left;transition:opacity ${D}ms ${I};}.mushi-more-toggle:hover{color:${d};}.mushi-more-toggle:hover .mushi-more-toggle-arrow{transform:translateX(3px);}.mushi-more-toggle-text{flex:1;}.mushi-more-toggle-count{font-family:${O};font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:${m};background:${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"};padding:2px 6px;border-radius:10px;}.mushi-more-toggle-arrow{font-size:14px;opacity:0.5;transition:transform ${D}ms ${I};}@keyframes mushi-step-in{0%{opacity:0;transform:translateX(8px);}100%{opacity:1;transform:translateX(0);}}.mushi-body{animation:mushi-step-in 160ms ease both;}@media (prefers-reduced-motion:reduce){.mushi-body{animation:none;}}.mushi-categories-expanded{animation:mushi-step-in ${D}ms ${I} both;}.mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${d};font-size:12px;font-family:${O};text-decoration:underline;text-underline-offset:2px}.mushi-link-btn:hover{opacity:0.8}.mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px}.mushi-nav-item{display:block;width:100%;text-align:left;background:${s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"};border:1px solid ${s?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"};border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;font-size:13px;color:${i};transition:opacity ${x}ms ${I}}.mushi-nav-item:hover{background:${s?"rgba(255,255,255,0.09)":"rgba(0,0,0,0.07)"}}.mushi-account-card{display:flex;align-items:center;gap:12px;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};border-radius:10px;padding:12px 14px;margin-bottom:14px}.mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${S};color:${v};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}.mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}.mushi-account-info strong{font:700 14px/1.3 inherit;color:${i}}.mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${h};font-family:${O}}.mushi-account-rank{display:block}.mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}.mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${a};overflow:hidden;flex-shrink:0}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}.mushi-app-icon-initials{font-size:9px;font-weight:700;color:${h};line-height:1}.mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}.mushi-header-host-icon{display:block;width:20px;height:20px;border-radius:4px;object-fit:contain}.mushi-xapp-group{margin-bottom:14px}.mushi-label{display:block;font-weight:600;margin-bottom:6px}.mushi-assistant{display:flex;flex-direction:column;height:100%;min-height:0;max-height:60vh}.mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}.mushi-assistant-greeting{font:400 14px/1.5 ${Y};color:${l};padding:6px 2px}.mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.mushi-assistant-chip{background:${S};color:${v};border:1px solid ${y};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${Y};transition:opacity ${x}ms ${I},transform ${x}ms ${I}}.mushi-assistant-chip:hover{background:rgba(${_},${s?"0.22":"0.14"})}.mushi-assistant-chip:focus-visible{outline:2px solid ${d};outline-offset:2px}.mushi-assistant-msg{max-width:85%;padding:8px 12px;border-radius:12px;font:400 14px/1.45 ${Y};white-space:pre-wrap;word-break:break-word}.mushi-assistant-msg-user{align-self:flex-end;background:${d};color:${b};border-bottom-right-radius:4px}.mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${i};border-bottom-left-radius:4px}.mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}.mushi-assistant-error{align-self:flex-start;color:${g};font-size:12px;padding:4px 2px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.mushi-assistant-recovery{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.mushi-assistant-recovery-footer{margin-top:4px;padding-top:4px}.mushi-assistant-report-cta{background:${d};color:${b};border:none;border-radius:999px;padding:6px 14px;font-size:12px;cursor:pointer;font-family:${Y};font-weight:600}.mushi-assistant-report-cta:hover{opacity:0.92}.mushi-assistant-report-cta:focus-visible{outline:2px solid ${d};outline-offset:2px}.mushi-assistant-report-link{background:transparent;color:${v};border:none;padding:0;font-size:12px;cursor:pointer;font-family:${Y};text-decoration:underline;text-underline-offset:2px}.mushi-assistant-report-link:hover{opacity:0.85}.mushi-assistant-report-link:focus-visible{outline:2px solid ${d};outline-offset:2px}.mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${p};padding-top:8px}.mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${y};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${Y};background:${o};color:${i}}.mushi-assistant-input:focus-visible{outline:2px solid ${d};outline-offset:1px}.mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${d};color:${b};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}.mushi-assistant-submit:hover{transform:translateY(-1px)}.mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}.mushi-assistant-submit:focus-visible{outline:2px solid ${d};outline-offset:2px}`}var Ve="@mushi-mushi/web",pe="1.30.0";function Pi(t){switch(t.step){case "category":return ou(t);case "intent":return mu(t);case "details":return gu(t);case "success":return bu(t);case "reports":return cu(t);case "report-detail":return fu(t);case "leaderboard":return du(t);case "roadmap":return uu(t);case "account":return pu(t);case "cross-app-reports":return hu(t);case "assistant":return ru(t)}}function ru(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],o=t.assistantTurns.length===0,a=o?`<div class="mushi-assistant-greeting">${f(n)}</div>
6
+ ${s.length?`<div class="mushi-assistant-suggestions">${s.map(h=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${f(h)}">${f(h)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(h=>{let p=h.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",y=h.options&&h.options.length?`<div class="mushi-assistant-suggestions">${h.options.map(S=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${f(S)}">${f(S)}</button>`).join("")}</div>`:"",d=h.offerReport?`<div class="mushi-assistant-recovery">
7
+ <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${f(e.assistant.fileReportCta)}</button>
8
+ </div>`:"";return `<div class="mushi-assistant-msg ${p}">${f(h.text)}</div>${y}${d}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${f(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${f(t.assistantError)}
9
+ <button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${f(e.assistant.fileReportCta)}</button>
10
+ </div>`:"",m=!o&&!t.assistantSending&&!t.assistantError?`<div class="mushi-assistant-recovery mushi-assistant-recovery-footer">
11
+ <button type="button" class="mushi-assistant-report-link" data-action="assistant-report">${f(e.assistant.stillStuckCta)}</button>
12
+ </div>`:"";return `
13
+ ${ke(t,{title:r,showBack:true})}
14
+ <div class="mushi-assistant">
15
+ <div class="mushi-assistant-log">
16
+ ${a}
17
+ ${i}
18
+ ${l}
19
+ ${m}
20
+ </div>
21
+ <form class="mushi-assistant-form" data-action="assistant-send">
22
+ <textarea
23
+ class="mushi-assistant-input"
24
+ rows="1"
25
+ placeholder="${f(e.assistant.inputPlaceholder)}"
26
+ ${t.assistantSending?"disabled":""}
27
+ ></textarea>
28
+ <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${f(e.assistant.sendAriaLabel)}">\u2191</button>
29
+ </form>
30
+ </div>
31
+ `}function Di(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
32
+ <div class="mushi-outdated" role="status">
33
+ <strong>Mushi SDK ${f(r)}</strong>
34
+ ${e?`latest is ${f(e)}.`:"needs attention."}
35
+ ${s?`<span>${f(s)}</span>`:""}
36
+ </div>
37
+ `}function Hi(t){if(t.config.brandFooter!==true)return "";let e=wi(t.brandRef);return `<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${f(e)}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${f(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function ke(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:a}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${f(r.widget.back)}">\u2190 ${f(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${f(a??"Mushi \xB7 Report")}</span>`,l=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${qn}"><b>${Fn(o)}</b> / ${Fn(qn)}</span>`:"";return `
38
+ <div class="mushi-header">
39
+ <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${f(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
40
+ <div class="mushi-header-titles">
41
+ ${i}
42
+ <h3>${n}</h3>
43
+ </div>
44
+ <div class="mushi-header-meta">
45
+ ${l}
46
+ <button type="button" class="mushi-close" data-action="close" aria-label="${f(r.widget.close)}">\u2715</button>
47
+ </div>
48
+ </div>
49
+ `}function nu(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function su(t){let e=t.locale,r=e.step1.moreNav,n=nu(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),a=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
50
+ <span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
51
+ <div class="mushi-option-text">
52
+ <span class="mushi-option-label">${f(a)}</span>
53
+ <span class="mushi-option-desc">${f(r.yourReportsDesc)}</span>
54
+ </div>
55
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
56
+ </button>`];t.callbacks.onFeatureBoardRequest&&i.push(`
57
+ <button type="button" class="mushi-option-btn" data-action="roadmap">
58
+ <span class="mushi-option-icon" aria-hidden="true">\u{1F5F3}\uFE0F</span>
59
+ <div class="mushi-option-text">
60
+ <span class="mushi-option-label">${f(r.communityIdeas)}</span>
61
+ <span class="mushi-option-desc">${f(r.communityIdeasDesc)}</span>
62
+ </div>
63
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
64
+ </button>`),t.callbacks.assistantEnabled&&i.push(`
65
+ <button type="button" class="mushi-option-btn" data-action="assistant">
66
+ <span class="mushi-option-icon" aria-hidden="true">\u{1F4AC}</span>
67
+ <div class="mushi-option-text">
68
+ <span class="mushi-option-label">${f(t.callbacks.assistantLabel||e.assistant.defaultLabel)}</span>
69
+ <span class="mushi-option-desc">${f(e.assistant.hubDescription)}</span>
70
+ </div>
71
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
72
+ </button>`),t.rewardsState&&i.push(`
73
+ <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${f(r.leaderboard)}</button>`),i.push(`
74
+ <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
75
+ ${t.testerInfo?`\u{1F464} ${f(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${f(r.joinCommunity)}`}
76
+ </button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
77
+ <div class="mushi-more-nav">
78
+ <button
79
+ type="button"
80
+ class="mushi-more-toggle mushi-more-nav-toggle"
81
+ data-action="toggle-more-nav"
82
+ aria-expanded="${t.showMoreNav?"true":"false"}"
83
+ >
84
+ <span class="mushi-more-toggle-text">${f(s)}</span>
85
+ <span class="mushi-more-toggle-arrow" aria-hidden="true">${t.showMoreNav?"\u25BE":"\u25B8"}</span>
86
+ </button>
87
+ ${l}
88
+ </div>
89
+ `}function ou(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(y=>({id:y.id,icon:y.icon??"\u{1F4AC}",label:y.label,desc:y.description??""})):["bug","slow","visual","confusing","other"].map(y=>({id:y,icon:Hr[y],label:e.step1.categories[y],desc:e.step1.categoryDescriptions[y]})),n=({id:y,icon:d,label:S,desc:v})=>`
90
+ <button type="button" class="mushi-option-btn" data-category="${f(y)}" role="radio" aria-checked="false">
91
+ <span class="mushi-option-icon" aria-hidden="true">${f(d)}</span>
92
+ <div class="mushi-option-text">
93
+ <span class="mushi-option-label">${f(S)}</span>
94
+ ${v?`<span class="mushi-option-desc">${f(v)}</span>`:""}
95
+ </div>
96
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
97
+ </button>
98
+ `,s=t.config.categories&&t.config.categories.length>0,o=1,a=s?r:r.slice(0,o),i=s?[]:r.slice(o),l=i.length>0,m=a.map(n).join(""),h=i.map(n).join(""),p=l?t.showAllCategories?`<div class="mushi-categories-expanded">${h}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
99
+ <span class="mushi-more-toggle-text">${f(e.step1.moreCategoriesLabel)}</span>
100
+ <span class="mushi-more-toggle-count">${f(e.step1.moreCategoriesCount.replace("{n}",String(i.length)))}</span>
101
+ <span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
102
+ </button>`:"";return `
103
+ ${ke(t,{title:e.step1.heading,step:Ur.category})}
104
+ ${t.config.betaMode?.enabled?lu(t):""}
105
+ <div class="mushi-body" role="radiogroup" aria-label="${f(e.step1.heading)}">
106
+ <p class="mushi-section-label">${f(e.step1.reportSectionLabel)}</p>
107
+ ${iu(t)}
108
+ ${m}
109
+ ${p}
110
+ ${t.rewardsState?wu(t):""}
111
+ ${su(t)}
112
+ </div>
113
+ `}function iu(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
114
+ <button
115
+ type="button"
116
+ class="mushi-option-btn mushi-feature-entry"
117
+ data-action="feature-request"
118
+ aria-label="${f(n)}"
119
+ >
120
+ <span class="mushi-option-icon" aria-hidden="true">\u2728</span>
121
+ <div class="mushi-option-text">
122
+ <span class="mushi-option-label">${f(n)}</span>
123
+ <span class="mushi-option-desc">${f(s)}</span>
124
+ </div>
125
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
126
+ </button>
127
+ `}function au(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(a=>`<li>\u2022 ${f(a)}</li>`).join(""),s=f(t.locale.flows.changelog.whatsNew.replace("{version}",r.version));return `
128
+ <details class="mushi-changelog">
129
+ <summary class="mushi-changelog-summary">${r.date?`${s} \xB7 ${f(r.date)}`:s}</summary>
130
+ <ul class="mushi-changelog-list">${n}</ul>
131
+ </details>
132
+ `}function lu(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=f(e.appName??"This app"),s=e.message?f(e.message):f(r.defaultMessage).replace("{appName}",n),o=e.contactEmail?f(e.contactEmail):null,a=e.perks??[];return `
133
+ <div class="mushi-beta-strip" role="note" aria-label="${f(r.ariaLabel)}">
134
+ <div class="mushi-beta-strip-row">
135
+ <span class="mushi-beta-tag" aria-hidden="true">BETA</span>
136
+ <span class="mushi-beta-msg">${s}</span>
137
+ </div>
138
+ ${o?`<div class="mushi-beta-contact-hint">${f(r.contactHint).replace("{email}",o)}</div>`:""}
139
+ ${a.length>0?`
140
+ <ul class="mushi-beta-perks" aria-label="Beta tester perks">
141
+ ${a.map(i=>`<li>\u2713 ${f(i)}</li>`).join("")}
142
+ </ul>
143
+ `:""}
144
+ ${au(t)}
145
+ </div>
146
+ `}function cu(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=Br(s.status),i=Nr(s.created_at),l=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
147
+ <button type="button" class="mushi-report-row" data-report-id="${f(s.id)}" aria-label="View report: ${f(o)}">
148
+ <div class="mushi-report-main">
149
+ <span class="mushi-report-title">${f(o)}</span>
150
+ <span class="mushi-report-meta">
151
+ <span class="mushi-report-status mushi-status-${a}">${f(Un(s.status))}</span>
152
+ ${i?`<span class="mushi-report-when">${f(i)}</span>`:""}
153
+ ${l}
154
+ </span>
155
+ </div>
156
+ <span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
157
+ </button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${f(e.reports.leaderboardLink)}</button>`:"";return `
158
+ ${ke(t,{title:e.reports.title,showBack:true,eyebrow:e.eyebrows.inbox})}
159
+ <div class="mushi-body">
160
+ ${t.listLoading?`<p class="mushi-muted">${f(e.reports.loading)}</p>`:""}
161
+ ${t.reporterError?`<p class="mushi-error-inline">${f(t.reporterError)}</p>`:""}
162
+ ${r||(t.listLoading?"":`<p class="mushi-muted">${f(e.reports.empty)}</p>`)}
163
+ ${n}
164
+ </div>
165
+ `}function uu(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=f(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),i=!!n.shipped_at,l=!!n.my_vote,m=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),h=e.roadmap.voteCount.replace("{n}",String(a));return `
166
+ <div class="mushi-report-row mushi-roadmap-row">
167
+ <div class="mushi-report-main">
168
+ <span class="mushi-report-title">${o}</span>
169
+ <span class="mushi-report-meta">
170
+ <span class="mushi-report-status">${f(m)}</span>
171
+ <span class="mushi-report-when">${f(h)}</span>
172
+ </span>
173
+ </div>
174
+ ${t.callbacks.onFeatureBoardVote?`
175
+ <button type="button" class="mushi-vote-btn" data-vote-id="${f(s)}" aria-pressed="${l}">
176
+ ${l?f(e.roadmap.voted):f(e.roadmap.vote)}
177
+ </button>`:""}
178
+ </div>`}).join("");return `
179
+ ${ke(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
180
+ <div class="mushi-body">
181
+ ${t.listLoading?`<p class="mushi-muted">${f(e.roadmap.loading)}</p>`:""}
182
+ ${t.reporterError?`<p class="mushi-error-inline">${f(t.reporterError)}</p>`:""}
183
+ ${r||(t.listLoading?"":`<p class="mushi-muted">${f(e.roadmap.empty)}</p>`)}
184
+ </div>
185
+ `}function du(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(l=>({tester_id:"",public_handle:null,display_name:l.display_name,rank:0,points_30d:l.points_30d,total_points:l.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,a=n.map((l,m)=>{let h=l.rank||m+1,p=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
186
+ <div class="mushi-lb-row ${h===1?"mushi-lb-top":""}${p?" mushi-lb-me":""}">
187
+ <span class="mushi-lb-rank">#${h}</span>
188
+ <span class="mushi-lb-name">${f(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
189
+ <span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
190
+ </div>
191
+ `}).join(""),i=o?`<div class="mushi-lb-myrank">${f(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${f(e.leaderboard.signInPrompt)}</button>`;return `
192
+ ${ke(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
193
+ <div class="mushi-body">
194
+ ${s?`<p class="mushi-muted">${f(e.leaderboard.loading)}</p>`:""}
195
+ ${!s&&!n.length?`<p class="mushi-muted">${f(e.leaderboard.empty)}</p>`:""}
196
+ <div class="mushi-lb-list">${a}</div>
197
+ ${i}
198
+ <p class="mushi-lb-note">${f(e.leaderboard.footer)}</p>
199
+ </div>
200
+ `}function pu(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
201
+ ${ke(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
202
+ <div class="mushi-body">
203
+ <div class="mushi-account-card">
204
+ <div class="mushi-account-avatar">${f(n.charAt(0).toUpperCase())}</div>
205
+ <div class="mushi-account-info">
206
+ <strong>${f(n)}</strong>
207
+ ${s?`<span class="mushi-account-rank">${f(o)}</span>`:""}
208
+ </div>
209
+ </div>
210
+ <button type="button" class="mushi-nav-item" data-action="open-cross-app-reports">
211
+ ${f(e.account.crossAppReports)}
212
+ </button>
213
+ <button type="button" class="mushi-nav-item" data-action="open-global-leaderboard">
214
+ ${f(e.account.viewLeaderboard)}
215
+ </button>
216
+ <button type="button" class="mushi-link-btn" data-action="sign-out-tester">${f(e.account.signOut)}</button>
217
+ </div>
218
+ `}return t.magicLinkSent?`
219
+ ${ke(t,{title:e.account.checkEmailTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
220
+ <div class="mushi-body">
221
+ <p class="mushi-muted">${f(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
222
+ <button type="button" class="mushi-link-btn" data-action="resend-magic-link">${f(e.account.resendEmail)}</button>
223
+ ${t.magicLinkError?`<p class="mushi-error">${f(t.magicLinkError)}</p>`:""}
224
+ </div>
225
+ `:`
226
+ ${ke(t,{title:e.account.joinTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
227
+ <div class="mushi-body">
228
+ <p class="mushi-muted">${f(e.account.signInPrompt)}</p>
229
+ <label class="mushi-label" for="mushi-email-input">${f(e.account.emailLabel)}</label>
230
+ <input
231
+ id="mushi-email-input"
232
+ type="email"
233
+ class="mushi-textarea"
234
+ data-role="magic-link-email"
235
+ placeholder="${f(e.account.emailPlaceholder)}"
236
+ autocomplete="email"
237
+ value="${f(t.magicLinkEmail)}"
238
+ style="padding: 10px 12px; height: auto; resize: none;"
239
+ />
240
+ ${t.magicLinkError?`<p class="mushi-error">${f(t.magicLinkError)}</p>`:""}
241
+ <button type="button" class="mushi-submit" data-action="send-magic-link"${t.magicLinkSending?' disabled aria-disabled="true"':""}>
242
+ <span>${t.magicLinkSending?f(e.account.sending):f(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
243
+ </button>
244
+ </div>
245
+ `}function hu(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let s=[...n.entries()].map(([o,a])=>`
246
+ <div class="mushi-xapp-group">
247
+ <div class="mushi-xapp-app-head">
248
+ ${Ci({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
249
+ <h4 class="mushi-xapp-app-name">${f(a.name)}</h4>
250
+ </div>
251
+ ${a.reports.map(l=>{let m=Br(l.status);return `
252
+ <div class="mushi-report-row" data-report-id="${f(l.id)}" tabindex="0" role="button">
253
+ <span class="mushi-report-status mushi-status-${m}">${f(Un(l.status))}</span>
254
+ <span class="mushi-report-title">${f(l.title??l.category)}</span>
255
+ <span class="mushi-report-when">${f(Nr(l.created_at))}</span>
256
+ </div>
257
+ `}).join("")}
258
+ </div>
259
+ `).join("");return `
260
+ ${ke(t,{title:e.crossApp.title,showBack:true,eyebrow:e.eyebrows.allApps})}
261
+ <div class="mushi-body">
262
+ ${t.crossAppLoading?`<p class="mushi-muted">${f(e.crossApp.loading)}</p>`:""}
263
+ ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${f(e.crossApp.empty)}</p>`:""}
264
+ ${s}
265
+ </div>
266
+ `}function fu(t){let e=t.locale.flows,r=t.reporterReports.find(l=>l.id===t.selectedReportId),n=r?.status??"new",s=Br(n),o=r?.created_at?Nr(r.created_at):"",a=t.actionPending?' disabled aria-busy="true"':"",i=t.reporterComments.map(l=>`
267
+ <div class="mushi-thread-comment ${l.author_kind}">
268
+ <strong>${f(l.author_kind==="reporter"?"You":l.author_name??"Developer")}</strong>
269
+ <p>${f(l.body)}</p>
270
+ </div>
271
+ `).join("");return `
272
+ ${ke(t,{title:e.thread.title,showBack:true,eyebrow:e.eyebrows.thread})}
273
+ <div class="mushi-body">
274
+ <div class="mushi-thread-summary">
275
+ <div class="mushi-thread-summary-meta">
276
+ <span class="mushi-report-status mushi-status-${s}">${f(vi(n))}</span>
277
+ ${o?`<span class="mushi-report-when">Reported ${f(o)}</span>`:""}
278
+ </div>
279
+ <p>${f(r?.summary??r?.description??`#${(t.selectedReportId??"").slice(0,8)}`)}</p>
280
+ </div>
281
+ <div class="mushi-thread">
282
+ ${t.threadLoading?`<div class="mushi-thread-skeleton" role="status" aria-label="${f(e.thread.loading)}"><span></span><span></span></div>`:t.threadError?`<p class="mushi-error-inline" role="alert">${f(t.threadError)}</p>
283
+ <button type="button" class="mushi-link-btn" data-action="retry-thread">${f(e.thread.retry)}</button>`:i||`<p class="mushi-muted">${f(e.thread.empty)}</p>`}
284
+ </div>
285
+ ${["fixed","resolved","verified"].includes(n)?`
286
+ <div class="mushi-verify-actions" role="group" aria-label="Fix verification">
287
+ <button type="button" class="mushi-option-btn" data-action="reporter-confirms"${a}>${f(e.thread.confirmFixed)}</button>
288
+ <button type="button" class="mushi-option-btn" data-action="reporter-not-fixed"${a}>${f(e.thread.notFixed)}</button>
289
+ </div>
290
+ `:""}
291
+ </div>
292
+ ${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${f(t.actionError)}</p>`:""}
293
+ <div class="mushi-footer mushi-thread-composer">
294
+ <textarea class="mushi-textarea" data-role="reporter-reply" rows="2" placeholder="${f(e.thread.replyPlaceholder)}"></textarea>
295
+ <button type="button" class="mushi-submit" data-action="reporter-reply"${a}>
296
+ <span>${f(e.thread.send)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
297
+ </button>
298
+ </div>
299
+ `}function mu(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
300
+ <button type="button" class="mushi-option-btn" data-intent="${f(l)}">
301
+ <span class="mushi-option-text"><span class="mushi-option-label">${f(l)}</span></span>
302
+ <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
303
+ </button>
304
+ `).join(""),a=t.categoryIcon(r),i=t.categoryLabel(r);return `
305
+ ${ke(t,{title:e.step2.heading,showBack:true,step:Ur.intent})}
306
+ <div class="mushi-body">
307
+ <div class="mushi-selected-category">
308
+ <span aria-hidden="true">${f(a)}</span>
309
+ <span>${f(i)}</span>
310
+ </div>
311
+ <div class="mushi-intents">
312
+ ${o}
313
+ </div>
314
+ </div>
315
+ `}function gu(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotRetry:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementError?e.step3.elementFailed:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementError?"error":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=t.detailMode,l=i==="feature"?e.step3.featurePlaceholder:i==="other"?e.step3.otherPlaceholder:e.step3.descriptionPlaceholder,h=(i==="feature"?e.step3.featureExamples:i==="other"?[]:e.step3.examplePrompts).map(y=>`<button type="button" class="mushi-example-chip" data-example="${f(y)}">${f(y)}</button>`).join(""),p=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-error-inline" role="status" data-role="screenshot-reason">${f(e.step3.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` <button type="button" class="mushi-link-btn" data-action="screenshot-share-tab">${f(e.step3.screenshotShareTab)}</button>`:""}</p>`:"";return `
316
+ ${ke(t,{title:e.step3.heading,showBack:true,step:Ur.details})}
317
+ <div class="mushi-body">
318
+ ${h?`<div class="mushi-example-chips" aria-label="Example prompts">${h}</div>`:""}
319
+ <div class="mushi-textarea-wrap">
320
+ <textarea
321
+ class="mushi-textarea"
322
+ placeholder="${f(l)}"
323
+ rows="4"
324
+ maxlength="${jn}"
325
+ aria-label="${f(e.step3.heading)}"
326
+ autofocus
327
+ ></textarea>
328
+ <div class="mushi-char-counter" data-role="char-counter" aria-hidden="true">${f(Qt("",r,e.step3.charsNeeded))}</div>
329
+ </div>
330
+ <div class="mushi-attachments">
331
+ ${t.screenshotAvailable?`<button type="button" class="${s}"
332
+ data-action="screenshot"
333
+ ${t.screenshotCapturing?"disabled":""}
334
+ aria-label="${f(n)}"
335
+ >
336
+ ${t.screenshotCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F4F8}"}
337
+ ${f(n)}
338
+ </button>`:""}
339
+ ${t.screenshotAttached&&t.allowScreenshotRemove?'<button type="button" class="mushi-attach-btn danger" data-action="remove-screenshot" aria-label="Remove screenshot">\u2715 Remove</button>':""}
340
+ ${t.screenshotAttached?'<button type="button" class="mushi-attach-btn" data-action="annotate-screenshot" aria-label="Mark up screenshot">\u270F Mark up</button><div class="mushi-annotate-host" data-role="annotate-host"></div>':""}
341
+ ${t.elementAvailable?`<button type="button" class="${a}"
342
+ data-action="element"
343
+ ${t.elementCapturing?"disabled":""}
344
+ aria-label="${f(o)}"
345
+ >
346
+ ${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
347
+ ${f(o)}
348
+ </button>`:""}
349
+ </div>
350
+ ${p}
351
+ ${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
352
+ <img src="${f(t.screenshotPreview)}" alt="${f(e.step3.screenshotPreviewAlt)}" />
353
+ ${t.screenshotHint?`<figcaption class="mushi-screenshot-hint">\u26A0 ${f(t.screenshotHint)}</figcaption>`:""}
354
+ </figure>`:""}
355
+ <div class="mushi-error" style="display:none" role="alert"></div>
356
+ ${t.identifiedUser?`<p class="mushi-identified-user" aria-label="Reporting as ${f(t.identifiedUser.name??t.identifiedUser.email??"")}">\u{1F464} Reporting as <strong>${f(t.identifiedUser.name??t.identifiedUser.email??"you")}</strong></p>`:""}
357
+ </div>
358
+ <div class="mushi-footer">
359
+ <span class="mushi-footer-hint" aria-hidden="true">${f(e.step3.submitHint.replace("{key}",Si(Ei())))}</span>
360
+ <button type="button" class="mushi-submit" data-action="submit"${t.submitting?" disabled":""}>
361
+ <span>${t.submitting?e.widget.submitting:e.widget.submit}</span>
362
+ <span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
363
+ </button>
364
+ </div>
365
+ `}function Oi(t){let e=t.locale.flows.success;switch(t.lastSubmitFailureKind){case "rate_limited":return e.rateLimited;case "quota":return e.quotaBlocked;case "permanent":return e.permanentFailed;case "retrying":return e.retrying}return t.lastSubmitQueuedOffline?e.queuedOffline:null}function bu(t){let e=t.locale,r=e.flows.success,n=t.submittedAt??new Date,s=t.config.locale==="auto"?void 0:t.config.locale,o=Oi(t),a=!o&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return `
366
+ ${ke(t,{title:f(o??r.title),eyebrow:e.flows.eyebrows.receipt})}
367
+ <div class="mushi-body">
368
+ <div class="mushi-success">
369
+ <div class="mushi-success-stamp" aria-hidden="true">
370
+ <svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><circle cx="50" cy="50" r="44"/></svg>
371
+ <span class="mushi-success-stamp-label">\u53D7</span>
372
+ </div>
373
+ <time class="mushi-success-meta" datetime="${n.toISOString()}">${f(Ri(n,s))}</time>
374
+ ${yu(t)}
375
+ ${t.rewardsState?xu(t):""}
376
+ ${t.config.betaMode?.enabled?vu(t):""}
377
+ ${a?`<button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="track-report">${f(r.trackReport)}</button>`:""}
378
+ </div>
379
+ </div>
380
+ <div class="mushi-footer">
381
+ <span></span>
382
+ <button type="button" class="mushi-submit" data-action="done"><span>${f(r.done)}</span></button>
383
+ </div>
384
+ `}function yu(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(Oi(t)){let i=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `
385
+ <div class="mushi-success-receipt" role="status">
386
+ <div class="mushi-success-receipt-row mushi-success-receipt-warn">
387
+ <span class="mushi-success-receipt-hint">${f(i)}</span>
388
+ </div>
389
+ </div>
390
+ `}if(!t.lastReportId)return `
391
+ <div class="mushi-success-receipt" role="status">
392
+ <div class="mushi-success-receipt-row">
393
+ <span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
394
+ <span class="mushi-success-receipt-hint">${f(e.delivering)}</span>
395
+ </div>
396
+ ${Ai(t)}
397
+ </div>
398
+ `;let n=`#${t.lastReportId.slice(0,8)}`,s=(t.config.dashboardUrl??"").replace(/\/$/,""),o=s?`${s}/reports/${encodeURIComponent(t.lastReportId)}`:"",a=t.lastSubmitScreenshotDropped?`
399
+ <div class="mushi-success-receipt-row mushi-success-receipt-warn">
400
+ <span class="mushi-success-receipt-hint">${f(e.screenshotDropped)}</span>
401
+ </div>
402
+ `:"";return `
403
+ <div class="mushi-success-receipt" role="status">
404
+ <div class="mushi-success-receipt-row">
405
+ <span class="mushi-success-receipt-label">${f(e.receipt)}</span>
406
+ <button
407
+ type="button"
408
+ class="mushi-success-receipt-id"
409
+ data-action="copy-report-id"
410
+ data-copy-id="${f(t.lastReportId)}"
411
+ title="Copy report id ${f(t.lastReportId)}"
412
+ aria-label="Copy report id ${f(t.lastReportId)}"
413
+ >${f(n)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
414
+ </div>
415
+ ${o?`
416
+ <a
417
+ class="mushi-success-receipt-track"
418
+ href="${f(o)}"
419
+ target="_blank"
420
+ rel="noopener noreferrer"
421
+ >${f(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
422
+ `:""}
423
+ ${a}
424
+ ${Ai(t)}
425
+ </div>
426
+ `}function Ai(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${f(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${f(t.locale.flows.success.slaDefault)}</div>`}function vu(t){let e=t.config.betaMode,r=e.contactEmail?f(e.contactEmail):null,n=f(e.appName??"the team");return `
427
+ <div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
428
+ ${r?`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${r}</div>`:`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${n}</div>`}
429
+ </div>
430
+ `}function wu(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",a=e?.slug??"free",i=t.tierColor(a),l=100,m="";if(r){let h=e?.pointsThreshold??0,p=r.pointsThreshold;l=p>h?Math.round(Math.min(1,(n-h)/(p-h))*100):100,m=`${Math.max(0,p-n).toLocaleString()} pts to ${f(r.displayName)}`;}return `
431
+ <div class="mushi-rewards-nudge" aria-label="Rewards progress">
432
+ <div class="mushi-rewards-row">
433
+ <span class="mushi-tier-pip" style="background:${i}" aria-hidden="true"></span>
434
+ <span class="mushi-rewards-tier-name">${f(o)}</span>
435
+ <span class="mushi-rewards-pts-count">${n.toLocaleString()} pts</span>
436
+ <span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
437
+ </div>
438
+ ${r?`
439
+ <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${f(r.displayName)}">
440
+ <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${l/100}"></div>
441
+ </div>
442
+ <div class="mushi-rewards-next-label">${m}</div>
443
+ `:""}
444
+ </div>
445
+ `}function xu(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,a=100,i="";if(r){let l=e?.pointsThreshold??0,m=r.pointsThreshold;a=m>l?Math.round(Math.min(1,(o-l)/(m-l))*100):100;let h=Math.max(0,m-o);i=h>0?`${h.toLocaleString()} pts to ${f(r.displayName)}`:`\u{1F389} ${f(r.displayName)} reached!`;}return `
446
+ <div class="mushi-success-rewards">
447
+ <div class="mushi-success-pts-award">+${s} pts</div>
448
+ ${r?`
449
+ <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${f(r.displayName)}">
450
+ <div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div>
451
+ </div>
452
+ <div class="mushi-rewards-next-label">${i}</div>
453
+ `:""}
454
+ </div>
455
+ `}function Su(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var Wr=class t{constructor(e={},r,n=pe){this.sdkVersion=n;this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=Wn(this.config.locale==="auto"?void 0:this.config.locale);let s=gi();s?.turns.length&&(this.assistantTurns=s.turns,this.assistantThreadId=s.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=Wn(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Hr[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Or,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let s=n.text??"\u2026",o=Su(s);this.assistantTurns.push({role:"assistant",text:s,...o?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}persistAssistantSession(){bi({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,yi(),this.step==="assistant"&&this.render();}openReportFromAssistant(){this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false,this.step="category",this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>{e.classList.remove("mushi-trigger-pulse");},2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e&&(this.screenshotError=false,this.screenshotErrorReason=null),e||(this.screenshotPreview=null),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(e,r){this.screenshotError=e,this.screenshotErrorReason=e?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="");}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText=`
2218
456
  position: fixed;
2219
457
  bottom: 24px;
2220
458
  left: 50%;
@@ -2247,7 +485,7 @@
2247
485
  backdrop-filter: blur(4px);
2248
486
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
2249
487
  animation: mushi-fade-in 0.15s ease forwards;
2250
- `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.step==="leaderboard"&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&(this.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",f=e.zIndex??(this.config.zIndex??99999)-1,p=document.createElement("div");p.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,p.style.setProperty("--mushi-banner-z",String(f)),p.setAttribute("role","banner");let h=document.createElement("button");if(h.className="mushi-banner-dismiss",h.textContent="\u2715",h.setAttribute("aria-label","Dismiss feedback banner"),h.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let g=document.createElement("div");g.className="mushi-banner-body";let d=e.label===false?null:e.label??"Beta";if(d){let $=document.createElement("span");$.className="mushi-banner-pill",$.textContent=d,g.appendChild($);}let E=document.createElement("span");E.className="mushi-banner-message",E.textContent=s,g.appendChild(E),p.appendChild(g);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let k=($=false)=>{let M=document.createElement("span");M.className=`mushi-banner-divider${$?" mushi-banner-extra":""}`,M.setAttribute("aria-hidden","true"),M.textContent="|",v.appendChild(M);},I=($,M,w=false)=>{let x=document.createElement("button");x.type="button",x.className=`mushi-banner-link${w?" mushi-banner-extra":""}`,x.textContent=$,x.addEventListener("click",M),v.appendChild(x);};I(a,()=>this.open()),i&&(k(true),I(l,()=>this.open({featureRequest:true}),true));for(let $ of e.links??[]){let M=$.label?.trim();if(!M)continue;let w=$.href&&(/^https?:\/\//i.test($.href)||$.href.startsWith("/"))?$.href:void 0;if(k(true),w){let x=document.createElement("a");x.className="mushi-banner-link mushi-banner-extra",x.href=w,x.textContent=M,x.target="_blank",x.rel="noopener noreferrer",v.appendChild(x);}else I(M,()=>{$.featureRequest?this.open({featureRequest:true}):this.open();},true);}k(true),I("\u{1F4EC} My reports",()=>this.openReporter(),true),p.appendChild(v),p.appendChild(h);}else {let g=document.createElement("button");if(g.className="mushi-banner-btn",g.textContent=a,g.addEventListener("click",()=>this.open()),p.appendChild(g),i){let E=document.createElement("button");E.className="mushi-banner-btn",E.textContent=l,E.addEventListener("click",()=>this.open({featureRequest:true})),p.appendChild(E);}let d=document.createElement("button");d.className="mushi-banner-my-reports",d.textContent="\u{1F4EC} My reports",d.setAttribute("aria-label","View my submitted reports"),d.addEventListener("click",()=>this.openReporter()),p.appendChild(d),p.appendChild(h);}this.shadow.appendChild(p),this.applyBodyNudge(n),this.trackBannerHeight(p,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let o=s;this.draftSelStart=o.selectionStart??o.value.length,this.draftSelEnd=o.selectionEnd??o.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let o=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(o):o();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=bo(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",l=>{let f=this.config.draggable;if(!f)return;let p=8,h=typeof f=="object"?f.axis??"both":"both",g=0,d=0;if(h!=="y"&&(l.key==="ArrowLeft"?g=-p:l.key==="ArrowRight"&&(g=p)),h!=="x"&&(l.key==="ArrowUp"?d=-p:l.key==="ArrowDown"&&(d=p)),g!==0||d!==0){l.preventDefault();let E=this.fabPos??{x:0,y:0};this.moveFab(i,E.x+g,E.y+d,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,l.x,l.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let a=this.renderCtx();o.innerHTML=`${To(a)}${Co(a)}${$o(a)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.restoreFormDrafts(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let i=window.innerHeight-a.top+e;i>n&&(n=i);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let i=o[a];i!==void 0&&e.style.setProperty(`--mushi-${a}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(s){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let o=(()=>{let G=this.config.draggable;return G&&typeof G=="object"?G.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,f=e.offsetHeight||52,p=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,h=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,g=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,E=8,v=e.getBoundingClientRect(),k=this.fabPos?.x??0,I=this.fabPos?.y??0,$=v.left-k,M=v.top-I,w=p+E-$,x=a-h-E-l-$,y=g+E-M,S=i-d-E-f-M,A=o==="y"?0:Math.max(w,Math.min(x,r)),b=o==="x"?0:Math.max(y,Math.min(S,n)),q=A;if(s){let G=this.config.draggable;(G===true||typeof G=="object"&&(G.snapToEdge??true))&&o!=="y"&&(q=v.left+l/2<a/2?p+E-$:a-h-E-l-$);}this.fabPos={x:q,y:b},e.style.setProperty("--mushi-drag-x",`${q}px`),e.style.setProperty("--mushi-drag-y",`${b}px`),e.style.setProperty("--mushi-drag-active","1");let W=this.config.draggable;if(W===true||typeof W=="object"&&(W.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,a=false,i=false,l=g=>{if(g.button!==0&&g.pointerType!=="touch")return;e.setPointerCapture(g.pointerId),r=g.clientX,n=g.clientY;let d=this.fabPos??{x:0,y:0};s=d.x,o=d.y,a=true,i=false;},f=6,p=g=>{if(!a)return;let d=g.clientX-r,E=g.clientY-n;!i&&Math.hypot(d,E)>f&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(g.preventDefault(),this.moveFab(e,s+d,o+E,false));},h=g=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let d=g.clientX-r,E=g.clientY-n;this.moveFab(e,s+d,o+E,true);let v=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",p),e.addEventListener("pointerup",h),e.addEventListener("pointercancel",h);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open"),e.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return en[e]??en.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,elementError:this.elementError,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:co()}}attachHandlers(e){let r=this.locale;ko(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.value;i&&this.sendAssistantMessage(i);});}),e.querySelectorAll('[data-action="assistant-report"]').forEach(a=>{a.addEventListener("click",()=>{this.openReportFromAssistant();});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let i=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let f=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(f);}),i?.addEventListener("keydown",l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),a.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=an,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",a=>{let i=a.currentTarget,l=i.dataset.copyId;if(!l)return;let f=i.innerHTML,p=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=f);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(p).catch(()=>p()):p();}catch{p();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.category??"other";this.selectedCategory=i;let l=this.resolveCustomCategory(i);this.step=l&&(!l.intents||l.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(a=>{a.addEventListener("click",()=>{this.selectedIntent=a.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let a=this.effectiveMinLength(),i=()=>{let l=n.value.trim().length;s.textContent=String(l);let f=e.querySelector('[data-role="char-counter"]');f&&(f.style.color=l>=a?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let a=e.querySelector('[data-role="annotate-host"]');a&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(a);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let a=e.querySelector(".mushi-textarea"),i=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),f=this.effectiveMinLength();if(i.length<f){if(l){let h=`${r.step3.tooShort} (${i.length}/${f})`;l.textContent=h,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let p=(async()=>{try{let h=this.selectedCategory,g=this.resolveBaseCategory(h),d=this.config.categories&&this.config.categories.length>0,E=this.callbacks.onSubmit({category:g,...d?{userCategory:h}:{},description:i,intent:this.selectedIntent??void 0});return E&&typeof E.then=="function"?await E??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",p.then(h=>{if(this.step!=="success")return;h&&(this.lastReportId=h.reportId??null,this.lastSubmitQueuedOffline=!!h.queuedOffline,this.lastSubmitFailureKind=h.failureKind,this.lastSubmitScreenshotDropped=!!h.screenshotDropped,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let g=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},g);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&So(a)&&(a.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{if(this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId!==e&&(this.draftReply=""),this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),this.draftReply="",await this.loadReporterComments(r);}catch(a){this.reporterError=a instanceof Error?a.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function Pl(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}function Mo(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=t.widget?.trigger,o=n??e.widget?.trigger,i=(o==="auto"&&s&&s!=="auto"?void 0:o)??(r==="none"||r==="shake"?"manual":void 0),l=n==="hidden"||e.widget?.trigger==="hidden",f=i==="hidden"&&!l&&s&&s!=="hidden"?s:i,p=e.widget,h=p?.bannerVariant,g=p?.bannerPosition,d=p?.bannerMessage,E=p?.bannerLabel,v=p?.bannerBugCta,k=p?.bannerFeatureCta,I=h||g||d!=null||E!=null||v!=null||k!=null?{...t.widget?.bannerConfig??{},...h?{variant:h}:{},...g?{position:g}:{},...d!=null?{message:d}:{},...E!=null?{label:E===""?false:E}:{},...v!=null?{bugCta:v??void 0}:{},...k!=null?{featureCta:k}:{}}:void 0,$={};if(e.widget)for(let[M,w]of Object.entries(e.widget))M==="trigger"||M==="launcher"||w!=null&&($[M]=w);return {...t,widget:{...t.widget,...$,...f?{trigger:f}:{},...I?{bannerConfig:I}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Pl(t.capture,e.capture),privacy:{...t.privacy}}}function xr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Io(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>xr(t.getRecorderTrigger()),getCategoryCenter:r=>xr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>xr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>xr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var dn=null,pn=null,At=null,_t=null,Ht=null,Pt=null,Dt=null,Sr=false,st=new Set;function Dl(){for(let t of st)try{t.onPush?.();}catch{}}function Ol(){for(let t of st)try{t.onReplace?.();}catch{}}function Bl(){for(let t of st)try{t.onPop?.();}catch{}}function Nl(){Sr||typeof window>"u"||(At=History.prototype.pushState,_t=History.prototype.replaceState,dn=At.bind(history),pn=_t.bind(history),Ht=function(...e){let n=(dn??History.prototype.pushState.bind(history))(...e);return Dl(),n},Pt=function(...e){let n=(pn??History.prototype.replaceState.bind(history))(...e);return Ol(),n},history.pushState=Ht,history.replaceState=Pt,Dt=()=>Bl(),window.addEventListener("popstate",Dt),Sr=true);}function Lo(){!Sr||typeof window>"u"||(Dt&&(window.removeEventListener("popstate",Dt),Dt=null),Ht&&history.pushState===Ht&&At&&(history.pushState=At),Pt&&history.replaceState===Pt&&_t&&(history.replaceState=_t),Ht=null,Pt=null,dn=null,pn=null,At=null,_t=null,Sr=false);}function Pe(t){return Nl(),st.add(t),()=>{st.delete(t),st.size===0&&Lo();}}function Ao(){st.clear(),Lo();}var Ul=3e4,Fl=3e5,ql=6e4,jl=60,Po="mushi_session_min_day_",bt=[],yt=null,vt=null,ze=null,Do=null,hn=null,wt=null,Xe=false,Bt=null,Oo=0,Wl=300*1e3,gn=0,zl=900*1e3;function bn(){return Date.now()<gn}function yn(t){t?.startsWith("HTTP_4")&&(gn=Date.now()+zl);}var _o=new Set;function fn(t){return `mushi_rewards_consent_${t}`}function Kl(t){try{return localStorage.getItem(fn(t))==="1"}catch{return false}}function mn(t,e){try{e?localStorage.setItem(fn(t),"1"):localStorage.removeItem(fn(t)),Xe=e;}catch{}}function Bo(){return new Date().toISOString().slice(0,10)}function No(t){try{let e=sessionStorage.getItem(`${Po}${t}_${Bo()}`);return e?parseInt(e,10):0}catch{return 0}}function Vl(t){let e=Bo(),r=`${Po}${t}_${e}`;try{let n=No(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Uo(t){wt=t.client,ze=t.userId,Do=t.traits??null,hn=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Ul,t.config.flushIntervalMs??Fl);t.config.consentMode==="auto"?(Xe=true,mn(e,true)):Xe=Kl(e),t.config.trackActivity&&Xl(e),yt&&clearInterval(yt),yt=setInterval(()=>Gl(t),r),vt&&clearInterval(vt),vt=setInterval(()=>{if(!Xe||!ze)return;let n=No(e);n<jl&&(Vl(e),xt({action:"session_minute",metadata:{minutes_today:n+1}}));},ql),t.config.showInWidget&&vn(ze).then(n=>{n&&zo(n,t.config);}),t.config.consentMode!=="auto"&&!Xe&&Jl(e,t.config);}function xt(t){!Xe||!ze||bt.push({...t,queuedAt:Date.now()});}async function Gl(t){if(!Xe||!ze||bt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(bn())return;let r=bt.splice(0,100);try{let n=hn?await Vr(hn):void 0,s=await t.client.submitActivity(ze,r,{userTraits:Do??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(yn(s.error?.code),s.error?.code?.startsWith("HTTP_4")||bt.unshift(...r.slice(0,50)));}catch{bt.unshift(...r.slice(0,50));}}async function Fo(t){let e=Date.now();return Bt&&e-Oo<Wl?Bt:vn(t)}async function vn(t){if(!wt||bn())return null;let e=await wt.getMyTier(t);return e.ok&&e.data?(Bt=e.data,Oo=Date.now(),Bt):(yn(e.error?.code),null)}async function qo(t=10){if(!wt||bn())return null;try{let e=await wt.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(yn(e.error?.code),null)}catch{return null}}function jo(){yt&&(clearInterval(yt),yt=null),vt&&(clearInterval(vt),vt=null),Wo(),Yl(),ke&&(ke.remove(),ke=null),bt=[],ze=null,wt=null,Xe=false,Bt=null,gn=0;}var kr=null,Ot=null,Rr=null,Ho="",Er=false;function Xl(t){if(Er&&Rr)return;Er&&Wo(),Er=true;let e=()=>{let n=location.pathname;if(n===Ho)return;Ho=n,!_o.has(`${t}:${n}`)&&(_o.add(`${t}:${n}`),xt({action:"screen_view_unique_per_day",metadata:{route:n}}));};Rr=Pe({onPush:e,onPop:e}),e(),kr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;kr.observe(r,{childList:true,subtree:false}),Ot=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&xt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",Ot,{capture:true,passive:true});}function Wo(){Er=false,Rr?.(),Rr=null,kr?.disconnect(),kr=null,Ot&&(document.removeEventListener("click",Ot,{capture:true}),Ot=null);}var We=null;function zo(t,e){if(!e.showInWidget)return;We&&We.remove(),We=document.createElement("div"),We.id="mushi-tier-badge",Object.assign(We.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=We.attachShadow({mode:"closed"});r.innerHTML=`
488
+ `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setBrandRef(e){this.brandRef!==e&&(this.brandRef=e,this.isOpen&&this.render());}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.step==="leaderboard"&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&(this.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",m=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(m)),h.setAttribute("role","banner");let p=document.createElement("button");if(p.className="mushi-banner-dismiss",p.textContent="\u2715",p.setAttribute("aria-label","Dismiss feedback banner"),p.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let y=document.createElement("div");y.className="mushi-banner-body";let d=e.label===false?null:e.label??"Beta";if(d){let T=document.createElement("span");T.className="mushi-banner-pill",T.textContent=d,y.appendChild(T);}let S=document.createElement("span");S.className="mushi-banner-message",S.textContent=s,y.appendChild(S),h.appendChild(y);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let k=(T=false)=>{let $=document.createElement("span");$.className=`mushi-banner-divider${T?" mushi-banner-extra":""}`,$.setAttribute("aria-hidden","true"),$.textContent="|",v.appendChild($);},_=(T,$,g=false)=>{let w=document.createElement("button");w.type="button",w.className=`mushi-banner-link${g?" mushi-banner-extra":""}`,w.textContent=T,w.addEventListener("click",$),v.appendChild(w);};_(a,()=>this.open()),i&&(k(true),_(l,()=>this.open({featureRequest:true}),true));for(let T of e.links??[]){let $=T.label?.trim();if(!$)continue;let g=T.href&&(/^https?:\/\//i.test(T.href)||T.href.startsWith("/"))?T.href:void 0;if(k(true),g){let w=document.createElement("a");w.className="mushi-banner-link mushi-banner-extra",w.href=g,w.textContent=$,w.target="_blank",w.rel="noopener noreferrer",v.appendChild(w);}else _($,()=>{T.featureRequest?this.open({featureRequest:true}):this.open();},true);}k(true),_("\u{1F4EC} My reports",()=>this.openReporter(),true),h.appendChild(v),h.appendChild(p);}else {let y=document.createElement("button");if(y.className="mushi-banner-btn",y.textContent=a,y.addEventListener("click",()=>this.open()),h.appendChild(y),i){let S=document.createElement("button");S.className="mushi-banner-btn",S.textContent=l,S.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(S);}let d=document.createElement("button");d.className="mushi-banner-my-reports",d.textContent="\u{1F4EC} My reports",d.setAttribute("aria-label","View my submitted reports"),d.addEventListener("click",()=>this.openReporter()),h.appendChild(d),h.appendChild(p);}this.shadow.appendChild(h),this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let o=s;this.draftSelStart=o.selectionStart??o.value.length,this.draftSelEnd=o.selectionEnd??o.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let o=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(o):o();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false;let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=_i(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",l=>{let m=this.config.draggable;if(!m)return;let h=8,p=typeof m=="object"?m.axis??"both":"both",y=0,d=0;if(p!=="y"&&(l.key==="ArrowLeft"?y=-h:l.key==="ArrowRight"&&(y=h)),p!=="x"&&(l.key==="ArrowUp"?d=-h:l.key==="ArrowDown"&&(d=h)),y!==0||d!==0){l.preventDefault();let S=this.fabPos??{x:0,y:0};this.moveFab(i,S.x+y,S.y+d,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,l.x,l.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let a=this.renderCtx();o.innerHTML=`${Di(a)}${Pi(a)}${Hi(a)}`,this.shadow.appendChild(o),o.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),this.attachHandlers(o),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.()),this.trapFocus(o),this.restoreFormDrafts(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let i=window.innerHeight-a.top+e;i>n&&(n=i);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let i=o[a];i!==void 0&&e.style.setProperty(`--mushi-${a}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(s){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let o=(()=>{let Z=this.config.draggable;return Z&&typeof Z=="object"?Z.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,m=e.offsetHeight||52,h=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,p=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,y=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,S=8,v=e.getBoundingClientRect(),k=this.fabPos?.x??0,_=this.fabPos?.y??0,T=v.left-k,$=v.top-_,g=h+S-T,w=a-p-S-l-T,b=y+S-$,E=i-d-S-m-$,M=o==="y"?0:Math.max(g,Math.min(w,r)),A=o==="x"?0:Math.max(b,Math.min(E,n)),R=M;if(s){let Z=this.config.draggable;(Z===true||typeof Z=="object"&&(Z.snapToEdge??true))&&o!=="y"&&(R=v.left+l/2<a/2?h+S-T:a-p-S-l-T);}this.fabPos={x:R,y:A},e.style.setProperty("--mushi-drag-x",`${R}px`),e.style.setProperty("--mushi-drag-y",`${A}px`),e.style.setProperty("--mushi-drag-active","1");let W=this.config.draggable;if(W===true||typeof W=="object"&&(W.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,a=false,i=false,l=y=>{if(y.button!==0&&y.pointerType!=="touch")return;e.setPointerCapture(y.pointerId),r=y.clientX,n=y.clientY;let d=this.fabPos??{x:0,y:0};s=d.x,o=d.y,a=true,i=false;},m=6,h=y=>{if(!a)return;let d=y.clientX-r,S=y.clientY-n;!i&&Math.hypot(d,S)>m&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(y.preventDefault(),this.moveFab(e,s+d,o+S,false));},p=y=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let d=y.clientX-r,S=y.clientY-n;this.moveFab(e,s+d,o+S,true);let v=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",h),e.addEventListener("pointerup",p),e.addEventListener("pointercancel",p);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open"),e.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}detailMode(){let e=this.selectedCategory,r=this.selectedIntent;return this.viaFeatureRequest||r===Or||e==="other"&&!this.resolveCustomCategory(e)&&r===this.locale.step2.intents.other[0]?"feature":e&&this.resolveBaseCategory(e)==="other"?"other":"bug"}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return Dn[e]??Dn.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,listLoading:this.listLoading,threadLoading:this.threadLoading,actionPending:this.actionPending,threadError:this.threadError,actionError:this.actionError,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,detailMode:this.detailMode(),reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,elementError:this.elementError,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:hi(),brandRef:this.brandRef}}attachHandlers(e){let r=this.locale;Ti(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="brand-footer"]')?.addEventListener("click",()=>{this.callbacks.onBrandFooterClick?.();}),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"&&(this.step="account"),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.value;i&&this.sendAssistantMessage(i);});}),e.querySelectorAll('[data-action="assistant-report"]').forEach(a=>{a.addEventListener("click",()=>{this.openReportFromAssistant();});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let i=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let m=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(m);}),i?.addEventListener("keydown",l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),a.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Or,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="retry-thread"]')?.addEventListener("click",()=>{this.selectedReportId&&this.loadReporterComments(this.selectedReportId);}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="track-report"]')?.addEventListener("click",()=>{this.lastReportId&&this.openTrackedReport(this.lastReportId);}),e.querySelector('[data-action="done"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",a=>{let i=a.currentTarget,l=i.dataset.copyId;if(!l)return;let m=i.innerHTML,h=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=m);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(h).catch(()=>h()):h();}catch{h();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.category??"other";this.selectedCategory=i;let l=this.resolveCustomCategory(i);this.step=l&&(!l.intents||l.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(a=>{a.addEventListener("click",()=>{this.selectedIntent=a.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-counter"]');if(n&&s){let a=this.effectiveMinLength();n.addEventListener("input",()=>{s.textContent=Qt(n.value,a,r.step3.charsNeeded),s.style.color=n.value.trim().length>=a?"var(--mushi-ok, #22c55e)":"";});}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="screenshot-share-tab"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotShareTabRequest?.();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let a=e.querySelector('[data-role="annotate-host"]');a&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(a);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let a=e.querySelector(".mushi-textarea"),i=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),m=this.effectiveMinLength();if(i.length<m){if(l){let p=`${r.step3.tooShort} (${Qt(i,m,r.step3.charsNeeded)})`;l.textContent=p,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let h=(async()=>{try{let p=this.selectedCategory,y=this.resolveBaseCategory(p),d=this.config.categories&&this.config.categories.length>0,S=d&&this.resolveCustomCategory(p)?p:this.detailMode()==="feature"?"feature":d?p:void 0,v=this.callbacks.onSubmit({category:y,...S?{userCategory:S}:{},description:i,intent:this.selectedIntent??void 0});return v&&typeof v.then=="function"?await v??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",h.then(p=>{this.step!=="success"||!p||(this.lastReportId=p.reportId??null,this.lastSubmitQueuedOffline=!!p.queuedOffline,this.lastSubmitFailureKind=p.failureKind,this.lastSubmitScreenshotDropped=!!p.screenshotDropped,this.render());});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&xi(a)&&(a.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(e,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.loadReporterComments(n,!0),!0}catch(s){return this.actionError=s instanceof Error?s.message:e,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async e=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me");});}async refreshReporterInboxQuiet(){try{let e=this.callbacks.onReporterReportsRequest?.();if(this.reporterReports=e?await Fr(e,qr):[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}async loadReporterReports(){this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Fr(e,qr):[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.listLoading=false,this.render();}}async openTrackedReport(e){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.loadReporterComments(e);}async loadReporterComments(e,r=false){this.selectedReportId!==e&&(this.draftReply="",this.reporterComments=[],this.actionError=null,r=false),this.selectedReportId=e,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render());try{let n=this.callbacks.onReporterCommentsRequest?.(e),s=n?await Fr(n,qr):[];this.selectedReportId===e&&(this.reporterComments=s);}catch{this.selectedReportId===e&&(this.threadError=this.locale.flows.thread.loadFailed);}finally{this.threadLoading=false,this.render();}}async submitReporterFeedback(e){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,e)));}async submitReporterReply(e){let r=e.querySelector('[data-role="reporter-reply"]'),n=r?.value.trim()??"";n&&(this.draftReply=r?.value??"",await this.runThreadAction("Could not send reply.",async s=>{await this.callbacks.onReporterReply?.(s,n),this.draftReply="";let o=this.shadow.querySelector('[data-role="reporter-reply"]');o&&(o.value="");}));}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function Eu(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}var ku=["brandFooter"];function Bi(t,e,r=t){let n=e.native?.triggerMode,s=e.widget?.launcher,o=t.widget?.trigger,a=s??e.widget?.trigger,l=(a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),m=s==="hidden"||e.widget?.trigger==="hidden",h=l==="hidden"&&!m&&o&&o!=="hidden"?o:l,p=e.widget,y=p?.bannerVariant,d=p?.bannerPosition,S=p?.bannerMessage,v=p?.bannerLabel,k=p?.bannerBugCta,_=p?.bannerFeatureCta,T=y||d||S!=null||v!=null||k!=null||_!=null?{...t.widget?.bannerConfig??{},...y?{variant:y}:{},...d?{position:d}:{},...S!=null?{message:S}:{},...v!=null?{label:v===""?false:v}:{},...k!=null?{bugCta:k??void 0}:{},..._!=null?{featureCta:_}:{}}:void 0,$={};if(e.widget)for(let[g,w]of Object.entries(e.widget))g==="trigger"||g==="launcher"||w!=null&&(ku.includes(g)&&r.widget?.[g]!==void 0||($[g]=w));return {...t,widget:{...t.widget,...$,...h?{trigger:h}:{},...T?{bannerConfig:T}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Eu(t.capture,e.capture),privacy:{...t.privacy}}}function zr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Ni(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>zr(t.getRecorderTrigger()),getCategoryCenter:r=>zr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>zr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>zr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var zn=null,Kn=null,Zt=null,er=null,tr=null,rr=null,nr=null,Kr=false,yt=new Set;function Ru(){for(let t of yt)try{t.onPush?.();}catch{}}function Cu(){for(let t of yt)try{t.onReplace?.();}catch{}}function Tu(){for(let t of yt)try{t.onPop?.();}catch{}}function Iu(){Kr||typeof window>"u"||(Zt=History.prototype.pushState,er=History.prototype.replaceState,zn=Zt.bind(history),Kn=er.bind(history),tr=function(...e){let n=(zn??History.prototype.pushState.bind(history))(...e);return Ru(),n},rr=function(...e){let n=(Kn??History.prototype.replaceState.bind(history))(...e);return Cu(),n},history.pushState=tr,history.replaceState=rr,nr=()=>Tu(),window.addEventListener("popstate",nr),Kr=true);}function Ui(){!Kr||typeof window>"u"||(nr&&(window.removeEventListener("popstate",nr),nr=null),tr&&history.pushState===tr&&Zt&&(history.pushState=Zt),rr&&history.replaceState===rr&&er&&(history.replaceState=er),tr=null,rr=null,zn=null,Kn=null,Zt=null,er=null,Kr=false);}function Pe(t){return Iu(),yt.add(t),()=>{yt.delete(t),yt.size===0&&Ui();}}function Fi(){yt.clear(),Ui();}var $u=3e4,Mu=3e5,Lu=6e4,_u=60,Wi="mushi_session_min_day_",$t=[],Mt=null,Lt=null,Xe=null,zi=null,Vn=null,_t=null,rt=false,or=null,Ki=0,Au=300*1e3,Yn=0,Pu=900*1e3;function Jn(){return Date.now()<Yn}function Qn(t){t?.startsWith("HTTP_4")&&(Yn=Date.now()+Pu);}var qi=new Set;function Gn(t){return `mushi_rewards_consent_${t}`}function Du(t){try{return localStorage.getItem(Gn(t))==="1"}catch{return false}}function Xn(t,e){try{e?localStorage.setItem(Gn(t),"1"):localStorage.removeItem(Gn(t)),rt=e;}catch{}}function Vi(){return new Date().toISOString().slice(0,10)}function Gi(t){try{let e=sessionStorage.getItem(`${Wi}${t}_${Vi()}`);return e?parseInt(e,10):0}catch{return 0}}function Hu(t){let e=Vi(),r=`${Wi}${t}_${e}`;try{let n=Gi(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Xi(t){_t=t.client,Xe=t.userId,zi=t.traits??null,Vn=t.reporterToken??null;let{projectId:e}=t,r=Math.max($u,t.config.flushIntervalMs??Mu);t.config.consentMode==="auto"?(rt=true,Xn(e,true)):rt=Du(e),t.config.trackActivity&&Bu(e),Mt&&clearInterval(Mt),Mt=setInterval(()=>Ou(t),r),Lt&&clearInterval(Lt),Lt=setInterval(()=>{if(!rt||!Xe)return;let n=Gi(e);n<_u&&(Hu(e),At({action:"session_minute",metadata:{minutes_today:n+1}}));},Lu),t.config.showInWidget&&Zn(Xe).then(n=>{n&&ea(n,t.config);}),t.config.consentMode!=="auto"&&!rt&&Uu(e,t.config);}function At(t){!rt||!Xe||$t.push({...t,queuedAt:Date.now()});}async function Ou(t){if(!rt||!Xe||$t.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Jn())return;let r=$t.splice(0,100);try{let n=Vn?await Gt(Vn):void 0,s=await t.client.submitActivity(Xe,r,{userTraits:zi??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(Qn(s.error?.code),s.error?.code?.startsWith("HTTP_4")||$t.unshift(...r.slice(0,50)));}catch{$t.unshift(...r.slice(0,50));}}async function Yi(t){let e=Date.now();return or&&e-Ki<Au?or:Zn(t)}async function Zn(t){if(!_t||Jn())return null;let e=await _t.getMyTier(t);return e.ok&&e.data?(or=e.data,Ki=Date.now(),or):(Qn(e.error?.code),null)}async function Ji(t=10){if(!_t||Jn())return null;try{let e=await _t.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Qn(e.error?.code),null)}catch{return null}}function Qi(){Mt&&(clearInterval(Mt),Mt=null),Lt&&(clearInterval(Lt),Lt=null),Zi(),Nu(),Re&&(Re.remove(),Re=null),$t=[],Xe=null,_t=null,rt=false,or=null,Yn=0;}var Gr=null,sr=null,Xr=null,ji="",Vr=false;function Bu(t){if(Vr&&Xr)return;Vr&&Zi(),Vr=true;let e=()=>{let n=location.pathname;if(n===ji)return;ji=n,!qi.has(`${t}:${n}`)&&(qi.add(`${t}:${n}`),At({action:"screen_view_unique_per_day",metadata:{route:n}}));};Xr=Pe({onPush:e,onPop:e}),e(),Gr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;Gr.observe(r,{childList:true,subtree:false}),sr=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&At({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",sr,{capture:true,passive:true});}function Zi(){Vr=false,Xr?.(),Xr=null,Gr?.disconnect(),Gr=null,sr&&(document.removeEventListener("click",sr,{capture:true}),sr=null);}var Ge=null;function ea(t,e){if(!e.showInWidget)return;Ge&&Ge.remove(),Ge=document.createElement("div"),Ge.id="mushi-tier-badge",Object.assign(Ge.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Ge.attachShadow({mode:"closed"});r.innerHTML=`
2251
489
  <style>
2252
490
  :host { display: block; }
2253
491
  .badge {
@@ -2277,7 +515,7 @@
2277
515
  <span class="dot"></span>
2278
516
  <span>${t.displayName}</span>
2279
517
  </div>
2280
- `,document.body.appendChild(We);}function Yl(){We?.remove(),We=null;}var ke=null;function Jl(t,e){if(ke)return;ke=document.createElement("div"),ke.id="mushi-consent-banner",Object.assign(ke.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=ke.attachShadow({mode:"closed"});r.innerHTML=`
518
+ `,document.body.appendChild(Ge);}function Nu(){Ge?.remove(),Ge=null;}var Re=null;function Uu(t,e){if(Re)return;Re=document.createElement("div"),Re.id="mushi-consent-banner",Object.assign(Re.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=Re.attachShadow({mode:"closed"});r.innerHTML=`
2281
519
  <style>
2282
520
  :host { display: block; }
2283
521
  .banner {
@@ -2312,7 +550,7 @@
2312
550
  <button class="decline" id="decline">No thanks</button>
2313
551
  </div>
2314
552
  </div>
2315
- `,r.getElementById("accept")?.addEventListener("click",()=>{mn(t,true),ke?.remove(),ke=null,e.showInWidget&&ze&&vn(ze).then(n=>{n&&zo(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{mn(t,false),ke?.remove(),ke=null;}),document.body.appendChild(ke);}var Ql=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function Cr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function Tr(t,e){let r=e?.[pt];if(r)return r;let n=tc(e?.headers,Mt);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(Mt);if(s)return s}return null}function Nt(t,e={}){if([...Ql,...e.ignoreUrls??[]].some(s=>Zl(t,s)))return true;let n=ec(e.apiEndpoint);return n?wn(t).startsWith(n):false}function Zl(t,e){return typeof e=="string"?wn(t).includes(e):(e.lastIndex=0,e.test(t))}function ec(t){if(!t)return null;let e=wn(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function wn(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function tc(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var rc=30,nc="00";function Ko(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${nc}-${n}-${s}-01`,traceId:n,spanId:s}}function Vo(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var Ye=[];function Xo(){return Ye[Ye.length-1]}function Go(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function Sn(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,s=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,i=t,l=async function(E,v){let k=Date.now(),I=v?.method?.toUpperCase()??"GET",$=Cr(E),w=!Tr(E,v)&&!Nt($,i),x=w?Go():void 0,y,S=v,A=i.tracePropagation;if(w&&A?.enabled&&A.corsUrls?.length&&Vo($,A.corsUrls)){let{traceparent:b,traceId:q}=Ko();y=q;let W=v?.headers?new Headers(v.headers):new Headers;W.set("traceparent",b),i.sessionId&&W.set("x-mushi-session",i.sessionId),S={...v,headers:W};}x&&Ye.push(x);try{let b=await r.call(globalThis,E,S);return w&&g({method:I,url:xn($),status:b.status,duration:Date.now()-k,timestamp:k,captureMethod:"fetch",...y?{traceId:y}:{},...x?{correlationId:x}:{}}),b}catch(b){throw w&&g({method:I,url:xn($),status:0,duration:Date.now()-k,timestamp:k,error:b instanceof Error?b.message:"Network error",captureMethod:"fetch",...y?{traceId:y}:{},...x?{correlationId:x}:{}}),b}finally{if(x){let b=Ye.lastIndexOf(x);b!==-1&&Ye.splice(b,1);}}};globalThis.fetch=l;let f=typeof WeakMap<"u"?new WeakMap:null;if(n&&s&&o&&a&&f){let d=s;XMLHttpRequest.prototype.open=function(...v){let[k,I]=v,$=typeof I=="string"?I:String(I),M=!Nt($,i),w=M?Go():void 0,x,y,S=i.tracePropagation;if(M&&S?.enabled&&S.corsUrls?.length&&Vo($,S.corsUrls)){let b=Ko();x=b.traceId,y=b.traceparent;}let A=f.get(this);A?._listener&&this.removeEventListener("readystatechange",A._listener),f.set(this,{method:String(k).toUpperCase(),url:xn($),startTime:0,shouldRecord:M,...x?{traceId:x}:{},...w?{correlationId:w}:{},...y?{_traceparent:y}:{}}),d.apply(this,v);},XMLHttpRequest.prototype.send=function(v){let k=f.get(this);if(k){k.startTime=Date.now();let I=k._traceparent;I&&(a.call(this,"traceparent",I),i.sessionId&&a.call(this,"x-mushi-session",i.sessionId)),k.correlationId&&Ye.push(k.correlationId);let $=()=>{if(this.readyState===4){if(k.shouldRecord){let M=Date.now()-k.startTime,w={method:k.method,url:k.url,status:this.status,duration:M,timestamp:k.startTime,captureMethod:"xhr",...k.traceId?{traceId:k.traceId}:{},...k.correlationId?{correlationId:k.correlationId}:{}};this.status===0&&(w.error="XHR network error or aborted"),g(w);}if(k.correlationId){let M=Ye.lastIndexOf(k.correlationId);M!==-1&&Ye.splice(M,1);}}};k._listener=$,this.addEventListener("readystatechange",$);}o.call(this,v);};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function g(d){e.push(d),e.length>rc&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(d){i=d;},destroy(){globalThis.fetch===l&&(globalThis.fetch=r),n&&s&&o&&(p&&XMLHttpRequest.prototype.open===p&&(XMLHttpRequest.prototype.open=s),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function xn(t){let e=Lt(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var sc=50,oc=500;function En(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let a=(...i)=>{let l=i.map(h=>{try{return typeof h=="string"?h:JSON.stringify(h)}catch{return String(h)}}).join(" ").slice(0,oc),f=Xo(),p={level:s,message:l,timestamp:Date.now(),...f?{correlationId:f}:{}};s==="error"&&i[0]instanceof Error&&(p.stack=i[0].stack?.slice(0,1e3)),t.push(p),t.length>sc&&t.shift(),o.call(console,...i);};r[s]=a,console[s]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}function Cn(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,a=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=a*i,s.scale(i,i);let l=ac(e.privacy),f=`
553
+ `,r.getElementById("accept")?.addEventListener("click",()=>{Xn(t,true),Re?.remove(),Re=null,e.showInWidget&&Xe&&Zn(Xe).then(n=>{n&&ea(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Xn(t,false),Re?.remove(),Re=null;}),document.body.appendChild(Re);}var Fu=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function Yr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function Jr(t,e){let r=e?.[Xt];if(r)return r;let n=Wu(e?.headers,Mr);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(Mr);if(s)return s}return null}function ir(t,e={}){if([...Fu,...e.ignoreUrls??[]].some(s=>qu(t,s)))return true;let n=ju(e.apiEndpoint);return n?es(t).startsWith(n):false}function qu(t,e){return typeof e=="string"?es(t).includes(e):(e.lastIndex=0,e.test(t))}function ju(t){if(!t)return null;let e=es(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function es(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Wu(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var zu=30,Ku="00";function ta(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${Ku}-${n}-${s}-01`,traceId:n,spanId:s}}function ra(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var nt=[];function sa(){return nt[nt.length-1]}function na(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function rs(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,s=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,i=t,l=async function(S,v){let k=Date.now(),_=v?.method?.toUpperCase()??"GET",T=Yr(S),g=!Jr(S,v)&&!ir(T,i),w=g?na():void 0,b,E=v,M=i.tracePropagation;if(g&&M?.enabled&&M.corsUrls?.length&&ra(T,M.corsUrls)){let{traceparent:A,traceId:R}=ta();b=R;let W=v?.headers?new Headers(v.headers):new Headers;W.set("traceparent",A),i.sessionId&&W.set("x-mushi-session",i.sessionId),E={...v,headers:W};}w&&nt.push(w);try{let A=await r.call(globalThis,S,E);return g&&y({method:_,url:ts(T),status:A.status,duration:Date.now()-k,timestamp:k,captureMethod:"fetch",...b?{traceId:b}:{},...w?{correlationId:w}:{}}),A}catch(A){throw g&&y({method:_,url:ts(T),status:0,duration:Date.now()-k,timestamp:k,error:A instanceof Error?A.message:"Network error",captureMethod:"fetch",...b?{traceId:b}:{},...w?{correlationId:w}:{}}),A}finally{if(w){let A=nt.lastIndexOf(w);A!==-1&&nt.splice(A,1);}}};globalThis.fetch=l;let m=typeof WeakMap<"u"?new WeakMap:null;if(n&&s&&o&&a&&m){let d=s;XMLHttpRequest.prototype.open=function(...v){let[k,_]=v,T=typeof _=="string"?_:String(_),$=!ir(T,i),g=$?na():void 0,w,b,E=i.tracePropagation;if($&&E?.enabled&&E.corsUrls?.length&&ra(T,E.corsUrls)){let A=ta();w=A.traceId,b=A.traceparent;}let M=m.get(this);M?._listener&&this.removeEventListener("readystatechange",M._listener),m.set(this,{method:String(k).toUpperCase(),url:ts(T),startTime:0,shouldRecord:$,...w?{traceId:w}:{},...g?{correlationId:g}:{},...b?{_traceparent:b}:{}}),d.apply(this,v);},XMLHttpRequest.prototype.send=function(v){let k=m.get(this);if(k){k.startTime=Date.now();let _=k._traceparent;_&&(a.call(this,"traceparent",_),i.sessionId&&a.call(this,"x-mushi-session",i.sessionId)),k.correlationId&&nt.push(k.correlationId);let T=()=>{if(this.readyState===4){if(k.shouldRecord){let $=Date.now()-k.startTime,g={method:k.method,url:k.url,status:this.status,duration:$,timestamp:k.startTime,captureMethod:"xhr",...k.traceId?{traceId:k.traceId}:{},...k.correlationId?{correlationId:k.correlationId}:{}};this.status===0&&(g.error="XHR network error or aborted"),y(g);}if(k.correlationId){let $=nt.lastIndexOf(k.correlationId);$!==-1&&nt.splice($,1);}}};k._listener=T,this.addEventListener("readystatechange",T);}o.call(this,v);};}let h=n?XMLHttpRequest.prototype.open:null,p=n?XMLHttpRequest.prototype.send:null;function y(d){e.push(d),e.length>zu&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(d){i=d;},destroy(){globalThis.fetch===l&&(globalThis.fetch=r),n&&s&&o&&(h&&XMLHttpRequest.prototype.open===h&&(XMLHttpRequest.prototype.open=s),p&&XMLHttpRequest.prototype.send===p&&(XMLHttpRequest.prototype.send=o));}}}function ts(t){let e=Jt(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var Vu=50,Gu=500;function ns(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let a=(...i)=>{let l=i.map(p=>{try{return typeof p=="string"?p:JSON.stringify(p)}catch{return String(p)}}).join(" ").slice(0,Gu),m=sa(),h={level:s,message:l,timestamp:Date.now(),...m?{correlationId:m}:{}};s==="error"&&i[0]instanceof Error&&(h.stack=i[0].stack?.slice(0,1e3)),t.push(h),t.length>Vu&&t.shift(),o.call(console,...i);};r[s]=a,console[s]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}function as(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return e.onFailed?.("unsupported"),ss("unsupported"),null;let o=window.innerWidth,a=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=a*i,s.scale(i,i);let l=Yu(e.privacy),m=`
2316
554
  <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
2317
555
  <foreignObject width="100%" height="100%">
2318
556
  <div xmlns="http://www.w3.org/1999/xhtml">
@@ -2320,9 +558,9 @@
2320
558
  </div>
2321
559
  </foreignObject>
2322
560
  </svg>
2323
- `,p=new Image,h=new Blob([f],{type:"image/svg+xml;charset=utf-8"}),g=URL.createObjectURL(h);return new Promise(d=>{let E=!1,v=(I,$)=>{E||(E=!0,clearTimeout(k),URL.revokeObjectURL(g),$&&(e.onFailed?.($),Yo($)),d(I));},k=setTimeout(()=>v(null,"error"),5e3);p.onload=()=>{try{if(s.drawImage(p,0,0,o,a),dc(s,o,a)){v(null,"error");return}v(n.toDataURL("image/jpeg",.7));}catch{v(null,"taint");}},p.onerror=()=>v(null,"error"),p.src=g;})}catch{return e.onFailed?.("error"),Yo("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Yo(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var ic=['input[type="password"]',"[data-mushi-redact]"];function ac(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),cc(e),uc(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:ic;for(let n of r)for(let s of kn(e,n))lc(s);for(let n of t?.blockSelectors??[])for(let s of kn(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of kn(e,n))hc(s);return e}function kn(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function lc(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function cc(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=Rn(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let s=Rn(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function Rn(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:pc(o,e)?"none":r})}function uc(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let i=a.ownerNode;i instanceof Element&&i.tagName==="STYLE"||r.push(Jo(a));}let s=Rn(r.filter(Boolean).join(`
2324
- `),e);if(!s)return;let o=document.createElement("style");o.textContent=s,(t.querySelector("head")??t).appendChild(o);}function Jo(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=Jo(n.styleSheet));continue}r+=`${n.cssText}
2325
- `;}return r}function dc(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),s=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=s)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function pc(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function hc(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function fc(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function Tn(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let a=o.interactionId;if(!a)continue;let i=r.get(a)??0;if(o.duration>i&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let l=o.processingStart-o.startTime,f=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:fc(o.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,f),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function $n(){let t=false,e=null,r=null,n=null,s=null;function o(w){let x=w,y=0;for(;x&&y<20;){let S=x.getAttribute?.("data-testid");if(S)return S;x=x.parentElement,y++;}return null}function a(w){let x=[],y=w;for(;y&&y!==document.body;){let S=1,A=y.previousElementSibling;for(;A;)A.tagName===y.tagName&&S++,A=A.previousElementSibling;let b=y.tagName.toLowerCase();x.unshift(S>1?`${b}[${S}]`:b),y=y.parentElement;}return "//"+x.join("/")}function i(w){let x=w.getBoundingClientRect(),y=typeof w.className=="string"?w.className:w.getAttribute("class")??"";return {tagName:w.tagName.toLowerCase(),id:w.id||void 0,className:y||void 0,textContent:w.textContent?.trim().slice(0,200)||void 0,xpath:a(w),rect:{x:Math.round(x.x),y:Math.round(x.y),width:Math.round(x.width),height:Math.round(x.height)},nearestTestid:o(w)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let w=document.createElement("div");return w.style.cssText=`
561
+ `,h=new Image,p=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(m)}`,y=!1,d=S=>{let v=S;/^img-src|^default-src/.test(v.violatedDirective??"")&&/^data/.test(v.blockedURI??"")&&(y=!0);};return document.addEventListener("securitypolicyviolation",d),new Promise(S=>{let v=!1,k=(T,$)=>{v||(v=!0,clearTimeout(_),document.removeEventListener("securitypolicyviolation",d),$&&(e.onFailed?.($),ss($)),S(T));},_=setTimeout(()=>k(null,"timeout"),5e3);h.onload=()=>{try{if(s.drawImage(h,0,0,o,a),ed(s,o,a)){k(null,"unsupported");return}k(n.toDataURL("image/jpeg",.7));}catch{k(null,"taint");}},h.onerror=()=>setTimeout(()=>k(null,y?"csp":"error"),0),h.src=p;})}catch{return e.onFailed?.("error"),ss("error"),null}}return {take:r,updateOptions(n){e=n;}}}function ss(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var ls='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]',Xu=["[data-mushi-redact]"];function Yu(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),Qu(e),Zu(e);let r=[ls,...t?.redactSelectors??Xu];for(let n of r)for(let s of os(e,n))Ju(s);for(let n of t?.blockSelectors??[])for(let s of os(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of os(e,n))rd(s);return e}function os(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Ju(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function Qu(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=is(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let s=is(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function is(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:td(o,e)?"none":r})}function Zu(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let i=a.ownerNode;i instanceof Element&&i.tagName==="STYLE"||r.push(oa(a));}let s=is(r.filter(Boolean).join(`
562
+ `),e);if(!s)return;let o=document.createElement("style");o.textContent=s,(t.querySelector("head")??t).appendChild(o);}function oa(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=oa(n.styleSheet));continue}r+=`${n.cssText}
563
+ `;}return r}function ed(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),s=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=s)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function td(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function rd(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function nd(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function cs(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let a=o.interactionId;if(!a)continue;let i=r.get(a)??0;if(o.duration>i&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let l=o.processingStart-o.startTime,m=o.processingEnd-o.processingStart,h=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:nd(o.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,m),presentationDelay:Math.max(0,h)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function us(){let t=false,e=null,r=null,n=null,s=null;function o(g){let w=g,b=0;for(;w&&b<20;){let E=w.getAttribute?.("data-testid");if(E)return E;w=w.parentElement,b++;}return null}function a(g){let w=[],b=g;for(;b&&b!==document.body;){let E=1,M=b.previousElementSibling;for(;M;)M.tagName===b.tagName&&E++,M=M.previousElementSibling;let A=b.tagName.toLowerCase();w.unshift(E>1?`${A}[${E}]`:A),b=b.parentElement;}return "//"+w.join("/")}function i(g){let w=g.getBoundingClientRect(),b=typeof g.className=="string"?g.className:g.getAttribute("class")??"";return {tagName:g.tagName.toLowerCase(),id:g.id||void 0,className:b||void 0,textContent:g.textContent?.trim().slice(0,200)||void 0,xpath:a(g),rect:{x:Math.round(w.x),y:Math.round(w.y),width:Math.round(w.width),height:Math.round(w.height)},nearestTestid:o(g)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let g=document.createElement("div");return g.style.cssText=`
2326
564
  position: fixed;
2327
565
  pointer-events: none;
2328
566
  z-index: 2147483647;
@@ -2331,12 +569,11 @@
2331
569
  border-radius: 4px;
2332
570
  transition: all 0.1s ease;
2333
571
  display: none;
2334
- `,document.body.appendChild(w),w}function f(){let w=document.createElement("div");return w.style.cssText=`
572
+ `,document.body.appendChild(g),g}function m(){let g=document.createElement("div");return g.style.cssText=`
2335
573
  position: fixed;
2336
574
  inset: 0;
2337
575
  z-index: 2147483647;
2338
576
  cursor: crosshair;
2339
577
  background: transparent;
2340
- `,document.body.appendChild(w),w}function p(w,x){let y=document.elementsFromPoint(w,x),S=null;for(let b of y)if(!(b===r||b===e)){if(b.id==="mushi-mushi-widget"||b.closest("#mushi-mushi-widget"))return null;S=b;break}let A=0;for(;S?.shadowRoot&&A<20;){let b=S.shadowRoot.elementFromPoint(w,x);if(!b||b===S)break;S=b,A++;}return S}function h(w){if(!e)return;let x=w.getBoundingClientRect();e.style.left=`${x.left}px`,e.style.top=`${x.top}px`,e.style.width=`${x.width}px`,e.style.height=`${x.height}px`,e.style.display="block";}function g(w){let x=p(w.clientX,w.clientY);if(!x){n=null,e&&(e.style.display="none");return}n=x,h(x);}function d(w){w.preventDefault(),w.stopPropagation();}function E(w){w.preventDefault(),w.stopPropagation();let x=p(w.clientX,w.clientY);x&&I(i(x));}function v(w){w.key==="Escape"&&I(null);}function k(){n?.isConnected&&h(n);}function I(w){M(),s?.(w),s=null;}function $(){return t&&M(),new Promise(w=>{s=w,t=true,e=l(),r=f(),r.addEventListener("mousemove",g),r.addEventListener("click",E),r.addEventListener("pointerdown",d),r.addEventListener("mousedown",d),r.addEventListener("mouseup",d),document.addEventListener("keydown",v,true),window.addEventListener("scroll",k,{capture:true,passive:true});})}function M(){t&&(t=false,n=null,document.removeEventListener("keydown",v,true),window.removeEventListener("scroll",k,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:$,deactivate:M,isActive:()=>t}}var Qo=120;function Mn(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>Qo&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:Lt(`${location.pathname}${location.search}${location.hash}`),href:Lt(location.href)}});}function s(a){let i=a.target instanceof Element?a.target:null;if(!i)return;let l=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:mc(l)}});}let o=Pe({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,f)=>l.ts-f.ts).slice(-Qo)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function mc(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var gc=6e4,bc=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,yc=/^[0-9a-f]{20,}$/i,vc=/^\d+$/,wc=/^[a-z0-9]{16,}$/i;function Zo(t){return t.length===0?t:bc.test(t)||yc.test(t)||vc.test(t)||wc.test(t)&&/\d/.test(t)?"[id]":t}function xc(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),s=n.indexOf("?"),o=s===-1?n:n.slice(0,s),a=r?.map(i=>i.startsWith("/#/")?i.slice(2):i);return "/#"+In(o,a)}return In(t,r)}function In(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Sc(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Zo).join("/")}function Sc(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let a=true;for(let i=0;i<o.length;i++){let l=o[i],f=r[i];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==f){a=false;break}}if(a)return "/"+o.join("/")}return null}function Ec(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function kc(){if(typeof window>"u")return [];try{let t=new Set,e=s=>{new URLSearchParams(s).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function Rc(){if(typeof document>"u")return null;let t=s=>(s??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function Cc(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function Ln(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??gc,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",f=new Map,p=null,h=null;async function g(){if(typeof window>"u")return;let I=xc(window.location.pathname,window.location.hash,e.routeTemplates),$=Date.now(),M=f.get(I)??0;if($-M<a)return;f.set(I,$);let w=null;l==="auto"?w=n()??s():l==="session-only"&&(w=s());let x={route:I,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?Rc():null,testids:Ec(),network_paths:r().slice(-50),query_param_keys:kc(),user_id_hash:await Cc(w),observed_at:new Date().toISOString()};o(x);}function d(){h||(h=setTimeout(()=>{h=null,g();},100));}function E(){if(typeof window>"u")return;let I=window.location.hash.startsWith("#/")?window.location.hash:"",$=window.location.pathname+window.location.search+I;$!==p&&(p=$,d());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=()=>E(),k=Pe({onPush:v,onReplace:v,onPop:v});return window.addEventListener("hashchange",v),d(),{destroy(){k(),window.removeEventListener("hashchange",v),h&&(clearTimeout(h),h=null),f.clear();},flushNow(){f.clear(),g();}}}function ei(t,e,r){let n=l=>l.timestamp,s=l=>l.type===2,o=l=>l.type===4,a=Date.now()-e,i=0;for(let l=0;l<t.length;l++){let f=n(t[l]);if(typeof f=="number"&&f>=a)break;s(t[l])&&(i=o(t[l-1])?l-1:l);}if(t.length-i>r){for(let l=i+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){i=o(t[l-1])?l-1:l;break}}i>0&&t.splice(0,i);}function Tc(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,i=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:l}}),e.length>400&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){s(),e.length=0;}}}var $r=null;async function $c(){if($r)return $r;try{return $r=await import('rrweb'),$r}catch{return null}}async function ti(t){let e=t.maxDurationMs??3e4,r=await $c();if(!r?.record)return Tc(e);let n=r.record,s=[],o=null,a=false,i=['input[type="password"]',...t.redactSelectors??[]],l=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(f){s.push(f),ei(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return ei(s,e,400),[...s]},destroy(){l(),s.length=0;}}}function ri(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),i=document.createElement("canvas"),l=Math.min(1,720/s.width),f=Math.round(s.width*l),p=Math.round(s.height*l);for(let x of [a,i])x.width=f,x.height=p,x.style.width="100%",x.style.height="auto",x.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let h=a.getContext("2d"),g=i.getContext("2d");if(!h||!g){n(new Error("Canvas not supported"));return}h.drawImage(s,0,0,f,p),o.appendChild(a),o.appendChild(i),e.appendChild(o);let d="highlight",E=false,v=null,k=[],I=x=>{let y=i.getBoundingClientRect(),S="touches"in x?x.touches[0]??x.changedTouches[0]:null,A=S?S.clientX:x.clientX,b=S?S.clientY:x.clientY;return {x:(A-y.left)/y.width*f,y:(b-y.top)/y.height*p}},$=()=>{g.clearRect(0,0,f,p);for(let x of k)if(x.tool==="highlight"&&x.points.length>=2){let[y,S]=x.points;g.fillStyle="rgba(255, 230, 0, 0.35)",g.fillRect(Math.min(y.x,S.x),Math.min(y.y,S.y),Math.abs(S.x-y.x),Math.abs(S.y-y.y));}else if(x.tool==="arrow"&&x.points.length>=2){let[y,S]=x.points;g.strokeStyle="#ef4444",g.lineWidth=3,g.beginPath(),g.moveTo(y.x,y.y),g.lineTo(S.x,S.y),g.stroke();}},M=x=>{E=true,v=I(x);},w=x=>{if(!E||!v)return;E=false;let y=I(x);if(d==="blur"){let S=Math.min(v.x,y.x),A=Math.min(v.y,y.y),b=Math.abs(y.x-v.x),q=Math.abs(y.y-v.y);b>=1&&q>=1&&(h.filter="blur(8px)",h.drawImage(a,S,A,b,q,S,A,b,q),h.filter="none");}else k.push({tool:d,points:[v,y]});v=null,$();};i.addEventListener("mousedown",M),i.addEventListener("mouseup",w),i.addEventListener("touchstart",M,{passive:true}),i.addEventListener("touchend",w),r({canvas:a,setTool(x){d=x;},getDataUrl(){let x=document.createElement("canvas");x.width=f,x.height=p;let y=x.getContext("2d");return y?(y.drawImage(a,0,0),y.drawImage(i,0,0),x.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",M),i.removeEventListener("mouseup",w),i.removeEventListener("touchstart",M),i.removeEventListener("touchend",w),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function ni(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Mc(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Ic(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function An(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=ni();if(!s)return n;n.sdk=Ic();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let f=s.getCurrentHub?.()?.getScope?.();n.eventId=f?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let l={};for(let[f,p]of Object.entries(i))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(l[f]=p);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let l=i.slice(-r);n.breadcrumbs=l.map(f=>{let p=f;return {timestamp:typeof p.timestamp=="number"?p.timestamp<1e12?Math.round(p.timestamp*1e3):p.timestamp:void 0,category:typeof p.category=="string"?p.category:void 0,level:typeof p.level=="string"?p.level:void 0,message:typeof p.message=="string"?p.message:void 0,type:typeof p.type=="string"?p.type:void 0,data:p.data&&typeof p.data=="object"?p.data:void 0}});}}catch{}}try{let i=s,l;if(typeof i.getActiveSpan=="function"?l=i.getActiveSpan():o?.getSpan&&(l=o.getSpan()),l){let f=l.spanContext?.();n.traceId=f?.traceId??l.traceId??void 0,n.spanId=f?.spanId??l.spanId??void 0;}}catch{}let a;try{let i=s;typeof i.getClient=="function"?a=i.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let i=a.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=a.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let l=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??Mc();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function _n(t,e={}){let r=ni();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Lc=["/login","/logout","/signup","/sso/*","/auth/*"];function oi(t,e={}){let r=[];if(e.rageClick!==false){let v=function(k){let I=Date.now();if(k.target===E){if(d.push(I),d=d.filter($=>I-$<500),d.length>=3){let $=k.target;t.onTrigger("rage_click",{element:$.tagName,id:$.id,text:$.textContent?.slice(0,50)}),d=[];}}else E=k.target,d=[I];};let d=[],E=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let d=new PerformanceObserver(E=>{for(let v of E.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});d.observe({entryTypes:["longtask"]}),r.push(()=>d.disconnect());}catch{}let n=Ac(e.apiCascade);if(n.enabled){let d=[],E=globalThis.fetch;globalThis.fetch=async function(...v){let[k,I]=v,$=Cr(k),M=!!Tr(k,I)||Nt($,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let w=await E.apply(this,v);return !M&&!w.ok&&w.status>=400&&si(d,t),w}catch(w){throw M||si(d,t),w}},r.push(()=>{globalThis.fetch=E;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let $=function(S){return v.some(A=>A.endsWith("/*")?S.startsWith(A.slice(0,-2)):S===A||S.startsWith(A+"/"))},M=function(){let S=window.location?.pathname??"";$(S)||t.onTrigger("page_dwell",{thresholdMs:E,path:S});},w=function(){k&&clearTimeout(k);let S=window.location?.pathname??"";$(S)||(k=setTimeout(M,E));},x=function(){let S=window.location?.pathname??"";S!==I&&(I=S,w());};let d=typeof e.pageDwell=="object"?e.pageDwell??{}:{},E=d.thresholdMs||300*1e3,v=d.excludeRoutes!==void 0?d.excludeRoutes:Lc,k=null,I=window.location?.pathname??"";w();let y=Pe({onPush:x,onReplace:x,onPop:x});r.push(()=>{k&&clearTimeout(k),y();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let d=typeof e.firstSession=="object"?e.firstSession??{}:{},E=d.delayMs??45*1e3,v=d.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),k=false;try{k=window.localStorage?.getItem(v)==="1";}catch{}if(!k){let I=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:E});},E);r.push(()=>clearTimeout(I));}}if(e.errorBoundary){let d=function(v){It({message:v.message,filename:v.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},E=function(v){let k=v.reason instanceof Error?v.reason.message:String(v.reason);It({message:k,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:k,type:"unhandled_rejection"});};window.addEventListener("error",d),window.addEventListener("unhandledrejection",E),r.push(()=>{window.removeEventListener("error",d),window.removeEventListener("unhandledrejection",E);});}return {destroy(){r.forEach(d=>d());}}}function Ac(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function si(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var ii="mushi:lastDismiss",Mr="mushi:consecDismiss",Hn="mushi:lastShown";function Ir(t){try{return localStorage.getItem(t)}catch{return null}}function Lr(t,e){try{localStorage.setItem(t,e);}catch{}}function ai(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function i(h){let g=Date.now();if(parseInt(Ir(Mr)??"0",10)>=n)return false;let E=Ir(ii);if(E&&g-parseInt(E,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=Ir(Hn);if(v&&g-parseInt(v,10)<s)return false}return o>=e||a.has(h)?false:(a.add(h),o++,Lr(Hn,String(g)),true)}function l(){Lr(ii,String(Date.now()));let h=parseInt(Ir(Mr)??"0",10);Lr(Mr,String(h+1));}function f(){Lr(Mr,"0");}function p(){o=0,a.clear();try{localStorage.removeItem(Hn);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:f,reset:p}}function li(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var De=null,Ar=class{constructor(){}static init(e){if(De)return ur({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),De;if(typeof document>"u"||typeof window>"u")return ui();let r={...Gr(),...e};if(!r.projectId||!r.apiKey){let n=As();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?ui():(De=_c(r),De)}static getInstance(){return De}static destroy(){De?.destroy(),De=null;}static diagnose(){return De?.diagnose()??Dn()}};function _c(t){Hs(t);let e=_s(t),r=e.projectId,n=()=>ie(r),s=e,o=t.debug??false?ur({scope:"mushi",level:"debug",format:"pretty"}):Xr,a=null,i=null,l=Ls({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:je,sdkVersion:be});e.trackSessions!==false&&Ws({client:l,sdkVersion:be,reporterTokenHash:ie(e.projectId)??null});let f=Ps(e.preFilter),p=Us(e.offline),h=Vs({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),g=Zr();function d(c){return c.map(u=>{let C={...u};if(typeof u.message=="string"&&(C.message=g.scrub(u.message)),u.data&&typeof u.data=="object"){let P={};for(let[D,K]of Object.entries(u.data))P[D]=typeof K=="string"?g.scrub(K):K;C.data=P;}return C})}function E(c){return c&&c.map(u=>({...u,message:g.scrub(u.message),...u.stack?{stack:g.scrub(u.stack)}:{}}))}function v(c){if(!c)return;let u={};for(let[C,P]of Object.entries(c))u[C]=typeof P=="string"?g.scrub(P):P;return u}let k=null,I=null,$=null,M=null,w=null,x=null,y=Mn(),S=null,A=0,b,q=`mushi:tester-jwt:${e.projectId}`;function W(){try{return typeof localStorage<"u"?localStorage.getItem(q):null}catch{return null}}function G(){try{typeof localStorage<"u"&&localStorage.removeItem(q);}catch{}}async function te(c){let u=await l.getTesterStatus(c);if(!u.ok||!u.data){G();return}let C=u.data;if(!C.is_tester||!C.tester_id){G();return}b.setTesterSession(c,{id:C.tester_id,public_handle:C.public_handle??null,display_name:C.display_name??null});let P=await l.getMyReputation(c);if(P.ok&&P.data){let D=P.data;D.reputation&&b.setTesterReputation(D.reputation);}}function ae(){if(s.capture?.console!==false?k??=En():(k?.destroy(),k=null),s.capture?.network!==false){let N={apiEndpoint:Pn(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:ht()};I?I.updateOptions(N):I=Sn(N);}else I?.destroy(),I=null;if(s.capture?.performance!==false?$??=Tn():($?.destroy(),$=null),s.capture?.screenshot!=="off"){let N={privacy:s.privacy,onFailed:()=>b.setScreenshotError(true)};s.capture?.screenshotProvider?M=null:M?M.updateOptions(N):M=Cn(N);}else M=null;!M&&!s.capture?.screenshotProvider&&(L=null),b.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?w??=$n():(w?.deactivate(),w=null,_=null),b.setCaptureAvailability({screenshot:(!!M||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!w});let c=s.capture?.discoverInventory,u=c===true?{}:c&&typeof c=="object"?c:null;u!=null&&u.enabled!==false?(x?.destroy(),x=Ln({config:u,getRecentNetworkPaths:()=>I?I.getEntries().map(N=>{try{let Z=new URL(N.url,typeof window<"u"?window.location.href:"http://localhost");return Z.host&&typeof window<"u"&&Z.host!==window.location.host?null:Z.pathname}catch{return null}}).filter(N=>N!=null&&N.length>0&&N.length<200):[],getUserId:()=>R?.id??null,getSessionId:ht,onEvent:N=>{l.postDiscoveryEvent({...N,sdk_version:be}).catch(Z=>{o.debug("discovery emit failed",{err:String(Z)});});}})):(x?.destroy(),x=null);let P=s.capture?.replay??"off",D=s.replaySampleRate??1,K=D>=1||Math.random()<D,re=s.replaysOnErrorSampleRate??0,le=!K&&re>0&&Math.random()<re;if((P==="rrweb"||P==="lite")&&(K||le)){let N=++A;ti({redactSelectors:s.privacy?.redactSelectors}).then(Z=>{if(N!==A){Z.destroy();return}S?.destroy(),S=Z,S.start();});}else A++,S?.destroy(),S=null;}let J=new Map;function U(c,u){J.get(c)?.forEach(C=>C({type:c,data:u}));}let L=null,_=null,ee=null,ne=false,xe=true,Ie=null,ye=null,R=null,T=null,H={},O={},B=Xs({max:50});B.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:be}});let pe=null;pe=jc(B);let Re=false;function Ce(){b.refreshReporterInboxQuiet();}function Y(){Ie&&clearInterval(Ie),Ie=null,ye&&typeof document<"u"&&document.removeEventListener("visibilitychange",ye),ye=null;}function he(){if(Y(),!xe)return;Ie=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||Ce();},6e4),typeof document<"u"&&(ye=()=>{document.visibilityState==="visible"&&Ce();},document.addEventListener("visibilitychange",ye)),Ce();}function Se(c,u){if(!s.rewards?.enabled)return;let C={client:l,config:s.rewards,projectId:r,userId:c,traits:u,reporterToken:n()};Uo(C),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(P=>{if(!P.ok)return;let D=P.data;b.setRewardsState({tier:D.tier?{slug:D.tier.slug??"free",displayName:D.tier.display_name??"Free",pointsThreshold:D.tier.points_threshold??0}:null,nextTier:D.next_tier?{displayName:D.next_tier.display_name??"",pointsThreshold:D.next_tier.points_threshold??0}:null,totalPoints:D.total_points??0,pointsForReport:D.report_submit_pts??50});}).catch(()=>{});}async function fe(){if(Re)return null;let c=s.capture?.screenshotProvider;if(c){Re=true;try{let D=await c();if(D)return D}catch(D){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:D instanceof Error?D.message:String(D)});}finally{Re=false;}}if(!M)return null;Re=true;let u=b.getIsOpen();u&&b.hidePanel();let C=document.getElementById("mushi-mushi-widget"),P=C?.style.visibility??"";C&&(C.style.visibility="hidden"),await new Promise(D=>{requestAnimationFrame(()=>requestAnimationFrame(()=>D()));});try{return await M.take()}finally{Re=false,C&&(C.style.visibility=P),u&&b.showPanel();}}async function Je(c){let u=s.capture?.screenshot;!(M||s.capture?.screenshotProvider)||u==="off"||L||c==="open"&&u!=="auto"||c==="submit"&&u!=="on-report"&&u!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:u}),L=await fe(),b.setScreenshotAttached(L!==null),b.setScreenshotPreview(L));}b=new wr(e.widget,{onSubmit:async({category:c,userCategory:u,description:C,intent:P})=>(o.info("Report submitted",{category:c,userCategory:u,intent:P}),me?.recordSubmission(),await Je("submit"),await Ft(c,C,P,u)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),Je("open"),S?.start(),U("widget:opened");},onClose:()=>{o.debug("Widget closed"),ee&&(me?.recordDismissal(),U("proactive:dismissed",{type:ee})),L=null,_=null,ee=null,U("widget:closed");},onScreenshotRequest:async()=>{if(!(!!M||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),b.setScreenshotError(true);return}o.debug("Taking screenshot"),b.setScreenshotCapturing(true);try{L=await fe();}catch(u){o.warn("Screenshot capture threw",{error:u instanceof Error?u.message:String(u)}),L=null;}b.setScreenshotAttached(L!==null),b.setScreenshotPreview(L),L===null&&b.setScreenshotError(true);},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),L=null,b.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!L||c.childElementCount>0)return;let u;try{u=await ri(L,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let C=document.createElement("div");C.className="mushi-annotate-toolbar";let P=re=>{(L=u.getDataUrl(),b.setScreenshotAttached(true),b.setScreenshotPreview(L)),u.destroy(),C.remove();},D=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of D){let le=document.createElement("button");le.type="button",le.className="mushi-attach-btn",le.dataset.tool=re.id,le.textContent=re.label,le.addEventListener("click",()=>{u.setTool(re.id),C.querySelectorAll("button[data-tool]").forEach(N=>N.classList.remove("active")),le.classList.add("active");}),C.appendChild(le);}C.querySelector('button[data-tool="highlight"]')?.classList.add("active");let K=document.createElement("button");K.type="button",K.className="mushi-attach-btn",K.textContent="\u2713 Done",K.addEventListener("click",()=>P()),C.appendChild(K),c.insertBefore(C,c.firstChild);},onElementSelectorRequest:async()=>{if(!w||s.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),b.setElementError(true);return}o.debug("Element selector activated"),b.setElementCapturing(true),b.hidePanel();try{let c=await w.activate();c?(_=c,b.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):b.setElementCapturing(!1);}catch(c){o.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),b.setElementError(true);}finally{b.showPanel();}},async onReporterReportsRequest(){let c=await l.listReporterReports(ie(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let u=await l.listReporterComments(c,ie(r));if(!u.ok)throw new Error(u.error?.message??"Could not load thread");return u.data?.comments??[]},async onReporterReply(c,u){let C=await l.replyToReporterReport(c,ie(r),u);if(!C.ok)throw new Error(C.error?.message??"Could not send reply")},async onReporterFeedback(c,u,C){let P=await l.replyToReporterReport(c,ie(r),C??"",u);if(!P.ok)throw new Error(P.error?.message??"Could not send feedback");return P.data?.feedback??null},async onReporterReopen(c,u){let C=await l.reopenReporterReport(c,ie(r),u);if(!C.ok)throw new Error(C.error?.message??"Could not reopen report");return C.data?.outcome??null},async onFeatureBoardRequest(){let c=await l.listReporterFeatureBoard(ie(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let u=await l.voteReporterFeatureBoard(c,ie(r));if(!u.ok)throw new Error(u.error?.message??"Could not vote");return u.data??{voted:true,action:"added"}},onLeaderboardOpen(){b.setLeaderboard(null,true),qo(10).then(c=>{b.setLeaderboard(c,false);});},async onMushiSignIn(c){let u=await l.sendMagicLink(c);if(!u.ok)throw new Error(u.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){b.setGlobalLeaderboard(null,true);try{let c=W(),u=await l.getPublicLeaderboard(50),P=(u.ok?u.data?.leaderboard??[]:[]).map(D=>({tester_id:D.tester_id,rank:D.rank,public_handle:D.public_handle,display_name:D.display_name,points_30d:D.points_30d,total_points:D.total_points??0,badge:D.badge_slug}));if(b.setGlobalLeaderboard(P,!1),c){let D=await l.getMyReputation(c);if(D.ok&&D.data){let K=D.data;K.reputation&&b.setTesterReputation(K.reputation);}}}catch{b.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=W();if(!c){b.setCrossAppReports([],false);return}try{let u=await l.getCrossAppReports(c),C=u.ok?u.data?.reports??[]:[];b.setCrossAppReports(C,!1);}catch{b.setCrossAppReports([],false);}},onTesterSignOut(){G();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(c,u){let C=await l.askAssistant({message:c,threadId:u,context:i});return C.ok?C.data??null:null}},be),ae(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>b.mount()):b.mount());let j=W();j&&te(j).catch(()=>G());let Qe=null,me=null,X=s.proactive;X&&(X.rageClick!==false||X.longTask!==false||X.apiCascade!==false||X.errorBoundary===true||X.pageDwell||X.firstSession)&&typeof document<"u"&&(me=ai(X?.cooldown),Qe=oi({onTrigger:(c,u)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!me.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:u}),ee=c,U("proactive:triggered",{type:c,context:u}),c==="first_session"?b.pulseTrigger?.():b.open();}},{rageClick:X?.rageClick,longTask:X?.longTask,apiCascade:X?.apiCascade,apiEndpoint:Pn(s),errorBoundary:X?.errorBoundary,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls,pageDwell:X?.pageDwell,firstSession:X?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:X?.rageClick!==false,longTask:X?.longTask!==false,apiCascade:X?.apiCascade!==false,errorBoundary:X?.errorBoundary===true,pageDwell:!!X?.pageDwell,firstSession:!!X?.firstSession})),p.startAutoSync(l),p.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function ot(c){if(ne=true,xe=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,Nc(t.projectId),ae(),b.updateConfig(s.widget),Y(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=Mo(s,c),ae(),c.widget&&b.updateConfig(s.widget),xe?he():Y(),o.debug("Applied runtime SDK config",{version:c.version});}if(Hc(t)){let c=Oc(t.projectId);c&&ot(c),l.getSdkConfig().then(u=>{u.ok&&u.data?(Bc(t.projectId,u.data),ot(u.data)):u.error&&o.debug("Runtime SDK config unavailable",u.error);}).catch(u=>{o.debug("Runtime SDK config fetch failed",{error:u instanceof Error?u.message:String(u)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");it(),he(),o.info("Initialized",{projectId:t.projectId});async function it(){if(s.widget?.outdatedBanner==="off")return;let c=Uc(je);c&&Ut(c);let u=await l.getLatestSdkVersion(je);!u.ok||!u.data||(Fc(je,u.data),Ut(u.data));}function Ut(c){let u=c.latest,C=!!(u&&qc(be,u));if(!C&&!c.deprecated)return;let P=c.deprecationMessage??(C?`Update ${je} to ${u}.`:null);o.warn("Mushi SDK is outdated",{package:je,current:be,latest:u,deprecated:c.deprecated,message:P}),s.widget?.outdatedBanner!=="console-only"&&b.setSdkFreshness({latest:u,current:be,deprecated:c.deprecated,message:P});}async function Ft(c,u,C,P){let D=f.check(u);if(!D.passed){o.info("Report blocked by pre-filter",{reason:D.reason});return}let K=t.preFilter?.wasmClassifier;if(K)try{let F=await K.classify({description:u,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:L!==null,hasSelectedElement:_!==null,hasNetworkErrors:I?.getEntries()?.some(ve=>ve.status>=400||!!ve.error)??!1,hasConsoleErrors:k?.getEntries()?.some(ve=>ve.level==="error")??!1,proactiveTrigger:ee??void 0});if(F.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:F.modelId,confidence:F.confidence,reason:F.reason});return}o.debug("On-device classifier verdict",{...F});}catch(F){o.warn("On-device classifier threw \u2014 falling through to server",{error:F instanceof Error?F.message:String(F)});}if(ee!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:ee});return}if(!h.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let le=g.scrub(f.truncate(u)),N=t.sentry?An(t.sentry):void 0,Z=await Fs().catch(()=>null),Oe=s.capture?.console===false?void 0:E(k?.getEntries()),Be=s.capture?.network===false?void 0:I?.getEntries(),Wt=d(B.getAll()),Bn=v(Object.keys(O).length>0?{...O}:void 0),Nn=N?{...N,...N.breadcrumbs?{breadcrumbs:d(N.breadcrumbs)}:{},...N.tags?{tags:v(N.tags)}:{}}:void 0,Un=L?await po(L).catch(()=>null):null,zt=false;L&&!Un&&(zt=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let Fn=Yr(),Le={id:Jr(),projectId:t.projectId,category:c,...P?{userCategory:P}:{},description:le,userIntent:C,environment:Fn,consoleLogs:Oe,networkLogs:Be,performanceMetrics:s.capture?.performance===false?void 0:$?.getMetrics(),timeline:y.getEntries({consoleLogs:Oe,networkLogs:Be}),screenshotDataUrl:Un??void 0,selectedElement:_??void 0,...S?{replayEvents:S.flush()}:{},metadata:{...H,...R?{user:R}:{},...N?.release?{sentryRelease:N.release}:{}},sessionId:ht(),reporterToken:ie(r),...Z?{fingerprintHash:Z}:{},appVersion:li(s,Fn),sdkPackage:je,sdkVersion:be,proactiveTrigger:ee??void 0,...Wt.length>0?{breadcrumbs:Wt}:{},...Bn?{tags:Bn}:{},...Nn?{sentryContext:Nn}:{},sentryEventId:N?.eventId,sentryReplayId:N?.replayId,createdAt:new Date().toISOString()};if(B.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Le.id,category:c}}),t.integrations?.custom){let F={addMetadata(ve,Pr){Le.metadata[ve]=Pr;},setCategory(ve){Le.category=ve;},setDescription(ve){Le.description=ve;}};t.integrations.custom(F);}let z=Le,qn=t.beforeSend??t.beforeSendFeedback;if(qn)try{let F=await Promise.race([Promise.resolve(qn(Le)),new Promise(ve=>setTimeout(()=>ve(Le),2e3))]);if(F===null){o.info("Report dropped by beforeSend hook",{reportId:Le.id});return}z=F;}catch(F){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:F instanceof Error?F.message:String(F)});}if(U("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(z),o.info("Offline \u2014 report queued",{reportId:z.id}),U("report:queued",{reportId:z.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let V=await l.submitReport(z);if(!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(z.replayEvents)&&z.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:z.id}),z={...z,replayEvents:void 0},V=await l.submitReport(z)),!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&z.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:z.id}),zt=true,z={...z,screenshotDataUrl:void 0},V=await l.submitReport(z))),V.ok){if(o.info("Report sent",{reportId:V.data?.reportId}),U("report:sent",{reportId:V.data?.reportId}),Ce(),V.data?.cursorAgentId){let F=V.data;U("report:dispatched",{reportId:F.reportId,agentId:F.cursorAgentId,fixId:F.fixId});}B.add({category:"lifecycle",level:"info",message:`Mushi report sent (${V.data?.reportId??Le.id})`}),xt({action:"report_submit",metadata:{category:c,reportId:V.data?.reportId??Le.id}});try{t.sentry&&V.data?.reportId&&_n(V.data.reportId);}catch{}}else {if(V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:z.id,error:V.error}),U("report:failed",{reportId:z.id,error:V.error}),B.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${z.id})`}),L=null,_=null,ee=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:zt};{let F=V.error?.code??"",ve=F==="HTTP_429"||F.includes("RATE_LIMIT"),Pr=F==="HTTP_401"||F.includes("UNAUTHORIZED")||F.includes("INVALID_API_KEY")||F.includes("MISSING_API_KEY"),hi=F==="HTTP_403"||F.includes("QUOTA")||F.includes("FORBIDDEN")||F==="feature_not_in_plan";if(Pr||hi)return o.warn("Report rejected \u2014 credentials/quota",{reportId:z.id,error:V.error}),U("report:failed",{reportId:z.id,error:V.error}),L=null,_=null,ee=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(ve)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:z.id,error:V.error}),await p.enqueue(z),U("report:failed",{reportId:z.id,error:V.error}),L=null,_=null,ee=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:z.id,error:V.error}),await p.enqueue(z),U("report:failed",{reportId:z.id,error:V.error}),B.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${z.id})`});}}return L=null,_=null,ee=null,V?.ok?{reportId:V.data?.reportId??Le.id,queuedOffline:false,screenshotDropped:zt}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let qt={report(c){b.open(c);},on(c,u){return J.has(c)||J.set(c,new Set),J.get(c).add(u),()=>J.get(c)?.delete(u)},setUser(c){R=c;},setMetadata(c,u){H[c]=u;},setScreen(c){y.setScreen(c);},isOpen(){return b.getIsOpen()},open(){b.open();},openWith(c){b.open({category:c});},show(){b.showTrigger();},hide(){b.hideTrigger();},attachTo(c,u){return b.attachTo(c,u)},setTrigger(c){b.setTrigger(c);},openReporter(){b.openReporter();},close(){b.close();},updateConfig(c){ot(c);},diagnose(){return Pc({apiEndpoint:Pn(s),widgetMounted:b.getIsMounted(),runtimeConfigLoaded:ne,captureScreenshotAvailable:M!==null,captureNetworkIntercepting:I!==null,widgetDiagnostics:b.getWidgetDiagnostics()})},destroy(){Qe?.destroy(),me?.reset(),b.destroy(),k?.destroy(),I?.destroy(),$?.destroy(),w?.deactivate(),jo(),pe?.(),pe=null,x?.destroy(),x=null,y.destroy(),Ao(),S?.destroy(),S=null,p.stopAutoSync(),Y(),Ks(),B.clear(),J.clear(),De=null,o.debug("Destroyed");},async captureEvent(c){if(!h.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let u=g.scrub(f.truncate(c.description)),C=c.category??"bug",P=t.sentry?An(t.sentry):void 0,D=d(B.getAll()),K=v(Object.keys(O).length===0&&!c.tags?void 0:{...O,...c.tags??{}}),re=P?{...P,...P.breadcrumbs?{breadcrumbs:d(P.breadcrumbs)}:{},...P.tags?{tags:v(P.tags)}:{}}:void 0,le=Yr(),N={id:Jr(),projectId:t.projectId,category:C,description:u,environment:le,timeline:y.getEntries(),metadata:{...c.metadata??{},...R?{user:R}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...D.length>0?{breadcrumbs:D}:{},...K&&Object.keys(K).length>0?{tags:K}:{},...re?{sentryContext:re}:{},sessionId:ht(),reporterToken:ie(r),appVersion:li(s,le),sdkPackage:je,sdkVersion:be,sentryEventId:P?.eventId,sentryReplayId:P?.replayId,createdAt:new Date().toISOString()},Z=N;if(s.beforeSendFeedback)try{let Be=await Promise.race([Promise.resolve(s.beforeSendFeedback(N)),new Promise(Wt=>setTimeout(()=>Wt(N),2e3))]);if(Be===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:N.id}),null;Z=Be;}catch(Be){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Be instanceof Error?Be.message:String(Be)});}if(U("report:submitted",{reportId:Z.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(Z),U("report:queued",{reportId:Z.id}),null;let Oe=await l.submitReport(Z);if(Oe.ok){U("report:sent",{reportId:Oe.data?.reportId});try{t.sentry&&Oe.data?.reportId&&_n(Oe.data.reportId);}catch{}return Oe.data?.reportId??null}return await p.enqueue(Z),U("report:failed",{reportId:Z.id,error:Oe.error}),null},async captureException(c,u){let C=Ys(c),P=typeof u?.metadata?.filename=="string"?u.metadata.filename:void 0;if(It({message:C.message,filename:P,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls}))return null;B.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${C.name}): ${C.message}`,...C.stack?{data:{stack:C.stack.slice(0,500)}}:{}});let D=u?.description?.trim()||`${C.name}: ${C.message}`||"Uncaught exception";return qt.captureEvent({description:D,category:u?.category??"bug",severity:u?.severity??"high",...u?.component?{component:u.component}:{},...u?.tags?{tags:u.tags}:{},source:u?.source??"captureException",error:{name:C.name,message:C.message,...C.stack?{stack:C.stack}:{}},metadata:{...u?.metadata??{},...C.cause?{cause:C.cause}:{}}})},identify(c,u){let C=`${c}::${u?JSON.stringify(u):""}`;if(C!==T){if(T=C,R={id:c,...u?.email?{email:u.email}:{},...u?.name?{name:u.name}:{}},b.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),u)for(let[P,D]of Object.entries(u))P!=="email"&&P!=="name"&&(H[`user.${P}`]=D);B.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Se(c,u?{email:u.email,name:u.name,provider:u.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let u=ro(a);if(u?.sub){if(R?.id===u.sub){B.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}zs(u.sub),R={id:u.sub,...u.email?{email:u.email}:{},...u.name?{name:u.name}:{}},b.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),Se(R.id,{email:R.email,name:R.name});}B.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else R=null,T=null,b.setIdentifiedUser(null),B.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){b.openAssistantTab();},addBreadcrumb(c){B.add(c);},getBreadcrumbs(){return B.getAll()},setTag(c,u){typeof c!="string"||c.length===0||(O[c]=u);},setTags(c){if(!(!c||typeof c!="object"))for(let[u,C]of Object.entries(c))typeof u=="string"&&u.length>0&&(O[u]=C);},clearTag(c){if(typeof c=="string"&&c.length>0){delete O[c];return}for(let u of Object.keys(O))delete O[u];},async getReputation(){if(!R?.id)return null;let c=await l.getMyPoints(R.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return R?.id?Fo(R.id):null},recordActivity(c,u){s.rewards?.enabled&&xt({action:c,metadata:u});},pulseTrigger(){b.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(ie(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let u=await l.listReporterComments(c,ie(r));return u.ok?u.data?.comments??[]:[]},async replyToReport(c,u){let C=await l.replyToReporterReport(c,ie(r),u);return C.ok?C.data?.comment??null:null},async submitFeedbackSignal(c,u,C){let P=await l.replyToReporterReport(c,ie(r),C??"",u);return P.ok?P.data?.feedback??null:null},async reopenReport(c,u){let C=await l.reopenReporterReport(c,ie(r),u);return C.ok?C.data?.outcome??null:null},openMyReports(){b.recorderOpenMyReports();},async getHallOfFame(c=20){let u=await l.getHallOfFame(c);return u.ok?u.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Io(b),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",u=null;try{let C=localStorage.getItem(c);u=C===null?null:C==="unfinished",localStorage.setItem(c,"unfinished");}catch{u=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}Ts(),$s();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(u);}catch(C){o.warn("onCrashedLastRun hook threw",{error:C instanceof Error?C.message:String(C)});}}let jt={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},Hr=(c,u)=>{let C=u instanceof Error?u.message:String(u);o.debug(`Mushi.${c}() failed (swallowed)`,{error:C});try{B.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:C}});}catch{}};return (c=>new Proxy(c,{get(u,C,P){let D=Reflect.get(u,C,P);if(typeof D!="function")return D;let K=String(C),re=()=>K==="diagnose"?Dn():K in jt?jt[K]:void 0;return (...le)=>{try{let N=D.apply(u,le);return N&&typeof N.then=="function"?N.catch(Z=>(Hr(K,Z),re())):N}catch(N){return Hr(K,N),re()}}}}))(qt)}function Pn(t){return t.apiEndpoint??$t}function Hc(t){return t.runtimeConfig!==false}async function Pc(t){let e=await Dc(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:be,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Dn(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:be,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Dc(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[pt]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function On(t){return `mushi:sdk-config:${t}`}function pi(t){return `mushi:sdk-version:${t}`}function Oc(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(On(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Bc(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(On(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Nc(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(On(t));}catch{}}function Uc(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(pi(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function Fc(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(pi(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function qc(t,e){let r=ci(t),n=ci(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,a=n[s]??0;if(o<a)return true;if(o>a)return false}return false}function ci(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function ui(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Dn,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{De=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function jc(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Pe({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(di).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(di).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,a=0;for(;o&&a<10;){let i=o.getAttribute("data-testid");if(i){let l=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${l?` \u2014 ${l}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function di(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Wc(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function zc(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function Kc(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Wc();if(!e)return;let r=zc(e.dataset);if(r){t.__mushiLoaderInit=true;try{Ar.init(r);}catch{}}}Kc();
2341
- })();//# sourceMappingURL=mushi.loader.global.js.map
2342
- //# sourceMappingURL=mushi.loader.global.js.map
578
+ `,document.body.appendChild(g),g}function h(g,w){let b=document.elementsFromPoint(g,w),E=null;for(let A of b)if(!(A===r||A===e)){if(A.id==="mushi-mushi-widget"||A.closest("#mushi-mushi-widget"))return null;E=A;break}let M=0;for(;E?.shadowRoot&&M<20;){let A=E.shadowRoot.elementFromPoint(g,w);if(!A||A===E)break;E=A,M++;}return E}function p(g){if(!e)return;let w=g.getBoundingClientRect();e.style.left=`${w.left}px`,e.style.top=`${w.top}px`,e.style.width=`${w.width}px`,e.style.height=`${w.height}px`,e.style.display="block";}function y(g){let w=h(g.clientX,g.clientY);if(!w){n=null,e&&(e.style.display="none");return}n=w,p(w);}function d(g){g.preventDefault(),g.stopPropagation();}function S(g){g.preventDefault(),g.stopPropagation();let w=h(g.clientX,g.clientY);w&&_(i(w));}function v(g){g.key==="Escape"&&_(null);}function k(){n?.isConnected&&p(n);}function _(g){$(),s?.(g),s=null;}function T(){return t&&$(),new Promise(g=>{s=g,t=true,e=l(),r=m(),r.addEventListener("mousemove",y),r.addEventListener("click",S),r.addEventListener("pointerdown",d),r.addEventListener("mousedown",d),r.addEventListener("mouseup",d),document.addEventListener("keydown",v,true),window.addEventListener("scroll",k,{capture:true,passive:true});})}function $(){t&&(t=false,n=null,document.removeEventListener("keydown",v,true),window.removeEventListener("scroll",k,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:T,deactivate:$,isActive:()=>t}}var ia=120;function ds(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>ia&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:Jt(`${location.pathname}${location.search}${location.hash}`),href:Jt(location.href)}});}function s(a){let i=a.target instanceof Element?a.target:null;if(!i)return;let l=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:sd(l)}});}let o=Pe({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,m)=>l.ts-m.ts).slice(-ia)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function sd(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var od=6e4,id=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,ad=/^[0-9a-f]{20,}$/i,ld=/^\d+$/,cd=/^[a-z0-9]{16,}$/i;function aa(t){return t.length===0?t:id.test(t)||ad.test(t)||ld.test(t)||cd.test(t)&&/\d/.test(t)?"[id]":t}function ud(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),s=n.indexOf("?"),o=s===-1?n:n.slice(0,s),a=r?.map(i=>i.startsWith("/#/")?i.slice(2):i);return "/#"+ps(o,a)}return ps(t,r)}function ps(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=dd(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(aa).join("/")}function dd(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let a=true;for(let i=0;i<o.length;i++){let l=o[i],m=r[i];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==m){a=false;break}}if(a)return "/"+o.join("/")}return null}function pd(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function hd(){if(typeof window>"u")return [];try{let t=new Set,e=s=>{new URLSearchParams(s).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function fd(){if(typeof document>"u")return null;let t=s=>(s??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function md(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function hs(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??od,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",m=new Map,h=null,p=null;async function y(){if(typeof window>"u")return;let _=ud(window.location.pathname,window.location.hash,e.routeTemplates),T=Date.now(),$=m.get(_)??0;if(T-$<a)return;m.set(_,T);let g=null;l==="auto"?g=n()??s():l==="session-only"&&(g=s());let w={route:_,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?fd():null,testids:pd(),network_paths:r().slice(-50),query_param_keys:hd(),user_id_hash:await md(g),observed_at:new Date().toISOString()};o(w);}function d(){p||(p=setTimeout(()=>{p=null,y();},100));}function S(){if(typeof window>"u")return;let _=window.location.hash.startsWith("#/")?window.location.hash:"",T=window.location.pathname+window.location.search+_;T!==h&&(h=T,d());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=()=>S(),k=Pe({onPush:v,onReplace:v,onPop:v});return window.addEventListener("hashchange",v),d(),{destroy(){k(),window.removeEventListener("hashchange",v),p&&(clearTimeout(p),p=null),m.clear();},flushNow(){m.clear(),y();}}}var gd=3e4,ms=400,bd=4,yd=2;function la(t,e,r){let n=l=>l.timestamp,s=l=>l.type===yd,o=l=>l.type===bd,a=Date.now()-e,i=0;for(let l=0;l<t.length;l++){let m=n(t[l]);if(typeof m=="number"&&m>=a)break;s(t[l])&&(i=o(t[l-1])?l-1:l);}if(t.length-i>r){for(let l=i+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){i=o(t[l-1])?l-1:l;break}}i>0&&t.splice(0,i);}function ca(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,i=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:l}}),e.length>ms&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){s(),e.length=0;}}}var vd=['input[type="password"]',"[data-mushi-redact]"],Be=null,ua=false;function fs(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.record=="function"?e:e.default&&typeof e.default.record=="function"?e.default:null}async function wd(t){if(Be)return Be;if(typeof t=="function")try{if(Be=fs(await t()),Be)return Be}catch{}if(Be=fs(globalThis.rrweb),Be)return Be;try{return Be=fs(await import('rrweb')),Be}catch{return null}}async function da(t){let e=t.maxDurationMs??gd;if(t.mode==="lite")return ca(e);let r=await wd(t.loadRrweb);if(!r?.record)return ua||(ua=true,Rt({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),ca(e);let n=r.record,s=[],o=null,a=false,i=[...new Set([...vd,...t.redactSelectors??[]])],l=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(m){s.push(m),la(s,e,ms);},maskAllInputs:true,maskTextSelector:"*",blockSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return la(s,e,ms),[...s]},destroy(){l(),s.length=0;}}}function pa(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function xd(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Sd(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function gs(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=pa();if(!s)return n;n.sdk=Sd();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let m=s.getCurrentHub?.()?.getScope?.();n.eventId=m?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let l={};for(let[m,h]of Object.entries(i))(typeof h=="string"||typeof h=="number"||typeof h=="boolean")&&(l[m]=h);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let l=i.slice(-r);n.breadcrumbs=l.map(m=>{let h=m;return {timestamp:typeof h.timestamp=="number"?h.timestamp<1e12?Math.round(h.timestamp*1e3):h.timestamp:void 0,category:typeof h.category=="string"?h.category:void 0,level:typeof h.level=="string"?h.level:void 0,message:typeof h.message=="string"?h.message:void 0,type:typeof h.type=="string"?h.type:void 0,data:h.data&&typeof h.data=="object"?h.data:void 0}});}}catch{}}try{let i=s,l;if(typeof i.getActiveSpan=="function"?l=i.getActiveSpan():o?.getSpan&&(l=o.getSpan()),l){let m=l.spanContext?.();n.traceId=m?.traceId??l.traceId??void 0,n.spanId=m?.spanId??l.spanId??void 0;}}catch{}let a;try{let i=s;typeof i.getClient=="function"?a=i.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let i=a.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=a.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let l=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??xd();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function bs(t,e={}){let r=pa();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Ed=["/login","/logout","/signup","/sso/*","/auth/*"];function fa(t,e={}){let r=[];if(e.rageClick!==false){let v=function(k){let _=Date.now();if(k.target===S){if(d.push(_),d=d.filter(T=>_-T<500),d.length>=3){let T=k.target;t.onTrigger("rage_click",{element:T.tagName,id:T.id,text:T.textContent?.slice(0,50)}),d=[];}}else S=k.target,d=[_];};let d=[],S=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let d=new PerformanceObserver(S=>{for(let v of S.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});d.observe({entryTypes:["longtask"]}),r.push(()=>d.disconnect());}catch{}let n=kd(e.apiCascade);if(n.enabled){let d=[],S=globalThis.fetch;globalThis.fetch=async function(...v){let[k,_]=v,T=Yr(k),$=!!Jr(k,_)||ir(T,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let g=await S.apply(this,v);return !$&&!g.ok&&g.status>=400&&ha(d,t),g}catch(g){throw $||ha(d,t),g}},r.push(()=>{globalThis.fetch=S;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let T=function(E){return v.some(M=>M.endsWith("/*")?E.startsWith(M.slice(0,-2)):E===M||E.startsWith(M+"/"))},$=function(){let E=window.location?.pathname??"";T(E)||t.onTrigger("page_dwell",{thresholdMs:S,path:E});},g=function(){k&&clearTimeout(k);let E=window.location?.pathname??"";T(E)||(k=setTimeout($,S));},w=function(){let E=window.location?.pathname??"";E!==_&&(_=E,g());};let d=typeof e.pageDwell=="object"?e.pageDwell??{}:{},S=d.thresholdMs||300*1e3,v=d.excludeRoutes!==void 0?d.excludeRoutes:Ed,k=null,_=window.location?.pathname??"";g();let b=Pe({onPush:w,onReplace:w,onPop:w});r.push(()=>{k&&clearTimeout(k),b();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let d=typeof e.firstSession=="object"?e.firstSession??{}:{},S=d.delayMs??45*1e3,v=d.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),k=false;try{k=window.localStorage?.getItem(v)==="1";}catch{}if(!k){let _=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:S});},S);r.push(()=>clearTimeout(_));}}if(e.errorBoundary){let d=function(v){Yt({message:v.message,filename:v.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},S=function(v){let k=v.reason instanceof Error?v.reason.message:String(v.reason);Yt({message:k,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:k,type:"unhandled_rejection"});};window.addEventListener("error",d),window.addEventListener("unhandledrejection",S),r.push(()=>{window.removeEventListener("error",d),window.removeEventListener("unhandledrejection",S);});}return {destroy(){r.forEach(d=>d());}}}function kd(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function ha(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var ma="mushi:lastDismiss",Qr="mushi:consecDismiss",ys="mushi:lastShown";function Zr(t){try{return localStorage.getItem(t)}catch{return null}}function en(t,e){try{localStorage.setItem(t,e);}catch{}}function ga(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function i(p){let y=Date.now();if(parseInt(Zr(Qr)??"0",10)>=n)return false;let S=Zr(ma);if(S&&y-parseInt(S,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=Zr(ys);if(v&&y-parseInt(v,10)<s)return false}return o>=e||a.has(p)?false:(a.add(p),o++,en(ys,String(y)),true)}function l(){en(ma,String(Date.now()));let p=parseInt(Zr(Qr)??"0",10);en(Qr,String(p+1));}function m(){en(Qr,"0");}function h(){o=0,a.clear();try{localStorage.removeItem(ys);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:m,reset:h}}function xa(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Ne=null,tn=class{constructor(){}static init(e){if(Ne)return Rt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Ne;if(typeof document>"u"||typeof window>"u")return Ea();let r={...Rn(),...e};if(!r.projectId||!r.apiKey){let n=xo();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?Ea():(Ne=Td(r),Ne)}static getInstance(){return Ne}static destroy(){Ne?.destroy(),Ne=null;}static diagnose(){return Ne?.diagnose()??ws()}};function Td(t){Eo(t);let e=So(t),r=e.projectId,n=()=>ie(r),s=e,o=t.debug??false?Rt({scope:"mushi",level:"debug",format:"pretty"}):Cn,a=null,i=null,l=wo({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:Ve,sdkVersion:pe}),m=null;if(e.trackSessions!==false){Bo({client:l,sdkVersion:pe,reporterToken:ie(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{m=Pe({onPush:()=>Ln(),onPop:()=>Ln()});}catch{}}let h=ko(e.preFilter),p=$o(e.offline),y=Jo({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),d=Pn();Ko({client:l,projectId:e.projectId,sdkVersion:pe,config:e.analytics,scrub:c=>d.scrub(c),getSessionId:bt});function S(c){return c.map(u=>{let C={...u};if(typeof u.message=="string"&&(C.message=d.scrub(u.message)),u.data&&typeof u.data=="object"){let P={};for(let[H,j]of Object.entries(u.data))P[H]=typeof j=="string"?d.scrub(j):j;C.data=P;}return C})}function v(c){return c&&c.map(u=>({...u,message:d.scrub(u.message),...u.stack?{stack:d.scrub(u.stack)}:{}}))}function k(c){if(!c)return;let u={};for(let[C,P]of Object.entries(c))u[C]=typeof P=="string"?d.scrub(P):P;return u}let _=null,T=null,$=null,g=null,w=null,b=null,E=ds(),M=null,A=0,R,W=`mushi:tester-jwt:${e.projectId}`;function G(){try{return typeof localStorage<"u"?localStorage.getItem(W):null}catch{return null}}function ae(){try{typeof localStorage<"u"&&localStorage.removeItem(W);}catch{}}async function Ce(c){let u=await l.getTesterStatus(c);if(!u.ok||!u.data){ae();return}let C=u.data;if(!C.is_tester||!C.tester_id){ae();return}R.setTesterSession(c,{id:C.tester_id,public_handle:C.public_handle??null,display_name:C.display_name??null});let P=await l.getMyReputation(c);if(P.ok&&P.data){let H=P.data;H.reputation&&R.setTesterReputation(H.reputation);}}function he(){if(s.capture?.console!==false?_??=ns():(_?.destroy(),_=null),s.capture?.network!==false){let N={apiEndpoint:vs(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:bt()};T?T.updateOptions(N):T=rs(N);}else T?.destroy(),T=null;if(s.capture?.performance!==false?$??=cs():($?.destroy(),$=null),s.capture?.screenshot!=="off"){let N={privacy:s.privacy,onFailed:Q=>R.setScreenshotError(true,Q)};s.capture?.screenshotProvider?g=null:g?g.updateOptions(N):g=as(N);}else g=null;!g&&!s.capture?.screenshotProvider&&(I=null),R.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?w??=us():(w?.deactivate(),w=null,ee=null),R.setCaptureAvailability({screenshot:(!!g||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!w});let c=s.capture?.discoverInventory,u=c===true?{}:c&&typeof c=="object"?c:null;u!=null&&u.enabled!==false?(b?.destroy(),b=hs({config:u,getRecentNetworkPaths:()=>T?T.getEntries().map(N=>{try{let Q=new URL(N.url,typeof window<"u"?window.location.href:"http://localhost");return Q.host&&typeof window<"u"&&Q.host!==window.location.host?null:Q.pathname}catch{return null}}).filter(N=>N!=null&&N.length>0&&N.length<200):[],getUserId:()=>x?.id??null,getSessionId:bt,onEvent:N=>{l.postDiscoveryEvent({...N,sdk_version:pe}).catch(Q=>{o.debug("discovery emit failed",{err:String(Q)});});}})):(b?.destroy(),b=null);let P=s.capture?.replay??"off",H=s.replaySampleRate??1,j=H>=1||Math.random()<H,re=s.replaysOnErrorSampleRate??0,le=!j&&re>0&&Math.random()<re;if((P==="rrweb"||P==="lite")&&(j||le)){let N=++A;da({mode:P,loadRrweb:e.capture?.rrweb,redactSelectors:s.privacy?.redactSelectors}).then(Q=>{if(N!==A){Q.destroy();return}M?.destroy(),M=Q,M.start();});}else A++,M?.destroy(),M=null;}let Y=new Map;function O(c,u){Y.get(c)?.forEach(C=>C({type:c,data:u}));}let I=null,ee=null,te=null,xe=false,Se=true,Te=null,L=null,x=null,D=null,B={},U={},z=Zo({max:50});z.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:pe}});let De=null;De=Od(z);let be=false,J=false;function ne(){R.refreshReporterInboxQuiet();}function fe(){Te&&clearInterval(Te),Te=null,L&&typeof document<"u"&&document.removeEventListener("visibilitychange",L),L=null;}function me(){if(fe(),!Se)return;Te=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||ne();},6e4),typeof document<"u"&&(L=()=>{document.visibilityState==="visible"&&ne();},document.addEventListener("visibilitychange",L)),ne();}function st(c,u){if(!s.rewards?.enabled)return;let C={client:l,config:s.rewards,projectId:r,userId:c,traits:u,reporterToken:n()};Xi(C),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(P=>{if(!P.ok)return;let H=P.data;R.setRewardsState({tier:H.tier?{slug:H.tier.slug??"free",displayName:H.tier.display_name??"Free",pointsThreshold:H.tier.points_threshold??0}:null,nextTier:H.next_tier?{displayName:H.next_tier.display_name??"",pointsThreshold:H.next_tier.points_threshold??0}:null,totalPoints:H.total_points??0,pointsForReport:H.report_submit_pts??50});}).catch(()=>{});}async function q(){if(be)return null;J=false;let c=s.capture?.screenshotProvider;if(c){be=true;try{let H=await c();if(H)return H}catch(H){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:H instanceof Error?H.message:String(H)}),J=H instanceof Error&&(H.name==="NotAllowedError"||H.name==="SecurityError"||/permission|denied/i.test(H.message));}finally{be=false;}}if(!g)return null;be=true;let u=R.getIsOpen();u&&R.hidePanel();let C=document.getElementById("mushi-mushi-widget"),P=C?.style.visibility??"";C&&(C.style.visibility="hidden"),await new Promise(H=>{requestAnimationFrame(()=>requestAnimationFrame(()=>H()));});try{return await g.take()}finally{be=false,C&&(C.style.visibility=P),u&&R.showPanel();}}async function ot(c){let u=s.capture?.screenshot;!(g||s.capture?.screenshotProvider)||u==="off"||I||c==="open"&&u!=="auto"||c==="submit"&&u!=="on-report"&&u!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:u}),I=await q(),R.setScreenshotAttached(I!==null),R.setScreenshotPreview(I));}let Ee=Gt(r).then(c=>c.slice(0,12)).catch(()=>null);R=new Wr(e.widget,{onSubmit:async({category:c,userCategory:u,description:C,intent:P})=>(o.info("Report submitted",{category:c,userCategory:u,intent:P}),Ye?.recordSubmission(),await ot("submit"),await Es(c,C,P,u)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),ot("open"),M?.start(),O("widget:opened");},onBrandFooterImpression:()=>{Ee.then(c=>{kt("loop_impression",{placement:"widget"},c?{reserved:{$ref:c}}:void 0);});},onBrandFooterClick:()=>{Ee.then(c=>(kt("loop_click",{placement:"widget"},c?{reserved:{$ref:c}}:void 0),Xo()));},onClose:()=>{o.debug("Widget closed"),te&&(Ye?.recordDismissal(),O("proactive:dismissed",{type:te})),I=null,ee=null,te=null,O("widget:closed");},onScreenshotRequest:async()=>{if(!(!!g||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),R.setScreenshotError(true,"unsupported");return}if(!be){o.debug("Taking screenshot"),R.setScreenshotCapturing(true);try{I=await q();}catch(u){o.warn("Screenshot capture threw",{error:u instanceof Error?u.message:String(u)}),I=null;}R.setScreenshotAttached(I!==null),R.setScreenshotPreview(I),I===null&&R.setScreenshotError(true,J?"permission":void 0);}},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let c=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});c.catch(()=>{}),R.setScreenshotCapturing(true);let u=document.getElementById("mushi-mushi-widget");u&&(u.style.visibility="hidden");let C=s.privacy;Promise.resolve().then(()=>(ya(),ba)).then(P=>P.grabMaskedTabFrame(c,[ls,"[data-mushi-redact]",...C?.redactSelectors??[],...C?.maskSelectors??[],...C?.blockSelectors??[]]),P=>{throw c.then(H=>H.getTracks().forEach(j=>j.stop()),()=>{}),P}).then(P=>{I=P,R.setScreenshotAttached(true),R.setScreenshotPreview(P);}).catch(P=>{o.warn("Tab capture failed",{error:P instanceof Error?P.name:String(P)}),R.setScreenshotError(true,P instanceof Error&&P.name==="NotAllowedError"?"permission":"error");}).finally(()=>{u&&(u.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),I=null,R.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!I||c.childElementCount>0)return;let u;try{let{createScreenshotAnnotation:re}=await Promise.resolve().then(()=>(wa(),va));u=await re(I,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let C=document.createElement("div");C.className="mushi-annotate-toolbar";let P=re=>{(I=u.getDataUrl(),R.setScreenshotAttached(true),R.setScreenshotPreview(I)),u.destroy(),C.remove();},H=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of H){let le=document.createElement("button");le.type="button",le.className="mushi-attach-btn",le.dataset.tool=re.id,le.textContent=re.label,le.addEventListener("click",()=>{u.setTool(re.id),C.querySelectorAll("button[data-tool]").forEach(N=>N.classList.remove("active")),le.classList.add("active");}),C.appendChild(le);}C.querySelector('button[data-tool="highlight"]')?.classList.add("active");let j=document.createElement("button");j.type="button",j.className="mushi-attach-btn",j.textContent="\u2713 Done",j.addEventListener("click",()=>P()),C.appendChild(j),c.insertBefore(C,c.firstChild);},onElementSelectorRequest:async()=>{if(!w||s.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),R.setElementError(true);return}o.debug("Element selector activated"),R.setElementCapturing(true),R.hidePanel();try{let c=await w.activate();c?(ee=c,R.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):R.setElementCapturing(!1);}catch(c){o.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),R.setElementError(true);}finally{R.showPanel();}},async onReporterReportsRequest(){let c=await l.listReporterReports(ie(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let u=await l.listReporterComments(c,ie(r));if(!u.ok)throw new Error(u.error?.message??"Could not load thread");return u.data?.comments??[]},async onReporterReply(c,u){let C=await l.replyToReporterReport(c,ie(r),u);if(!C.ok)throw new Error(C.error?.message??"Could not send reply")},async onReporterFeedback(c,u,C){let P=await l.replyToReporterReport(c,ie(r),C??"",u);if(!P.ok)throw new Error(P.error?.message??"Could not send feedback");return P.data?.feedback??null},async onReporterReopen(c,u){let C=await l.reopenReporterReport(c,ie(r),u);if(!C.ok)throw new Error(C.error?.message??"Could not reopen report");return C.data?.outcome??null},async onFeatureBoardRequest(){let c=await l.listReporterFeatureBoard(ie(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let u=await l.voteReporterFeatureBoard(c,ie(r));if(!u.ok)throw new Error(u.error?.message??"Could not vote");return u.data??{voted:true,action:"added"}},onLeaderboardOpen(){R.setLeaderboard(null,true),Ji(10).then(c=>{R.setLeaderboard(c,false);});},async onMushiSignIn(c){let u=await l.sendMagicLink(c);if(!u.ok)throw new Error(u.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){R.setGlobalLeaderboard(null,true);try{let c=G(),u=await l.getPublicLeaderboard(50),P=(u.ok?u.data?.leaderboard??[]:[]).map(H=>({tester_id:H.tester_id,rank:H.rank,public_handle:H.public_handle,display_name:H.display_name,points_30d:H.points_30d,total_points:H.total_points??0,badge:H.badge_slug}));if(R.setGlobalLeaderboard(P,!1),c){let H=await l.getMyReputation(c);if(H.ok&&H.data){let j=H.data;j.reputation&&R.setTesterReputation(j.reputation);}}}catch{R.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=G();if(!c){R.setCrossAppReports([],false);return}try{let u=await l.getCrossAppReports(c),C=u.ok?u.data?.reports??[]:[];R.setCrossAppReports(C,!1);}catch{R.setCrossAppReports([],false);}},onTesterSignOut(){ae();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(c,u){let C=await l.askAssistant({message:c,threadId:u,context:i});return C.ok?C.data??null:null}},pe),Ee.then(c=>R.setBrandRef(c)),he(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>R.mount()):R.mount());let Ue=G();Ue&&Ce(Ue).catch(()=>ae());let Pt=null,Ye=null,X=s.proactive;X&&(X.rageClick!==false||X.longTask!==false||X.apiCascade!==false||X.errorBoundary===true||X.pageDwell||X.firstSession)&&typeof document<"u"&&(Ye=ga(X?.cooldown),Pt=fa({onTrigger:(c,u)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!Ye.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:u}),te=c,O("proactive:triggered",{type:c,context:u}),c==="first_session"?R.pulseTrigger?.():R.open();}},{rageClick:X?.rageClick,longTask:X?.longTask,apiCascade:X?.apiCascade,apiEndpoint:vs(s),errorBoundary:X?.errorBoundary,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls,pageDwell:X?.pageDwell,firstSession:X?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:X?.rageClick!==false,longTask:X?.longTask!==false,apiCascade:X?.apiCascade!==false,errorBoundary:X?.errorBoundary===true,pageDwell:!!X?.pageDwell,firstSession:!!X?.firstSession})),p.startAutoSync(l),p.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function vt(c){if(xe=true,Se=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,Ad(t.projectId),he(),R.updateConfig(s.widget),fe(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=Bi(s,c,e),he(),c.widget&&R.updateConfig(s.widget),Se?me():fe(),o.debug("Applied runtime SDK config",{version:c.version});}if(Id(t)){let c=Ld(t.projectId);c&&vt(c),l.getSdkConfig().then(u=>{u.ok&&u.data?(_d(t.projectId,u.data),vt(u.data)):u.error&&o.debug("Runtime SDK config unavailable",u.error);}).catch(u=>{o.debug("Runtime SDK config fetch failed",{error:u instanceof Error?u.message:String(u)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");rn(),me(),o.info("Initialized",{projectId:t.projectId});async function rn(){if(s.widget?.outdatedBanner==="off")return;let c=Pd(Ve);c&&ar(c);let u=await l.getLatestSdkVersion(Ve);!u.ok||!u.data||(Dd(Ve,u.data),ar(u.data));}function ar(c){let u=c.latest,C=!!(u&&Hd(pe,u));if(!C&&!c.deprecated)return;let P=c.deprecationMessage??(C?`Update ${Ve} to ${u}.`:null);o.warn("Mushi SDK is outdated",{package:Ve,current:pe,latest:u,deprecated:c.deprecated,message:P}),ki(s.widget?.outdatedBanner,!!s.debug,typeof location>"u"?void 0:location)&&R.setSdkFreshness({latest:u,current:pe,deprecated:c.deprecated,message:P});}async function Es(c,u,C,P){let H=h.check(u);if(!H.passed){o.info("Report blocked by pre-filter",{reason:H.reason});return}let j=t.preFilter?.wasmClassifier;if(j)try{let F=await j.classify({description:u,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:I!==null,hasSelectedElement:ee!==null,hasNetworkErrors:T?.getEntries()?.some(ye=>ye.status>=400||!!ye.error)??!1,hasConsoleErrors:_?.getEntries()?.some(ye=>ye.level==="error")??!1,proactiveTrigger:te??void 0});if(F.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:F.modelId,confidence:F.confidence,reason:F.reason});return}o.debug("On-device classifier verdict",{...F});}catch(F){o.warn("On-device classifier threw \u2014 falling through to server",{error:F instanceof Error?F.message:String(F)});}if(te!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:te});return}if(!y.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let le=d.scrub(h.truncate(u)),N=t.sentry?gs(t.sentry):void 0,Q=await Mo().catch(()=>null),Fe=s.capture?.console===false?void 0:v(_?.getEntries()),qe=s.capture?.network===false?void 0:T?.getEntries(),lr=S(z.getAll()),Ts=k(Object.keys(U).length>0?{...U}:void 0),Is=N?{...N,...N.breadcrumbs?{breadcrumbs:S(N.breadcrumbs)}:{},...N.tags?{tags:k(N.tags)}:{}}:void 0,$s=I?await mi(I).catch(()=>null):null,cr=false;I&&!$s&&(cr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let Ms=Tn(),Le={id:In(),projectId:t.projectId,category:c,...P?{userCategory:P}:{},description:le,userIntent:C,environment:Ms,consoleLogs:Fe,networkLogs:qe,performanceMetrics:s.capture?.performance===false?void 0:$?.getMetrics(),timeline:E.getEntries({consoleLogs:Fe,networkLogs:qe}),screenshotDataUrl:$s??void 0,selectedElement:ee??void 0,...M?{replayEvents:M.flush()}:{},metadata:{...B,...x?{user:x}:{},...N?.release?{sentryRelease:N.release}:{}},sessionId:bt(),reporterToken:ie(r),...Q?{fingerprintHash:Q}:{},appVersion:xa(s,Ms),sdkPackage:Ve,sdkVersion:pe,proactiveTrigger:te??void 0,...lr.length>0?{breadcrumbs:lr}:{},...Ts?{tags:Ts}:{},...Is?{sentryContext:Is}:{},sentryEventId:N?.eventId,sentryReplayId:N?.replayId,createdAt:new Date().toISOString()};if(z.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Le.id,category:c}}),t.integrations?.custom){let F={addMetadata(ye,nn){Le.metadata[ye]=nn;},setCategory(ye){Le.category=ye;},setDescription(ye){Le.description=ye;}};t.integrations.custom(F);}let K=Le,Ls=t.beforeSend??t.beforeSendFeedback;if(Ls)try{let F=await Promise.race([Promise.resolve(Ls(Le)),new Promise(ye=>setTimeout(()=>ye(Le),2e3))]);if(F===null){o.info("Report dropped by beforeSend hook",{reportId:Le.id});return}K=F;}catch(F){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:F instanceof Error?F.message:String(F)});}if(O("report:submitted",{reportId:K.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(K),o.info("Offline \u2014 report queued",{reportId:K.id}),O("report:queued",{reportId:K.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let V=await l.submitReport(K);if(!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(K.replayEvents)&&K.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:K.id}),K={...K,replayEvents:void 0},V=await l.submitReport(K)),!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&K.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:K.id}),cr=true,K={...K,screenshotDataUrl:void 0},V=await l.submitReport(K))),V.ok){if(o.info("Report sent",{reportId:V.data?.reportId}),O("report:sent",{reportId:V.data?.reportId}),ne(),V.data?.cursorAgentId){let F=V.data;O("report:dispatched",{reportId:F.reportId,agentId:F.cursorAgentId,fixId:F.fixId});}z.add({category:"lifecycle",level:"info",message:`Mushi report sent (${V.data?.reportId??Le.id})`}),At({action:"report_submit",metadata:{category:c,reportId:V.data?.reportId??Le.id}});try{t.sentry&&V.data?.reportId&&bs(V.data.reportId);}catch{}}else {if(V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:K.id,error:V.error}),O("report:failed",{reportId:K.id,error:V.error}),z.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${K.id})`}),I=null,ee=null,te=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:cr};{let F=V.error?.code??"",ye=F==="HTTP_429"||F.includes("RATE_LIMIT"),nn=F==="HTTP_401"||F.includes("UNAUTHORIZED")||F.includes("INVALID_API_KEY")||F.includes("MISSING_API_KEY"),Ca=F==="HTTP_403"||F.includes("QUOTA")||F.includes("FORBIDDEN")||F==="feature_not_in_plan";if(nn||Ca)return o.warn("Report rejected \u2014 credentials/quota",{reportId:K.id,error:V.error}),O("report:failed",{reportId:K.id,error:V.error}),I=null,ee=null,te=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(ye)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:K.id,error:V.error}),await p.enqueue(K),O("report:failed",{reportId:K.id,error:V.error}),I=null,ee=null,te=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:K.id,error:V.error}),await p.enqueue(K),O("report:failed",{reportId:K.id,error:V.error}),z.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${K.id})`});}}return I=null,ee=null,te=null,V?.ok?{reportId:V.data?.reportId??Le.id,queuedOffline:false,screenshotDropped:cr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let ks={report(c){R.open(c);},on(c,u){return Y.has(c)||Y.set(c,new Set),Y.get(c).add(u),()=>Y.get(c)?.delete(u)},setUser(c){x=c;},setMetadata(c,u){B[c]=u;},setScreen(c){E.setScreen(c);},isOpen(){return R.getIsOpen()},open(){R.open();},openWith(c){R.open({category:c});},show(){R.showTrigger();},hide(){R.hideTrigger();},attachTo(c,u){return R.attachTo(c,u)},setTrigger(c){R.setTrigger(c);},openReporter(){R.openReporter();},close(){R.close();},updateConfig(c){vt(c);},diagnose(){return $d({apiEndpoint:vs(s),widgetMounted:R.getIsMounted(),runtimeConfigLoaded:xe,captureScreenshotAvailable:g!==null,captureNetworkIntercepting:T!==null,widgetDiagnostics:R.getWidgetDiagnostics()})},destroy(){Pt?.destroy(),Ye?.reset(),Yo(),R.destroy(),_?.destroy(),T?.destroy(),$?.destroy(),w?.deactivate(),Qi(),De?.(),De=null,b?.destroy(),b=null,E.destroy(),Fi(),M?.destroy(),M=null,p.stopAutoSync(),fe(),m?.(),m=null,Uo(),z.clear(),Y.clear(),Ne=null,o.debug("Destroyed");},async captureEvent(c){if(!y.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let u=d.scrub(h.truncate(c.description)),C=c.category??"bug",P=t.sentry?gs(t.sentry):void 0,H=S(z.getAll()),j=k(Object.keys(U).length===0&&!c.tags?void 0:{...U,...c.tags??{}}),re=P?{...P,...P.breadcrumbs?{breadcrumbs:S(P.breadcrumbs)}:{},...P.tags?{tags:k(P.tags)}:{}}:void 0,le=Tn(),N={id:In(),projectId:t.projectId,category:C,description:u,environment:le,timeline:E.getEntries(),metadata:{...c.metadata??{},...x?{user:x}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...H.length>0?{breadcrumbs:H}:{},...j&&Object.keys(j).length>0?{tags:j}:{},...re?{sentryContext:re}:{},sessionId:bt(),reporterToken:ie(r),appVersion:xa(s,le),sdkPackage:Ve,sdkVersion:pe,sentryEventId:P?.eventId,sentryReplayId:P?.replayId,createdAt:new Date().toISOString()},Q=N;if(s.beforeSendFeedback)try{let qe=await Promise.race([Promise.resolve(s.beforeSendFeedback(N)),new Promise(lr=>setTimeout(()=>lr(N),2e3))]);if(qe===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:N.id}),null;Q=qe;}catch(qe){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:qe instanceof Error?qe.message:String(qe)});}if(O("report:submitted",{reportId:Q.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(Q),O("report:queued",{reportId:Q.id}),null;let Fe=await l.submitReport(Q);if(Fe.ok){O("report:sent",{reportId:Fe.data?.reportId});try{t.sentry&&Fe.data?.reportId&&bs(Fe.data.reportId);}catch{}return Fe.data?.reportId??null}return await p.enqueue(Q),O("report:failed",{reportId:Q.id,error:Fe.error}),null},async captureException(c,u){let C=ei(c),P=typeof u?.metadata?.filename=="string"?u.metadata.filename:void 0;if(Yt({message:C.message,filename:P,ignoreErrors:s.ignoreErrors,denyUrls:s.denyUrls,allowUrls:s.allowUrls}))return null;z.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${C.name}): ${C.message}`,...C.stack?{data:{stack:C.stack.slice(0,500)}}:{}});let H=u?.description?.trim()||`${C.name}: ${C.message}`||"Uncaught exception";return ks.captureEvent({description:H,category:u?.category??"bug",severity:u?.severity??"high",...u?.component?{component:u.component}:{},...u?.tags?{tags:u.tags}:{},source:u?.source??"captureException",error:{name:C.name,message:C.message,...C.stack?{stack:C.stack}:{}},metadata:{...u?.metadata??{},...C.cause?{cause:C.cause}:{}}})},identify(c,u){let C=`${c}::${u?JSON.stringify(u):""}`;if(C!==D){if(D=C,x={id:c,...u?.email?{email:u.email}:{},...u?.name?{name:u.name}:{}},R.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),u)for(let[P,H]of Object.entries(u))P!=="email"&&P!=="name"&&(B[`user.${P}`]=H);z.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Go(c,u??null),st(c,u?{email:u.email,name:u.name,provider:u.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let u=ii(a);if(u?.sub){if(x?.id===u.sub){z.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}No(u.sub),x={id:u.sub,...u.email?{email:u.email}:{},...u.name?{name:u.name}:{}},R.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),st(x.id,{email:x.email,name:x.name});}z.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else x=null,D=null,R.setIdentifiedUser(null),z.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){R.openAssistantTab();},addBreadcrumb(c){z.add(c);},getBreadcrumbs(){return z.getAll()},setTag(c,u){typeof c!="string"||c.length===0||(U[c]=u);},setTags(c){if(!(!c||typeof c!="object"))for(let[u,C]of Object.entries(c))typeof u=="string"&&u.length>0&&(U[u]=C);},clearTag(c){if(typeof c=="string"&&c.length>0){delete U[c];return}for(let u of Object.keys(U))delete U[u];},async getReputation(){if(!x?.id)return null;let c=await l.getMyPoints(x.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return x?.id?Yi(x.id):null},recordActivity(c,u){s.rewards?.enabled&&At({action:c,metadata:u});},track(c,u){return kt(c,u)},setConsent(c){Vo(c);},getAnonymousId(){return zo()},pulseTrigger(){R.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(ie(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let u=await l.listReporterComments(c,ie(r));return u.ok?u.data?.comments??[]:[]},async replyToReport(c,u){let C=await l.replyToReporterReport(c,ie(r),u);return C.ok?C.data?.comment??null:null},async submitFeedbackSignal(c,u,C){let P=await l.replyToReporterReport(c,ie(r),C??"",u);return P.ok?P.data?.feedback??null:null},async reopenReport(c,u){let C=await l.reopenReporterReport(c,ie(r),u);return C.ok?C.data?.outcome??null:null},openMyReports(){R.recorderOpenMyReports();},async getHallOfFame(c=20){let u=await l.getHallOfFame(c);return u.ok?u.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Ni(R),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",u=null;try{let C=localStorage.getItem(c);u=C===null?null:C==="unfinished",localStorage.setItem(c,"unfinished");}catch{u=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}yo(),vo();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(u);}catch(C){o.warn("onCrashedLastRun hook threw",{error:C instanceof Error?C.message:String(C)});}}let Rs={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},Cs=(c,u)=>{let C=u instanceof Error?u.message:String(u);o.debug(`Mushi.${c}() failed (swallowed)`,{error:C});try{z.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:C}});}catch{}};return (c=>new Proxy(c,{get(u,C,P){let H=Reflect.get(u,C,P);if(typeof H!="function")return H;let j=String(C),re=()=>j==="diagnose"?ws():j in Rs?Rs[j]:void 0;return (...le)=>{try{let N=H.apply(u,le);return N&&typeof N.then=="function"?N.catch(Q=>(Cs(j,Q),re())):N}catch(N){return Cs(j,N),re()}}}}))(ks)}function vs(t){return t.apiEndpoint??Ut}function Id(t){return t.runtimeConfig!==false}async function $d(t){let e=await Md(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:pe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function ws(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:pe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Md(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[Xt]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function xs(t){return `mushi:sdk-config:${t}`}function Ra(t){return `mushi:sdk-version:${t}`}function Ld(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(xs(t));return e?JSON.parse(e).config??null:null}catch{return null}}function _d(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(xs(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Ad(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(xs(t));}catch{}}function Pd(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Ra(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function Dd(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Ra(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function Hd(t,e){let r=Sa(t),n=Sa(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,a=n[s]??0;if(o<a)return true;if(o>a)return false}return false}function Sa(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Ea(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:ws,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Ne=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function Od(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Pe({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(ka).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(ka).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,a=0;for(;o&&a<10;){let i=o.getAttribute("data-testid");if(i){let l=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${l?` \u2014 ${l}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function ka(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Bd(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function Nd(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function Ud(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Bd();if(!e)return;let r=Nd(e.dataset);if(r){t.__mushiLoaderInit=true;try{tn.init(r);}catch{}}}Ud();
579
+ })();