@redocly/replay 0.15.0-next.10 → 0.15.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-index-DB055iHI.js → replay-index-CqM6DOva.js} +3 -3
- package/dist/{replay-index-BiwMEzRh.js → replay-index-ZG3VBaUg.js} +13 -9
- package/dist/{replay-tauri-path-DPYrSKM-.js → replay-tauri-path-CNVV_Y1j.js} +1 -1
- package/dist/{replay-tauri-path-B3bvsOjG.js → replay-tauri-path-D3byCSRl.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -152,7 +152,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
152
152
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
153
153
|
* derived from CryptoJS.mode.CTR
|
|
154
154
|
* Jan Hruby jhruby.web@gmail.com
|
|
155
|
-
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),o(d);var p=d.slice(0);c.encryptBlock(p,0);for(var g=0;g<u;g++)a[l+g]^=p[g]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(U0)),U0.exports}var Y0={exports:{}},Nw;function lQ(){return Nw||(Nw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var f=0;f<l;f++)o[s+f]^=u[f]}});return r.Decryptor=i,r}(),n.mode.OFB})}(Y0)),Y0.exports}var H0={exports:{}},Bw;function cQ(){return Bw||(Bw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(H0)),H0.exports}var q0={exports:{}},Qw;function uQ(){return Qw||(Qw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,a=s-o%s,l=o+a-1;r.clamp(),r.words[l>>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(q0)),q0.exports}var J0={exports:{}},Lw;function fQ(){return Lw||(Lw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(J0)),J0.exports}var K0={exports:{}},Fw;function dQ(){return Fw||(Fw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(K0)),K0.exports}var em={exports:{}},Vw;function hQ(){return Vw||(Vw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(em)),em.exports}var tm={exports:{}},zw;function pQ(){return zw||(zw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(tm)),tm.exports}var nm={exports:{}},Ww;function gQ(){return Ww||(Ww=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,a=i.enc,l=a.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return s.create({ciphertext:f})}}}(),n.format.Hex})}(nm)),nm.exports}var rm={exports:{}},Zw;function mQ(){return Zw||(Zw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,a=[],l=[],c=[],u=[],f=[],d=[],p=[],g=[],m=[],v=[];(function(){for(var y=[],S=0;S<256;S++)S<128?y[S]=S<<1:y[S]=S<<1^283;for(var b=0,w=0,S=0;S<256;S++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,a[b]=C,l[C]=b;var P=y[b],A=y[P],I=y[A],T=y[C]*257^C*16843008;c[b]=T<<24|T>>>8,u[b]=T<<16|T>>>16,f[b]=T<<8|T>>>24,d[b]=T;var T=I*16843009^A*65537^P*257^b*16843008;p[C]=T<<24|T>>>8,g[C]=T<<16|T>>>16,m[C]=T<<8|T>>>24,v[C]=T,b?(b=P^y[y[y[I^P]]],w^=y[y[w]]):b=w=1}})();var O=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,b=S.words,w=S.sigBytes/4,C=this._nRounds=w+6,P=(C+1)*4,A=this._keySchedule=[],I=0;I<P;I++)I<w?A[I]=b[I]:(y=A[I-1],I%w?w>6&&I%w==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=O[I/w|0]<<24),A[I]=A[I-w]^y);for(var T=this._invKeySchedule=[],j=0;j<P;j++){var I=P-j;if(j%4)var y=A[I];else var y=A[I-4];j<4||I<=4?T[j]=y:T[j]=p[a[y>>>24]]^g[a[y>>>16&255]]^m[a[y>>>8&255]]^v[a[y&255]]}}},encryptBlock:function(y,S){this._doCryptBlock(y,S,this._keySchedule,c,u,f,d,a)},decryptBlock:function(y,S){var b=y[S+1];y[S+1]=y[S+3],y[S+3]=b,this._doCryptBlock(y,S,this._invKeySchedule,p,g,m,v,l);var b=y[S+1];y[S+1]=y[S+3],y[S+3]=b},_doCryptBlock:function(y,S,b,w,C,P,A,I){for(var T=this._nRounds,j=y[S]^b[0],B=y[S+1]^b[1],V=y[S+2]^b[2],Q=y[S+3]^b[3],z=4,U=1;U<T;U++){var Z=w[j>>>24]^C[B>>>16&255]^P[V>>>8&255]^A[Q&255]^b[z++],Y=w[B>>>24]^C[V>>>16&255]^P[Q>>>8&255]^A[j&255]^b[z++],N=w[V>>>24]^C[Q>>>16&255]^P[j>>>8&255]^A[B&255]^b[z++],L=w[Q>>>24]^C[j>>>16&255]^P[B>>>8&255]^A[V&255]^b[z++];j=Z,B=Y,V=N,Q=L}var Z=(I[j>>>24]<<24|I[B>>>16&255]<<16|I[V>>>8&255]<<8|I[Q&255])^b[z++],Y=(I[B>>>24]<<24|I[V>>>16&255]<<16|I[Q>>>8&255]<<8|I[j&255])^b[z++],N=(I[V>>>24]<<24|I[Q>>>16&255]<<16|I[j>>>8&255]<<8|I[B&255])^b[z++],L=(I[Q>>>24]<<24|I[j>>>16&255]<<16|I[B>>>8&255]<<8|I[V&255])^b[z++];y[S]=Z,y[S+1]=Y,y[S+2]=N,y[S+3]=L},keySize:256/32});r.AES=o._createHelper(x)}(),n.AES})}(rm)),rm.exports}var im={exports:{}},Xw;function vQ(){return Xw||(Xw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=a.DES=s.extend({_doReset:function(){for(var O=this._key,x=O.words,y=[],S=0;S<56;S++){var b=l[S]-1;y[S]=x[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var P=w[C]=[],A=u[C],S=0;S<24;S++)P[S/6|0]|=y[(c[S]-1+A)%28]<<31-S%6,P[4+(S/6|0)]|=y[28+(c[S+24]-1+A)%28]<<31-S%6;P[0]=P[0]<<1|P[0]>>>31;for(var S=1;S<7;S++)P[S]=P[S]>>>(S-1)*4+3;P[7]=P[7]<<5|P[7]>>>27}for(var I=this._invSubKeys=[],S=0;S<16;S++)I[S]=w[15-S]},encryptBlock:function(O,x){this._doCryptBlock(O,x,this._subKeys)},decryptBlock:function(O,x){this._doCryptBlock(O,x,this._invSubKeys)},_doCryptBlock:function(O,x,y){this._lBlock=O[x],this._rBlock=O[x+1],g.call(this,4,252645135),g.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),g.call(this,1,1431655765);for(var S=0;S<16;S++){for(var b=y[S],w=this._lBlock,C=this._rBlock,P=0,A=0;A<8;A++)P|=f[A][((C^b[A])&d[A])>>>0];this._lBlock=C,this._rBlock=w^P}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,g.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),O[x]=this._lBlock,O[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(O,x){var y=(this._lBlock>>>O^this._rBlock)&x;this._rBlock^=y,this._lBlock^=y<<O}function m(O,x){var y=(this._rBlock>>>O^this._lBlock)&x;this._lBlock^=y,this._rBlock^=y<<O}r.DES=s._createHelper(p);var v=a.TripleDES=s.extend({_doReset:function(){var O=this._key,x=O.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=x.slice(0,2),S=x.length<4?x.slice(0,2):x.slice(2,4),b=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=p.createEncryptor(o.create(y)),this._des2=p.createEncryptor(o.create(S)),this._des3=p.createEncryptor(o.create(b))},encryptBlock:function(O,x){this._des1.encryptBlock(O,x),this._des2.decryptBlock(O,x),this._des3.encryptBlock(O,x)},decryptBlock:function(O,x){this._des3.decryptBlock(O,x),this._des2.encryptBlock(O,x),this._des1.decryptBlock(O,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(v)}(),n.TripleDES})}(im)),im.exports}var om={exports:{}},Gw;function OQ(){return Gw||(Gw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=s.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,p=this._S=[],g=0;g<256;g++)p[g]=g;for(var g=0,m=0;g<256;g++){var v=g%d,O=f[v>>>2]>>>24-v%4*8&255;m=(m+p[g]+O)%256;var x=p[g];p[g]=p[m],p[m]=x}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,d=this._j,p=0,g=0;g<4;g++){f=(f+1)%256,d=(d+u[f])%256;var m=u[f];u[f]=u[d],u[d]=m,p|=u[(u[f]+u[d])%256]<<24-g*8}return this._i=f,this._j=d,p}r.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(om)),om.exports}var sm={exports:{}},Uw;function xQ(){return Uw||(Uw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var d=this._key.words,p=this.cfg.iv,g=0;g<4;g++)d[g]=(d[g]<<8|d[g]>>>24)&16711935|(d[g]<<24|d[g]>>>8)&4278255360;var m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)v[g]^=m[g+4&7];if(p){var O=p.words,x=O[0],y=O[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;v[0]^=S,v[1]^=w,v[2]^=b,v[3]^=C,v[4]^=S,v[5]^=w,v[6]^=b,v[7]^=C;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(d,p){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,d[p+m]^=a[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var m=d[g]+p[g],v=m&65535,O=m>>>16,x=((v*v>>>17)+v*O>>>15)+O*O,y=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(sm)),sm.exports}var am={exports:{}},Yw;function yQ(){return Yw||(Yw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var d=this._key.words,p=this.cfg.iv,g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],m=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)m[v]^=g[v+4&7];if(p){var O=p.words,x=O[0],y=O[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;m[0]^=S,m[1]^=w,m[2]^=b,m[3]^=C,m[4]^=S,m[5]^=w,m[6]^=b,m[7]^=C;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(d,p){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,d[p+m]^=a[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var m=d[g]+p[g],v=m&65535,O=m>>>16,x=((v*v>>>17)+v*O>>>15)+O*O,y=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}(am)),am.exports}var lm={exports:{}},Hw;function bQ(){return Hw||(Hw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(v,O){let x=O>>24&255,y=O>>16&255,S=O>>8&255,b=O&255,w=v.sbox[0][x]+v.sbox[1][y];return w=w^v.sbox[2][S],w=w+v.sbox[3][b],w}function d(v,O,x){let y=O,S=x,b;for(let w=0;w<a;++w)y=y^v.pbox[w],S=f(v,y)^S,b=y,y=S,S=b;return b=y,y=S,S=b,S=S^v.pbox[a],y=y^v.pbox[a+1],{left:y,right:S}}function p(v,O,x){let y=O,S=x,b;for(let w=a+1;w>1;--w)y=y^v.pbox[w],S=f(v,y)^S,b=y,y=S,S=b;return b=y,y=S,S=b,S=S^v.pbox[1],y=y^v.pbox[0],{left:y,right:S}}function g(v,O,x){for(let C=0;C<4;C++){v.sbox[C]=[];for(let P=0;P<256;P++)v.sbox[C][P]=c[C][P]}let y=0;for(let C=0;C<a+2;C++)v.pbox[C]=l[C]^O[y],y++,y>=x&&(y=0);let S=0,b=0,w=0;for(let C=0;C<a+2;C+=2)w=d(v,S,b),S=w.left,b=w.right,v.pbox[C]=S,v.pbox[C+1]=b;for(let C=0;C<4;C++)for(let P=0;P<256;P+=2)w=d(v,S,b),S=w.left,b=w.right,v.sbox[C][P]=S,v.sbox[C][P+1]=b;return!0}var m=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,O=v.words,x=v.sigBytes/4;g(u,O,x)}},encryptBlock:function(v,O){var x=d(u,v[O],v[O+1]);v[O]=x.left,v[O+1]=x.right},decryptBlock:function(v,O){var x=p(u,v[O],v[O+1]);v[O]=x.left,v[O+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),n.Blowfish})}(lm)),lm.exports}(function(t,e){(function(n,r,i){t.exports=r(qe(),Jp(),qB(),JB(),Hs(),KB(),qs(),B5(),ty(),eQ(),Q5(),tQ(),nQ(),rQ(),ny(),iQ(),ts(),an(),oQ(),sQ(),aQ(),lQ(),cQ(),uQ(),fQ(),dQ(),hQ(),pQ(),gQ(),mQ(),vQ(),OQ(),xQ(),yQ(),bQ())})($e,function(n){return n})})(N5);var a1=N5.exports;function ai(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function qw(t,e){for(var n="",r=0,i=-1,o=0,s,a=0;a<=t.length;++a){if(a<t.length)s=t.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function SQ(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Ya={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),ai(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=qw(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ai(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=qw(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return ai(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];ai(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ya.normalize(e)},relative:function(e,n){if(ai(e),ai(n),e===n||(e=Ya.resolve(e),n=Ya.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,l=a-s,c=o<l?o:l,u=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>c&&(e.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var d=e.charCodeAt(r+f),p=n.charCodeAt(s+f);if(d!==p)break;d===47&&(u=f)}var g="";for(f=r+u+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(ai(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ai(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){ai(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return SQ("/",e)},parse:function(e){ai(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,f=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(a,l)):(a===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(a,s),n.base=e.slice(a,l)),n.ext=e.slice(s,l)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Ya.posix=Ya;var L5=Ya;const l1=go(L5),wQ=UD({__proto__:null,default:l1},[L5]);class Jw{constructor(e){this.baseDir=e}async ls(e=""){const n=this.makeKey(e);return Object.keys(localStorage).filter(r=>r.startsWith(n)).map(r=>r.replace(n,""))}async get(e){const n=this.makeKey(e);return localStorage.getItem(n)??null}async set(e,n){const r=this.makeKey(e);localStorage.setItem(r,n)}async remove(e){const n=this.makeKey(e);localStorage.removeItem(n)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function qr(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var Ol;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(Ol||(Ol={}));async function CQ(){return qr("plugin:path|resolve_directory",{directory:Ol.AppData})}async function PQ(){return qr("plugin:path|resolve_directory",{directory:Ol.Desktop})}function F5(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function AQ(...t){return qr("plugin:path|resolve",{paths:t})}async function Uc(...t){return qr("plugin:path|join",{paths:t})}async function kQ(t){return qr("plugin:path|is_absolute",{path:t})}var Kw;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Kw||(Kw={}));async function eC(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function EQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await qr("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function IQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await qr("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function TQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function $Q(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:n})}function Kp(){return!!(window!=null&&window.__TAURI__)}const mi=class mi{static async getUtils(){return mi.utils||(mi.utils=Kp()?await Promise.resolve().then(()=>require("./replay-tauri-path-DPYrSKM-.js")):await Promise.resolve().then(()=>wQ)),mi.utils}static async join(...e){return(await mi.getUtils()).join(...e)}static async resolve(e){return(await mi.getUtils()).resolve(e)}static async isAbsolute(e){return(await mi.getUtils()).isAbsolute(e)}static async relative(e,n){return(await mi.getUtils()).relative(e,n)}};ie(mi,"utils",null);let qi=mi;class tC{constructor(e,n){this.baseDir=e,this.baseDirOption=n,this.initializeDirectory()}async initializeDirectory(e){try{await eC(e??"/",{baseDir:this.baseDirOption,recursive:!0})}catch(n){if(n instanceof Error&&n.message.includes("already exists"))return;throw n}}async ls(e){const n=await this.getFullPath(e);return this.getDirEntryFilesRecursively(n)}async getDirEntryFilesRecursively(e){try{const n=[],r=await EQ(e,{baseDir:this.baseDirOption});for(const i of r)if(i.isDirectory){const o=await Uc(e,i.name),s=await this.getDirEntryFilesRecursively(o);n.push(...s)}else{const o=await Uc(e,i.name),s=await qi.relative(this.baseDir,o);n.push(s)}return n}catch(n){return n.includes("forbidden path")||console.error(n),[]}}async get(e){const n=await this.getFullPath(e);try{return await IQ(n,{baseDir:this.baseDirOption})}catch(r){return!r.includes("No such file or directory")&&!r.includes("forbidden path")&&console.error(r),null}}async set(e,n){const r=await this.getFullPath(e),i=F5(),o=r.split(i).slice(0,-1).join(i);await eC(o,{baseDir:this.baseDirOption,recursive:!0}),await $Q(r,n,{baseDir:this.baseDirOption})}async remove(e){const n=await this.getFullPath(e);try{await TQ(n,{baseDir:this.baseDirOption})}catch(r){if(r instanceof Error&&r.message.includes("not found"))return;throw r}}async getFullPath(e){return await Uc(this.baseDir,e??"")}}class jQ{constructor(){ie(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,n){}async remove(e){}}class _Q{constructor(e,n){ie(this,"default",UI);this.storage=e,this.localStorageSecretsProvider=n}async read(){const e=await this.storage.get("replay-environments.yaml"),n=await this.localStorageSecretsProvider.get();let r=null,i=null;if(!e)return this.default;try{r=vl.load(e),i=n?JSON.parse(n):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return r?Object.keys(r).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(r[a].inputs).map(([l,c])=>{var f;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((f=i==null?void 0:i[a])==null?void 0:f[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(r[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,f])=>({name:u,value:f}))})),state:Ue.Normal})):this.default}async write(e){const n=await this.localStorageSecretsProvider.get(),r=n?JSON.parse(n):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&r?(r[s.name]||(r[s.name]={}),r[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(r)),i&&this.storage.set("replay-environments.yaml",vl.dump(i))}}var RQ=Object.prototype.hasOwnProperty,DQ=Object.prototype.toString,MQ=function(e,n,r){if(DQ.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)n.call(r,e[o],o,e);else for(var s in e)RQ.call(e,s)&&n.call(r,e[s],s,e)},NQ=MQ,BQ=bt;function bt(t,e,n){if(arguments.length===3)return bt.set(t,e,n);if(arguments.length===2)return bt.get(t,e);var r=bt.bind(bt,t);for(var i in bt)bt.hasOwnProperty(i)&&(r[i]=bt[i].bind(r,t));return r}bt.get=function(e,n){for(var r=Array.isArray(n)?n:bt.parse(n),i=0;i<r.length;++i){var o=r[i];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e};bt.set=function(e,n,r){var i=Array.isArray(n)?n:bt.parse(n),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=r,this};bt.remove=function(t,e){var n=Array.isArray(e)?e:bt.parse(e),r=n[n.length-1];if(r===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var i=bt.get(t,n.slice(0,-1));if(Array.isArray(i)){var o=+r;if(r===""&&isNaN(o))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(i,o,1)}else delete i[r]};bt.dict=function(e,n){var r={};return bt.walk(e,function(i,o){r[o]=i},n),r};bt.walk=function(e,n,r){var i=[];r=r||function(o){var s=Object.prototype.toString.call(o);return s==="[object Object]"||s==="[object Array]"},function o(s){NQ(s,function(a,l){i.push(String(l)),r(a)?o(a):n(a,bt.compile(i)),i.pop()})}(e)};bt.has=function(e,n){try{bt.get(e,n)}catch{return!1}return!0};bt.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};bt.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};bt.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(bt.unescape)};bt.compile=function(e){return e.length===0?"":"/"+e.map(bt.escape).join("/")};const V5=go(BQ);var dr=(t=>(t.Query="Query",t.Header="Header",t.Cookie="Cookie",t))(dr||{}),H=(t=>(t.NoAuth="No Auth",t.BasicAuth="Basic Auth",t.DigestAuth="Digest Auth",t.JWT="JWT",t.APIKey="API key",t.OAuth2="OAuth 2.0",t.OpenIDConnect="OpenID Connect",t))(H||{}),J=(t=>(t.ClientCredentials="Client Credentials",t.ClientCredentialsWithJwtAssertion="Client Credentials with JWT Assertion",t.AuthorizationCode="Authorization Code",t.AuthorizationCodeWithPkce="Authorization Code with PKCE",t.Implicit="Implicit",t.Password="Password",t))(J||{}),kn=(t=>(t.Body="Body",t.Header="Header",t.URL="URL",t))(kn||{}),_n=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(_n||{});const ry={active:!0,key:"",value:""},z5="{",iy="}",Vl="^\\$inputs\\.([^}\\s]+)$|\\{\\$inputs\\.([^}\\s]+)\\}";function QQ({content:t}){return h.jsx(LQ,{"data-testid":"arazzo-expression",children:t})}const LQ=k.span`
|
|
155
|
+
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),o(d);var p=d.slice(0);c.encryptBlock(p,0);for(var g=0;g<u;g++)a[l+g]^=p[g]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(U0)),U0.exports}var Y0={exports:{}},Nw;function lQ(){return Nw||(Nw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var f=0;f<l;f++)o[s+f]^=u[f]}});return r.Decryptor=i,r}(),n.mode.OFB})}(Y0)),Y0.exports}var H0={exports:{}},Bw;function cQ(){return Bw||(Bw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(H0)),H0.exports}var q0={exports:{}},Qw;function uQ(){return Qw||(Qw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,a=s-o%s,l=o+a-1;r.clamp(),r.words[l>>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(q0)),q0.exports}var J0={exports:{}},Lw;function fQ(){return Lw||(Lw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(J0)),J0.exports}var K0={exports:{}},Fw;function dQ(){return Fw||(Fw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(K0)),K0.exports}var em={exports:{}},Vw;function hQ(){return Vw||(Vw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(em)),em.exports}var tm={exports:{}},zw;function pQ(){return zw||(zw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(tm)),tm.exports}var nm={exports:{}},Ww;function gQ(){return Ww||(Ww=1,function(t,e){(function(n,r,i){t.exports=r(qe(),an())})($e,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,a=i.enc,l=a.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return s.create({ciphertext:f})}}}(),n.format.Hex})}(nm)),nm.exports}var rm={exports:{}},Zw;function mQ(){return Zw||(Zw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,a=[],l=[],c=[],u=[],f=[],d=[],p=[],g=[],m=[],v=[];(function(){for(var y=[],S=0;S<256;S++)S<128?y[S]=S<<1:y[S]=S<<1^283;for(var b=0,w=0,S=0;S<256;S++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,a[b]=C,l[C]=b;var P=y[b],A=y[P],I=y[A],T=y[C]*257^C*16843008;c[b]=T<<24|T>>>8,u[b]=T<<16|T>>>16,f[b]=T<<8|T>>>24,d[b]=T;var T=I*16843009^A*65537^P*257^b*16843008;p[C]=T<<24|T>>>8,g[C]=T<<16|T>>>16,m[C]=T<<8|T>>>24,v[C]=T,b?(b=P^y[y[y[I^P]]],w^=y[y[w]]):b=w=1}})();var O=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,b=S.words,w=S.sigBytes/4,C=this._nRounds=w+6,P=(C+1)*4,A=this._keySchedule=[],I=0;I<P;I++)I<w?A[I]=b[I]:(y=A[I-1],I%w?w>6&&I%w==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=O[I/w|0]<<24),A[I]=A[I-w]^y);for(var T=this._invKeySchedule=[],j=0;j<P;j++){var I=P-j;if(j%4)var y=A[I];else var y=A[I-4];j<4||I<=4?T[j]=y:T[j]=p[a[y>>>24]]^g[a[y>>>16&255]]^m[a[y>>>8&255]]^v[a[y&255]]}}},encryptBlock:function(y,S){this._doCryptBlock(y,S,this._keySchedule,c,u,f,d,a)},decryptBlock:function(y,S){var b=y[S+1];y[S+1]=y[S+3],y[S+3]=b,this._doCryptBlock(y,S,this._invKeySchedule,p,g,m,v,l);var b=y[S+1];y[S+1]=y[S+3],y[S+3]=b},_doCryptBlock:function(y,S,b,w,C,P,A,I){for(var T=this._nRounds,j=y[S]^b[0],B=y[S+1]^b[1],V=y[S+2]^b[2],Q=y[S+3]^b[3],z=4,U=1;U<T;U++){var Z=w[j>>>24]^C[B>>>16&255]^P[V>>>8&255]^A[Q&255]^b[z++],Y=w[B>>>24]^C[V>>>16&255]^P[Q>>>8&255]^A[j&255]^b[z++],N=w[V>>>24]^C[Q>>>16&255]^P[j>>>8&255]^A[B&255]^b[z++],L=w[Q>>>24]^C[j>>>16&255]^P[B>>>8&255]^A[V&255]^b[z++];j=Z,B=Y,V=N,Q=L}var Z=(I[j>>>24]<<24|I[B>>>16&255]<<16|I[V>>>8&255]<<8|I[Q&255])^b[z++],Y=(I[B>>>24]<<24|I[V>>>16&255]<<16|I[Q>>>8&255]<<8|I[j&255])^b[z++],N=(I[V>>>24]<<24|I[Q>>>16&255]<<16|I[j>>>8&255]<<8|I[B&255])^b[z++],L=(I[Q>>>24]<<24|I[j>>>16&255]<<16|I[B>>>8&255]<<8|I[V&255])^b[z++];y[S]=Z,y[S+1]=Y,y[S+2]=N,y[S+3]=L},keySize:256/32});r.AES=o._createHelper(x)}(),n.AES})}(rm)),rm.exports}var im={exports:{}},Xw;function vQ(){return Xw||(Xw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=a.DES=s.extend({_doReset:function(){for(var O=this._key,x=O.words,y=[],S=0;S<56;S++){var b=l[S]-1;y[S]=x[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var P=w[C]=[],A=u[C],S=0;S<24;S++)P[S/6|0]|=y[(c[S]-1+A)%28]<<31-S%6,P[4+(S/6|0)]|=y[28+(c[S+24]-1+A)%28]<<31-S%6;P[0]=P[0]<<1|P[0]>>>31;for(var S=1;S<7;S++)P[S]=P[S]>>>(S-1)*4+3;P[7]=P[7]<<5|P[7]>>>27}for(var I=this._invSubKeys=[],S=0;S<16;S++)I[S]=w[15-S]},encryptBlock:function(O,x){this._doCryptBlock(O,x,this._subKeys)},decryptBlock:function(O,x){this._doCryptBlock(O,x,this._invSubKeys)},_doCryptBlock:function(O,x,y){this._lBlock=O[x],this._rBlock=O[x+1],g.call(this,4,252645135),g.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),g.call(this,1,1431655765);for(var S=0;S<16;S++){for(var b=y[S],w=this._lBlock,C=this._rBlock,P=0,A=0;A<8;A++)P|=f[A][((C^b[A])&d[A])>>>0];this._lBlock=C,this._rBlock=w^P}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,g.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),O[x]=this._lBlock,O[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(O,x){var y=(this._lBlock>>>O^this._rBlock)&x;this._rBlock^=y,this._lBlock^=y<<O}function m(O,x){var y=(this._rBlock>>>O^this._lBlock)&x;this._lBlock^=y,this._rBlock^=y<<O}r.DES=s._createHelper(p);var v=a.TripleDES=s.extend({_doReset:function(){var O=this._key,x=O.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=x.slice(0,2),S=x.length<4?x.slice(0,2):x.slice(2,4),b=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=p.createEncryptor(o.create(y)),this._des2=p.createEncryptor(o.create(S)),this._des3=p.createEncryptor(o.create(b))},encryptBlock:function(O,x){this._des1.encryptBlock(O,x),this._des2.decryptBlock(O,x),this._des3.encryptBlock(O,x)},decryptBlock:function(O,x){this._des3.decryptBlock(O,x),this._des2.encryptBlock(O,x),this._des1.decryptBlock(O,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(v)}(),n.TripleDES})}(im)),im.exports}var om={exports:{}},Gw;function OQ(){return Gw||(Gw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=s.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,p=this._S=[],g=0;g<256;g++)p[g]=g;for(var g=0,m=0;g<256;g++){var v=g%d,O=f[v>>>2]>>>24-v%4*8&255;m=(m+p[g]+O)%256;var x=p[g];p[g]=p[m],p[m]=x}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,d=this._j,p=0,g=0;g<4;g++){f=(f+1)%256,d=(d+u[f])%256;var m=u[f];u[f]=u[d],u[d]=m,p|=u[(u[f]+u[d])%256]<<24-g*8}return this._i=f,this._j=d,p}r.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(om)),om.exports}var sm={exports:{}},Uw;function xQ(){return Uw||(Uw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var d=this._key.words,p=this.cfg.iv,g=0;g<4;g++)d[g]=(d[g]<<8|d[g]>>>24)&16711935|(d[g]<<24|d[g]>>>8)&4278255360;var m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)v[g]^=m[g+4&7];if(p){var O=p.words,x=O[0],y=O[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;v[0]^=S,v[1]^=w,v[2]^=b,v[3]^=C,v[4]^=S,v[5]^=w,v[6]^=b,v[7]^=C;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(d,p){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,d[p+m]^=a[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var m=d[g]+p[g],v=m&65535,O=m>>>16,x=((v*v>>>17)+v*O>>>15)+O*O,y=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(sm)),sm.exports}var am={exports:{}},Yw;function yQ(){return Yw||(Yw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var d=this._key.words,p=this.cfg.iv,g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],m=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)m[v]^=g[v+4&7];if(p){var O=p.words,x=O[0],y=O[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;m[0]^=S,m[1]^=w,m[2]^=b,m[3]^=C,m[4]^=S,m[5]^=w,m[6]^=b,m[7]^=C;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(d,p){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,d[p+m]^=a[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var m=d[g]+p[g],v=m&65535,O=m>>>16,x=((v*v>>>17)+v*O>>>15)+O*O,y=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}(am)),am.exports}var lm={exports:{}},Hw;function bQ(){return Hw||(Hw=1,function(t,e){(function(n,r,i){t.exports=r(qe(),Hs(),qs(),ts(),an())})($e,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(v,O){let x=O>>24&255,y=O>>16&255,S=O>>8&255,b=O&255,w=v.sbox[0][x]+v.sbox[1][y];return w=w^v.sbox[2][S],w=w+v.sbox[3][b],w}function d(v,O,x){let y=O,S=x,b;for(let w=0;w<a;++w)y=y^v.pbox[w],S=f(v,y)^S,b=y,y=S,S=b;return b=y,y=S,S=b,S=S^v.pbox[a],y=y^v.pbox[a+1],{left:y,right:S}}function p(v,O,x){let y=O,S=x,b;for(let w=a+1;w>1;--w)y=y^v.pbox[w],S=f(v,y)^S,b=y,y=S,S=b;return b=y,y=S,S=b,S=S^v.pbox[1],y=y^v.pbox[0],{left:y,right:S}}function g(v,O,x){for(let C=0;C<4;C++){v.sbox[C]=[];for(let P=0;P<256;P++)v.sbox[C][P]=c[C][P]}let y=0;for(let C=0;C<a+2;C++)v.pbox[C]=l[C]^O[y],y++,y>=x&&(y=0);let S=0,b=0,w=0;for(let C=0;C<a+2;C+=2)w=d(v,S,b),S=w.left,b=w.right,v.pbox[C]=S,v.pbox[C+1]=b;for(let C=0;C<4;C++)for(let P=0;P<256;P+=2)w=d(v,S,b),S=w.left,b=w.right,v.sbox[C][P]=S,v.sbox[C][P+1]=b;return!0}var m=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,O=v.words,x=v.sigBytes/4;g(u,O,x)}},encryptBlock:function(v,O){var x=d(u,v[O],v[O+1]);v[O]=x.left,v[O+1]=x.right},decryptBlock:function(v,O){var x=p(u,v[O],v[O+1]);v[O]=x.left,v[O+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),n.Blowfish})}(lm)),lm.exports}(function(t,e){(function(n,r,i){t.exports=r(qe(),Jp(),qB(),JB(),Hs(),KB(),qs(),B5(),ty(),eQ(),Q5(),tQ(),nQ(),rQ(),ny(),iQ(),ts(),an(),oQ(),sQ(),aQ(),lQ(),cQ(),uQ(),fQ(),dQ(),hQ(),pQ(),gQ(),mQ(),vQ(),OQ(),xQ(),yQ(),bQ())})($e,function(n){return n})})(N5);var a1=N5.exports;function ai(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function qw(t,e){for(var n="",r=0,i=-1,o=0,s,a=0;a<=t.length;++a){if(a<t.length)s=t.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function SQ(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Ya={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),ai(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=qw(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ai(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=qw(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return ai(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];ai(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ya.normalize(e)},relative:function(e,n){if(ai(e),ai(n),e===n||(e=Ya.resolve(e),n=Ya.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,l=a-s,c=o<l?o:l,u=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>c&&(e.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var d=e.charCodeAt(r+f),p=n.charCodeAt(s+f);if(d!==p)break;d===47&&(u=f)}var g="";for(f=r+u+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(ai(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ai(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){ai(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return SQ("/",e)},parse:function(e){ai(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,f=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(a,l)):(a===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(a,s),n.base=e.slice(a,l)),n.ext=e.slice(s,l)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Ya.posix=Ya;var L5=Ya;const l1=go(L5),wQ=UD({__proto__:null,default:l1},[L5]);class Jw{constructor(e){this.baseDir=e}async ls(e=""){const n=this.makeKey(e);return Object.keys(localStorage).filter(r=>r.startsWith(n)).map(r=>r.replace(n,""))}async get(e){const n=this.makeKey(e);return localStorage.getItem(n)??null}async set(e,n){const r=this.makeKey(e);localStorage.setItem(r,n)}async remove(e){const n=this.makeKey(e);localStorage.removeItem(n)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function qr(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var Ol;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(Ol||(Ol={}));async function CQ(){return qr("plugin:path|resolve_directory",{directory:Ol.AppData})}async function PQ(){return qr("plugin:path|resolve_directory",{directory:Ol.Desktop})}function F5(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function AQ(...t){return qr("plugin:path|resolve",{paths:t})}async function Uc(...t){return qr("plugin:path|join",{paths:t})}async function kQ(t){return qr("plugin:path|is_absolute",{path:t})}var Kw;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Kw||(Kw={}));async function eC(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function EQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await qr("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function IQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await qr("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function TQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function $Q(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await qr("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:n})}function Kp(){return!!(window!=null&&window.__TAURI__)}const mi=class mi{static async getUtils(){return mi.utils||(mi.utils=Kp()?await Promise.resolve().then(()=>require("./replay-tauri-path-CNVV_Y1j.js")):await Promise.resolve().then(()=>wQ)),mi.utils}static async join(...e){return(await mi.getUtils()).join(...e)}static async resolve(e){return(await mi.getUtils()).resolve(e)}static async isAbsolute(e){return(await mi.getUtils()).isAbsolute(e)}static async relative(e,n){return(await mi.getUtils()).relative(e,n)}};ie(mi,"utils",null);let qi=mi;class tC{constructor(e,n){this.baseDir=e,this.baseDirOption=n,this.initializeDirectory()}async initializeDirectory(e){try{await eC(e??"/",{baseDir:this.baseDirOption,recursive:!0})}catch(n){if(n instanceof Error&&n.message.includes("already exists"))return;throw n}}async ls(e){const n=await this.getFullPath(e);return this.getDirEntryFilesRecursively(n)}async getDirEntryFilesRecursively(e){try{const n=[],r=await EQ(e,{baseDir:this.baseDirOption});for(const i of r)if(i.isDirectory){const o=await Uc(e,i.name),s=await this.getDirEntryFilesRecursively(o);n.push(...s)}else{const o=await Uc(e,i.name),s=await qi.relative(this.baseDir,o);n.push(s)}return n}catch(n){return n.includes("forbidden path")||console.error(n),[]}}async get(e){const n=await this.getFullPath(e);try{return await IQ(n,{baseDir:this.baseDirOption})}catch(r){return!r.includes("No such file or directory")&&!r.includes("forbidden path")&&console.error(r),null}}async set(e,n){const r=await this.getFullPath(e),i=F5(),o=r.split(i).slice(0,-1).join(i);await eC(o,{baseDir:this.baseDirOption,recursive:!0}),await $Q(r,n,{baseDir:this.baseDirOption})}async remove(e){const n=await this.getFullPath(e);try{await TQ(n,{baseDir:this.baseDirOption})}catch(r){if(r instanceof Error&&r.message.includes("not found"))return;throw r}}async getFullPath(e){return await Uc(this.baseDir,e??"")}}class jQ{constructor(){ie(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,n){}async remove(e){}}class _Q{constructor(e,n){ie(this,"default",UI);this.storage=e,this.localStorageSecretsProvider=n}async read(){const e=await this.storage.get("replay-environments.yaml"),n=await this.localStorageSecretsProvider.get();let r=null,i=null;if(!e)return this.default;try{r=vl.load(e),i=n?JSON.parse(n):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return r?Object.keys(r).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(r[a].inputs).map(([l,c])=>{var f;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((f=i==null?void 0:i[a])==null?void 0:f[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(r[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,f])=>({name:u,value:f}))})),state:Ue.Normal})):this.default}async write(e){const n=await this.localStorageSecretsProvider.get(),r=n?JSON.parse(n):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&r?(r[s.name]||(r[s.name]={}),r[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(r)),i&&this.storage.set("replay-environments.yaml",vl.dump(i))}}var RQ=Object.prototype.hasOwnProperty,DQ=Object.prototype.toString,MQ=function(e,n,r){if(DQ.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)n.call(r,e[o],o,e);else for(var s in e)RQ.call(e,s)&&n.call(r,e[s],s,e)},NQ=MQ,BQ=bt;function bt(t,e,n){if(arguments.length===3)return bt.set(t,e,n);if(arguments.length===2)return bt.get(t,e);var r=bt.bind(bt,t);for(var i in bt)bt.hasOwnProperty(i)&&(r[i]=bt[i].bind(r,t));return r}bt.get=function(e,n){for(var r=Array.isArray(n)?n:bt.parse(n),i=0;i<r.length;++i){var o=r[i];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e};bt.set=function(e,n,r){var i=Array.isArray(n)?n:bt.parse(n),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=r,this};bt.remove=function(t,e){var n=Array.isArray(e)?e:bt.parse(e),r=n[n.length-1];if(r===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var i=bt.get(t,n.slice(0,-1));if(Array.isArray(i)){var o=+r;if(r===""&&isNaN(o))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(i,o,1)}else delete i[r]};bt.dict=function(e,n){var r={};return bt.walk(e,function(i,o){r[o]=i},n),r};bt.walk=function(e,n,r){var i=[];r=r||function(o){var s=Object.prototype.toString.call(o);return s==="[object Object]"||s==="[object Array]"},function o(s){NQ(s,function(a,l){i.push(String(l)),r(a)?o(a):n(a,bt.compile(i)),i.pop()})}(e)};bt.has=function(e,n){try{bt.get(e,n)}catch{return!1}return!0};bt.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};bt.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};bt.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(bt.unescape)};bt.compile=function(e){return e.length===0?"":"/"+e.map(bt.escape).join("/")};const V5=go(BQ);var dr=(t=>(t.Query="Query",t.Header="Header",t.Cookie="Cookie",t))(dr||{}),H=(t=>(t.NoAuth="No Auth",t.BasicAuth="Basic Auth",t.DigestAuth="Digest Auth",t.JWT="JWT",t.APIKey="API key",t.OAuth2="OAuth 2.0",t.OpenIDConnect="OpenID Connect",t))(H||{}),J=(t=>(t.ClientCredentials="Client Credentials",t.ClientCredentialsWithJwtAssertion="Client Credentials with JWT Assertion",t.AuthorizationCode="Authorization Code",t.AuthorizationCodeWithPkce="Authorization Code with PKCE",t.Implicit="Implicit",t.Password="Password",t))(J||{}),kn=(t=>(t.Body="Body",t.Header="Header",t.URL="URL",t))(kn||{}),_n=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(_n||{});const ry={active:!0,key:"",value:""},z5="{",iy="}",Vl="^\\$inputs\\.([^}\\s]+)$|\\{\\$inputs\\.([^}\\s]+)\\}";function QQ({content:t}){return h.jsx(LQ,{"data-testid":"arazzo-expression",children:t})}const LQ=k.span`
|
|
156
156
|
display: inline-flex;
|
|
157
157
|
align-items: center;
|
|
158
158
|
width: fit-content;
|
|
@@ -317,7 +317,7 @@ html body {
|
|
|
317
317
|
align-self: flex-end;
|
|
318
318
|
padding-top: var(--spacing-xxs);
|
|
319
319
|
gap: var(--spacing-xs);
|
|
320
|
-
`;function of({input:t,onSave:e,onCancel:n,...r}){const[i,o]=E.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return h.jsx(H8,{variable:t,onSave:s,onCancel:n,...r,children:h.jsx(nx,{children:h.jsx(lee,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function Jd(t){var e=new Error(t);return e.source="ulid",e}var mb="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ou=mb.length,kk=Math.pow(2,48)-1,gee=10,mee=16;function vee(t){var e=Math.floor(t()*ou);return e===ou&&(e=ou-1),mb.charAt(e)}function Oee(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>kk)throw Jd("cannot encode time greater than "+kk);if(t<0)throw Jd("time must be positive");if(Number.isInteger(t)===!1)throw Jd("time must be an integer");for(var n=void 0,r="";e>0;e--)n=t%ou,r=mb.charAt(n)+r,t=(t-n)/ou;return r}function xee(t,e){for(var n="";t>0;t--)n=vee(e)+n;return n}function yee(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Jd("secure crypto unusable, insecure Math.random not allowed")}function bee(t){return t||(t=yee()),function(n){return isNaN(n)&&(n=Date.now()),Oee(n,gee)+xee(mee,t)}}var Nu=bee(),See=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Is="1.9.0",Ek=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function wee(t){var e=new Set([t]),n=new Set,r=t.match(Ek);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return n.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(n.has(l))return!1;var c=l.match(Ek);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var Cee=wee(Is),Pee=Is.split(".")[0],Bu=Symbol.for("opentelemetry.js.api."+Pee),Qu=See;function sf(t,e,n,r){var i;r===void 0&&(r=!1);var o=Qu[Bu]=(i=Qu[Bu])!==null&&i!==void 0?i:{version:Is};if(!r&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(o.version!==Is){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Is);return n.error(s.stack||s.message),!1}return o[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+Is+"."),!0}function Xs(t){var e,n,r=(e=Qu[Bu])===null||e===void 0?void 0:e.version;if(!(!r||!Cee(r)))return(n=Qu[Bu])===null||n===void 0?void 0:n[t]}function af(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Is+".");var n=Qu[Bu];n&&delete n[t]}var Aee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},kee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Eee=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("verbose",this._namespace,e)},t}();function wc(t,e,n){var r=Xs("diag");if(r)return n.unshift(e),r[t].apply(r,kee([],Aee(n),!1))}var lr;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(lr||(lr={}));function Iee(t,e){t<lr.NONE?t=lr.NONE:t>lr.ALL&&(t=lr.ALL),e=e||{};function n(r,i){var o=e[r];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:n("error",lr.ERROR),warn:n("warn",lr.WARN),info:n("info",lr.INFO),debug:n("debug",lr.DEBUG),verbose:n("verbose",lr.VERBOSE)}}var Tee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},$ee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},jee="diag",Ni=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Xs("diag");if(a)return a[i].apply(a,$ee([],Tee(o),!1))}}var n=this,r=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:lr.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=Xs("diag"),f=Iee((a=o.logLevel)!==null&&a!==void 0?a:lr.INFO,i);if(u&&!o.suppressOverrideMessage){var d=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return sf("diag",f,n,!0)};n.setLogger=r,n.disable=function(){af(jee,n)},n.createComponentLogger=function(i){return new Eee(i)},n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),_ee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Ree=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Dee=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var n=this._entries.get(e);if(n)return Object.assign({},n)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var n=_ee(e,2),r=n[0],i=n[1];return[r,i]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new t(this._entries);try{for(var s=Ree(r),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t}(),Mee=Symbol("BaggageEntryMetadata"),Nee=Ni.instance();function Bee(t){return t===void 0&&(t={}),new Dee(new Map(Object.entries(t)))}function Qee(t){return typeof t!="string"&&(Nee.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Mee,toString:function(){return t}}}function vb(t){return Symbol.for(t)}var Lee=function(){function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new t(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new t(n._currentContext);return i._currentContext.delete(r),i}}return t}(),Ma=new Lee,ea=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fee=function(){function t(){}return t.prototype.createGauge=function(e,n){return qee},t.prototype.createHistogram=function(e,n){return Jee},t.prototype.createCounter=function(e,n){return Hee},t.prototype.createUpDownCounter=function(e,n){return Kee},t.prototype.createObservableGauge=function(e,n){return tte},t.prototype.createObservableCounter=function(e,n){return ete},t.prototype.createObservableUpDownCounter=function(e,n){return nte},t.prototype.addBatchObservableCallback=function(e,n){},t.prototype.removeBatchObservableCallback=function(e){},t}(),Cg=function(){function t(){}return t}(),Vee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(Cg),zee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(Cg),Wee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,r){},e}(Cg),Zee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,r){},e}(Cg),Ob=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),Xee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Gee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Uee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Yee=new Fee,Hee=new Vee,qee=new Wee,Jee=new Zee,Kee=new zee,ete=new Xee,tte=new Gee,nte=new Uee,rte={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},ite={set:function(t,e,n){t!=null&&(t[e]=n)}},ote=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},ste=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ate=function(){function t(){}return t.prototype.active=function(){return Ma},t.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,ste([r],ote(i),!1))},t.prototype.bind=function(e,n){return n},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),lte=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},cte=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Jm="context",ute=new ate,Pg=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return sf(Jm,e,Ni.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,n,r){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,cte([e,n,r],lte(o),!1))},t.prototype.bind=function(e,n){return this._getContextManager().bind(e,n)},t.prototype._getContextManager=function(){return Xs(Jm)||ute},t.prototype.disable=function(){this._getContextManager().disable(),af(Jm,Ni.instance())},t}(),ho;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(ho||(ho={}));var q8="0000000000000000",J8="00000000000000000000000000000000",K8={traceId:J8,spanId:q8,traceFlags:ho.NONE},su=function(){function t(e){e===void 0&&(e=K8),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,n){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,n){},t}(),xb=vb("OpenTelemetry Context Key SPAN");function yb(t){return t.getValue(xb)||void 0}function fte(){return yb(Pg.getInstance().active())}function bb(t,e){return t.setValue(xb,e)}function dte(t){return t.deleteValue(xb)}function hte(t,e){return bb(t,new su(e))}function e$(t){var e;return(e=yb(t))===null||e===void 0?void 0:e.spanContext()}var pte=/^([0-9a-f]{32})$/i,gte=/^[0-9a-f]{16}$/i;function t$(t){return pte.test(t)&&t!==J8}function mte(t){return gte.test(t)&&t!==q8}function Ag(t){return t$(t.traceId)&&mte(t.spanId)}function vte(t){return new su(t)}var Km=Pg.getInstance(),n$=function(){function t(){}return t.prototype.startSpan=function(e,n,r){r===void 0&&(r=Km.active());var i=!!(n!=null&&n.root);if(i)return new su;var o=r&&e$(r);return Ote(o)&&Ag(o)?new su(o):new su},t.prototype.startActiveSpan=function(e,n,r,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);var l=s??Km.active(),c=this.startSpan(e,o,l),u=bb(l,c);return Km.with(u,a,void 0,c)}},t}();function Ote(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var xte=new n$,yte=function(){function t(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}return t.prototype.startSpan=function(e,n,r){return this._getTracer().startSpan(e,n,r)},t.prototype.startActiveSpan=function(e,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):xte},t}(),bte=function(){function t(){}return t.prototype.getTracer=function(e,n,r){return new n$},t}(),Ste=new bte,Ik=function(){function t(){}return t.prototype.getTracer=function(e,n,r){var i;return(i=this.getDelegateTracer(e,n,r))!==null&&i!==void 0?i:new yte(this,e,n,r)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Ste},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,n,r)},t}(),vp;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(vp||(vp={}));var rx;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(rx||(rx={}));var ix;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(ix||(ix={}));var Fo=Pg.getInstance(),ot=Ni.instance(),wte=function(){function t(){}return t.prototype.getMeter=function(e,n,r){return Yee},t}(),Cte=new wte,ev="metrics",Pte=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return sf(ev,e,Ni.instance())},t.prototype.getMeterProvider=function(){return Xs(ev)||Cte},t.prototype.getMeter=function(e,n,r){return this.getMeterProvider().getMeter(e,n,r)},t.prototype.disable=function(){af(ev,Ni.instance())},t}(),Ate=Pte.getInstance(),kte=function(){function t(){}return t.prototype.inject=function(e,n){},t.prototype.extract=function(e,n){return e},t.prototype.fields=function(){return[]},t}(),Sb=vb("OpenTelemetry Baggage Key");function r$(t){return t.getValue(Sb)||void 0}function Ete(){return r$(Pg.getInstance().active())}function Ite(t,e){return t.setValue(Sb,e)}function Tte(t){return t.deleteValue(Sb)}var tv="propagation",$te=new kte,jte=function(){function t(){this.createBaggage=Bee,this.getBaggage=r$,this.getActiveBaggage=Ete,this.setBaggage=Ite,this.deleteBaggage=Tte}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return sf(tv,e,Ni.instance())},t.prototype.inject=function(e,n,r){return r===void 0&&(r=ite),this._getGlobalPropagator().inject(e,n,r)},t.prototype.extract=function(e,n,r){return r===void 0&&(r=rte),this._getGlobalPropagator().extract(e,n,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){af(tv,Ni.instance())},t.prototype._getGlobalPropagator=function(){return Xs(tv)||$te},t}(),au=jte.getInstance(),nv="trace",_te=function(){function t(){this._proxyTracerProvider=new Ik,this.wrapSpanContext=vte,this.isSpanContextValid=Ag,this.deleteSpan=dte,this.getSpan=yb,this.getActiveSpan=fte,this.getSpanContext=e$,this.setSpan=bb,this.setSpanContext=hte}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var n=sf(nv,this._proxyTracerProvider,Ni.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},t.prototype.getTracerProvider=function(){return Xs(nv)||this._proxyTracerProvider},t.prototype.getTracer=function(e,n){return this.getTracerProvider().getTracer(e,n)},t.prototype.disable=function(){af(nv,Ni.instance()),this._proxyTracerProvider=new Ik},t}(),Ar=_te.getInstance();const i$=vb("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Rte(t){return t.setValue(i$,!0)}function wb(t){return t.getValue(i$)===!0}const Dte="=",ox=";",sx=",",rv="baggage",Mte=180,Nte=4096,Bte=8192;function Qte(t){return t.reduce((e,n)=>{const r=`${e}${e!==""?sx:""}${n}`;return r.length>Bte?e:r},"")}function Lte(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=ox+n.metadata.toString()),r})}function Fte(t){const e=t.split(ox);if(e.length<=0)return;const n=e.shift();if(!n)return;const r=n.indexOf(Dte);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let s;return e.length>0&&(s=Qee(e.join(ox))),{key:i,value:o,metadata:s}}class Vte{inject(e,n,r){const i=au.getBaggage(e);if(!i||wb(e))return;const o=Lte(i).filter(a=>a.length<=Nte).slice(0,Mte),s=Qte(o);s.length>0&&r.set(n,rv,s)}extract(e,n,r){const i=r.get(n,rv),o=Array.isArray(i)?i.join(sx):i;if(!o)return e;const s={};return o.length===0||(o.split(sx).forEach(l=>{const c=Fte(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:au.setBaggage(e,au.createBaggage(s))}fields(){return[rv]}}function Kd(t){const e={};if(typeof t!="object"||t==null)return e;for(const[n,r]of Object.entries(t)){if(!zte(n)){ot.warn(`Invalid attribute key: ${n}`);continue}if(!o$(r)){ot.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}function zte(t){return typeof t=="string"&&t.length>0}function o$(t){return t==null?!0:Array.isArray(t)?Wte(t):s$(t)}function Wte(t){let e;for(const n of t)if(n!=null){if(!e){if(s$(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function s$(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function Zte(){return t=>{ot.error(Xte(t))}}function Xte(t){return typeof t=="string"?t:JSON.stringify(Gte(t))}function Gte(t){const e={};let n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;const i=n[r];i&&(e[r]=String(i))}),n=Object.getPrototypeOf(n);return e}let Ute=Zte();function Rl(t){try{Ute(t)}catch{}}const al=performance,Yte="2.0.1",iv="exception.message",Hte="exception.stacktrace",ov="exception.type",a$="service.name",qte="service.version",ax="telemetry.sdk.language",Jte="webjs",lx="telemetry.sdk.name",cx="telemetry.sdk.version",Kte="process.runtime.name",sv={[lx]:"opentelemetry",[Kte]:"browser",[ax]:Jte,[cx]:Yte};const ene=9,tne=6,nne=Math.pow(10,tne),Op=Math.pow(10,ene);function Xa(t){const e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*nne);return[n,r]}function l$(){let t=al.timeOrigin;if(typeof t!="number"){const e=al;t=e.timing&&e.timing.fetchStart}return t}function rne(t){const e=Xa(l$()),n=Xa(typeof t=="number"?t:al.now());return u$(e,n)}function ine(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=Op),[n,r]}function one(t){return t[0]*Op+t[1]}function c$(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function Tk(t){return c$(t)||typeof t=="number"||t instanceof Date}function u$(t,e){const n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Op&&(n[1]-=Op,n[0]+=1),n}var Oi;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(Oi||(Oi={}));class sne{constructor(e={}){ie(this,"_propagators");ie(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(const i of this._propagators)try{i.inject(e,n,r)}catch(o){ot.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(s){ot.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ux="[_0-9a-z-*/]",ane=`[a-z]${ux}{0,255}`,lne=`[a-z0-9]${ux}{0,240}@[a-z]${ux}{0,13}`,cne=new RegExp(`^(?:${ane}|${lne})$`),une=/^[ -~]{0,255}[!-~]$/,fne=/,|=/;function dne(t){return cne.test(t)}function hne(t){return une.test(t)&&!fne.test(t)}const $k=32,pne=512,jk=",",_k="=";class Cb{constructor(e){ie(this,"_internalState",new Map);e&&this._parse(e)}set(e,n){const r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){const n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+_k+this.get(n)),e),[]).join(jk)}_parse(e){e.length>pne||(this._internalState=e.split(jk).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(_k);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,r.length);dne(s)&&hne(a)&&n.set(s,a)}return n},new Map),this._internalState.size>$k&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$k))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new Cb;return e._internalState=new Map(this._internalState),e}}const av="traceparent",lv="tracestate",gne="00",mne="(?!ff)[\\da-f]{2}",vne="(?![0]{32})[\\da-f]{32}",One="(?![0]{16})[\\da-f]{16}",xne="[\\da-f]{2}",yne=new RegExp(`^\\s?(${mne})-(${vne})-(${One})-(${xne})(-.*)?\\s?$`);function bne(t){const e=yne.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Sne{inject(e,n,r){const i=Ar.getSpanContext(e);if(!i||wb(e)||!Ag(i))return;const o=`${gne}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||ho.NONE).toString(16)}`;r.set(n,av,o),i.traceState&&r.set(n,lv,i.traceState.serialize())}extract(e,n,r){const i=r.get(n,av);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=bne(o);if(!s)return e;s.isRemote=!0;const a=r.get(n,lv);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new Cb(typeof l=="string"?l:void 0)}return Ar.setSpanContext(e,s)}fields(){return[av,lv]}}const wne="[object Object]",Cne="[object Null]",Pne="[object Undefined]",Ane=Function.prototype,f$=Ane.toString,kne=f$.call(Object),Ene=Object.getPrototypeOf,d$=Object.prototype,h$=d$.hasOwnProperty,Cs=Symbol?Symbol.toStringTag:void 0,p$=d$.toString;function Rk(t){if(!Ine(t)||Tne(t)!==wne)return!1;const e=Ene(t);if(e===null)return!0;const n=h$.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&f$.call(n)===kne}function Ine(t){return t!=null&&typeof t=="object"}function Tne(t){return t==null?t===void 0?Pne:Cne:Cs&&Cs in Object(t)?$ne(t):jne(t)}function $ne(t){const e=h$.call(t,Cs),n=t[Cs];let r=!1;try{t[Cs]=void 0,r=!0}catch{}const i=p$.call(t);return r&&(e?t[Cs]=n:delete t[Cs]),i}function jne(t){return p$.call(t)}const _ne=20;function Rne(...t){let e=t.shift();const n=new WeakMap;for(;t.length>0;)e=g$(e,t.shift(),0,n);return e}function cv(t){return xp(t)?t.slice():t}function g$(t,e,n=0,r){let i;if(!(n>_ne)){if(n++,eh(t)||eh(e)||m$(e))i=cv(e);else if(xp(t)){if(i=t.slice(),xp(e))for(let o=0,s=e.length;o<s;o++)i.push(cv(e[o]));else if(Cc(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=cv(e[l])}}}else if(Cc(t))if(Cc(e)){if(!Dne(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(eh(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],f=c;if(Dk(t,l,r)||Dk(e,l,r))delete i[l];else{if(Cc(u)&&Cc(f)){const d=r.get(u)||[],p=r.get(f)||[];d.push({obj:t,key:l}),p.push({obj:e,key:l}),r.set(u,d),r.set(f,p)}i[l]=g$(i[l],c,n,r)}}}}else i=e;return i}}function Dk(t,e,n){const r=n.get(t[e])||[];for(let i=0,o=r.length;i<o;i++){const s=r[i];if(s.key===e&&s.obj===t)return!0}return!1}function xp(t){return Array.isArray(t)}function m$(t){return typeof t=="function"}function Cc(t){return!eh(t)&&!xp(t)&&!m$(t)&&typeof t=="object"}function eh(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Dne(t,e){return!(!Rk(t)||!Rk(e))}class Mne{constructor(){ie(this,"_promise");ie(this,"_resolve");ie(this,"_reject");this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Nne{constructor(e,n){ie(this,"_callback");ie(this,"_that");ie(this,"_isCalled",!1);ie(this,"_deferred",new Mne);this._callback=e,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function Bne(){return"unknown_service"}const Fc=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class yp{constructor(e){ie(this,"_rawAttributes");ie(this,"_asyncAttributesPending",!1);ie(this,"_memoizedAttributes");const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Fc(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=Mk(this._rawAttributes)}static FromAttributeList(e){const n=new yp({});return n._rawAttributes=Mk(e),n._asyncAttributesPending=e.filter(([r,i])=>Fc(i)).length>0,n}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,Fc(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ot.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[n,r]of this._rawAttributes){if(Fc(r)){ot.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??(e[n]=r))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:yp.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function v$(t){return yp.FromAttributeList(Object.entries(t))}function Qne(){return v$({[a$]:Bne(),[ax]:sv[ax],[lx]:sv[lx],[cx]:sv[cx]})}function Mk(t){return t.map(([e,n])=>Fc(n)?[e,n.catch(r=>{ot.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}const Lne="exception";class Fne{constructor(e){ie(this,"_spanContext");ie(this,"kind");ie(this,"parentSpanContext");ie(this,"attributes",{});ie(this,"links",[]);ie(this,"events",[]);ie(this,"startTime");ie(this,"resource");ie(this,"instrumentationScope");ie(this,"_droppedAttributesCount",0);ie(this,"_droppedEventsCount",0);ie(this,"_droppedLinksCount",0);ie(this,"name");ie(this,"status",{code:ix.UNSET});ie(this,"endTime",[0,0]);ie(this,"_ended",!1);ie(this,"_duration",[-1,-1]);ie(this,"_spanProcessor");ie(this,"_spanLimits");ie(this,"_attributeValueLengthLimit");ie(this,"_performanceStartTime");ie(this,"_performanceOffset");ie(this,"_startTimeProvided");const n=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=al.now(),this._performanceOffset=n-(this._performanceStartTime+l$()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return ot.warn(`Invalid attribute key: ${e}`),this;if(!o$(n))return ot.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this)}setAttributes(e){for(const[n,r]of Object.entries(e))this.setAttribute(n,r);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return ot.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&ot.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Tk(n)&&(Tk(r)||(r=n),n=void 0);const o=Kd(n);return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(ot.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){ot.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=ine(this.startTime,this.endTime),this._duration[0]<0&&(ot.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ot.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=al.now())return rne(e+this._performanceOffset);if(typeof e=="number")return Xa(e);if(e instanceof Date)return Xa(e.getTime());if(c$(e))return e;if(this._startTimeProvided)return Xa(Date.now());const n=al.now()-this._performanceStartTime;return u$(this.startTime,Xa(n))}isRecording(){return this._ended===!1}recordException(e,n){const r={};typeof e=="string"?r[iv]=e:e&&(e.code?r[ov]=e.code.toString():e.name&&(r[ov]=e.name),e.message&&(r[iv]=e.message),e.stack&&(r[Hte]=e.stack)),r[ov]||r[iv]?this.addEvent(Lne,r,n):ot.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ot.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){const n=this._attributeValueLengthLimit;return n<=0?(ot.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}}var Dl;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Dl||(Dl={}));class bp{shouldSample(){return{decision:Dl.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ll{shouldSample(){return{decision:Dl.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class hd{constructor(e){ie(this,"_root");ie(this,"_remoteParentSampled");ie(this,"_remoteParentNotSampled");ie(this,"_localParentSampled");ie(this,"_localParentNotSampled");this._root=e.root,this._root||(Rl(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ll),this._remoteParentSampled=e.remoteParentSampled??new ll,this._remoteParentNotSampled=e.remoteParentNotSampled??new bp,this._localParentSampled=e.localParentSampled??new ll,this._localParentNotSampled=e.localParentNotSampled??new bp}shouldSample(e,n,r,i,o,s){const a=Ar.getSpanContext(e);return!a||!Ag(a)?this._root.shouldSample(e,n,r,i,o,s):a.isRemote?a.traceFlags&ho.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,s):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,s):a.traceFlags&ho.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,s):this._localParentNotSampled.shouldSample(e,n,r,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class Nk{constructor(e=0){ie(this,"_ratio");ie(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:t$(n)&&this._accumulate(n)<this._upperBound?Dl.RECORD_AND_SAMPLED:Dl.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let r=0;r<e.length/8;r++){const i=r*8,o=parseInt(e.slice(i,i+8),16);n=(n^o)>>>0}return n}}const Bk=1;function O$(){return{sampler:x$(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function x$(){const t="parentbased_always_on";switch(t){case"always_on":return new ll;case"always_off":return new bp;case"parentbased_always_on":return new hd({root:new ll});case"parentbased_always_off":return new hd({root:new bp});case"traceidratio":return new Nk(Qk());case"parentbased_traceidratio":return new hd({root:new Nk(Qk())});default:return ot.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new hd({root:new ll})}}function Qk(){return ot.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Bk}.`),Bk}const Vne=128,zne=1/0;function Wne(t){const e={sampler:x$()},n=O$(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}function Zne(t){var n,r,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((n=t.spanLimits)==null?void 0:n.attributeCountLimit)??((r=t.generalLimits)==null?void 0:r.attributeCountLimit)??void 0??void 0??Vne,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??zne,Object.assign({},t,{spanLimits:e})}class Xne{constructor(e,n){ie(this,"_exporter");ie(this,"_maxExportBatchSize");ie(this,"_maxQueueSize");ie(this,"_scheduledDelayMillis");ie(this,"_exportTimeoutMillis");ie(this,"_isExporting",!1);ie(this,"_finishedSpans",[]);ie(this,"_timer");ie(this,"_shutdownOnce");ie(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new Nne(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ot.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&ho.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ot.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ot.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,n)=>{const r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Fo.with(Rte(Fo.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(r),a.code===Oi.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Rl(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,Rl(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Gne extends Xne{constructor(n,r){super(n,r);ie(this,"_visibilityChangeListener");ie(this,"_pageHideListener");this.onInit(r)}onInit(n){(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Rl(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Rl(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Une=8,Yne=16;class Hne{constructor(){ie(this,"generateTraceId",Lk(Yne));ie(this,"generateSpanId",Lk(Une))}}const pd=Array(32);function Lk(t){return function(){for(let n=0;n<t*2;n++)pd[n]=Math.floor(Math.random()*16)+48,pd[n]>=58&&(pd[n]+=39);return String.fromCharCode.apply(null,pd.slice(0,t*2))}}class qne{constructor(e,n,r,i){ie(this,"_sampler");ie(this,"_generalLimits");ie(this,"_spanLimits");ie(this,"_idGenerator");ie(this,"instrumentationScope");ie(this,"_resource");ie(this,"_spanProcessor");const o=Wne(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new Hne,this._resource=r,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,n={},r=Fo.active()){n.root&&(r=Ar.deleteSpan(r));const i=Ar.getSpan(r);if(wb(r))return ot.debug("Instrumentation suppressed, returning Noop Span"),Ar.wrapSpanContext(K8);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Ar.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=n.kind??rx.INTERNAL,f=(n.links??[]).map(x=>({context:x.context,attributes:Kd(x.attributes)})),d=Kd(n.attributes),p=this._sampler.shouldSample(r,l,e,u,d,f);c=p.traceState??c;const g=p.decision===vp.RECORD_AND_SAMPLED?ho.SAMPLED:ho.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===vp.NOT_RECORD)return ot.debug("Recording is off, propagating context in a non-recording span"),Ar.wrapSpanContext(m);const v=Kd(Object.assign(d,p.attributes));return new Fne({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:m,name:e,kind:u,links:f,parentSpanContext:a,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,n,r,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);const l=s??Fo.active(),c=this.startSpan(e,o,l),u=Ar.setSpan(l,c);return Fo.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Jne{constructor(e){ie(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{Rl(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(const r of this._spanProcessors)r.onStart(e,n)}onEnd(e){for(const n of this._spanProcessors)n.onEnd(e)}shutdown(){const e=[];for(const n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}}var Ps;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ps||(Ps={}));class Kne{constructor(e={}){ie(this,"_config");ie(this,"_tracers",new Map);ie(this,"_resource");ie(this,"_activeSpanProcessor");var i;const n=Rne({},O$(),Zne(e));this._resource=n.resource??Qne(),this._config=Object.assign({},n,{resource:this._resource});const r=[];(i=e.spanProcessors)!=null&&i.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new Jne(r)}getTracer(e,n,r){const i=`${e}@${n||""}:${(r==null?void 0:r.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new qne({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=Ps.timeout},e);r.forceFlush().then(()=>{clearTimeout(s),o!==Ps.timeout&&(o=Ps.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ps.error,i(a)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const s=o.filter(a=>a!==Ps.resolved);s.length>0?i(s):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class ere{constructor(){ie(this,"_enabled",!1);ie(this,"_currentContext",Ma)}_bindFunction(e=Ma,n){const r=this,i=function(...o){return r.with(e,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n}disable(){return this._currentContext=Ma,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ma,this)}with(e,n,r,...i){const o=this._currentContext;this._currentContext=e||Ma;try{return n.call(r,...i)}finally{this._currentContext=o}}}function tre(t){if(t!==null){if(t===void 0){const e=new ere;e.enable(),Fo.setGlobalContextManager(e);return}t.enable(),Fo.setGlobalContextManager(t)}}function nre(t){if(t!==null){if(t===void 0){au.setGlobalPropagator(new sne({propagators:[new Sne,new Vte]}));return}au.setGlobalPropagator(t)}}class rre extends Kne{constructor(e={}){super(e)}register(e={}){Ar.setGlobalTracerProvider(this),nre(e.propagator),tre(e.contextManager)}}class ire{constructor(e){ie(this,"_delegate");this._delegate=e}export(e,n){this._delegate.export(e,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Fk extends Error{constructor(n,r,i){super(n);ie(this,"code");ie(this,"name","OTLPExporterError");ie(this,"data");this.data=i,this.code=r}}function ore(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function sre(t){if(t!=null)return()=>t}function are(t,e,n){return{timeoutMillis:ore(t.timeoutMillis??e.timeoutMillis??n.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??n.concurrencyLimit,compression:t.compression??e.compression??n.compression}}function lre(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class cre{constructor(e){ie(this,"_concurrencyLimit");ie(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const n=()=>{const r=this._sendingPromises.indexOf(e);this._sendingPromises.splice(r,1)};e.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function ure(t){return new cre(t.concurrencyLimit)}function fre(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function dre(){return{handleResponse(t){t==null||!fre(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||ot.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class hre{constructor(e,n,r,i,o){ie(this,"_transport");ie(this,"_serializer");ie(this,"_responseHandler");ie(this,"_promiseQueue");ie(this,"_timeout");ie(this,"_diagLogger");this._transport=e,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=ot.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,n){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:Oi.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(e);if(r==null){n({code:Oi.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:Oi.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:Oi.FAILED,error:i.error});return}else i.status==="retryable"?n({code:Oi.FAILED,error:new Fk("Export failed with retryable status")}):n({code:Oi.FAILED,error:new Fk("Export failed with unknown error")})},i=>n({code:Oi.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function pre(t,e){return new hre(t.transport,t.serializer,dre(),t.promiseHandler,e.timeout)}function y$(t,e,n){return pre({transport:n,serializer:e,promiseHandler:ure(t)},{timeout:t.timeoutMillis})}function Vk(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function b$(t){const e=new Uint8Array(t.length/2);let n=0;for(let r=0;r<t.length;r+=2){const i=Vk(t.charCodeAt(r)),o=Vk(t.charCodeAt(r+1));e[n++]=i<<4|o}return e}function S$(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function gre(t){const e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function mre(t){const e=S$(t);return gre(e)}function vre(t){return S$(t).toString()}const Ore=typeof BigInt<"u"?vre:one;function zk(t){return t}function xre(t){if(t!==void 0)return b$(t)}const yre={encodeHrTime:mre,encodeSpanContext:b$,encodeOptionalSpanContext:xre};function bre(t){return t===void 0?yre:{encodeHrTime:Ore,encodeSpanContext:zk,encodeOptionalSpanContext:zk}}function Sre(t){return{attributes:kg(t.attributes),droppedAttributesCount:0}}function wre(t){return{name:t.name,version:t.version}}function kg(t){return Object.keys(t).map(e=>w$(e,t[e]))}function w$(t,e){return{key:t,value:C$(e)}}function C$(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(C$)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([n,r])=>w$(n,r))}}:{}}function Cre(t,e){var o,s,a;const n=t.spanContext(),r=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:i,traceState:(a=n.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:kg(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>Are(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:r.code,message:r.message},links:t.links.map(l=>Pre(l,e)),droppedLinksCount:t.droppedLinksCount}}function Pre(t,e){var n;return{attributes:t.attributes?kg(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Are(t,e){return{attributes:t.attributes?kg(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function kre(t,e){const n=bre(e);return{resourceSpans:Ire(t,n)}}function Ere(t){const e=new Map;for(const n of t){let r=e.get(n.resource);r||(r=new Map,e.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return e}function Ire(t,e){const n=Ere(t),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const d=u.value;if(d.length>0){const p=d.map(g=>Cre(g,e));l.push({scope:wre(d[0].instrumentationScope),spans:p,schemaUrl:d[0].instrumentationScope.schemaUrl})}u=c.next()}const f={resource:Sre(s),scopeSpans:l,schemaUrl:void 0};r.push(f),o=i.next()}return r}const Tre={serializeRequest:t=>{const e=kre(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},$re=5,jre=1e3,_re=5e3,Rre=1.5,Wk=.2;function Dre(){return Math.random()*(2*Wk)-Wk}class Mre{constructor(e){ie(this,"_transport");this._transport=e}retry(e,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,n).then(i,o)},r)})}async send(e,n){const r=Date.now()+n;let i=await this._transport.send(e,n),o=$re,s=jre;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,_re)+Dre(),0);s=s*Rre;const l=i.retryInMillis??a,c=r-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function P$(t){return new Mre(t.transport)}function Nre(t){return[429,502,503,504].includes(t)}function Bre(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const n=new Date(t).getTime()-Date.now();return n>=0?n:0}class Qre{constructor(e){ie(this,"_parameters");this._parameters=e}send(e,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(ot.debug("XHR success"),r({status:"success"})):i.status&&Nre(i.status)?r({status:"retryable",retryInMillis:Bre(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function Lre(t){return new Qre(t)}class Fre{constructor(e){ie(this,"_params");this._params=e}send(e){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(ot.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Vre(t){return new Fre(t)}function zre(t,e){return y$(t,e,P$({transport:Lre(t)}))}function Wre(t,e){return y$(t,e,P$({transport:Vre({url:t.url,blobType:t.headers()["Content-Type"]})}))}function Zre(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([n,r])=>{typeof r<"u"?e[n]=String(r):ot.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),e}}function Xre(t,e,n){const r={...n()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,r))}function Gre(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function Ure(t,e,n){return{...are(t,e,n),headers:Xre(Zre(t.headers),e.headers,n.headers),url:Gre(t.url)??e.url??n.url,agentOptions:t.agentOptions??e.agentOptions??n.agentOptions}}function Yre(t,e){return{...lre(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function Hre(t,e,n){return Ure({url:t.url,timeoutMillis:t.timeoutMillis,headers:sre(t.headers),concurrencyLimit:t.concurrencyLimit},{},Yre(n,e))}function qre(t,e,n,r){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=Hre(t,n,r);return i?zre(o,e):Wre(o,e)}class Jre extends ire{constructor(e={}){super(qre(e,Tre,"v1/traces",{"Content-Type":"application/json"}))}}class A${emit(e){}}const Kre=new A$;class eie{getLogger(e,n,r){return new A$}}const k$=new eie;class tie{constructor(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Kre}}class Zk{getLogger(e,n,r){var i;return(i=this.getDelegateLogger(e,n,r))!==null&&i!==void 0?i:new tie(this,e,n,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:k$}setDelegate(e){this._delegate=e}getDelegateLogger(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,n,r)}}const nie=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd=Symbol.for("io.opentelemetry.js.api.logs"),Pc=nie;function rie(t,e,n){return r=>r===t?e:n}const Xk=1;class Pb{constructor(){this._proxyLoggerProvider=new Zk}static getInstance(){return this._instance||(this._instance=new Pb),this._instance}setGlobalLoggerProvider(e){return Pc[gd]?this.getLoggerProvider():(Pc[gd]=rie(Xk,e,k$),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=Pc[gd])===null||e===void 0?void 0:e.call(Pc,Xk))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete Pc[gd],this._proxyLoggerProvider=new Zk}}const iie=Pb.getInstance();function oie(t,e,n,r){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),n&&s.setMeterProvider(n),r&&s.setLoggerProvider&&s.setLoggerProvider(r),s.getConfig().enabled||s.enable()}}function sie(t){t.forEach(e=>e.disable())}function aie(t){var o;const e=t.tracerProvider||Ar.getTracerProvider(),n=t.meterProvider||Ate.getMeterProvider(),r=t.loggerProvider||iie.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return oie(i,e,n,r),()=>{sie(i)}}class lie{constructor(){ie(this,"config",null);ie(this,"tracer",null);ie(this,"tracerProvider",null);ie(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var n;try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,n){var o,s;const i={"cloudevents.event_id":Nu(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":n.toISOString(),"cloudevents.event_subject":e.subject||"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":"ui","cloudevents.event_source_details.id":((s=e.sourceDetails)==null?void 0:s.id)||Nu()};return e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([a,l])=>{const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();l!==void 0&&(i[`cloudevents.event_data.${c}`]=l)}),Object.entries(e).forEach(([a,l])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails"].includes(a)||l!==void 0&&(i[`cloudevents.${a}`]=l)}),i}startSpan(e,n){var r;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!n},n);return n||(i=Ar.setSpan(Fo.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",i)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}}class cie extends lie{constructor(){super();ie(this,"tracerProvider",null);ie(this,"tracer",null)}initTracer(n){const r=`ses_${Nu()}`,i=v$({[a$]:n.serviceName,[qte]:n.serviceVersion,session_id:r}),o=n.collectorTraceUrl||`${n.collectorUrl}/v1/traces`;this.tracerProvider=new rre({resource:i,spanProcessors:[new Gne(new Jre({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(n.tracerName),this.tracerProvider.register(),aie({instrumentations:n.instrumentations??[]})}}class uie{constructor(){ie(this,"config",null);ie(this,"initialized",!1);ie(this,"useCloudEventData");ie(this,"otelClient");ie(this,"updateCloudEventData",e=>{this.useCloudEventData=e});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new cie}init(e){this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName}))}send(e,n){var r;try{const i=this.constructCloudEvent(e,n);this.sendToOtelService(i)}catch(i){(r=this.config)!=null&&r.otel.isProd||console.error("Event reporting failed:",i)}}startSpan(e,n,r){const i=this.constructCloudEvent(e,n);return this.otelClient.startSpan(i,r)}constructCloudEvent(e,n){const r=this.useCloudEventData();return{id:`evt_${Nu()}`,type:e,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:n,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${Nu()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(e){var n;(n=this.config)!=null&&n.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}}function fie(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const die=fie(),hie=E.createContext(die);function Kr(){const t=E.useContext(hie);return WI(t)}function pie(t,e){const{apps:{apiId:n}}=at(),{corsProxyUrl:r,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Kr();r.set((t==null?void 0:t.corsProxyUrl)??HQ),o.set(t==null?void 0:t.mockServer),n.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),E.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Eg=E.createContext({});function Ab(){return E.useContext(Eg)||{}}const gie="0.15.0-next.10",mie={version:gie};class vie{constructor(){ie(this,"client");ie(this,"_isInitialized",!1);this.client=new uie}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:mie.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...r,...e}}),this._isInitialized=!0}sendEvent(e,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,n)}catch(r){console.error("Failed to send telemetry event:",r)}}}const uv=new vie;function et(){const{telemetry:t}=Ab();return uv.isInitialized||uv.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,n)=>{uv.sendEvent(e,n)}}}const Qn=800;var Oie=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function xie(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,f=t.onMenuClose,d=t.onMenuOpen,p=t.value,g=mr(t,Oie),m=E.useState(a!==void 0?a:n),v=Ne(m,2),O=v[0],x=v[1],y=E.useState(l!==void 0?l:i),S=Ne(y,2),b=S[0],w=S[1],C=E.useState(p!==void 0?p:s),P=Ne(C,2),A=P[0],I=P[1],T=E.useCallback(function(Z,Y){typeof c=="function"&&c(Z,Y),I(Z)},[c]),j=E.useCallback(function(Z,Y){var N;typeof u=="function"&&(N=u(Z,Y)),x(N!==void 0?N:Z)},[u]),B=E.useCallback(function(){typeof d=="function"&&d(),w(!0)},[d]),V=E.useCallback(function(){typeof f=="function"&&f(),w(!1)},[f]),Q=a!==void 0?a:O,z=l!==void 0?l:b,U=p!==void 0?p:A;return se(se({},g),{},{inputValue:Q,menuIsOpen:z,onChange:T,onInputChange:j,onMenuClose:V,onMenuOpen:B,value:U})}function yie(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function bie(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Sie=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bie(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
320
|
+
`;function of({input:t,onSave:e,onCancel:n,...r}){const[i,o]=E.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return h.jsx(H8,{variable:t,onSave:s,onCancel:n,...r,children:h.jsx(nx,{children:h.jsx(lee,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function Jd(t){var e=new Error(t);return e.source="ulid",e}var mb="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ou=mb.length,kk=Math.pow(2,48)-1,gee=10,mee=16;function vee(t){var e=Math.floor(t()*ou);return e===ou&&(e=ou-1),mb.charAt(e)}function Oee(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>kk)throw Jd("cannot encode time greater than "+kk);if(t<0)throw Jd("time must be positive");if(Number.isInteger(t)===!1)throw Jd("time must be an integer");for(var n=void 0,r="";e>0;e--)n=t%ou,r=mb.charAt(n)+r,t=(t-n)/ou;return r}function xee(t,e){for(var n="";t>0;t--)n=vee(e)+n;return n}function yee(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Jd("secure crypto unusable, insecure Math.random not allowed")}function bee(t){return t||(t=yee()),function(n){return isNaN(n)&&(n=Date.now()),Oee(n,gee)+xee(mee,t)}}var Nu=bee(),See=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Is="1.9.0",Ek=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function wee(t){var e=new Set([t]),n=new Set,r=t.match(Ek);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return n.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(n.has(l))return!1;var c=l.match(Ek);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var Cee=wee(Is),Pee=Is.split(".")[0],Bu=Symbol.for("opentelemetry.js.api."+Pee),Qu=See;function sf(t,e,n,r){var i;r===void 0&&(r=!1);var o=Qu[Bu]=(i=Qu[Bu])!==null&&i!==void 0?i:{version:Is};if(!r&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(o.version!==Is){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Is);return n.error(s.stack||s.message),!1}return o[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+Is+"."),!0}function Xs(t){var e,n,r=(e=Qu[Bu])===null||e===void 0?void 0:e.version;if(!(!r||!Cee(r)))return(n=Qu[Bu])===null||n===void 0?void 0:n[t]}function af(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Is+".");var n=Qu[Bu];n&&delete n[t]}var Aee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},kee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Eee=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return wc("verbose",this._namespace,e)},t}();function wc(t,e,n){var r=Xs("diag");if(r)return n.unshift(e),r[t].apply(r,kee([],Aee(n),!1))}var lr;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(lr||(lr={}));function Iee(t,e){t<lr.NONE?t=lr.NONE:t>lr.ALL&&(t=lr.ALL),e=e||{};function n(r,i){var o=e[r];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:n("error",lr.ERROR),warn:n("warn",lr.WARN),info:n("info",lr.INFO),debug:n("debug",lr.DEBUG),verbose:n("verbose",lr.VERBOSE)}}var Tee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},$ee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},jee="diag",Ni=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Xs("diag");if(a)return a[i].apply(a,$ee([],Tee(o),!1))}}var n=this,r=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:lr.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=Xs("diag"),f=Iee((a=o.logLevel)!==null&&a!==void 0?a:lr.INFO,i);if(u&&!o.suppressOverrideMessage){var d=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return sf("diag",f,n,!0)};n.setLogger=r,n.disable=function(){af(jee,n)},n.createComponentLogger=function(i){return new Eee(i)},n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),_ee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Ree=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Dee=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var n=this._entries.get(e);if(n)return Object.assign({},n)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var n=_ee(e,2),r=n[0],i=n[1];return[r,i]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new t(this._entries);try{for(var s=Ree(r),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t}(),Mee=Symbol("BaggageEntryMetadata"),Nee=Ni.instance();function Bee(t){return t===void 0&&(t={}),new Dee(new Map(Object.entries(t)))}function Qee(t){return typeof t!="string"&&(Nee.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Mee,toString:function(){return t}}}function vb(t){return Symbol.for(t)}var Lee=function(){function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new t(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new t(n._currentContext);return i._currentContext.delete(r),i}}return t}(),Ma=new Lee,ea=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fee=function(){function t(){}return t.prototype.createGauge=function(e,n){return qee},t.prototype.createHistogram=function(e,n){return Jee},t.prototype.createCounter=function(e,n){return Hee},t.prototype.createUpDownCounter=function(e,n){return Kee},t.prototype.createObservableGauge=function(e,n){return tte},t.prototype.createObservableCounter=function(e,n){return ete},t.prototype.createObservableUpDownCounter=function(e,n){return nte},t.prototype.addBatchObservableCallback=function(e,n){},t.prototype.removeBatchObservableCallback=function(e){},t}(),Cg=function(){function t(){}return t}(),Vee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(Cg),zee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(Cg),Wee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,r){},e}(Cg),Zee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,r){},e}(Cg),Ob=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),Xee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Gee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Uee=function(t){ea(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ob),Yee=new Fee,Hee=new Vee,qee=new Wee,Jee=new Zee,Kee=new zee,ete=new Xee,tte=new Gee,nte=new Uee,rte={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},ite={set:function(t,e,n){t!=null&&(t[e]=n)}},ote=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},ste=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ate=function(){function t(){}return t.prototype.active=function(){return Ma},t.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,ste([r],ote(i),!1))},t.prototype.bind=function(e,n){return n},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),lte=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},cte=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Jm="context",ute=new ate,Pg=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return sf(Jm,e,Ni.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,n,r){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,cte([e,n,r],lte(o),!1))},t.prototype.bind=function(e,n){return this._getContextManager().bind(e,n)},t.prototype._getContextManager=function(){return Xs(Jm)||ute},t.prototype.disable=function(){this._getContextManager().disable(),af(Jm,Ni.instance())},t}(),ho;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(ho||(ho={}));var q8="0000000000000000",J8="00000000000000000000000000000000",K8={traceId:J8,spanId:q8,traceFlags:ho.NONE},su=function(){function t(e){e===void 0&&(e=K8),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,n){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,n){},t}(),xb=vb("OpenTelemetry Context Key SPAN");function yb(t){return t.getValue(xb)||void 0}function fte(){return yb(Pg.getInstance().active())}function bb(t,e){return t.setValue(xb,e)}function dte(t){return t.deleteValue(xb)}function hte(t,e){return bb(t,new su(e))}function e$(t){var e;return(e=yb(t))===null||e===void 0?void 0:e.spanContext()}var pte=/^([0-9a-f]{32})$/i,gte=/^[0-9a-f]{16}$/i;function t$(t){return pte.test(t)&&t!==J8}function mte(t){return gte.test(t)&&t!==q8}function Ag(t){return t$(t.traceId)&&mte(t.spanId)}function vte(t){return new su(t)}var Km=Pg.getInstance(),n$=function(){function t(){}return t.prototype.startSpan=function(e,n,r){r===void 0&&(r=Km.active());var i=!!(n!=null&&n.root);if(i)return new su;var o=r&&e$(r);return Ote(o)&&Ag(o)?new su(o):new su},t.prototype.startActiveSpan=function(e,n,r,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);var l=s??Km.active(),c=this.startSpan(e,o,l),u=bb(l,c);return Km.with(u,a,void 0,c)}},t}();function Ote(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var xte=new n$,yte=function(){function t(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}return t.prototype.startSpan=function(e,n,r){return this._getTracer().startSpan(e,n,r)},t.prototype.startActiveSpan=function(e,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):xte},t}(),bte=function(){function t(){}return t.prototype.getTracer=function(e,n,r){return new n$},t}(),Ste=new bte,Ik=function(){function t(){}return t.prototype.getTracer=function(e,n,r){var i;return(i=this.getDelegateTracer(e,n,r))!==null&&i!==void 0?i:new yte(this,e,n,r)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Ste},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,n,r)},t}(),vp;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(vp||(vp={}));var rx;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(rx||(rx={}));var ix;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(ix||(ix={}));var Fo=Pg.getInstance(),ot=Ni.instance(),wte=function(){function t(){}return t.prototype.getMeter=function(e,n,r){return Yee},t}(),Cte=new wte,ev="metrics",Pte=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return sf(ev,e,Ni.instance())},t.prototype.getMeterProvider=function(){return Xs(ev)||Cte},t.prototype.getMeter=function(e,n,r){return this.getMeterProvider().getMeter(e,n,r)},t.prototype.disable=function(){af(ev,Ni.instance())},t}(),Ate=Pte.getInstance(),kte=function(){function t(){}return t.prototype.inject=function(e,n){},t.prototype.extract=function(e,n){return e},t.prototype.fields=function(){return[]},t}(),Sb=vb("OpenTelemetry Baggage Key");function r$(t){return t.getValue(Sb)||void 0}function Ete(){return r$(Pg.getInstance().active())}function Ite(t,e){return t.setValue(Sb,e)}function Tte(t){return t.deleteValue(Sb)}var tv="propagation",$te=new kte,jte=function(){function t(){this.createBaggage=Bee,this.getBaggage=r$,this.getActiveBaggage=Ete,this.setBaggage=Ite,this.deleteBaggage=Tte}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return sf(tv,e,Ni.instance())},t.prototype.inject=function(e,n,r){return r===void 0&&(r=ite),this._getGlobalPropagator().inject(e,n,r)},t.prototype.extract=function(e,n,r){return r===void 0&&(r=rte),this._getGlobalPropagator().extract(e,n,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){af(tv,Ni.instance())},t.prototype._getGlobalPropagator=function(){return Xs(tv)||$te},t}(),au=jte.getInstance(),nv="trace",_te=function(){function t(){this._proxyTracerProvider=new Ik,this.wrapSpanContext=vte,this.isSpanContextValid=Ag,this.deleteSpan=dte,this.getSpan=yb,this.getActiveSpan=fte,this.getSpanContext=e$,this.setSpan=bb,this.setSpanContext=hte}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var n=sf(nv,this._proxyTracerProvider,Ni.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},t.prototype.getTracerProvider=function(){return Xs(nv)||this._proxyTracerProvider},t.prototype.getTracer=function(e,n){return this.getTracerProvider().getTracer(e,n)},t.prototype.disable=function(){af(nv,Ni.instance()),this._proxyTracerProvider=new Ik},t}(),Ar=_te.getInstance();const i$=vb("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Rte(t){return t.setValue(i$,!0)}function wb(t){return t.getValue(i$)===!0}const Dte="=",ox=";",sx=",",rv="baggage",Mte=180,Nte=4096,Bte=8192;function Qte(t){return t.reduce((e,n)=>{const r=`${e}${e!==""?sx:""}${n}`;return r.length>Bte?e:r},"")}function Lte(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=ox+n.metadata.toString()),r})}function Fte(t){const e=t.split(ox);if(e.length<=0)return;const n=e.shift();if(!n)return;const r=n.indexOf(Dte);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let s;return e.length>0&&(s=Qee(e.join(ox))),{key:i,value:o,metadata:s}}class Vte{inject(e,n,r){const i=au.getBaggage(e);if(!i||wb(e))return;const o=Lte(i).filter(a=>a.length<=Nte).slice(0,Mte),s=Qte(o);s.length>0&&r.set(n,rv,s)}extract(e,n,r){const i=r.get(n,rv),o=Array.isArray(i)?i.join(sx):i;if(!o)return e;const s={};return o.length===0||(o.split(sx).forEach(l=>{const c=Fte(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:au.setBaggage(e,au.createBaggage(s))}fields(){return[rv]}}function Kd(t){const e={};if(typeof t!="object"||t==null)return e;for(const[n,r]of Object.entries(t)){if(!zte(n)){ot.warn(`Invalid attribute key: ${n}`);continue}if(!o$(r)){ot.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}function zte(t){return typeof t=="string"&&t.length>0}function o$(t){return t==null?!0:Array.isArray(t)?Wte(t):s$(t)}function Wte(t){let e;for(const n of t)if(n!=null){if(!e){if(s$(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function s$(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function Zte(){return t=>{ot.error(Xte(t))}}function Xte(t){return typeof t=="string"?t:JSON.stringify(Gte(t))}function Gte(t){const e={};let n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;const i=n[r];i&&(e[r]=String(i))}),n=Object.getPrototypeOf(n);return e}let Ute=Zte();function Rl(t){try{Ute(t)}catch{}}const al=performance,Yte="2.0.1",iv="exception.message",Hte="exception.stacktrace",ov="exception.type",a$="service.name",qte="service.version",ax="telemetry.sdk.language",Jte="webjs",lx="telemetry.sdk.name",cx="telemetry.sdk.version",Kte="process.runtime.name",sv={[lx]:"opentelemetry",[Kte]:"browser",[ax]:Jte,[cx]:Yte};const ene=9,tne=6,nne=Math.pow(10,tne),Op=Math.pow(10,ene);function Xa(t){const e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*nne);return[n,r]}function l$(){let t=al.timeOrigin;if(typeof t!="number"){const e=al;t=e.timing&&e.timing.fetchStart}return t}function rne(t){const e=Xa(l$()),n=Xa(typeof t=="number"?t:al.now());return u$(e,n)}function ine(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=Op),[n,r]}function one(t){return t[0]*Op+t[1]}function c$(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function Tk(t){return c$(t)||typeof t=="number"||t instanceof Date}function u$(t,e){const n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Op&&(n[1]-=Op,n[0]+=1),n}var Oi;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(Oi||(Oi={}));class sne{constructor(e={}){ie(this,"_propagators");ie(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(const i of this._propagators)try{i.inject(e,n,r)}catch(o){ot.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(s){ot.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ux="[_0-9a-z-*/]",ane=`[a-z]${ux}{0,255}`,lne=`[a-z0-9]${ux}{0,240}@[a-z]${ux}{0,13}`,cne=new RegExp(`^(?:${ane}|${lne})$`),une=/^[ -~]{0,255}[!-~]$/,fne=/,|=/;function dne(t){return cne.test(t)}function hne(t){return une.test(t)&&!fne.test(t)}const $k=32,pne=512,jk=",",_k="=";class Cb{constructor(e){ie(this,"_internalState",new Map);e&&this._parse(e)}set(e,n){const r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){const n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+_k+this.get(n)),e),[]).join(jk)}_parse(e){e.length>pne||(this._internalState=e.split(jk).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(_k);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,r.length);dne(s)&&hne(a)&&n.set(s,a)}return n},new Map),this._internalState.size>$k&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$k))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new Cb;return e._internalState=new Map(this._internalState),e}}const av="traceparent",lv="tracestate",gne="00",mne="(?!ff)[\\da-f]{2}",vne="(?![0]{32})[\\da-f]{32}",One="(?![0]{16})[\\da-f]{16}",xne="[\\da-f]{2}",yne=new RegExp(`^\\s?(${mne})-(${vne})-(${One})-(${xne})(-.*)?\\s?$`);function bne(t){const e=yne.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Sne{inject(e,n,r){const i=Ar.getSpanContext(e);if(!i||wb(e)||!Ag(i))return;const o=`${gne}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||ho.NONE).toString(16)}`;r.set(n,av,o),i.traceState&&r.set(n,lv,i.traceState.serialize())}extract(e,n,r){const i=r.get(n,av);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=bne(o);if(!s)return e;s.isRemote=!0;const a=r.get(n,lv);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new Cb(typeof l=="string"?l:void 0)}return Ar.setSpanContext(e,s)}fields(){return[av,lv]}}const wne="[object Object]",Cne="[object Null]",Pne="[object Undefined]",Ane=Function.prototype,f$=Ane.toString,kne=f$.call(Object),Ene=Object.getPrototypeOf,d$=Object.prototype,h$=d$.hasOwnProperty,Cs=Symbol?Symbol.toStringTag:void 0,p$=d$.toString;function Rk(t){if(!Ine(t)||Tne(t)!==wne)return!1;const e=Ene(t);if(e===null)return!0;const n=h$.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&f$.call(n)===kne}function Ine(t){return t!=null&&typeof t=="object"}function Tne(t){return t==null?t===void 0?Pne:Cne:Cs&&Cs in Object(t)?$ne(t):jne(t)}function $ne(t){const e=h$.call(t,Cs),n=t[Cs];let r=!1;try{t[Cs]=void 0,r=!0}catch{}const i=p$.call(t);return r&&(e?t[Cs]=n:delete t[Cs]),i}function jne(t){return p$.call(t)}const _ne=20;function Rne(...t){let e=t.shift();const n=new WeakMap;for(;t.length>0;)e=g$(e,t.shift(),0,n);return e}function cv(t){return xp(t)?t.slice():t}function g$(t,e,n=0,r){let i;if(!(n>_ne)){if(n++,eh(t)||eh(e)||m$(e))i=cv(e);else if(xp(t)){if(i=t.slice(),xp(e))for(let o=0,s=e.length;o<s;o++)i.push(cv(e[o]));else if(Cc(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=cv(e[l])}}}else if(Cc(t))if(Cc(e)){if(!Dne(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(eh(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],f=c;if(Dk(t,l,r)||Dk(e,l,r))delete i[l];else{if(Cc(u)&&Cc(f)){const d=r.get(u)||[],p=r.get(f)||[];d.push({obj:t,key:l}),p.push({obj:e,key:l}),r.set(u,d),r.set(f,p)}i[l]=g$(i[l],c,n,r)}}}}else i=e;return i}}function Dk(t,e,n){const r=n.get(t[e])||[];for(let i=0,o=r.length;i<o;i++){const s=r[i];if(s.key===e&&s.obj===t)return!0}return!1}function xp(t){return Array.isArray(t)}function m$(t){return typeof t=="function"}function Cc(t){return!eh(t)&&!xp(t)&&!m$(t)&&typeof t=="object"}function eh(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Dne(t,e){return!(!Rk(t)||!Rk(e))}class Mne{constructor(){ie(this,"_promise");ie(this,"_resolve");ie(this,"_reject");this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Nne{constructor(e,n){ie(this,"_callback");ie(this,"_that");ie(this,"_isCalled",!1);ie(this,"_deferred",new Mne);this._callback=e,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function Bne(){return"unknown_service"}const Fc=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class yp{constructor(e){ie(this,"_rawAttributes");ie(this,"_asyncAttributesPending",!1);ie(this,"_memoizedAttributes");const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Fc(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=Mk(this._rawAttributes)}static FromAttributeList(e){const n=new yp({});return n._rawAttributes=Mk(e),n._asyncAttributesPending=e.filter(([r,i])=>Fc(i)).length>0,n}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,Fc(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ot.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[n,r]of this._rawAttributes){if(Fc(r)){ot.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??(e[n]=r))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:yp.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function v$(t){return yp.FromAttributeList(Object.entries(t))}function Qne(){return v$({[a$]:Bne(),[ax]:sv[ax],[lx]:sv[lx],[cx]:sv[cx]})}function Mk(t){return t.map(([e,n])=>Fc(n)?[e,n.catch(r=>{ot.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}const Lne="exception";class Fne{constructor(e){ie(this,"_spanContext");ie(this,"kind");ie(this,"parentSpanContext");ie(this,"attributes",{});ie(this,"links",[]);ie(this,"events",[]);ie(this,"startTime");ie(this,"resource");ie(this,"instrumentationScope");ie(this,"_droppedAttributesCount",0);ie(this,"_droppedEventsCount",0);ie(this,"_droppedLinksCount",0);ie(this,"name");ie(this,"status",{code:ix.UNSET});ie(this,"endTime",[0,0]);ie(this,"_ended",!1);ie(this,"_duration",[-1,-1]);ie(this,"_spanProcessor");ie(this,"_spanLimits");ie(this,"_attributeValueLengthLimit");ie(this,"_performanceStartTime");ie(this,"_performanceOffset");ie(this,"_startTimeProvided");const n=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=al.now(),this._performanceOffset=n-(this._performanceStartTime+l$()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return ot.warn(`Invalid attribute key: ${e}`),this;if(!o$(n))return ot.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this)}setAttributes(e){for(const[n,r]of Object.entries(e))this.setAttribute(n,r);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return ot.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&ot.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Tk(n)&&(Tk(r)||(r=n),n=void 0);const o=Kd(n);return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(ot.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){ot.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=ine(this.startTime,this.endTime),this._duration[0]<0&&(ot.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ot.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=al.now())return rne(e+this._performanceOffset);if(typeof e=="number")return Xa(e);if(e instanceof Date)return Xa(e.getTime());if(c$(e))return e;if(this._startTimeProvided)return Xa(Date.now());const n=al.now()-this._performanceStartTime;return u$(this.startTime,Xa(n))}isRecording(){return this._ended===!1}recordException(e,n){const r={};typeof e=="string"?r[iv]=e:e&&(e.code?r[ov]=e.code.toString():e.name&&(r[ov]=e.name),e.message&&(r[iv]=e.message),e.stack&&(r[Hte]=e.stack)),r[ov]||r[iv]?this.addEvent(Lne,r,n):ot.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ot.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){const n=this._attributeValueLengthLimit;return n<=0?(ot.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}}var Dl;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Dl||(Dl={}));class bp{shouldSample(){return{decision:Dl.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ll{shouldSample(){return{decision:Dl.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class hd{constructor(e){ie(this,"_root");ie(this,"_remoteParentSampled");ie(this,"_remoteParentNotSampled");ie(this,"_localParentSampled");ie(this,"_localParentNotSampled");this._root=e.root,this._root||(Rl(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ll),this._remoteParentSampled=e.remoteParentSampled??new ll,this._remoteParentNotSampled=e.remoteParentNotSampled??new bp,this._localParentSampled=e.localParentSampled??new ll,this._localParentNotSampled=e.localParentNotSampled??new bp}shouldSample(e,n,r,i,o,s){const a=Ar.getSpanContext(e);return!a||!Ag(a)?this._root.shouldSample(e,n,r,i,o,s):a.isRemote?a.traceFlags&ho.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,s):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,s):a.traceFlags&ho.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,s):this._localParentNotSampled.shouldSample(e,n,r,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class Nk{constructor(e=0){ie(this,"_ratio");ie(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:t$(n)&&this._accumulate(n)<this._upperBound?Dl.RECORD_AND_SAMPLED:Dl.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let r=0;r<e.length/8;r++){const i=r*8,o=parseInt(e.slice(i,i+8),16);n=(n^o)>>>0}return n}}const Bk=1;function O$(){return{sampler:x$(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function x$(){const t="parentbased_always_on";switch(t){case"always_on":return new ll;case"always_off":return new bp;case"parentbased_always_on":return new hd({root:new ll});case"parentbased_always_off":return new hd({root:new bp});case"traceidratio":return new Nk(Qk());case"parentbased_traceidratio":return new hd({root:new Nk(Qk())});default:return ot.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new hd({root:new ll})}}function Qk(){return ot.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Bk}.`),Bk}const Vne=128,zne=1/0;function Wne(t){const e={sampler:x$()},n=O$(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}function Zne(t){var n,r,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((n=t.spanLimits)==null?void 0:n.attributeCountLimit)??((r=t.generalLimits)==null?void 0:r.attributeCountLimit)??void 0??void 0??Vne,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??zne,Object.assign({},t,{spanLimits:e})}class Xne{constructor(e,n){ie(this,"_exporter");ie(this,"_maxExportBatchSize");ie(this,"_maxQueueSize");ie(this,"_scheduledDelayMillis");ie(this,"_exportTimeoutMillis");ie(this,"_isExporting",!1);ie(this,"_finishedSpans",[]);ie(this,"_timer");ie(this,"_shutdownOnce");ie(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new Nne(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ot.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&ho.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ot.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ot.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,n)=>{const r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Fo.with(Rte(Fo.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(r),a.code===Oi.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Rl(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,Rl(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Gne extends Xne{constructor(n,r){super(n,r);ie(this,"_visibilityChangeListener");ie(this,"_pageHideListener");this.onInit(r)}onInit(n){(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Rl(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Rl(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Une=8,Yne=16;class Hne{constructor(){ie(this,"generateTraceId",Lk(Yne));ie(this,"generateSpanId",Lk(Une))}}const pd=Array(32);function Lk(t){return function(){for(let n=0;n<t*2;n++)pd[n]=Math.floor(Math.random()*16)+48,pd[n]>=58&&(pd[n]+=39);return String.fromCharCode.apply(null,pd.slice(0,t*2))}}class qne{constructor(e,n,r,i){ie(this,"_sampler");ie(this,"_generalLimits");ie(this,"_spanLimits");ie(this,"_idGenerator");ie(this,"instrumentationScope");ie(this,"_resource");ie(this,"_spanProcessor");const o=Wne(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new Hne,this._resource=r,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,n={},r=Fo.active()){n.root&&(r=Ar.deleteSpan(r));const i=Ar.getSpan(r);if(wb(r))return ot.debug("Instrumentation suppressed, returning Noop Span"),Ar.wrapSpanContext(K8);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Ar.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=n.kind??rx.INTERNAL,f=(n.links??[]).map(x=>({context:x.context,attributes:Kd(x.attributes)})),d=Kd(n.attributes),p=this._sampler.shouldSample(r,l,e,u,d,f);c=p.traceState??c;const g=p.decision===vp.RECORD_AND_SAMPLED?ho.SAMPLED:ho.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===vp.NOT_RECORD)return ot.debug("Recording is off, propagating context in a non-recording span"),Ar.wrapSpanContext(m);const v=Kd(Object.assign(d,p.attributes));return new Fne({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:m,name:e,kind:u,links:f,parentSpanContext:a,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,n,r,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);const l=s??Fo.active(),c=this.startSpan(e,o,l),u=Ar.setSpan(l,c);return Fo.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Jne{constructor(e){ie(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{Rl(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(const r of this._spanProcessors)r.onStart(e,n)}onEnd(e){for(const n of this._spanProcessors)n.onEnd(e)}shutdown(){const e=[];for(const n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}}var Ps;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ps||(Ps={}));class Kne{constructor(e={}){ie(this,"_config");ie(this,"_tracers",new Map);ie(this,"_resource");ie(this,"_activeSpanProcessor");var i;const n=Rne({},O$(),Zne(e));this._resource=n.resource??Qne(),this._config=Object.assign({},n,{resource:this._resource});const r=[];(i=e.spanProcessors)!=null&&i.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new Jne(r)}getTracer(e,n,r){const i=`${e}@${n||""}:${(r==null?void 0:r.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new qne({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=Ps.timeout},e);r.forceFlush().then(()=>{clearTimeout(s),o!==Ps.timeout&&(o=Ps.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ps.error,i(a)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const s=o.filter(a=>a!==Ps.resolved);s.length>0?i(s):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class ere{constructor(){ie(this,"_enabled",!1);ie(this,"_currentContext",Ma)}_bindFunction(e=Ma,n){const r=this,i=function(...o){return r.with(e,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n}disable(){return this._currentContext=Ma,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ma,this)}with(e,n,r,...i){const o=this._currentContext;this._currentContext=e||Ma;try{return n.call(r,...i)}finally{this._currentContext=o}}}function tre(t){if(t!==null){if(t===void 0){const e=new ere;e.enable(),Fo.setGlobalContextManager(e);return}t.enable(),Fo.setGlobalContextManager(t)}}function nre(t){if(t!==null){if(t===void 0){au.setGlobalPropagator(new sne({propagators:[new Sne,new Vte]}));return}au.setGlobalPropagator(t)}}class rre extends Kne{constructor(e={}){super(e)}register(e={}){Ar.setGlobalTracerProvider(this),nre(e.propagator),tre(e.contextManager)}}class ire{constructor(e){ie(this,"_delegate");this._delegate=e}export(e,n){this._delegate.export(e,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Fk extends Error{constructor(n,r,i){super(n);ie(this,"code");ie(this,"name","OTLPExporterError");ie(this,"data");this.data=i,this.code=r}}function ore(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function sre(t){if(t!=null)return()=>t}function are(t,e,n){return{timeoutMillis:ore(t.timeoutMillis??e.timeoutMillis??n.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??n.concurrencyLimit,compression:t.compression??e.compression??n.compression}}function lre(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class cre{constructor(e){ie(this,"_concurrencyLimit");ie(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const n=()=>{const r=this._sendingPromises.indexOf(e);this._sendingPromises.splice(r,1)};e.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function ure(t){return new cre(t.concurrencyLimit)}function fre(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function dre(){return{handleResponse(t){t==null||!fre(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||ot.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class hre{constructor(e,n,r,i,o){ie(this,"_transport");ie(this,"_serializer");ie(this,"_responseHandler");ie(this,"_promiseQueue");ie(this,"_timeout");ie(this,"_diagLogger");this._transport=e,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=ot.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,n){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:Oi.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(e);if(r==null){n({code:Oi.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:Oi.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:Oi.FAILED,error:i.error});return}else i.status==="retryable"?n({code:Oi.FAILED,error:new Fk("Export failed with retryable status")}):n({code:Oi.FAILED,error:new Fk("Export failed with unknown error")})},i=>n({code:Oi.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function pre(t,e){return new hre(t.transport,t.serializer,dre(),t.promiseHandler,e.timeout)}function y$(t,e,n){return pre({transport:n,serializer:e,promiseHandler:ure(t)},{timeout:t.timeoutMillis})}function Vk(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function b$(t){const e=new Uint8Array(t.length/2);let n=0;for(let r=0;r<t.length;r+=2){const i=Vk(t.charCodeAt(r)),o=Vk(t.charCodeAt(r+1));e[n++]=i<<4|o}return e}function S$(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function gre(t){const e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function mre(t){const e=S$(t);return gre(e)}function vre(t){return S$(t).toString()}const Ore=typeof BigInt<"u"?vre:one;function zk(t){return t}function xre(t){if(t!==void 0)return b$(t)}const yre={encodeHrTime:mre,encodeSpanContext:b$,encodeOptionalSpanContext:xre};function bre(t){return t===void 0?yre:{encodeHrTime:Ore,encodeSpanContext:zk,encodeOptionalSpanContext:zk}}function Sre(t){return{attributes:kg(t.attributes),droppedAttributesCount:0}}function wre(t){return{name:t.name,version:t.version}}function kg(t){return Object.keys(t).map(e=>w$(e,t[e]))}function w$(t,e){return{key:t,value:C$(e)}}function C$(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(C$)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([n,r])=>w$(n,r))}}:{}}function Cre(t,e){var o,s,a;const n=t.spanContext(),r=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:i,traceState:(a=n.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:kg(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>Are(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:r.code,message:r.message},links:t.links.map(l=>Pre(l,e)),droppedLinksCount:t.droppedLinksCount}}function Pre(t,e){var n;return{attributes:t.attributes?kg(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Are(t,e){return{attributes:t.attributes?kg(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function kre(t,e){const n=bre(e);return{resourceSpans:Ire(t,n)}}function Ere(t){const e=new Map;for(const n of t){let r=e.get(n.resource);r||(r=new Map,e.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return e}function Ire(t,e){const n=Ere(t),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const d=u.value;if(d.length>0){const p=d.map(g=>Cre(g,e));l.push({scope:wre(d[0].instrumentationScope),spans:p,schemaUrl:d[0].instrumentationScope.schemaUrl})}u=c.next()}const f={resource:Sre(s),scopeSpans:l,schemaUrl:void 0};r.push(f),o=i.next()}return r}const Tre={serializeRequest:t=>{const e=kre(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},$re=5,jre=1e3,_re=5e3,Rre=1.5,Wk=.2;function Dre(){return Math.random()*(2*Wk)-Wk}class Mre{constructor(e){ie(this,"_transport");this._transport=e}retry(e,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,n).then(i,o)},r)})}async send(e,n){const r=Date.now()+n;let i=await this._transport.send(e,n),o=$re,s=jre;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,_re)+Dre(),0);s=s*Rre;const l=i.retryInMillis??a,c=r-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function P$(t){return new Mre(t.transport)}function Nre(t){return[429,502,503,504].includes(t)}function Bre(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const n=new Date(t).getTime()-Date.now();return n>=0?n:0}class Qre{constructor(e){ie(this,"_parameters");this._parameters=e}send(e,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(ot.debug("XHR success"),r({status:"success"})):i.status&&Nre(i.status)?r({status:"retryable",retryInMillis:Bre(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function Lre(t){return new Qre(t)}class Fre{constructor(e){ie(this,"_params");this._params=e}send(e){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(ot.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Vre(t){return new Fre(t)}function zre(t,e){return y$(t,e,P$({transport:Lre(t)}))}function Wre(t,e){return y$(t,e,P$({transport:Vre({url:t.url,blobType:t.headers()["Content-Type"]})}))}function Zre(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([n,r])=>{typeof r<"u"?e[n]=String(r):ot.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),e}}function Xre(t,e,n){const r={...n()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,r))}function Gre(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function Ure(t,e,n){return{...are(t,e,n),headers:Xre(Zre(t.headers),e.headers,n.headers),url:Gre(t.url)??e.url??n.url,agentOptions:t.agentOptions??e.agentOptions??n.agentOptions}}function Yre(t,e){return{...lre(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function Hre(t,e,n){return Ure({url:t.url,timeoutMillis:t.timeoutMillis,headers:sre(t.headers),concurrencyLimit:t.concurrencyLimit},{},Yre(n,e))}function qre(t,e,n,r){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=Hre(t,n,r);return i?zre(o,e):Wre(o,e)}class Jre extends ire{constructor(e={}){super(qre(e,Tre,"v1/traces",{"Content-Type":"application/json"}))}}class A${emit(e){}}const Kre=new A$;class eie{getLogger(e,n,r){return new A$}}const k$=new eie;class tie{constructor(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Kre}}class Zk{getLogger(e,n,r){var i;return(i=this.getDelegateLogger(e,n,r))!==null&&i!==void 0?i:new tie(this,e,n,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:k$}setDelegate(e){this._delegate=e}getDelegateLogger(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,n,r)}}const nie=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd=Symbol.for("io.opentelemetry.js.api.logs"),Pc=nie;function rie(t,e,n){return r=>r===t?e:n}const Xk=1;class Pb{constructor(){this._proxyLoggerProvider=new Zk}static getInstance(){return this._instance||(this._instance=new Pb),this._instance}setGlobalLoggerProvider(e){return Pc[gd]?this.getLoggerProvider():(Pc[gd]=rie(Xk,e,k$),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=Pc[gd])===null||e===void 0?void 0:e.call(Pc,Xk))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete Pc[gd],this._proxyLoggerProvider=new Zk}}const iie=Pb.getInstance();function oie(t,e,n,r){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),n&&s.setMeterProvider(n),r&&s.setLoggerProvider&&s.setLoggerProvider(r),s.getConfig().enabled||s.enable()}}function sie(t){t.forEach(e=>e.disable())}function aie(t){var o;const e=t.tracerProvider||Ar.getTracerProvider(),n=t.meterProvider||Ate.getMeterProvider(),r=t.loggerProvider||iie.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return oie(i,e,n,r),()=>{sie(i)}}class lie{constructor(){ie(this,"config",null);ie(this,"tracer",null);ie(this,"tracerProvider",null);ie(this,"initialized",!1);ie(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var n;try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,n){var o,s;const i={"cloudevents.event_id":Nu(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":n.toISOString(),"cloudevents.event_subject":e.subject||"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":"ui","cloudevents.event_source_details.id":((s=e.sourceDetails)==null?void 0:s.id)||Nu()};return e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([a,l])=>{const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();l!==void 0&&(i[`cloudevents.event_data.${c}`]=l)}),Object.entries(e).forEach(([a,l])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails"].includes(a)||l!==void 0&&(i[`cloudevents.${a}`]=l)}),i}startSpan(e,n){var r;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!n},n);return n||(i=Ar.setSpan(Fo.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",i)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}}class cie extends lie{constructor(){super();ie(this,"tracerProvider",null);ie(this,"tracer",null);ie(this,"initialized",!1)}initTracer(n){if(!n.collectorUrl&&!n.collectorTraceUrl)return;const r=`ses_${Nu()}`,i=v$({[a$]:n.serviceName,[qte]:n.serviceVersion,session_id:r}),o=n.collectorTraceUrl||`${n.collectorUrl}/v1/traces`;this.tracerProvider=new rre({resource:i,spanProcessors:[new Gne(new Jre({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(n.tracerName),this.tracerProvider.register(),aie({instrumentations:n.instrumentations??[]}),this.initialized=!0}}class uie{constructor(){ie(this,"config",null);ie(this,"initialized",!1);ie(this,"useCloudEventData");ie(this,"otelClient");ie(this,"updateCloudEventData",e=>{this.useCloudEventData=e});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new cie}init(e){this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName}))}send(e,n){var r;try{const i=this.constructCloudEvent(e,n);this.sendToOtelService(i)}catch(i){(r=this.config)!=null&&r.otel.isProd||console.error("Event reporting failed:",i)}}startSpan(e,n,r){const i=this.constructCloudEvent(e,n);return this.otelClient.startSpan(i,r)}constructCloudEvent(e,n){const r=this.useCloudEventData();return{id:`evt_${Nu()}`,type:e,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:n,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${Nu()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(e){var n;(n=this.config)!=null&&n.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}}function fie(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const die=fie(),hie=E.createContext(die);function Kr(){const t=E.useContext(hie);return WI(t)}function pie(t,e){const{apps:{apiId:n}}=at(),{corsProxyUrl:r,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Kr();r.set((t==null?void 0:t.corsProxyUrl)??HQ),o.set(t==null?void 0:t.mockServer),n.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),E.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Eg=E.createContext({});function Ab(){return E.useContext(Eg)||{}}const gie="0.15.0-next.12",mie={version:gie};class vie{constructor(){ie(this,"client");ie(this,"_isInitialized",!1);this.client=new uie}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:mie.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...r,...e}}),this._isInitialized=!0}sendEvent(e,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,n)}catch(r){console.error("Failed to send telemetry event:",r)}}}const uv=new vie;function et(){const{telemetry:t}=Ab();return uv.isInitialized||uv.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,n)=>{uv.sendEvent(e,n)}}}const Qn=800;var Oie=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function xie(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,f=t.onMenuClose,d=t.onMenuOpen,p=t.value,g=mr(t,Oie),m=E.useState(a!==void 0?a:n),v=Ne(m,2),O=v[0],x=v[1],y=E.useState(l!==void 0?l:i),S=Ne(y,2),b=S[0],w=S[1],C=E.useState(p!==void 0?p:s),P=Ne(C,2),A=P[0],I=P[1],T=E.useCallback(function(Z,Y){typeof c=="function"&&c(Z,Y),I(Z)},[c]),j=E.useCallback(function(Z,Y){var N;typeof u=="function"&&(N=u(Z,Y)),x(N!==void 0?N:Z)},[u]),B=E.useCallback(function(){typeof d=="function"&&d(),w(!0)},[d]),V=E.useCallback(function(){typeof f=="function"&&f(),w(!1)},[f]),Q=a!==void 0?a:O,z=l!==void 0?l:b,U=p!==void 0?p:A;return se(se({},g),{},{inputValue:Q,menuIsOpen:z,onChange:T,onInputChange:j,onMenuClose:V,onMenuOpen:B,value:U})}function yie(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function bie(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Sie=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bie(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
321
321
|
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=yie(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),bn="-ms-",Sp="-moz-",it="-webkit-",kb="comm",Eb="rule",Ib="decl",wie="@import",E$="@keyframes",Cie=Math.abs,Ig=String.fromCharCode,Pie=Object.assign;function Aie(t,e){return pn(t,0)^45?(((e<<2^pn(t,0))<<2^pn(t,1))<<2^pn(t,2))<<2^pn(t,3):0}function I$(t){return t.trim()}function kie(t,e){return(t=e.exec(t))?t[0]:t}function dt(t,e,n){return t.replace(e,n)}function fx(t,e){return t.indexOf(e)}function pn(t,e){return t.charCodeAt(e)|0}function Lu(t,e,n){return t.slice(e,n)}function yi(t){return t.length}function Tb(t){return t.length}function md(t,e){return e.push(t),t}function Eie(t,e){return t.map(e).join("")}var Tg=1,Ml=1,T$=0,er=0,Wt=0,Kl="";function $g(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Tg,column:Ml,length:s,return:""}}function Ac(t,e){return Pie($g("",null,null,"",null,null,0),t,{length:-t.length},e)}function Iie(){return Wt}function Tie(){return Wt=er>0?pn(Kl,--er):0,Ml--,Wt===10&&(Ml=1,Tg--),Wt}function gr(){return Wt=er<T$?pn(Kl,er++):0,Ml++,Wt===10&&(Ml=1,Tg++),Wt}function Di(){return pn(Kl,er)}function th(){return er}function lf(t,e){return Lu(Kl,t,e)}function Fu(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $$(t){return Tg=Ml=1,T$=yi(Kl=t),er=0,[]}function j$(t){return Kl="",t}function nh(t){return I$(lf(er-1,dx(t===91?t+2:t===40?t+1:t)))}function $ie(t){for(;(Wt=Di())&&Wt<33;)gr();return Fu(t)>2||Fu(Wt)>3?"":" "}function jie(t,e){for(;--e&&gr()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return lf(t,th()+(e<6&&Di()==32&&gr()==32))}function dx(t){for(;gr();)switch(Wt){case t:return er;case 34:case 39:t!==34&&t!==39&&dx(Wt);break;case 40:t===41&&dx(t);break;case 92:gr();break}return er}function _ie(t,e){for(;gr()&&t+Wt!==57;)if(t+Wt===84&&Di()===47)break;return"/*"+lf(e,er-1)+"*"+Ig(t===47?t:gr())}function Rie(t){for(;!Fu(Di());)gr();return lf(t,er)}function Die(t){return j$(rh("",null,null,null,[""],t=$$(t),0,[0],t))}function rh(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,g=0,m=1,v=1,O=1,x=0,y="",S=i,b=o,w=r,C=y;v;)switch(g=x,x=gr()){case 40:if(g!=108&&pn(C,f-1)==58){fx(C+=dt(nh(x),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:C+=nh(x);break;case 9:case 10:case 13:case 32:C+=$ie(g);break;case 92:C+=jie(th()-1,7);continue;case 47:switch(Di()){case 42:case 47:md(Mie(_ie(gr(),th()),e,n),l);break;default:C+="/"}break;case 123*m:a[c++]=yi(C)*O;case 125*m:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+u:p>0&&yi(C)-f&&md(p>32?Uk(C+";",r,n,f-1):Uk(dt(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(md(w=Gk(C,e,n,c,u,i,a,y,S=[],b=[],f),o),x===123)if(u===0)rh(C,e,w,w,S,o,f,a,b);else switch(d===99&&pn(C,3)===110?100:d){case 100:case 109:case 115:rh(t,w,w,r&&md(Gk(t,w,w,0,0,i,a,y,i,S=[],f),b),i,b,f,a,r?S:b);break;default:rh(C,w,w,w,[""],b,0,a,b)}}c=u=p=0,m=O=1,y=C="",f=s;break;case 58:f=1+yi(C),p=g;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&Tie()==125)continue}switch(C+=Ig(x),x*m){case 38:O=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(yi(C)-1)*O,O=1;break;case 64:Di()===45&&(C+=nh(gr())),d=Di(),u=f=yi(y=C+=Rie(th())),x++;break;case 45:g===45&&yi(C)==2&&(m=0)}}return o}function Gk(t,e,n,r,i,o,s,a,l,c,u){for(var f=i-1,d=i===0?o:[""],p=Tb(d),g=0,m=0,v=0;g<r;++g)for(var O=0,x=Lu(t,f+1,f=Cie(m=s[g])),y=t;O<p;++O)(y=I$(m>0?d[O]+" "+x:dt(x,/&\f/g,d[O])))&&(l[v++]=y);return $g(t,e,n,i===0?Eb:a,l,c,u)}function Mie(t,e,n){return $g(t,e,n,kb,Ig(Iie()),Lu(t,2,-2),0)}function Uk(t,e,n,r){return $g(t,e,n,Ib,Lu(t,0,r),Lu(t,r+1,-1),r)}function cl(t,e){for(var n="",r=Tb(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Nie(t,e,n,r){switch(t.type){case wie:case Ib:return t.return=t.return||t.value;case kb:return"";case E$:return t.return=t.value+"{"+cl(t.children,r)+"}";case Eb:t.value=t.props.join(",")}return yi(n=cl(t.children,r))?t.return=t.value+"{"+n+"}":""}function Bie(t){var e=Tb(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function Qie(t){return function(e){e.root||(e=e.return)&&t(e)}}function Lie(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Fie=function(e,n,r){for(var i=0,o=0;i=o,o=Di(),i===38&&o===12&&(n[r]=1),!Fu(o);)gr();return lf(e,er)},Vie=function(e,n){var r=-1,i=44;do switch(Fu(i)){case 0:i===38&&Di()===12&&(n[r]=1),e[r]+=Fie(er-1,n,r);break;case 2:e[r]+=nh(i);break;case 4:if(i===44){e[++r]=Di()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ig(i)}while(i=gr());return e},zie=function(e,n){return j$(Vie($$(e),n))},Yk=new WeakMap,Wie=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Yk.get(r))&&!i){Yk.set(e,!0);for(var o=[],s=zie(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Zie=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},Xie="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Gie=function(e){return e.type==="comm"&&e.children.indexOf(Xie)>-1},Uie=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=n.parent===i[0],a=s?i[0].children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<n.line)break;if(c.column<n.column){if(Gie(c))return;break}}o.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},_$=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},Yie=function(e,n){for(var r=e-1;r>=0;r--)if(!_$(n[r]))return!0;return!1},Hk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Hie=function(e,n,r){_$(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Hk(e)):Yie(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Hk(e)))};function R$(t,e){switch(Aie(t,e)){case 5103:return it+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return it+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return it+t+Sp+t+bn+t+t;case 6828:case 4268:return it+t+bn+t+t;case 6165:return it+t+bn+"flex-"+t+t;case 5187:return it+t+dt(t,/(\w+).+(:[^]+)/,it+"box-$1$2"+bn+"flex-$1$2")+t;case 5443:return it+t+bn+"flex-item-"+dt(t,/flex-|-self/,"")+t;case 4675:return it+t+bn+"flex-line-pack"+dt(t,/align-content|flex-|-self/,"")+t;case 5548:return it+t+bn+dt(t,"shrink","negative")+t;case 5292:return it+t+bn+dt(t,"basis","preferred-size")+t;case 6060:return it+"box-"+dt(t,"-grow","")+it+t+bn+dt(t,"grow","positive")+t;case 4554:return it+dt(t,/([^-])(transform)/g,"$1"+it+"$2")+t;case 6187:return dt(dt(dt(t,/(zoom-|grab)/,it+"$1"),/(image-set)/,it+"$1"),t,"")+t;case 5495:case 3959:return dt(t,/(image-set\([^]*)/,it+"$1$`$1");case 4968:return dt(dt(t,/(.+:)(flex-)?(.*)/,it+"box-pack:$3"+bn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+it+t+t;case 4095:case 3583:case 4068:case 2532:return dt(t,/(.+)-inline(.+)/,it+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(yi(t)-1-e>6)switch(pn(t,e+1)){case 109:if(pn(t,e+4)!==45)break;case 102:return dt(t,/(.+:)(.+)-([^]+)/,"$1"+it+"$2-$3$1"+Sp+(pn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~fx(t,"stretch")?R$(dt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pn(t,e+1)!==115)break;case 6444:switch(pn(t,yi(t)-3-(~fx(t,"!important")&&10))){case 107:return dt(t,":",":"+it)+t;case 101:return dt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+it+(pn(t,14)===45?"inline-":"")+"box$3$1"+it+"$2$3$1"+bn+"$2box$3")+t}break;case 5936:switch(pn(t,e+11)){case 114:return it+t+bn+dt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return it+t+bn+dt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return it+t+bn+dt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return it+t+bn+t+t}return t}var qie=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Ib:e.return=R$(e.value,e.length);break;case E$:return cl([Ac(e,{value:dt(e.value,"@","@"+it)})],i);case Eb:if(e.length)return Eie(e.props,function(o){switch(kie(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cl([Ac(e,{props:[dt(o,/:(read-\w+)/,":"+Sp+"$1")]})],i);case"::placeholder":return cl([Ac(e,{props:[dt(o,/:(plac\w+)/,":"+it+"input-$1")]}),Ac(e,{props:[dt(o,/:(plac\w+)/,":"+Sp+"$1")]}),Ac(e,{props:[dt(o,/:(plac\w+)/,bn+"input-$1")]})],i)}return""})}},Jie=[qie],Kie=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
322
322
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||Jie;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),O=1;O<v.length;O++)o[v[O]]=!0;a.push(m)});var l,c=[Wie,Zie];process.env.NODE_ENV!=="production"&&c.push(Uie({get compat(){return g.compat}}),Hie);{var u,f=[Nie,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?u.insert(m.return):m.value&&m.type!==kb&&u.insert(m.value+"{}"))}:Qie(function(m){u.insert(m)})],d=Bie(c.concat(i,f)),p=function(v){return cl(Die(v),d)};l=function(v,O,x,y){u=x,process.env.NODE_ENV!=="production"&&O.map!==void 0&&(u={insert:function(b){x.insert(b+O.map)}}),p(v?v+"{"+O.styles+"}":O.styles),y&&(g.inserted[O.name]=!0)}}var g={key:n,sheet:new Sie({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},eoe=!0;function D$(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var $b=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||eoe===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},jb=function(e,n,r){$b(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function toe(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var noe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qk=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
323
323
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
@@ -674,7 +674,7 @@ You should wrap it with \`css\` like this:
|
|
|
674
674
|
margin-left: -16.5px;
|
|
675
675
|
padding-left: 15.5px;
|
|
676
676
|
border-left: 1px solid var(--border-color-secondary);
|
|
677
|
-
`,Eue=(t,e={})=>({pattern:new RegExp(Vl,"g"),component:({match:n})=>{const r=(n==null?void 0:n[1])||(n==null?void 0:n[2])||"",i=t.get().findLast(s=>s.name===r),o=s=>{t.set(a=>[...a.filter(l=>l.name!==s.name),s])};return h.jsx(bue,{inputId:e.inputId,input:i,name:(n==null?void 0:n[0])??"",withPopover:e.withPopover??!0,onNewInput:o},crypto.randomUUID())}}),Ub=(t,e,n={withPopover:!0})=>{const r=[...n.highlightPatterns??[],Eue(e,n)],i=[],o=new Set,s=(u,f)=>{for(let d=u;d<f;d++)if(o.has(d))return!1;return!0},a=(u,f)=>{for(let d=u;d<f;d++)o.add(d)};if(r.forEach(u=>{const f=typeof u.pattern=="string"?new RegExp(u.pattern,"g"):new RegExp(u.pattern.source,u.pattern.flags);let d;for(;(d=f.exec(t))!==null;){const p=d.index,g=d.index+d[0].length;s(p,g)&&(i.push({start:p,end:g,content:d[0],pattern:u,match:d}),a(p,g))}}),i.sort((u,f)=>u.start-f.start),!i.length)return t;let l=0;const c=i.flatMap(({start:u,end:f,content:d,pattern:p,match:g})=>{const m=t.slice(l,u);return l=f,[m.length?h.jsx(E.Fragment,{children:m},l):null,h.jsx(p.component,{content:d,match:g},crypto.randomUUID())]});return t.slice(l).length&&c.push(h.jsx(E.Fragment,{children:t.slice(l)},l+1)),c},Mp=()=>({name:"",value:"",isSecret:!1}),Tt=t=>z5+"$inputs."+t+iy,Iue=(t,e)=>e.inputs.find(n=>{var r;return n.get().name===((r=t.match(`^${Vl}$`))==null?void 0:r[1])});function Tue({environments:t,activeEnvironmentId:e}){const n=t.get().find(r=>r.name===e.get());return(n==null?void 0:n.inputs)||[]}function $ue(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function jue(t,e){return t.every(n=>e.includes(n))}function _ue(t){switch(t){case"query":return dr.Query;case"cookie":return dr.Cookie;case"header":return dr.Header;default:return}}function Rue(t,e,n){const{security:r}=e.step,i=Tue(t),{selectedSecuritySchemeId:o,securities:s}=r;if(!n)return!1;const l=Yb(n).securities.filter(g=>g.securitySchemeId===o||!o),c=s.filter(g=>g.securitySchemeId===o),u=c.map(g=>g.securityType),f=l.map(g=>g.securityType);if(!$ue(u,f))return!0;let p=[];return c.forEach(g=>{var w,C,P;const m=g.securityType,v=(w=g[H.OAuth2])==null?void 0:w.grantType,O=u.includes(m),x=l.find(A=>A.securityType===m),y=!x||i4(g,x,Mue(m,v)),S=Due(g,m,(C=g[H.OAuth2])==null?void 0:C.grantType,i),b=!!(O&&x&&y&&S);p.push(!((P=n.security)!=null&&P.length)||b)}),p.includes(!1)}function Due(t,e,n,r){var i,o;if(e===H.OAuth2&&(n===J.AuthorizationCode||n===J.AuthorizationCodeWithPkce||n===J.Implicit)){const s=(i=t[H.OAuth2][n])==null?void 0:i.availableScopes,a=tg((o=t[H.OAuth2][n])==null?void 0:o.scopes,r);return jue(a,s)}return!0}function Mue(t,e){return t===H.APIKey?[`${H.APIKey}/name`,`${H.APIKey}/location`]:t===H.OAuth2?[`${H.OAuth2}/grantType`,...Nue(e)]:t===H.OpenIDConnect?[`${H.OpenIDConnect}/openIdConnectUrl`]:[]}function Nue(t){return t===J.ClientCredentials?[`${H.OAuth2}/${J.ClientCredentials}/tokenUrl`]:t===J.Password?[`${H.OAuth2}/${J.Password}/tokenUrl`]:t===J.Implicit?[`${H.OAuth2}/${J.Implicit}/authorizationUrl`]:t===J.AuthorizationCode?[`${H.OAuth2}/${J.AuthorizationCode}/tokenUrl`,`${H.OAuth2}/${J.AuthorizationCode}/authorizationUrl`]:t===J.AuthorizationCodeWithPkce?[`${H.OAuth2}/${J.AuthorizationCodeWithPkce}/tokenUrl`,`${H.OAuth2}/${J.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function Bue(t){const e=t.map(n=>{let r="";const i=[];return n.forEach((o,s)=>{r=s===0?`${o.id}`:`${r}_${o.id}`,i.push(o.id)}),{id:r,schemes:i}});return t.length?e:[ly]}function Uj(t){return t.map(e=>{const n=e.map(r=>r.id).join("_");return e.map(r=>({...r,schemeId:n}))})}function Yb(t){var r;const n=(t.security||[]).length?Bue(t.security||[]):[ly];return{selectedSecuritySchemeId:(r=n[0])==null?void 0:r.id,securitySchemeVariants:n,securities:Yj(t)}}function Yj(t,e){const n=t.security||[];return n!=null&&n.length?Uj(n).flat().map((i,o)=>Que(i,e==null?void 0:e[o])):[ns()]}function Que(t,e){const n=e||ns();n.securitySchemeId=t.schemeId;const r=sb(t);n.securityType=r;const i=t.id;if(r===H.BasicAuth&&(n[H.BasicAuth].username||(n[H.BasicAuth].username=Tt(i+_.SecurityVariablesEnvSuffix.Username)),n[H.BasicAuth].password||(n[H.BasicAuth].password=Tt(i+_.SecurityVariablesEnvSuffix.Password))),r===H.DigestAuth&&(n[H.DigestAuth].username||(n[H.DigestAuth].username=Tt(i+_.SecurityVariablesEnvSuffix.Username)),n[H.DigestAuth].password||(n[H.DigestAuth].password=Tt(i+_.SecurityVariablesEnvSuffix.Password))),r===H.JWT&&!n[H.JWT].token&&(n[H.JWT].token=Tt(i+_.SecurityVariablesEnvSuffix.JWTToken)),r===H.APIKey&&!n[H.APIKey].key){n[H.APIKey].name=t.name||"",n[H.APIKey].key=Tt(i+_.SecurityVariablesEnvSuffix.APIKey);const o=_ue(t.in);o&&(n[H.APIKey].location=o)}if(r===H.OAuth2){const o=ab(t),s=Tt(i+_.SecurityVariablesEnvSuffix.Token),a=n[H.OAuth2];a.grantType=o[0],o.forEach(l=>{var c,u,f,d,p,g,m,v,O,x,y,S,b,w,C,P,A,I;l===J.AuthorizationCode&&!a[J.AuthorizationCode].accessToken&&(a[J.AuthorizationCode].accessToken=s,a[J.AuthorizationCode].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.AuthorizationCode].authorizationUrl=((u=(c=t.flows)==null?void 0:c.authorizationCode)==null?void 0:u.authorizationUrl)||"",a[J.AuthorizationCode].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret),a[J.AuthorizationCode].availableScopes=Object.keys(((d=(f=t.flows)==null?void 0:f.authorizationCode)==null?void 0:d.scopes)||{})||[],a[J.AuthorizationCode].scopes=[...Ha(Object.keys(((g=(p=t.flows)==null?void 0:p.authorizationCode)==null?void 0:g.scopes)||{})||[]),Le()]),l===J.AuthorizationCodeWithPkce&&!a[J.AuthorizationCodeWithPkce].accessToken&&(a[J.AuthorizationCodeWithPkce].accessToken=s,a[J.AuthorizationCodeWithPkce].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.AuthorizationCodeWithPkce].authorizationUrl=((v=(m=t.flows)==null?void 0:m.authorizationCode)==null?void 0:v.authorizationUrl)||"",a[J.AuthorizationCodeWithPkce].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret),a[J.AuthorizationCodeWithPkce].availableScopes=Object.keys(((x=(O=t.flows)==null?void 0:O.authorizationCode)==null?void 0:x.scopes)||{})||[],a[J.AuthorizationCodeWithPkce].scopes=[...Ha(Object.keys(((S=(y=t.flows)==null?void 0:y.authorizationCode)==null?void 0:S.scopes)||{})||[]),Le()]),l===J.ClientCredentials&&!a[J.ClientCredentials].accessToken&&(a[J.ClientCredentials].accessToken=s,a[J.ClientCredentials].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.ClientCredentials].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),l===J.ClientCredentialsWithJwtAssertion&&!a[J.ClientCredentialsWithJwtAssertion].accessToken&&(a[J.ClientCredentialsWithJwtAssertion].accessToken=s,a[J.ClientCredentialsWithJwtAssertion].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.ClientCredentialsWithJwtAssertion].clientAssertion=Tt(i+_.SecurityVariablesEnvSuffix.ClientAssertion)),l===J.Implicit&&!a[J.Implicit].accessToken&&(a[J.Implicit].accessToken=s,a[J.Implicit].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.Implicit].authorizationUrl=((w=(b=t.flows)==null?void 0:b.implicit)==null?void 0:w.authorizationUrl)||"",a[J.Implicit].availableScopes=Object.keys(((P=(C=t.flows)==null?void 0:C.implicit)==null?void 0:P.scopes)||{})||[],a[J.Implicit].scopes=[...Ha(Object.keys(((I=(A=t.flows)==null?void 0:A.implicit)==null?void 0:I.scopes)||{})||[]),Le()]),l===J.Password&&!a[J.Password].accessToken&&(a[J.Password].accessToken=s,a[J.Password].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.Password].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret))})}if(r===H.OpenIDConnect){const o=Tt(i+_.SecurityVariablesEnvSuffix.Token),s=n[H.OpenIDConnect];s[J.AuthorizationCode].accessToken||(s[J.AuthorizationCode].accessToken=o,s[J.AuthorizationCode].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),s[J.AuthorizationCode].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),s[J.AuthorizationCodeWithPkce].accessToken||(s[J.AuthorizationCodeWithPkce].accessToken=o,s[J.AuthorizationCodeWithPkce].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),s[J.AuthorizationCodeWithPkce].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),s[J.Implicit].accessToken||(s[J.Implicit].accessToken=o,s[J.Implicit].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId))}return n}function tc(t,e){return t.filter(n=>n.securitySchemeId.get()===e||!e)}const Hj="New Step";function LE({name:t=Hj,workflow:e}={}){let n=t.replaceAll(" ","-").toLowerCase();if(!e)return n;const r=Lue(e);if(r.includes(n)){let i=1;for(;r.includes(`${n}-${i}`);)i++;n=`${n}-${i}`}return n}function Lue(t){return t.steps.filter(e=>e.state.get()!==Ue.Draft).map(e=>e.stepId.get())}function ul({name:t=Hj,isDraft:e=!1,fromStep:n,workflow:r,operation:i,apiOperation:o}={}){if(!n){const a=o?c8(o):null;return{stepId:LE({name:t,workflow:r}),description:t,outputs:[Le()],successCriteria:[],state:e?Ue.Draft:Ue.Normal,parameters:{pathParameters:[],queryParameters:[Le()],headers:[Le()],cookies:[Le()]},requestBody:Ih(),xOperation:i?null:{method:"GET",url:""},security:{securitySchemeVariants:[],selectedSecuritySchemeId:"",securities:[ns()]},operation:i??null,...a}}const s=n.get({noproxy:!0});return{stepId:LE({name:t,workflow:r}),description:s.description,outputs:s.outputs,successCriteria:s.successCriteria,state:e?Ue.Draft:Ue.Normal,parameters:s.parameters,requestBody:s.requestBody,xOperation:s.xOperation,security:s.security,operation:s.operation}}function Nl(t){var e,n;return{method:(t.xOperation?t.xOperation.method:(e=t.operation)==null?void 0:e.method)??"",url:(t.xOperation?t.xOperation.url:(n=t.operation)==null?void 0:n.path)??""}}function Np(t,e){let n=t;return e.forEach(({key:r,value:i,active:o})=>{i&&o&&(n=n.replaceAll(`{${r}}`,i))}),n}function qj(t,e){return t.map(({value:n,...r})=>({...r,value:ht(n,e)}))}function Jj(t,e){let n=t;return e.forEach(({name:r,value:i})=>{i&&(n=n.replaceAll(`{${r}}`,i))}),n}async function Fue(t,e){var v,O,x;const{requestController:n}=t,{mockServer:r,corsProxyUrl:i,certificates:o}=e.get(),a=Jb(t).data;if(a.type.get()!==st.Step){console.warn("not an operation tab");return}const{step:l,response:c,requestError:u,isProcessingRequest:f}=a,d=Ii(l.get({noproxy:!0}));f.set(!0),(O=(v=n.get())==null?void 0:v.abort)==null||O.call(v),n.set(new AbortController);const p=(x=n.get())==null?void 0:x.signal,g=zl(t),m=qj(l.parameters.pathParameters.get({noproxy:!0}),g.inputs);try{const y=l.xOperation.ornull,S=l.operation.ornull;let b="",w="";if(y)w=y.method.get(),b=Np(y.url.get(),m);else if(S){const G=g.servers.find(F=>F.apiId===S.apiId.get());if(!(G!=null&&G.value)){alert("Could not resolve base server url");return}w=S.method.get(),b=Jj(G.value,G.variables)+Np(S.nested("path").get(),m)}const C=b.split("?")[0],P=Lt(C,t),A=r==null?void 0:r.url,I=A?P.startsWith(location.origin+A):!1,T=i||"",j=e_(l,t),B=I||YL(P)||d1(P),V=rfe({proxyUrl:T,resolvedUrl:P,ignoreProxy:B,queryParameters:j});await zue(l,V,I,p);const Q=t_(l,t),z=Hb(l.get(),t),U=Date.now(),{clientCert:Z,clientKey:Y}=Vue(P,o||[]),L=!!V.match(/^https?:\/\//)?V:`https://${V}`,M=await Rs(L,{signal:p,method:w,headers:Q,body:z||void 0,mode:I||d1(L)?"same-origin":"cors",clientCert:Z,clientKey:Y}),R=Date.now()-U;u.set(null),c.set(await qL(M,R));const D=Ii(c.value);FE(d,D,t)}catch(y){if(c.set(null),y.name==="AbortError")return;u.set(y.message);const S=Ii(c.value);FE(d,S,t)}finally{f.set(!1)}}function Vue(t,e){let n=hC(t);const r=e.find(({host:i,port:o})=>hC(`https://${i}:${o}`)===n);return{clientCert:r==null?void 0:r.crtFilePath,clientKey:r==null?void 0:r.keyFilePath}}async function zue(t,e,n,r){const{securities:i}=t.security,{security:{selectedSecuritySchemeId:o}}=t.get(),{method:s}=Nl(t.get()),a=tc(i,o).findLast(l=>l.securityType.get()===H.DigestAuth);if(a){const l=await Rs(e,{signal:r,method:s,mode:n||d1(e)?"same-origin":"cors"}),c=zL(l.headers.get("WWW-Authenticate")||"");a[H.DigestAuth].merge({nonce:c.nonce,realm:c.realm,qop:c.qop,algorithm:c.algorithm,opaque:c.opaque,cnonce:crypto.randomUUID(),nc:"00000001"})}}function FE(t,e,n){const{history:r}=n,i=crypto.randomUUID(),o=e?{...e,bodyNotStored:!0,body:"",arrayBuffer:new ArrayBuffer(0)}:null;r.merge([{id:i,date:new Date().getTime(),step:t,response:o}])}function Wue(t,e){const{security:{selectedSecuritySchemeId:n,securities:r}}=t;return[...tc(r,n.get())].reduce((s,a)=>{const{securityType:l,...c}=a.get();if(l===H.BasicAuth){const f=c[H.BasicAuth];s.Authorization="Basic "+btoa(`${Lt(f.username,e)}:${Lt(f.password,e)}`)}if(l===H.DigestAuth){const f=zl(e);s.Authorization=WL(t.get(),f==null?void 0:f.inputs)}if(l===H.JWT){const f=c[H.JWT];s.Authorization="Bearer "+f.token}if(l===H.OAuth2){const{grantType:f}=c[H.OAuth2],{accessToken:d}=c[H.OAuth2][f];s.Authorization="Bearer "+d}if(l===H.OpenIDConnect){const{grantType:f}=c[H.OpenIDConnect],{accessToken:d}=c[H.OpenIDConnect][f];s.Authorization="Bearer "+d}const u=c[H.APIKey];return l===H.APIKey&&u.location===dr.Header&&u.name&&u.key&&(s[u.name]=u.key),s},{})}function Zue(t,e,n){var y,S,b,w,C,P;const{operation:r,requestBody:i,parameters:o}=e.step,{headers:s,cookies:a,queryParameters:l}=o;if(!n)return!0;const c=(y=n.parameters)==null?void 0:y.filter(A=>A.in==="query"),u=(S=n.parameters)==null?void 0:S.filter(A=>A.in==="header"),f=(b=n.parameters)==null?void 0:b.filter(A=>A.in==="cookie"),d=(r==null?void 0:r.path)!==n.path,p=n.method.toLowerCase()!==(r==null?void 0:r.method.toLowerCase()),g=((w=n.body)==null?void 0:w.mediaTypes)&&((P=(C=n.body)==null?void 0:C.mediaTypes)==null?void 0:P[i.type])===void 0,m=u&&!u.every(A=>s.some(I=>I.key===A.name)),v=f&&!f.every(A=>a.some(I=>I.key===A.name)),O=c&&!c.every(A=>l.some(I=>I.key===A.name)),x=Rue(t,e,n);return!d&&!p&&!g&&!m&&!v&&!O&&!x}function Xue(t,e){const n=bh(t),r=bh(e);return n==null||delete n.parameters.pathParameters,r==null||delete r.parameters.pathParameters,t1(n,r)}function Hb(t,e){const{requestBody:n}=t,{method:r}=Nl(t);if(r==="GET"||r==="HEAD"||r==="OPTIONS")return null;try{switch(n.type){case"JSON":return structuredClone(Lt(n.content,e));case"multipart/form-data":return Yue(t,e);case"application/x-www-form-urlencoded":return Uue(t,e);case"application/octet-stream":return Gue(n.binary);default:return Lt(n.content,e)}}catch(i){console.error(i)}}function Gue(t){return t||null}function Uue(t,e){const{requestBody:n}=t,r=new URLSearchParams;return cf(n.formData["application/x-www-form-urlencoded"]).forEach(i=>{const o=Lt(i.value,e);r.append(Lt(i.key,e),o)}),r}function Yue(t,e){const{requestBody:n}=t,r=new FormData;return cf(n.formData["multipart/form-data"]).forEach(({type:i,files:o,value:s,key:a})=>{const l=Lt(a,e);if(i==="file"&&o){if(o instanceof FileList)for(const c of o)r.append(l,c)}else if(s){const c=Lt(s,e);return r.append(l,c)}}),r}function Kj(t){const{security:{selectedSecuritySchemeId:e,securities:n},parameters:{queryParameters:r}}=t,o=tc(n,e.get()).map(s=>{const{[H.APIKey]:a}=s.get();return a.location===dr.Query?r_(a):null}).filter(Boolean);return cf([...r.get(),...o])}function e_(t,e){return Kj(t).map(r=>{const i=Lt(r.value,e);return`${Lt(r.key,e)}=${i}`}).join("&")}function Hue(t,e){return Kj(t).reduce((r,i)=>{const o=Lt(i.value,e),s=Lt(i.key,e);return r[s]=o,r},{})}function que(t){const e=t.indexOf("?");if(e===-1)return[];const n=new URLSearchParams(t.slice(e+1)),r=[];for(const[i,o]of n.entries())r.push({id:crypto.randomUUID(),active:!0,key:i,value:o});return r}function Jue(t){const n=t.split("?")[0].split("/"),r=/^\{[^\s]+\}$/,i=n.filter(o=>r.test(o)).map(o=>o.slice(1,-1));return new Set(i)}function t_(t,e){const n=Wue(t,e),r=tfe(t.get(),e),i=Kue(t,e),{parameters:{headers:o}}=t.get(),a={...cf(o).reduce((c,u)=>(c[u.key]=u.value,c),{}),...n,...r||{},...i&&{Cookie:i,"X-Redocly-Cookie":i}};return Object.entries(a).reduce((c,[u,f])=>{const d=Lt(u,e),p=Lt(f,e);return c[d]=p,c},{})}function Kue(t,e){return n_(t).map(r=>{const i=Lt(r.value,e);return`${Lt(r.key,e)}=${i}`}).join("; ")}function efe(t,e){return n_(t).reduce((r,i)=>{const o=Lt(i.value,e);return{...r,[Lt(i.key,e)]:o}},{})}function n_(t){const{security:{selectedSecuritySchemeId:e,securities:n},parameters:{cookies:r}}=t,i=tc(n,e.get()),o=i==null?void 0:i.map(s=>{const{[H.APIKey]:a}=s.get();return a.location===dr.Cookie?r_(a):null}).filter(Boolean);return cf([...r.get(),...o])}function cf(t){return t.filter(e=>e.active&&e.key&&(e.value||(e==null?void 0:e.files)))}function tfe(t,e){const{requestBody:n}=t;if(!(!Hb(t,e)||["binary","multipart/form-data"].includes(n.type)))return{"Content-Type":n.type}}function r_(t){return{key:t.name,value:t.key,active:!0}}function Lt(t,e){var n;return e?ht(t,(n=zl(e))==null?void 0:n.inputs):t}function nfe(t,e){var n;return zQ(t,(n=zl(e))==null?void 0:n.inputs)}function rfe({proxyUrl:t,resolvedUrl:e,ignoreProxy:n,queryParameters:r=""}){const i=t!=="/"?f1(t):t;let o;return n||!i?o=e:o=`${i}/${e}`,r&&(o+=`?${r}`),o}function qb(t){return t.flatMap(e=>{const n=e.id.get();return e.paths.keys.flatMap(r=>{const i=e.paths.nested(r);return i.keys.filter(o=>["get","put","post","delete","options","head","patch","trace"].includes(o.toLowerCase())).map(o=>{const s=i.nested(o),a=s.operationId.get()||"",l=s.summary.get();return{apiId:n,path:r,method:o,operationId:a,summary:l}})})})}function Jb({tabsState:{activeTabIdx:t,tabs:e}}){return e[t.get()]}function ife(t){const{environments:e,apis:n,tabsState:{tabs:r}}=t,i=r.filter(l=>l.data.type.get()===st.Step),o=qb(n),s=i.map(l=>{const{satisfiesScheme:c}=l.data.get(),{step:u}=l.data,{operationId:f,apiId:d}=u.get().operation??{};if(!c||!f)return null;const p=o.find(y=>y.operationId===f&&y.apiId===d);if(!p)return null;const g=t_(u,t),m=Hb(u.get(),t),v=efe(u,t),O=Hue(u,t),x=u.requestBody.activeExampleName;return{apiPath:{path:p.path,method:p.method},requestValues:{cookie:v,header:g,query:O,body:m},activeExampleName:x.get(),activeSecuritySchemeIds:u.security.get().selectedSecuritySchemeId.split("_")}}).filter(l=>l!==null),a=zl(t);return{operations:s,environment:a==null?void 0:a.name,environments:Object.fromEntries(e.get().map(l=>[l.name,{...Object.fromEntries(l.inputs.map(({name:c,value:u})=>[c,u])),...Object.fromEntries(l.servers.map(({apiId:c,value:u})=>[c,u]))}]))}}function ofe(t){const e=t.data.get();switch(e.type){case st.Workflow:return e.workflowId;case st.Collection:return e.collectionId;case st.Step:return e.stepId}}function uf(t){const e=at(),n=Jb(e);return!n.get()||t&&!pr(n.data.get(),t)?{tab:null,tabDataId:void 0}:{tab:n,tabDataId:ofe(n)}}const{createElement:Bl,createContext:sfe,forwardRef:i_,useCallback:Wn,useContext:o_,useEffect:Ms,useImperativeHandle:s_,useLayoutEffect:afe,useMemo:lfe,useRef:Gn,useState:fl}=X,VE=X[`useId${Math.random()}`.slice(0,5)],cfe=afe,Mg=sfe(null);Mg.displayName="PanelGroupContext";const Ns=cfe,ufe=typeof VE=="function"?VE:()=>null;let ffe=0;function Kb(t=null){const e=ufe(),n=Gn(t||e||null);return n.current===null&&(n.current=""+ffe++),t??n.current}function a_({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:s,maxSize:a,minSize:l,onCollapse:c,onExpand:u,onResize:f,order:d,style:p,tagName:g="div",...m}){const v=o_(Mg);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:O,expandPanel:x,getPanelSize:y,getPanelStyle:S,groupId:b,isPanelCollapsed:w,reevaluatePanelConstraints:C,registerPanel:P,resizePanel:A,unregisterPanel:I}=v,T=Kb(s),j=Gn({callbacks:{onCollapse:c,onExpand:u,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:l},id:T,idIsFromProps:s!==void 0,order:d});Gn({didLogMissingDefaultSizeWarning:!1}),Ns(()=>{const{callbacks:V,constraints:Q}=j.current,z={...Q};j.current.id=T,j.current.idIsFromProps=s!==void 0,j.current.order=d,V.onCollapse=c,V.onExpand=u,V.onResize=f,Q.collapsedSize=n,Q.collapsible=r,Q.defaultSize=i,Q.maxSize=a,Q.minSize=l,(z.collapsedSize!==Q.collapsedSize||z.collapsible!==Q.collapsible||z.maxSize!==Q.maxSize||z.minSize!==Q.minSize)&&C(j.current,z)}),Ns(()=>{const V=j.current;return P(V),()=>{I(V)}},[d,T,P,I]),s_(o,()=>({collapse:()=>{O(j.current)},expand:V=>{x(j.current,V)},getId(){return T},getSize(){return y(j.current)},isCollapsed(){return w(j.current)},isExpanded(){return!w(j.current)},resize:V=>{A(j.current,V)}}),[O,x,y,w,T,A]);const B=S(j.current,i);return Bl(g,{...m,children:t,className:e,id:s,style:{...B,...p},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":b,"data-panel-id":T,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const bx=i_((t,e)=>Bl(a_,{...t,forwardedRef:e}));a_.displayName="Panel";bx.displayName="forwardRef(Panel)";let Sx=null,Ts=null;function dfe(t,e){if(e){const n=(e&d_)!==0,r=(e&h_)!==0,i=(e&p_)!==0,o=(e&g_)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hfe(){Ts!==null&&(document.head.removeChild(Ts),Sx=null,Ts=null)}function xv(t,e){const n=dfe(t,e);Sx!==n&&(Sx=n,Ts===null&&(Ts=document.createElement("style"),document.head.appendChild(Ts)),Ts.innerHTML=`*{cursor: ${n}!important;}`)}function l_(t){return t.type==="keydown"}function c_(t){return t.type.startsWith("pointer")}function u_(t){return t.type.startsWith("mouse")}function Ng(t){if(c_(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(u_(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pfe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function gfe(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function mfe(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ZE(t),b:ZE(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;Ve(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:WE(zE(n.a)),b:WE(zE(n.b))};if(i.a===i.b){const o=r.childNodes,s={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const l=o[a];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(i.a-i.b)}const vfe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ofe(t){var e;const n=getComputedStyle((e=f_(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function xfe(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ofe(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||vfe.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function zE(t){let e=t.length;for(;e--;){const n=t[e];if(Ve(n,"Missing node"),xfe(n))return n}return null}function WE(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ZE(t){const e=[];for(;t;)e.push(t),t=f_(t);return e}function f_(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const d_=1,h_=2,p_=4,g_=8,yfe=pfe()==="coarse";let Ur=[],dl=!1,$o=new Map,Bg=new Map;const Wu=new Set;function bfe(t,e,n,r,i){var o;const{ownerDocument:s}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},l=(o=$o.get(s))!==null&&o!==void 0?o:0;return $o.set(s,l+1),Wu.add(a),Bp(),function(){var u;Bg.delete(t),Wu.delete(a);const f=(u=$o.get(s))!==null&&u!==void 0?u:1;if($o.set(s,f-1),Bp(),f===1&&$o.delete(s),Ur.includes(a)){const d=Ur.indexOf(a);d>=0&&Ur.splice(d,1),tS(),i("up",!0,null)}}}function XE(t){const{target:e}=t,{x:n,y:r}=Ng(t);dl=!0,eS({target:e,x:n,y:r}),Bp(),Ur.length>0&&(Qp("down",t),t.preventDefault(),t.stopPropagation())}function Ic(t){const{x:e,y:n}=Ng(t);if(dl&&t.buttons===0&&(dl=!1,Qp("up",t)),!dl){const{target:r}=t;eS({target:r,x:e,y:n})}Qp("move",t),tS(),Ur.length>0&&t.preventDefault()}function Pa(t){const{target:e}=t,{x:n,y:r}=Ng(t);Bg.clear(),dl=!1,Ur.length>0&&t.preventDefault(),Qp("up",t),eS({target:e,x:n,y:r}),tS(),Bp()}function eS({target:t,x:e,y:n}){Ur.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wu.forEach(i=>{const{element:o,hitAreaMargins:s}=i,a=o.getBoundingClientRect(),{bottom:l,left:c,right:u,top:f}=a,d=yfe?s.coarse:s.fine;if(e>=c-d&&e<=u+d&&n>=f-d&&n<=l+d){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&mfe(r,o)>0){let g=r,m=!1;for(;g&&!g.contains(o);){if(gfe(g.getBoundingClientRect(),a)){m=!0;break}g=g.parentElement}if(m)return}Ur.push(i)}})}function yv(t,e){Bg.set(t,e)}function tS(){let t=!1,e=!1;Ur.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Bg.forEach(r=>{n|=r}),t&&e?xv("intersection",n):t?xv("horizontal",n):e?xv("vertical",n):hfe()}function Bp(){$o.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Pa),n.removeEventListener("pointerdown",XE),n.removeEventListener("pointerleave",Ic),n.removeEventListener("pointermove",Ic)}),window.removeEventListener("pointerup",Pa),window.removeEventListener("pointercancel",Pa),Wu.size>0&&(dl?(Ur.length>0&&$o.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Pa),n.addEventListener("pointerleave",Ic),n.addEventListener("pointermove",Ic))}),window.addEventListener("pointerup",Pa),window.addEventListener("pointercancel",Pa)):$o.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",XE,{capture:!0}),n.addEventListener("pointermove",Ic))}))}function Qp(t,e){Wu.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ur.includes(n);r(t,i,e)})}function Sfe(){const[t,e]=fl(0);return Wn(()=>e(n=>n+1),[])}function Ve(t,e){if(!t)throw console.error(e),Error(e)}const nS=10;function Gs(t,e,n=nS){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Ki(t,e,n=nS){return Gs(t,e,n)===0}function ur(t,e,n){return Gs(t,e,n)===0}function wfe(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!ur(i,o,n))return!1}return!0}function Ga({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];Ve(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:s=100,minSize:a=0}=r;if(Gs(n,a)<0)if(o){const l=(i+a)/2;Gs(n,l)<0?n=i:n=a}else n=a;return n=Math.min(s,n),n=parseFloat(n.toFixed(nS)),n}function Vc({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ur(t,0))return e;const s=[...e],[a,l]=r;Ve(a!=null,"Invalid first pivot index"),Ve(l!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?l:a,d=n[f];Ve(d,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:g,minSize:m=0}=d;if(g){const v=e[f];if(Ve(v!=null,`Previous layout not found for panel index ${f}`),ur(v,p)){const O=m-v;Gs(O,Math.abs(t))>0&&(t=t<0?0-O:O)}}}{const f=t<0?a:l,d=n[f];Ve(d,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:g,minSize:m=0}=d;if(g){const v=e[f];if(Ve(v!=null,`Previous layout not found for panel index ${f}`),ur(v,m)){const O=v-p;Gs(O,Math.abs(t))>0&&(t=t<0?0-O:O)}}}}{const f=t<0?1:-1;let d=t<0?l:a,p=0;for(;;){const m=e[d];Ve(m!=null,`Previous layout not found for panel index ${d}`);const O=Ga({panelConstraints:n,panelIndex:d,size:100})-m;if(p+=O,d+=f,d<0||d>=n.length)break}const g=Math.min(Math.abs(t),Math.abs(p));t=t<0?0-g:g}{let d=t<0?a:l;for(;d>=0&&d<n.length;){const p=Math.abs(t)-Math.abs(c),g=e[d];Ve(g!=null,`Previous layout not found for panel index ${d}`);const m=g-p,v=Ga({panelConstraints:n,panelIndex:d,size:m});if(!ur(g,v)&&(c+=g-v,s[d]=v,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?d--:d++}}if(wfe(i,s))return i;{const f=t<0?l:a,d=e[f];Ve(d!=null,`Previous layout not found for panel index ${f}`);const p=d+c,g=Ga({panelConstraints:n,panelIndex:f,size:p});if(s[f]=g,!ur(g,p)){let m=p-g,O=t<0?l:a;for(;O>=0&&O<n.length;){const x=s[O];Ve(x!=null,`Previous layout not found for panel index ${O}`);const y=x+m,S=Ga({panelConstraints:n,panelIndex:O,size:y});if(ur(x,S)||(m-=S-x,s[O]=S),ur(m,0))break;t>0?O--:O++}}}const u=s.reduce((f,d)=>d+f,0);return ur(u,100)?s:i}function Cfe({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,s=0;const a=n[0];Ve(a!=null,"No pivot index found"),e.forEach((f,d)=>{const{constraints:p}=f,{maxSize:g=100,minSize:m=0}=p;d===a?(r=m,i=g):(o+=m,s+=g)});const l=Math.min(i,100-o),c=Math.max(r,100-s),u=t[a];return{valueMax:l,valueMin:c,valueNow:u}}function Zu(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function m_(t,e,n=document){const i=Zu(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function v_(t,e,n){const r=m_(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function O_(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Qg(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function Pfe(t,e,n,r=document){var i,o,s,a;const l=Qg(e,r),c=Zu(t,r),u=l?c.indexOf(l):-1,f=(i=(o=n[u])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,d=(s=(a=n[u+1])===null||a===void 0?void 0:a.id)!==null&&s!==void 0?s:null;return[f,d]}function Afe({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:s}){Gn({didWarnAboutMissingResizeHandle:!1}),Ns(()=>{if(!o)return;const a=Zu(n,o);for(let l=0;l<i.length-1;l++){const{valueMax:c,valueMin:u,valueNow:f}=Cfe({layout:r,panelsArray:i,pivotIndices:[l,l+1]}),d=a[l];if(d!=null){const p=i[l];Ve(p,`No panel data found for index "${l}"`),d.setAttribute("aria-controls",p.id),d.setAttribute("aria-valuemax",""+Math.round(c)),d.setAttribute("aria-valuemin",""+Math.round(u)),d.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Ms(()=>{if(!o)return;const a=e.current;Ve(a,"Eager values not found");const{panelDataArray:l}=a,c=O_(n,o);Ve(c!=null,`No group found for id "${n}"`);const u=Zu(n,o);Ve(u,`No resize handles found for group id "${n}"`);const f=u.map(d=>{const p=d.getAttribute("data-panel-resize-handle-id");Ve(p,"Resize handle element has no handle id attribute");const[g,m]=Pfe(n,p,l,o);if(g==null||m==null)return()=>{};const v=O=>{if(!O.defaultPrevented)switch(O.key){case"Enter":{O.preventDefault();const x=l.findIndex(y=>y.id===g);if(x>=0){const y=l[x];Ve(y,`No panel data found for index ${x}`);const S=r[x],{collapsedSize:b=0,collapsible:w,minSize:C=0}=y.constraints;if(S!=null&&w){const P=Vc({delta:ur(S,b)?C-b:b-S,initialLayout:r,panelConstraints:l.map(A=>A.constraints),pivotIndices:v_(n,p,o),prevLayout:r,trigger:"keyboard"});r!==P&&s(P)}}break}}};return d.addEventListener("keydown",v),()=>{d.removeEventListener("keydown",v)}});return()=>{f.forEach(d=>d())}},[o,t,e,n,r,i,s])}function GE(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function x_(t,e){const n=t==="horizontal",{x:r,y:i}=Ng(e);return n?r:i}function kfe(t,e,n,r,i){const o=n==="horizontal",s=Qg(e,i);Ve(s,`No resize handle element found for id "${e}"`);const a=s.getAttribute("data-panel-group-id");Ve(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=x_(n,t),u=O_(a,i);Ve(u,`No group element found for id "${a}"`);const f=u.getBoundingClientRect(),d=o?f.width:f.height;return(c-l)/d*100}function Efe(t,e,n,r,i,o){if(l_(t)){const s=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let l=0;switch(t.key){case"ArrowDown":l=s?0:a;break;case"ArrowLeft":l=s?-a:0;break;case"ArrowRight":l=s?a:0;break;case"ArrowUp":l=s?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:kfe(t,e,n,r,o)}function Ife({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const s=n[o];Ve(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const s=n[o];Ve(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;if(a!=null)continue;const l=t.length-r,c=i/l;r++,e[o]=c,i-=c}return e}function Aa(t,e,n){e.forEach((r,i)=>{const o=t[i];Ve(o,`Panel data not found for index ${i}`);const{callbacks:s,constraints:a,id:l}=o,{collapsedSize:c=0,collapsible:u}=a,f=n[l];if(f==null||r!==f){n[l]=r;const{onCollapse:d,onExpand:p,onResize:g}=s;g&&g(r,f),u&&(d||p)&&(p&&(f==null||Ki(f,c))&&!Ki(r,c)&&p(),d&&(f==null||!Ki(f,c))&&Ki(r,c)&&d())}})}function Pd(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tfe({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const s=n[i];let a;return s==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=s.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function $fe(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function UE(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function y_(t){return`react-resizable-panels:${t}`}function b_(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function S_(t,e){try{const n=y_(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function jfe(t,e,n){var r,i;const o=(r=S_(t,n))!==null&&r!==void 0?r:{},s=b_(e);return(i=o[s])!==null&&i!==void 0?i:null}function _fe(t,e,n,r,i){var o;const s=y_(t),a=b_(e),l=(o=S_(t,i))!==null&&o!==void 0?o:{};l[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(s,JSON.stringify(l))}catch(c){console.error(c)}}function YE({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,s)=>o+s,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!ur(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=100/r*s;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=Ga({panelConstraints:e,panelIndex:o,size:s});s!=a&&(i+=s-a,n[o]=a)}if(!ur(i,0))for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=s+i,l=Ga({panelConstraints:e,panelIndex:o,size:a});if(s!==l&&(i-=l-s,n[o]=l,ur(i,0)))break}return n}const Rfe=100,zc={getItem:t=>(UE(zc),zc.getItem(t)),setItem:(t,e)=>{UE(zc),zc.setItem(t,e)}},HE={};function w_({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:s=null,keyboardResizeBy:a=null,storage:l=zc,style:c,tagName:u="div",...f}){const d=Kb(o),p=Gn(null),[g,m]=fl(null),[v,O]=fl([]),x=Sfe(),y=Gn({}),S=Gn(new Map),b=Gn(0),w=Gn({autoSaveId:t,direction:r,dragState:g,id:d,keyboardResizeBy:a,onLayout:s,storage:l}),C=Gn({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Gn({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),s_(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:R}=C.current;return R},setLayout:R=>{const{onLayout:D}=w.current,{layout:G,panelDataArray:F}=C.current,te=YE({layout:R,panelConstraints:F.map(W=>W.constraints)});GE(G,te)||(O(te),C.current.layout=te,D&&D(te),Aa(F,te,y.current))}}),[]),Ns(()=>{w.current.autoSaveId=t,w.current.direction=r,w.current.dragState=g,w.current.id=d,w.current.onLayout=s,w.current.storage=l}),Afe({committedValuesRef:w,eagerValuesRef:C,groupId:d,layout:v,panelDataArray:C.current.panelDataArray,setLayout:O,panelGroupElement:p.current}),Ms(()=>{const{panelDataArray:R}=C.current;if(t){if(v.length===0||v.length!==R.length)return;let D=HE[t];D==null&&(D=$fe(_fe,Rfe),HE[t]=D);const G=[...R],F=new Map(S.current);D(t,G,F,v,l)}},[t,v,l]),Ms(()=>{});const P=Wn(R=>{const{onLayout:D}=w.current,{layout:G,panelDataArray:F}=C.current;if(R.constraints.collapsible){const te=F.map(fe=>fe.constraints),{collapsedSize:W=0,panelSize:le,pivotIndices:ae}=ys(F,R,G);if(Ve(le!=null,`Panel size not found for panel "${R.id}"`),!Ki(le,W)){S.current.set(R.id,le);const K=Na(F,R)===F.length-1?le-W:W-le,ue=Vc({delta:K,initialLayout:G,panelConstraints:te,pivotIndices:ae,prevLayout:G,trigger:"imperative-api"});Pd(G,ue)||(O(ue),C.current.layout=ue,D&&D(ue),Aa(F,ue,y.current))}}},[]),A=Wn((R,D)=>{const{onLayout:G}=w.current,{layout:F,panelDataArray:te}=C.current;if(R.constraints.collapsible){const W=te.map(ne=>ne.constraints),{collapsedSize:le=0,panelSize:ae=0,minSize:fe=0,pivotIndices:K}=ys(te,R,F),ue=D??fe;if(Ki(ae,le)){const ne=S.current.get(R.id),de=ne!=null&&ne>=ue?ne:ue,we=Na(te,R)===te.length-1?ae-de:de-ae,Ce=Vc({delta:we,initialLayout:F,panelConstraints:W,pivotIndices:K,prevLayout:F,trigger:"imperative-api"});Pd(F,Ce)||(O(Ce),C.current.layout=Ce,G&&G(Ce),Aa(te,Ce,y.current))}}},[]),I=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{panelSize:F}=ys(G,R,D);return Ve(F!=null,`Panel size not found for panel "${R.id}"`),F},[]),T=Wn((R,D)=>{const{panelDataArray:G}=C.current,F=Na(G,R);return Tfe({defaultSize:D,dragState:g,layout:v,panelData:G,panelIndex:F})},[g,v]),j=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{collapsedSize:F=0,collapsible:te,panelSize:W}=ys(G,R,D);return Ve(W!=null,`Panel size not found for panel "${R.id}"`),te===!0&&Ki(W,F)},[]),B=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{collapsedSize:F=0,collapsible:te,panelSize:W}=ys(G,R,D);return Ve(W!=null,`Panel size not found for panel "${R.id}"`),!te||Gs(W,F)>0},[]),V=Wn(R=>{const{panelDataArray:D}=C.current;D.push(R),D.sort((G,F)=>{const te=G.order,W=F.order;return te==null&&W==null?0:te==null?-1:W==null?1:te-W}),C.current.panelDataArrayChanged=!0,x()},[x]);Ns(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:R,onLayout:D,storage:G}=w.current,{layout:F,panelDataArray:te}=C.current;let W=null;if(R){const ae=jfe(R,te,G);ae&&(S.current=new Map(Object.entries(ae.expandToSizes)),W=ae.layout)}W==null&&(W=Ife({panelDataArray:te}));const le=YE({layout:W,panelConstraints:te.map(ae=>ae.constraints)});GE(F,le)||(O(le),C.current.layout=le,D&&D(le),Aa(te,le,y.current))}}),Ns(()=>{const R=C.current;return()=>{R.layout=[]}},[]);const Q=Wn(R=>{let D=!1;const G=p.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(D=!0),function(te){te.preventDefault();const W=p.current;if(!W)return()=>null;const{direction:le,dragState:ae,id:fe,keyboardResizeBy:K,onLayout:ue}=w.current,{layout:ne,panelDataArray:de}=C.current,{initialLayout:Pe}=ae??{},we=v_(fe,R,W);let Ce=Efe(te,R,le,ae,K,W);const rt=le==="horizontal";rt&&D&&(Ce=-Ce);const Me=de.map(re=>re.constraints),me=Vc({delta:Ce,initialLayout:Pe??ne,panelConstraints:Me,pivotIndices:we,prevLayout:ne,trigger:l_(te)?"keyboard":"mouse-or-touch"}),_e=!Pd(ne,me);(c_(te)||u_(te))&&b.current!=Ce&&(b.current=Ce,!_e&&Ce!==0?rt?yv(R,Ce<0?d_:h_):yv(R,Ce<0?p_:g_):yv(R,0)),_e&&(O(me),C.current.layout=me,ue&&ue(me),Aa(de,me,y.current))}},[]),z=Wn((R,D)=>{const{onLayout:G}=w.current,{layout:F,panelDataArray:te}=C.current,W=te.map(ne=>ne.constraints),{panelSize:le,pivotIndices:ae}=ys(te,R,F);Ve(le!=null,`Panel size not found for panel "${R.id}"`);const K=Na(te,R)===te.length-1?le-D:D-le,ue=Vc({delta:K,initialLayout:F,panelConstraints:W,pivotIndices:ae,prevLayout:F,trigger:"imperative-api"});Pd(F,ue)||(O(ue),C.current.layout=ue,G&&G(ue),Aa(te,ue,y.current))},[]),U=Wn((R,D)=>{const{layout:G,panelDataArray:F}=C.current,{collapsedSize:te=0,collapsible:W}=D,{collapsedSize:le=0,collapsible:ae,maxSize:fe=100,minSize:K=0}=R.constraints,{panelSize:ue}=ys(F,R,G);ue!=null&&(W&&ae&&Ki(ue,te)?Ki(te,le)||z(R,le):ue<K?z(R,K):ue>fe&&z(R,fe))},[z]),Z=Wn((R,D)=>{const{direction:G}=w.current,{layout:F}=C.current;if(!p.current)return;const te=Qg(R,p.current);Ve(te,`Drag handle element not found for id "${R}"`);const W=x_(G,D);m({dragHandleId:R,dragHandleRect:te.getBoundingClientRect(),initialCursorPosition:W,initialLayout:F})},[]),Y=Wn(()=>{m(null)},[]),N=Wn(R=>{const{panelDataArray:D}=C.current,G=Na(D,R);G>=0&&(D.splice(G,1),delete y.current[R.id],C.current.panelDataArrayChanged=!0,x())},[x]),L=lfe(()=>({collapsePanel:P,direction:r,dragState:g,expandPanel:A,getPanelSize:I,getPanelStyle:T,groupId:d,isPanelCollapsed:j,isPanelExpanded:B,reevaluatePanelConstraints:U,registerPanel:V,registerResizeHandle:Q,resizePanel:z,startDragging:Z,stopDragging:Y,unregisterPanel:N,panelGroupElement:p.current}),[P,g,r,A,I,T,d,j,B,U,V,Q,z,Z,Y,N]),M={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Bl(Mg.Provider,{value:L},Bl(u,{...f,children:e,className:n,id:o,ref:p,style:{...M,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":d}))}const C_=i_((t,e)=>Bl(w_,{...t,forwardedRef:e}));w_.displayName="PanelGroup";C_.displayName="forwardRef(PanelGroup)";function Na(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function ys(t,e,n){const r=Na(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],s=n[r];return{...e.constraints,panelSize:s,pivotIndices:o}}function Dfe({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Ms(()=>{if(t||n==null||r==null)return;const i=Qg(e,r);if(i==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),n(s);break}case"F6":{s.preventDefault();const a=i.getAttribute("data-panel-group-id");Ve(a,`No group element found for id "${a}"`);const l=Zu(a,r),c=m_(a,e,r);Ve(c!==null,`No resize element found for id "${e}"`);const u=s.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function P_({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:s,onFocus:a,style:l={},tabIndex:c=0,tagName:u="div",...f}){var d,p;const g=Gn(null),m=Gn({onDragging:s});Ms(()=>{m.current.onDragging=s});const v=o_(Mg);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:O,groupId:x,registerResizeHandle:y,startDragging:S,stopDragging:b,panelGroupElement:w}=v,C=Kb(i),[P,A]=fl("inactive"),[I,T]=fl(!1),[j,B]=fl(null),V=Gn({state:P});Ns(()=>{V.current.state=P}),Ms(()=>{if(n)B(null);else{const Z=y(C);B(()=>Z)}},[n,C,y]);const Q=(d=r==null?void 0:r.coarse)!==null&&d!==void 0?d:15,z=(p=r==null?void 0:r.fine)!==null&&p!==void 0?p:5;return Ms(()=>{if(n||j==null)return;const Z=g.current;return Ve(Z,"Element ref not attached"),bfe(C,Z,O,{coarse:Q,fine:z},(N,L,M)=>{if(L)switch(N){case"down":{A("drag"),Ve(M,'Expected event to be defined for "down" action'),S(C,M);const{onDragging:R}=m.current;R&&R(!0);break}case"move":{const{state:R}=V.current;R!=="drag"&&A("hover"),Ve(M,'Expected event to be defined for "move" action'),j(M);break}case"up":{A("hover"),b();const{onDragging:R}=m.current;R&&R(!1);break}}else A("inactive")})},[Q,O,n,z,y,C,j,S,b]),Dfe({disabled:n,handleId:C,resizeHandler:j,panelGroupElement:w}),Bl(u,{...f,children:t,className:e,id:i,onBlur:()=>{T(!1),o==null||o()},onFocus:()=>{T(!0),a==null||a()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...l},tabIndex:c,"data-panel-group-direction":O,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":P==="drag"?"pointer":I?"keyboard":void 0,"data-resize-handle-state":P,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":C})}P_.displayName="PanelResizeHandle";const A_=E.createContext({isMobile:!1,activeTab:"Request",MobileHeader:()=>null,setActiveTab:()=>null,closeButton:null}),ei=()=>E.useContext(A_);function Mfe(){var l;const t=E.useRef(null),[e,n]=E.useState(((l=t.current)==null?void 0:l.isCollapsed())||!0),r=()=>{t.current&&(t.current.collapse(),n(!0))},i=()=>{t.current&&(t.current.expand(),n(!1))};return{panelProps:{ref:t,collapsible:!0,onCollapse:r,onExpand:i},panel:{isCollapsed:e,collapse:r,expand:i,toggle:()=>{t.current&&(e?t.current.expand():t.current.collapse(),n(!e))}}}}const Ee=k.div`
|
|
677
|
+
`,Eue=(t,e={})=>({pattern:new RegExp(Vl,"g"),component:({match:n})=>{const r=(n==null?void 0:n[1])||(n==null?void 0:n[2])||"",i=t.get().findLast(s=>s.name===r),o=s=>{t.set(a=>[...a.filter(l=>l.name!==s.name),s])};return h.jsx(bue,{inputId:e.inputId,input:i,name:(n==null?void 0:n[0])??"",withPopover:e.withPopover??!0,onNewInput:o},crypto.randomUUID())}}),Ub=(t,e,n={withPopover:!0})=>{const r=[...n.highlightPatterns??[],Eue(e,n)],i=[],o=new Set,s=(u,f)=>{for(let d=u;d<f;d++)if(o.has(d))return!1;return!0},a=(u,f)=>{for(let d=u;d<f;d++)o.add(d)};if(r.forEach(u=>{const f=typeof u.pattern=="string"?new RegExp(u.pattern,"g"):new RegExp(u.pattern.source,u.pattern.flags);let d;for(;(d=f.exec(t))!==null;){const p=d.index,g=d.index+d[0].length;s(p,g)&&(i.push({start:p,end:g,content:d[0],pattern:u,match:d}),a(p,g))}}),i.sort((u,f)=>u.start-f.start),!i.length)return t;let l=0;const c=i.flatMap(({start:u,end:f,content:d,pattern:p,match:g})=>{const m=t.slice(l,u);return l=f,[m.length?h.jsx(E.Fragment,{children:m},l):null,h.jsx(p.component,{content:d,match:g},crypto.randomUUID())]});return t.slice(l).length&&c.push(h.jsx(E.Fragment,{children:t.slice(l)},l+1)),c},Mp=()=>({name:"",value:"",isSecret:!1}),Tt=t=>z5+"$inputs."+t+iy,Iue=(t,e)=>e.inputs.find(n=>{var r;return n.get().name===((r=t.match(`^${Vl}$`))==null?void 0:r[1])});function Tue({environments:t,activeEnvironmentId:e}){const n=t.get().find(r=>r.name===e.get());return(n==null?void 0:n.inputs)||[]}function $ue(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function jue(t,e){return t.every(n=>e.includes(n))}function _ue(t){switch(t){case"query":return dr.Query;case"cookie":return dr.Cookie;case"header":return dr.Header;default:return}}function Rue(t,e,n){const{security:r}=e.step,i=Tue(t),{selectedSecuritySchemeId:o,securities:s}=r;if(!n)return!1;const l=Yb(n).securities.filter(g=>g.securitySchemeId===o||!o),c=s.filter(g=>g.securitySchemeId===o),u=c.map(g=>g.securityType),f=l.map(g=>g.securityType);if(!$ue(u,f))return!0;let p=[];return c.forEach(g=>{var w,C,P;const m=g.securityType,v=(w=g[H.OAuth2])==null?void 0:w.grantType,O=u.includes(m),x=l.find(A=>A.securityType===m),y=!x||i4(g,x,Mue(m,v)),S=Due(g,m,(C=g[H.OAuth2])==null?void 0:C.grantType,i),b=!!(O&&x&&y&&S);p.push(!((P=n.security)!=null&&P.length)||b)}),p.includes(!1)}function Due(t,e,n,r){var i,o;if(e===H.OAuth2&&(n===J.AuthorizationCode||n===J.AuthorizationCodeWithPkce||n===J.Implicit)){const s=(i=t[H.OAuth2][n])==null?void 0:i.availableScopes,a=tg((o=t[H.OAuth2][n])==null?void 0:o.scopes,r);return jue(a,s)}return!0}function Mue(t,e){return t===H.APIKey?[`${H.APIKey}/name`,`${H.APIKey}/location`]:t===H.OAuth2?[`${H.OAuth2}/grantType`,...Nue(e)]:t===H.OpenIDConnect?[`${H.OpenIDConnect}/openIdConnectUrl`]:[]}function Nue(t){return t===J.ClientCredentials?[`${H.OAuth2}/${J.ClientCredentials}/tokenUrl`]:t===J.Password?[`${H.OAuth2}/${J.Password}/tokenUrl`]:t===J.Implicit?[`${H.OAuth2}/${J.Implicit}/authorizationUrl`]:t===J.AuthorizationCode?[`${H.OAuth2}/${J.AuthorizationCode}/tokenUrl`,`${H.OAuth2}/${J.AuthorizationCode}/authorizationUrl`]:t===J.AuthorizationCodeWithPkce?[`${H.OAuth2}/${J.AuthorizationCodeWithPkce}/tokenUrl`,`${H.OAuth2}/${J.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function Bue(t){const e=t.map(n=>{let r="";const i=[];return n.forEach((o,s)=>{r=s===0?`${o.id}`:`${r}_${o.id}`,i.push(o.id)}),{id:r,schemes:i}});return t.length?e:[ly]}function Uj(t){return t.map(e=>{const n=e.map(r=>r.id).join("_");return e.map(r=>({...r,schemeId:n}))})}function Yb(t){var r;const n=(t.security||[]).length?Bue(t.security||[]):[ly];return{selectedSecuritySchemeId:(r=n[0])==null?void 0:r.id,securitySchemeVariants:n,securities:Yj(t)}}function Yj(t,e){const n=t.security||[];return n!=null&&n.length?Uj(n).flat().map((i,o)=>Que(i,e==null?void 0:e[o])):[ns()]}function Que(t,e){const n=e||ns();n.securitySchemeId=t.schemeId;const r=sb(t);n.securityType=r;const i=t.id;if(r===H.BasicAuth&&(n[H.BasicAuth].username||(n[H.BasicAuth].username=Tt(i+_.SecurityVariablesEnvSuffix.Username)),n[H.BasicAuth].password||(n[H.BasicAuth].password=Tt(i+_.SecurityVariablesEnvSuffix.Password))),r===H.DigestAuth&&(n[H.DigestAuth].username||(n[H.DigestAuth].username=Tt(i+_.SecurityVariablesEnvSuffix.Username)),n[H.DigestAuth].password||(n[H.DigestAuth].password=Tt(i+_.SecurityVariablesEnvSuffix.Password))),r===H.JWT&&!n[H.JWT].token&&(n[H.JWT].token=Tt(i+_.SecurityVariablesEnvSuffix.JWTToken)),r===H.APIKey&&!n[H.APIKey].key){n[H.APIKey].name=t.name||"",n[H.APIKey].key=Tt(i+_.SecurityVariablesEnvSuffix.APIKey);const o=_ue(t.in);o&&(n[H.APIKey].location=o)}if(r===H.OAuth2){const o=ab(t),s=Tt(i+_.SecurityVariablesEnvSuffix.Token),a=n[H.OAuth2];a.grantType=o[0],o.forEach(l=>{var c,u,f,d,p,g,m,v,O,x,y,S,b,w,C,P,A,I;l===J.AuthorizationCode&&!a[J.AuthorizationCode].accessToken&&(a[J.AuthorizationCode].accessToken=s,a[J.AuthorizationCode].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.AuthorizationCode].authorizationUrl=((u=(c=t.flows)==null?void 0:c.authorizationCode)==null?void 0:u.authorizationUrl)||"",a[J.AuthorizationCode].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret),a[J.AuthorizationCode].availableScopes=Object.keys(((d=(f=t.flows)==null?void 0:f.authorizationCode)==null?void 0:d.scopes)||{})||[],a[J.AuthorizationCode].scopes=[...Ha(Object.keys(((g=(p=t.flows)==null?void 0:p.authorizationCode)==null?void 0:g.scopes)||{})||[]),Le()]),l===J.AuthorizationCodeWithPkce&&!a[J.AuthorizationCodeWithPkce].accessToken&&(a[J.AuthorizationCodeWithPkce].accessToken=s,a[J.AuthorizationCodeWithPkce].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.AuthorizationCodeWithPkce].authorizationUrl=((v=(m=t.flows)==null?void 0:m.authorizationCode)==null?void 0:v.authorizationUrl)||"",a[J.AuthorizationCodeWithPkce].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret),a[J.AuthorizationCodeWithPkce].availableScopes=Object.keys(((x=(O=t.flows)==null?void 0:O.authorizationCode)==null?void 0:x.scopes)||{})||[],a[J.AuthorizationCodeWithPkce].scopes=[...Ha(Object.keys(((S=(y=t.flows)==null?void 0:y.authorizationCode)==null?void 0:S.scopes)||{})||[]),Le()]),l===J.ClientCredentials&&!a[J.ClientCredentials].accessToken&&(a[J.ClientCredentials].accessToken=s,a[J.ClientCredentials].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.ClientCredentials].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),l===J.ClientCredentialsWithJwtAssertion&&!a[J.ClientCredentialsWithJwtAssertion].accessToken&&(a[J.ClientCredentialsWithJwtAssertion].accessToken=s,a[J.ClientCredentialsWithJwtAssertion].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.ClientCredentialsWithJwtAssertion].clientAssertion=Tt(i+_.SecurityVariablesEnvSuffix.ClientAssertion)),l===J.Implicit&&!a[J.Implicit].accessToken&&(a[J.Implicit].accessToken=s,a[J.Implicit].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.Implicit].authorizationUrl=((w=(b=t.flows)==null?void 0:b.implicit)==null?void 0:w.authorizationUrl)||"",a[J.Implicit].availableScopes=Object.keys(((P=(C=t.flows)==null?void 0:C.implicit)==null?void 0:P.scopes)||{})||[],a[J.Implicit].scopes=[...Ha(Object.keys(((I=(A=t.flows)==null?void 0:A.implicit)==null?void 0:I.scopes)||{})||[]),Le()]),l===J.Password&&!a[J.Password].accessToken&&(a[J.Password].accessToken=s,a[J.Password].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),a[J.Password].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret))})}if(r===H.OpenIDConnect){const o=Tt(i+_.SecurityVariablesEnvSuffix.Token),s=n[H.OpenIDConnect];s[J.AuthorizationCode].accessToken||(s[J.AuthorizationCode].accessToken=o,s[J.AuthorizationCode].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),s[J.AuthorizationCode].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),s[J.AuthorizationCodeWithPkce].accessToken||(s[J.AuthorizationCodeWithPkce].accessToken=o,s[J.AuthorizationCodeWithPkce].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId),s[J.AuthorizationCodeWithPkce].clientSecret=Tt(i+_.SecurityVariablesEnvSuffix.ClientSecret)),s[J.Implicit].accessToken||(s[J.Implicit].accessToken=o,s[J.Implicit].clientId=Tt(i+_.SecurityVariablesEnvSuffix.ClientId))}return n}function tc(t,e){return t.filter(n=>n.securitySchemeId.get()===e||!e)}const Hj="New Step";function LE({name:t=Hj,workflow:e}={}){let n=t.replaceAll(" ","-").toLowerCase();if(!e)return n;const r=Lue(e);if(r.includes(n)){let i=1;for(;r.includes(`${n}-${i}`);)i++;n=`${n}-${i}`}return n}function Lue(t){return t.steps.filter(e=>e.state.get()!==Ue.Draft).map(e=>e.stepId.get())}function ul({name:t=Hj,isDraft:e=!1,fromStep:n,workflow:r,operation:i,apiOperation:o}={}){if(!n){const a=o?c8(o):null;return{stepId:LE({name:t,workflow:r}),description:t,outputs:[Le()],successCriteria:[],state:e?Ue.Draft:Ue.Normal,parameters:{pathParameters:[],queryParameters:[Le()],headers:[Le()],cookies:[Le()]},requestBody:Ih(),xOperation:i?null:{method:"GET",url:""},security:{securitySchemeVariants:[],selectedSecuritySchemeId:"",securities:[ns()]},operation:i??null,...a}}const s=n.get({noproxy:!0});return{stepId:LE({name:t,workflow:r}),description:s.description,outputs:s.outputs,successCriteria:s.successCriteria,state:e?Ue.Draft:Ue.Normal,parameters:s.parameters,requestBody:s.requestBody,xOperation:s.xOperation,security:s.security,operation:s.operation}}function Nl(t){var e,n;return{method:(t.xOperation?t.xOperation.method:(e=t.operation)==null?void 0:e.method)??"",url:(t.xOperation?t.xOperation.url:(n=t.operation)==null?void 0:n.path)??""}}function Np(t,e){let n=t;return e.forEach(({key:r,value:i,active:o})=>{i&&o&&(n=n.replaceAll(`{${r}}`,i))}),n}function qj(t,e){return t.map(({value:n,...r})=>({...r,value:ht(n,e)}))}function Jj(t,e){let n=t;return e.forEach(({name:r,value:i})=>{i&&(n=n.replaceAll(`{${r}}`,i))}),n}async function Fue(t,e){var v,O,x;const{requestController:n}=t,{mockServer:r,corsProxyUrl:i,certificates:o}=e.get(),a=Jb(t).data;if(a.type.get()!==st.Step){console.warn("not an operation tab");return}const{step:l,response:c,requestError:u,isProcessingRequest:f}=a,d=Ii(l.get({noproxy:!0}));f.set(!0),(O=(v=n.get())==null?void 0:v.abort)==null||O.call(v),n.set(new AbortController);const p=(x=n.get())==null?void 0:x.signal,g=zl(t),m=qj(l.parameters.pathParameters.get({noproxy:!0}),g.inputs);try{const y=l.xOperation.ornull,S=l.operation.ornull;let b="",w="";if(y)w=y.method.get(),b=Np(y.url.get(),m);else if(S){const G=g.servers.find(F=>F.apiId===S.apiId.get());if(!(G!=null&&G.value)){alert("Could not resolve base server url");return}w=S.method.get(),b=Jj(G.value,G.variables)+Np(S.nested("path").get(),m)}const C=b.split("?")[0],P=Lt(C,t),A=r==null?void 0:r.url,I=A?P.startsWith(location.origin+A):!1,T=i||"",j=e_(l,t),B=I||YL(P)||d1(P),V=rfe({proxyUrl:T,resolvedUrl:P,ignoreProxy:B,queryParameters:j});await zue(l,V,I,p);const Q=t_(l,t),z=Hb(l.get(),t),U=Date.now(),{clientCert:Z,clientKey:Y}=Vue(P,o||[]),L=!!V.match(/^https?:\/\//)?V:`https://${V}`,M=await Rs(L,{signal:p,method:w.toUpperCase(),headers:Q,body:z||void 0,mode:I||d1(L)?"same-origin":"cors",clientCert:Z,clientKey:Y}),R=Date.now()-U;u.set(null),c.set(await qL(M,R));const D=Ii(c.value);FE(d,D,t)}catch(y){if(c.set(null),y.name==="AbortError")return;u.set(y.message);const S=Ii(c.value);FE(d,S,t)}finally{f.set(!1)}}function Vue(t,e){let n=hC(t);const r=e.find(({host:i,port:o})=>hC(`https://${i}:${o}`)===n);return{clientCert:r==null?void 0:r.crtFilePath,clientKey:r==null?void 0:r.keyFilePath}}async function zue(t,e,n,r){const{securities:i}=t.security,{security:{selectedSecuritySchemeId:o}}=t.get(),{method:s}=Nl(t.get()),a=tc(i,o).findLast(l=>l.securityType.get()===H.DigestAuth);if(a){const l=await Rs(e,{signal:r,method:s.toUpperCase(),mode:n||d1(e)?"same-origin":"cors"}),c=zL(l.headers.get("WWW-Authenticate")||"");a[H.DigestAuth].merge({nonce:c.nonce,realm:c.realm,qop:c.qop,algorithm:c.algorithm,opaque:c.opaque,cnonce:crypto.randomUUID(),nc:"00000001"})}}function FE(t,e,n){const{history:r}=n,i=crypto.randomUUID(),o=e?{...e,bodyNotStored:!0,body:"",arrayBuffer:new ArrayBuffer(0)}:null;r.merge([{id:i,date:new Date().getTime(),step:t,response:o}])}function Wue(t,e){const{security:{selectedSecuritySchemeId:n,securities:r}}=t;return[...tc(r,n.get())].reduce((s,a)=>{const{securityType:l,...c}=a.get();if(l===H.BasicAuth){const f=c[H.BasicAuth];s.Authorization="Basic "+btoa(`${Lt(f.username,e)}:${Lt(f.password,e)}`)}if(l===H.DigestAuth){const f=zl(e);s.Authorization=WL(t.get(),f==null?void 0:f.inputs)}if(l===H.JWT){const f=c[H.JWT];s.Authorization="Bearer "+f.token}if(l===H.OAuth2){const{grantType:f}=c[H.OAuth2],{accessToken:d}=c[H.OAuth2][f];s.Authorization="Bearer "+d}if(l===H.OpenIDConnect){const{grantType:f}=c[H.OpenIDConnect],{accessToken:d}=c[H.OpenIDConnect][f];s.Authorization="Bearer "+d}const u=c[H.APIKey];return l===H.APIKey&&u.location===dr.Header&&u.name&&u.key&&(s[u.name]=u.key),s},{})}function Zue(t,e,n){var y,S,b,w,C,P;const{operation:r,requestBody:i,parameters:o}=e.step,{headers:s,cookies:a,queryParameters:l}=o;if(!n)return!0;const c=(y=n.parameters)==null?void 0:y.filter(A=>A.in==="query"),u=(S=n.parameters)==null?void 0:S.filter(A=>A.in==="header"),f=(b=n.parameters)==null?void 0:b.filter(A=>A.in==="cookie"),d=(r==null?void 0:r.path)!==n.path,p=n.method.toLowerCase()!==(r==null?void 0:r.method.toLowerCase()),g=((w=n.body)==null?void 0:w.mediaTypes)&&((P=(C=n.body)==null?void 0:C.mediaTypes)==null?void 0:P[i.type])===void 0,m=u&&!u.every(A=>s.some(I=>I.key===A.name)),v=f&&!f.every(A=>a.some(I=>I.key===A.name)),O=c&&!c.every(A=>l.some(I=>I.key===A.name)),x=Rue(t,e,n);return!d&&!p&&!g&&!m&&!v&&!O&&!x}function Xue(t,e){const n=bh(t),r=bh(e);return n==null||delete n.parameters.pathParameters,r==null||delete r.parameters.pathParameters,t1(n,r)}function Hb(t,e){const{requestBody:n}=t,{method:r}=Nl(t),i=r.toUpperCase();if(i==="GET"||i==="HEAD"||i==="OPTIONS")return null;try{switch(n.type){case"JSON":return structuredClone(Lt(n.content,e));case"multipart/form-data":return Yue(t,e);case"application/x-www-form-urlencoded":return Uue(t,e);case"application/octet-stream":return Gue(n.binary);default:return Lt(n.content,e)}}catch(o){console.error(o)}}function Gue(t){return t||null}function Uue(t,e){const{requestBody:n}=t,r=new URLSearchParams;return cf(n.formData["application/x-www-form-urlencoded"]).forEach(i=>{const o=Lt(i.value,e);r.append(Lt(i.key,e),o)}),r}function Yue(t,e){const{requestBody:n}=t,r=new FormData;return cf(n.formData["multipart/form-data"]).forEach(({type:i,files:o,value:s,key:a})=>{const l=Lt(a,e);if(i==="file"&&o){if(o instanceof FileList)for(const c of o)r.append(l,c)}else if(s){const c=Lt(s,e);return r.append(l,c)}}),r}function Kj(t){const{security:{selectedSecuritySchemeId:e,securities:n},parameters:{queryParameters:r}}=t,o=tc(n,e.get()).map(s=>{const{[H.APIKey]:a}=s.get();return a.location===dr.Query?r_(a):null}).filter(Boolean);return cf([...r.get(),...o])}function e_(t,e){return Kj(t).map(r=>{const i=Lt(r.value,e);return`${Lt(r.key,e)}=${i}`}).join("&")}function Hue(t,e){return Kj(t).reduce((r,i)=>{const o=Lt(i.value,e),s=Lt(i.key,e);return r[s]=o,r},{})}function que(t){const e=t.indexOf("?");if(e===-1)return[];const n=new URLSearchParams(t.slice(e+1)),r=[];for(const[i,o]of n.entries())r.push({id:crypto.randomUUID(),active:!0,key:i,value:o});return r}function Jue(t){const n=t.split("?")[0].split("/"),r=/^\{[^\s]+\}$/,i=n.filter(o=>r.test(o)).map(o=>o.slice(1,-1));return new Set(i)}function t_(t,e){const n=Wue(t,e),r=tfe(t.get(),e),i=Kue(t,e),{parameters:{headers:o}}=t.get(),a={...cf(o).reduce((c,u)=>(c[u.key]=u.value,c),{}),...n,...r||{},...i&&{Cookie:i,"X-Redocly-Cookie":i}};return Object.entries(a).reduce((c,[u,f])=>{const d=Lt(u,e),p=Lt(f,e);return c[d]=p,c},{})}function Kue(t,e){return n_(t).map(r=>{const i=Lt(r.value,e);return`${Lt(r.key,e)}=${i}`}).join("; ")}function efe(t,e){return n_(t).reduce((r,i)=>{const o=Lt(i.value,e);return{...r,[Lt(i.key,e)]:o}},{})}function n_(t){const{security:{selectedSecuritySchemeId:e,securities:n},parameters:{cookies:r}}=t,i=tc(n,e.get()),o=i==null?void 0:i.map(s=>{const{[H.APIKey]:a}=s.get();return a.location===dr.Cookie?r_(a):null}).filter(Boolean);return cf([...r.get(),...o])}function cf(t){return t.filter(e=>e.active&&e.key&&(e.value||(e==null?void 0:e.files)))}function tfe(t,e){const{requestBody:n}=t;if(!(!Hb(t,e)||["binary","multipart/form-data"].includes(n.type)))return{"Content-Type":n.type}}function r_(t){return{key:t.name,value:t.key,active:!0}}function Lt(t,e){var n;return e?ht(t,(n=zl(e))==null?void 0:n.inputs):t}function nfe(t,e){var n;return zQ(t,(n=zl(e))==null?void 0:n.inputs)}function rfe({proxyUrl:t,resolvedUrl:e,ignoreProxy:n,queryParameters:r=""}){const i=t!=="/"?f1(t):t;let o;return n||!i?o=e:o=`${i}/${e}`,r&&(o+=`?${r}`),o}function qb(t){return t.flatMap(e=>{const n=e.id.get();return e.paths.keys.flatMap(r=>{const i=e.paths.nested(r);return i.keys.filter(o=>["get","put","post","delete","options","head","patch","trace"].includes(o.toLowerCase())).map(o=>{const s=i.nested(o),a=s.operationId.get()||"",l=s.summary.get();return{apiId:n,path:r,method:o,operationId:a,summary:l}})})})}function Jb({tabsState:{activeTabIdx:t,tabs:e}}){return e[t.get()]}function ife(t){const{environments:e,apis:n,tabsState:{tabs:r}}=t,i=r.filter(l=>l.data.type.get()===st.Step),o=qb(n),s=i.map(l=>{const{satisfiesScheme:c}=l.data.get(),{step:u}=l.data,{operationId:f,apiId:d}=u.get().operation??{};if(!c||!f)return null;const p=o.find(y=>y.operationId===f&&y.apiId===d);if(!p)return null;const g=t_(u,t),m=Hb(u.get(),t),v=efe(u,t),O=Hue(u,t),x=u.requestBody.activeExampleName;return{apiPath:{path:p.path,method:p.method},requestValues:{cookie:v,header:g,query:O,body:m},activeExampleName:x.get(),activeSecuritySchemeIds:u.security.get().selectedSecuritySchemeId.split("_")}}).filter(l=>l!==null),a=zl(t);return{operations:s,environment:a==null?void 0:a.name,environments:Object.fromEntries(e.get().map(l=>[l.name,{...Object.fromEntries(l.inputs.map(({name:c,value:u})=>[c,u])),...Object.fromEntries(l.servers.map(({apiId:c,value:u})=>[c,u]))}]))}}function ofe(t){const e=t.data.get();switch(e.type){case st.Workflow:return e.workflowId;case st.Collection:return e.collectionId;case st.Step:return e.stepId}}function uf(t){const e=at(),n=Jb(e);return!n.get()||t&&!pr(n.data.get(),t)?{tab:null,tabDataId:void 0}:{tab:n,tabDataId:ofe(n)}}const{createElement:Bl,createContext:sfe,forwardRef:i_,useCallback:Wn,useContext:o_,useEffect:Ms,useImperativeHandle:s_,useLayoutEffect:afe,useMemo:lfe,useRef:Gn,useState:fl}=X,VE=X[`useId${Math.random()}`.slice(0,5)],cfe=afe,Mg=sfe(null);Mg.displayName="PanelGroupContext";const Ns=cfe,ufe=typeof VE=="function"?VE:()=>null;let ffe=0;function Kb(t=null){const e=ufe(),n=Gn(t||e||null);return n.current===null&&(n.current=""+ffe++),t??n.current}function a_({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:s,maxSize:a,minSize:l,onCollapse:c,onExpand:u,onResize:f,order:d,style:p,tagName:g="div",...m}){const v=o_(Mg);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:O,expandPanel:x,getPanelSize:y,getPanelStyle:S,groupId:b,isPanelCollapsed:w,reevaluatePanelConstraints:C,registerPanel:P,resizePanel:A,unregisterPanel:I}=v,T=Kb(s),j=Gn({callbacks:{onCollapse:c,onExpand:u,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:l},id:T,idIsFromProps:s!==void 0,order:d});Gn({didLogMissingDefaultSizeWarning:!1}),Ns(()=>{const{callbacks:V,constraints:Q}=j.current,z={...Q};j.current.id=T,j.current.idIsFromProps=s!==void 0,j.current.order=d,V.onCollapse=c,V.onExpand=u,V.onResize=f,Q.collapsedSize=n,Q.collapsible=r,Q.defaultSize=i,Q.maxSize=a,Q.minSize=l,(z.collapsedSize!==Q.collapsedSize||z.collapsible!==Q.collapsible||z.maxSize!==Q.maxSize||z.minSize!==Q.minSize)&&C(j.current,z)}),Ns(()=>{const V=j.current;return P(V),()=>{I(V)}},[d,T,P,I]),s_(o,()=>({collapse:()=>{O(j.current)},expand:V=>{x(j.current,V)},getId(){return T},getSize(){return y(j.current)},isCollapsed(){return w(j.current)},isExpanded(){return!w(j.current)},resize:V=>{A(j.current,V)}}),[O,x,y,w,T,A]);const B=S(j.current,i);return Bl(g,{...m,children:t,className:e,id:s,style:{...B,...p},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":b,"data-panel-id":T,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const bx=i_((t,e)=>Bl(a_,{...t,forwardedRef:e}));a_.displayName="Panel";bx.displayName="forwardRef(Panel)";let Sx=null,Ts=null;function dfe(t,e){if(e){const n=(e&d_)!==0,r=(e&h_)!==0,i=(e&p_)!==0,o=(e&g_)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hfe(){Ts!==null&&(document.head.removeChild(Ts),Sx=null,Ts=null)}function xv(t,e){const n=dfe(t,e);Sx!==n&&(Sx=n,Ts===null&&(Ts=document.createElement("style"),document.head.appendChild(Ts)),Ts.innerHTML=`*{cursor: ${n}!important;}`)}function l_(t){return t.type==="keydown"}function c_(t){return t.type.startsWith("pointer")}function u_(t){return t.type.startsWith("mouse")}function Ng(t){if(c_(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(u_(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pfe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function gfe(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function mfe(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ZE(t),b:ZE(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;Ve(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:WE(zE(n.a)),b:WE(zE(n.b))};if(i.a===i.b){const o=r.childNodes,s={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const l=o[a];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(i.a-i.b)}const vfe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ofe(t){var e;const n=getComputedStyle((e=f_(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function xfe(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ofe(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||vfe.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function zE(t){let e=t.length;for(;e--;){const n=t[e];if(Ve(n,"Missing node"),xfe(n))return n}return null}function WE(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ZE(t){const e=[];for(;t;)e.push(t),t=f_(t);return e}function f_(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const d_=1,h_=2,p_=4,g_=8,yfe=pfe()==="coarse";let Ur=[],dl=!1,$o=new Map,Bg=new Map;const Wu=new Set;function bfe(t,e,n,r,i){var o;const{ownerDocument:s}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},l=(o=$o.get(s))!==null&&o!==void 0?o:0;return $o.set(s,l+1),Wu.add(a),Bp(),function(){var u;Bg.delete(t),Wu.delete(a);const f=(u=$o.get(s))!==null&&u!==void 0?u:1;if($o.set(s,f-1),Bp(),f===1&&$o.delete(s),Ur.includes(a)){const d=Ur.indexOf(a);d>=0&&Ur.splice(d,1),tS(),i("up",!0,null)}}}function XE(t){const{target:e}=t,{x:n,y:r}=Ng(t);dl=!0,eS({target:e,x:n,y:r}),Bp(),Ur.length>0&&(Qp("down",t),t.preventDefault(),t.stopPropagation())}function Ic(t){const{x:e,y:n}=Ng(t);if(dl&&t.buttons===0&&(dl=!1,Qp("up",t)),!dl){const{target:r}=t;eS({target:r,x:e,y:n})}Qp("move",t),tS(),Ur.length>0&&t.preventDefault()}function Pa(t){const{target:e}=t,{x:n,y:r}=Ng(t);Bg.clear(),dl=!1,Ur.length>0&&t.preventDefault(),Qp("up",t),eS({target:e,x:n,y:r}),tS(),Bp()}function eS({target:t,x:e,y:n}){Ur.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wu.forEach(i=>{const{element:o,hitAreaMargins:s}=i,a=o.getBoundingClientRect(),{bottom:l,left:c,right:u,top:f}=a,d=yfe?s.coarse:s.fine;if(e>=c-d&&e<=u+d&&n>=f-d&&n<=l+d){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&mfe(r,o)>0){let g=r,m=!1;for(;g&&!g.contains(o);){if(gfe(g.getBoundingClientRect(),a)){m=!0;break}g=g.parentElement}if(m)return}Ur.push(i)}})}function yv(t,e){Bg.set(t,e)}function tS(){let t=!1,e=!1;Ur.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Bg.forEach(r=>{n|=r}),t&&e?xv("intersection",n):t?xv("horizontal",n):e?xv("vertical",n):hfe()}function Bp(){$o.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Pa),n.removeEventListener("pointerdown",XE),n.removeEventListener("pointerleave",Ic),n.removeEventListener("pointermove",Ic)}),window.removeEventListener("pointerup",Pa),window.removeEventListener("pointercancel",Pa),Wu.size>0&&(dl?(Ur.length>0&&$o.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Pa),n.addEventListener("pointerleave",Ic),n.addEventListener("pointermove",Ic))}),window.addEventListener("pointerup",Pa),window.addEventListener("pointercancel",Pa)):$o.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",XE,{capture:!0}),n.addEventListener("pointermove",Ic))}))}function Qp(t,e){Wu.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ur.includes(n);r(t,i,e)})}function Sfe(){const[t,e]=fl(0);return Wn(()=>e(n=>n+1),[])}function Ve(t,e){if(!t)throw console.error(e),Error(e)}const nS=10;function Gs(t,e,n=nS){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Ki(t,e,n=nS){return Gs(t,e,n)===0}function ur(t,e,n){return Gs(t,e,n)===0}function wfe(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!ur(i,o,n))return!1}return!0}function Ga({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];Ve(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:s=100,minSize:a=0}=r;if(Gs(n,a)<0)if(o){const l=(i+a)/2;Gs(n,l)<0?n=i:n=a}else n=a;return n=Math.min(s,n),n=parseFloat(n.toFixed(nS)),n}function Vc({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ur(t,0))return e;const s=[...e],[a,l]=r;Ve(a!=null,"Invalid first pivot index"),Ve(l!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?l:a,d=n[f];Ve(d,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:g,minSize:m=0}=d;if(g){const v=e[f];if(Ve(v!=null,`Previous layout not found for panel index ${f}`),ur(v,p)){const O=m-v;Gs(O,Math.abs(t))>0&&(t=t<0?0-O:O)}}}{const f=t<0?a:l,d=n[f];Ve(d,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:g,minSize:m=0}=d;if(g){const v=e[f];if(Ve(v!=null,`Previous layout not found for panel index ${f}`),ur(v,m)){const O=v-p;Gs(O,Math.abs(t))>0&&(t=t<0?0-O:O)}}}}{const f=t<0?1:-1;let d=t<0?l:a,p=0;for(;;){const m=e[d];Ve(m!=null,`Previous layout not found for panel index ${d}`);const O=Ga({panelConstraints:n,panelIndex:d,size:100})-m;if(p+=O,d+=f,d<0||d>=n.length)break}const g=Math.min(Math.abs(t),Math.abs(p));t=t<0?0-g:g}{let d=t<0?a:l;for(;d>=0&&d<n.length;){const p=Math.abs(t)-Math.abs(c),g=e[d];Ve(g!=null,`Previous layout not found for panel index ${d}`);const m=g-p,v=Ga({panelConstraints:n,panelIndex:d,size:m});if(!ur(g,v)&&(c+=g-v,s[d]=v,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?d--:d++}}if(wfe(i,s))return i;{const f=t<0?l:a,d=e[f];Ve(d!=null,`Previous layout not found for panel index ${f}`);const p=d+c,g=Ga({panelConstraints:n,panelIndex:f,size:p});if(s[f]=g,!ur(g,p)){let m=p-g,O=t<0?l:a;for(;O>=0&&O<n.length;){const x=s[O];Ve(x!=null,`Previous layout not found for panel index ${O}`);const y=x+m,S=Ga({panelConstraints:n,panelIndex:O,size:y});if(ur(x,S)||(m-=S-x,s[O]=S),ur(m,0))break;t>0?O--:O++}}}const u=s.reduce((f,d)=>d+f,0);return ur(u,100)?s:i}function Cfe({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,s=0;const a=n[0];Ve(a!=null,"No pivot index found"),e.forEach((f,d)=>{const{constraints:p}=f,{maxSize:g=100,minSize:m=0}=p;d===a?(r=m,i=g):(o+=m,s+=g)});const l=Math.min(i,100-o),c=Math.max(r,100-s),u=t[a];return{valueMax:l,valueMin:c,valueNow:u}}function Zu(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function m_(t,e,n=document){const i=Zu(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function v_(t,e,n){const r=m_(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function O_(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Qg(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function Pfe(t,e,n,r=document){var i,o,s,a;const l=Qg(e,r),c=Zu(t,r),u=l?c.indexOf(l):-1,f=(i=(o=n[u])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,d=(s=(a=n[u+1])===null||a===void 0?void 0:a.id)!==null&&s!==void 0?s:null;return[f,d]}function Afe({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:s}){Gn({didWarnAboutMissingResizeHandle:!1}),Ns(()=>{if(!o)return;const a=Zu(n,o);for(let l=0;l<i.length-1;l++){const{valueMax:c,valueMin:u,valueNow:f}=Cfe({layout:r,panelsArray:i,pivotIndices:[l,l+1]}),d=a[l];if(d!=null){const p=i[l];Ve(p,`No panel data found for index "${l}"`),d.setAttribute("aria-controls",p.id),d.setAttribute("aria-valuemax",""+Math.round(c)),d.setAttribute("aria-valuemin",""+Math.round(u)),d.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Ms(()=>{if(!o)return;const a=e.current;Ve(a,"Eager values not found");const{panelDataArray:l}=a,c=O_(n,o);Ve(c!=null,`No group found for id "${n}"`);const u=Zu(n,o);Ve(u,`No resize handles found for group id "${n}"`);const f=u.map(d=>{const p=d.getAttribute("data-panel-resize-handle-id");Ve(p,"Resize handle element has no handle id attribute");const[g,m]=Pfe(n,p,l,o);if(g==null||m==null)return()=>{};const v=O=>{if(!O.defaultPrevented)switch(O.key){case"Enter":{O.preventDefault();const x=l.findIndex(y=>y.id===g);if(x>=0){const y=l[x];Ve(y,`No panel data found for index ${x}`);const S=r[x],{collapsedSize:b=0,collapsible:w,minSize:C=0}=y.constraints;if(S!=null&&w){const P=Vc({delta:ur(S,b)?C-b:b-S,initialLayout:r,panelConstraints:l.map(A=>A.constraints),pivotIndices:v_(n,p,o),prevLayout:r,trigger:"keyboard"});r!==P&&s(P)}}break}}};return d.addEventListener("keydown",v),()=>{d.removeEventListener("keydown",v)}});return()=>{f.forEach(d=>d())}},[o,t,e,n,r,i,s])}function GE(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function x_(t,e){const n=t==="horizontal",{x:r,y:i}=Ng(e);return n?r:i}function kfe(t,e,n,r,i){const o=n==="horizontal",s=Qg(e,i);Ve(s,`No resize handle element found for id "${e}"`);const a=s.getAttribute("data-panel-group-id");Ve(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=x_(n,t),u=O_(a,i);Ve(u,`No group element found for id "${a}"`);const f=u.getBoundingClientRect(),d=o?f.width:f.height;return(c-l)/d*100}function Efe(t,e,n,r,i,o){if(l_(t)){const s=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let l=0;switch(t.key){case"ArrowDown":l=s?0:a;break;case"ArrowLeft":l=s?-a:0;break;case"ArrowRight":l=s?a:0;break;case"ArrowUp":l=s?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:kfe(t,e,n,r,o)}function Ife({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const s=n[o];Ve(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const s=n[o];Ve(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;if(a!=null)continue;const l=t.length-r,c=i/l;r++,e[o]=c,i-=c}return e}function Aa(t,e,n){e.forEach((r,i)=>{const o=t[i];Ve(o,`Panel data not found for index ${i}`);const{callbacks:s,constraints:a,id:l}=o,{collapsedSize:c=0,collapsible:u}=a,f=n[l];if(f==null||r!==f){n[l]=r;const{onCollapse:d,onExpand:p,onResize:g}=s;g&&g(r,f),u&&(d||p)&&(p&&(f==null||Ki(f,c))&&!Ki(r,c)&&p(),d&&(f==null||!Ki(f,c))&&Ki(r,c)&&d())}})}function Pd(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tfe({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const s=n[i];let a;return s==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=s.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function $fe(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function UE(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function y_(t){return`react-resizable-panels:${t}`}function b_(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function S_(t,e){try{const n=y_(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function jfe(t,e,n){var r,i;const o=(r=S_(t,n))!==null&&r!==void 0?r:{},s=b_(e);return(i=o[s])!==null&&i!==void 0?i:null}function _fe(t,e,n,r,i){var o;const s=y_(t),a=b_(e),l=(o=S_(t,i))!==null&&o!==void 0?o:{};l[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(s,JSON.stringify(l))}catch(c){console.error(c)}}function YE({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,s)=>o+s,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!ur(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=100/r*s;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=Ga({panelConstraints:e,panelIndex:o,size:s});s!=a&&(i+=s-a,n[o]=a)}if(!ur(i,0))for(let o=0;o<e.length;o++){const s=n[o];Ve(s!=null,`No layout data found for index ${o}`);const a=s+i,l=Ga({panelConstraints:e,panelIndex:o,size:a});if(s!==l&&(i-=l-s,n[o]=l,ur(i,0)))break}return n}const Rfe=100,zc={getItem:t=>(UE(zc),zc.getItem(t)),setItem:(t,e)=>{UE(zc),zc.setItem(t,e)}},HE={};function w_({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:s=null,keyboardResizeBy:a=null,storage:l=zc,style:c,tagName:u="div",...f}){const d=Kb(o),p=Gn(null),[g,m]=fl(null),[v,O]=fl([]),x=Sfe(),y=Gn({}),S=Gn(new Map),b=Gn(0),w=Gn({autoSaveId:t,direction:r,dragState:g,id:d,keyboardResizeBy:a,onLayout:s,storage:l}),C=Gn({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Gn({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),s_(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:R}=C.current;return R},setLayout:R=>{const{onLayout:D}=w.current,{layout:G,panelDataArray:F}=C.current,te=YE({layout:R,panelConstraints:F.map(W=>W.constraints)});GE(G,te)||(O(te),C.current.layout=te,D&&D(te),Aa(F,te,y.current))}}),[]),Ns(()=>{w.current.autoSaveId=t,w.current.direction=r,w.current.dragState=g,w.current.id=d,w.current.onLayout=s,w.current.storage=l}),Afe({committedValuesRef:w,eagerValuesRef:C,groupId:d,layout:v,panelDataArray:C.current.panelDataArray,setLayout:O,panelGroupElement:p.current}),Ms(()=>{const{panelDataArray:R}=C.current;if(t){if(v.length===0||v.length!==R.length)return;let D=HE[t];D==null&&(D=$fe(_fe,Rfe),HE[t]=D);const G=[...R],F=new Map(S.current);D(t,G,F,v,l)}},[t,v,l]),Ms(()=>{});const P=Wn(R=>{const{onLayout:D}=w.current,{layout:G,panelDataArray:F}=C.current;if(R.constraints.collapsible){const te=F.map(fe=>fe.constraints),{collapsedSize:W=0,panelSize:le,pivotIndices:ae}=ys(F,R,G);if(Ve(le!=null,`Panel size not found for panel "${R.id}"`),!Ki(le,W)){S.current.set(R.id,le);const K=Na(F,R)===F.length-1?le-W:W-le,ue=Vc({delta:K,initialLayout:G,panelConstraints:te,pivotIndices:ae,prevLayout:G,trigger:"imperative-api"});Pd(G,ue)||(O(ue),C.current.layout=ue,D&&D(ue),Aa(F,ue,y.current))}}},[]),A=Wn((R,D)=>{const{onLayout:G}=w.current,{layout:F,panelDataArray:te}=C.current;if(R.constraints.collapsible){const W=te.map(ne=>ne.constraints),{collapsedSize:le=0,panelSize:ae=0,minSize:fe=0,pivotIndices:K}=ys(te,R,F),ue=D??fe;if(Ki(ae,le)){const ne=S.current.get(R.id),de=ne!=null&&ne>=ue?ne:ue,we=Na(te,R)===te.length-1?ae-de:de-ae,Ce=Vc({delta:we,initialLayout:F,panelConstraints:W,pivotIndices:K,prevLayout:F,trigger:"imperative-api"});Pd(F,Ce)||(O(Ce),C.current.layout=Ce,G&&G(Ce),Aa(te,Ce,y.current))}}},[]),I=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{panelSize:F}=ys(G,R,D);return Ve(F!=null,`Panel size not found for panel "${R.id}"`),F},[]),T=Wn((R,D)=>{const{panelDataArray:G}=C.current,F=Na(G,R);return Tfe({defaultSize:D,dragState:g,layout:v,panelData:G,panelIndex:F})},[g,v]),j=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{collapsedSize:F=0,collapsible:te,panelSize:W}=ys(G,R,D);return Ve(W!=null,`Panel size not found for panel "${R.id}"`),te===!0&&Ki(W,F)},[]),B=Wn(R=>{const{layout:D,panelDataArray:G}=C.current,{collapsedSize:F=0,collapsible:te,panelSize:W}=ys(G,R,D);return Ve(W!=null,`Panel size not found for panel "${R.id}"`),!te||Gs(W,F)>0},[]),V=Wn(R=>{const{panelDataArray:D}=C.current;D.push(R),D.sort((G,F)=>{const te=G.order,W=F.order;return te==null&&W==null?0:te==null?-1:W==null?1:te-W}),C.current.panelDataArrayChanged=!0,x()},[x]);Ns(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:R,onLayout:D,storage:G}=w.current,{layout:F,panelDataArray:te}=C.current;let W=null;if(R){const ae=jfe(R,te,G);ae&&(S.current=new Map(Object.entries(ae.expandToSizes)),W=ae.layout)}W==null&&(W=Ife({panelDataArray:te}));const le=YE({layout:W,panelConstraints:te.map(ae=>ae.constraints)});GE(F,le)||(O(le),C.current.layout=le,D&&D(le),Aa(te,le,y.current))}}),Ns(()=>{const R=C.current;return()=>{R.layout=[]}},[]);const Q=Wn(R=>{let D=!1;const G=p.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(D=!0),function(te){te.preventDefault();const W=p.current;if(!W)return()=>null;const{direction:le,dragState:ae,id:fe,keyboardResizeBy:K,onLayout:ue}=w.current,{layout:ne,panelDataArray:de}=C.current,{initialLayout:Pe}=ae??{},we=v_(fe,R,W);let Ce=Efe(te,R,le,ae,K,W);const rt=le==="horizontal";rt&&D&&(Ce=-Ce);const Me=de.map(re=>re.constraints),me=Vc({delta:Ce,initialLayout:Pe??ne,panelConstraints:Me,pivotIndices:we,prevLayout:ne,trigger:l_(te)?"keyboard":"mouse-or-touch"}),_e=!Pd(ne,me);(c_(te)||u_(te))&&b.current!=Ce&&(b.current=Ce,!_e&&Ce!==0?rt?yv(R,Ce<0?d_:h_):yv(R,Ce<0?p_:g_):yv(R,0)),_e&&(O(me),C.current.layout=me,ue&&ue(me),Aa(de,me,y.current))}},[]),z=Wn((R,D)=>{const{onLayout:G}=w.current,{layout:F,panelDataArray:te}=C.current,W=te.map(ne=>ne.constraints),{panelSize:le,pivotIndices:ae}=ys(te,R,F);Ve(le!=null,`Panel size not found for panel "${R.id}"`);const K=Na(te,R)===te.length-1?le-D:D-le,ue=Vc({delta:K,initialLayout:F,panelConstraints:W,pivotIndices:ae,prevLayout:F,trigger:"imperative-api"});Pd(F,ue)||(O(ue),C.current.layout=ue,G&&G(ue),Aa(te,ue,y.current))},[]),U=Wn((R,D)=>{const{layout:G,panelDataArray:F}=C.current,{collapsedSize:te=0,collapsible:W}=D,{collapsedSize:le=0,collapsible:ae,maxSize:fe=100,minSize:K=0}=R.constraints,{panelSize:ue}=ys(F,R,G);ue!=null&&(W&&ae&&Ki(ue,te)?Ki(te,le)||z(R,le):ue<K?z(R,K):ue>fe&&z(R,fe))},[z]),Z=Wn((R,D)=>{const{direction:G}=w.current,{layout:F}=C.current;if(!p.current)return;const te=Qg(R,p.current);Ve(te,`Drag handle element not found for id "${R}"`);const W=x_(G,D);m({dragHandleId:R,dragHandleRect:te.getBoundingClientRect(),initialCursorPosition:W,initialLayout:F})},[]),Y=Wn(()=>{m(null)},[]),N=Wn(R=>{const{panelDataArray:D}=C.current,G=Na(D,R);G>=0&&(D.splice(G,1),delete y.current[R.id],C.current.panelDataArrayChanged=!0,x())},[x]),L=lfe(()=>({collapsePanel:P,direction:r,dragState:g,expandPanel:A,getPanelSize:I,getPanelStyle:T,groupId:d,isPanelCollapsed:j,isPanelExpanded:B,reevaluatePanelConstraints:U,registerPanel:V,registerResizeHandle:Q,resizePanel:z,startDragging:Z,stopDragging:Y,unregisterPanel:N,panelGroupElement:p.current}),[P,g,r,A,I,T,d,j,B,U,V,Q,z,Z,Y,N]),M={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Bl(Mg.Provider,{value:L},Bl(u,{...f,children:e,className:n,id:o,ref:p,style:{...M,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":d}))}const C_=i_((t,e)=>Bl(w_,{...t,forwardedRef:e}));w_.displayName="PanelGroup";C_.displayName="forwardRef(PanelGroup)";function Na(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function ys(t,e,n){const r=Na(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],s=n[r];return{...e.constraints,panelSize:s,pivotIndices:o}}function Dfe({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Ms(()=>{if(t||n==null||r==null)return;const i=Qg(e,r);if(i==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),n(s);break}case"F6":{s.preventDefault();const a=i.getAttribute("data-panel-group-id");Ve(a,`No group element found for id "${a}"`);const l=Zu(a,r),c=m_(a,e,r);Ve(c!==null,`No resize element found for id "${e}"`);const u=s.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function P_({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:s,onFocus:a,style:l={},tabIndex:c=0,tagName:u="div",...f}){var d,p;const g=Gn(null),m=Gn({onDragging:s});Ms(()=>{m.current.onDragging=s});const v=o_(Mg);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:O,groupId:x,registerResizeHandle:y,startDragging:S,stopDragging:b,panelGroupElement:w}=v,C=Kb(i),[P,A]=fl("inactive"),[I,T]=fl(!1),[j,B]=fl(null),V=Gn({state:P});Ns(()=>{V.current.state=P}),Ms(()=>{if(n)B(null);else{const Z=y(C);B(()=>Z)}},[n,C,y]);const Q=(d=r==null?void 0:r.coarse)!==null&&d!==void 0?d:15,z=(p=r==null?void 0:r.fine)!==null&&p!==void 0?p:5;return Ms(()=>{if(n||j==null)return;const Z=g.current;return Ve(Z,"Element ref not attached"),bfe(C,Z,O,{coarse:Q,fine:z},(N,L,M)=>{if(L)switch(N){case"down":{A("drag"),Ve(M,'Expected event to be defined for "down" action'),S(C,M);const{onDragging:R}=m.current;R&&R(!0);break}case"move":{const{state:R}=V.current;R!=="drag"&&A("hover"),Ve(M,'Expected event to be defined for "move" action'),j(M);break}case"up":{A("hover"),b();const{onDragging:R}=m.current;R&&R(!1);break}}else A("inactive")})},[Q,O,n,z,y,C,j,S,b]),Dfe({disabled:n,handleId:C,resizeHandler:j,panelGroupElement:w}),Bl(u,{...f,children:t,className:e,id:i,onBlur:()=>{T(!1),o==null||o()},onFocus:()=>{T(!0),a==null||a()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...l},tabIndex:c,"data-panel-group-direction":O,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":P==="drag"?"pointer":I?"keyboard":void 0,"data-resize-handle-state":P,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":C})}P_.displayName="PanelResizeHandle";const A_=E.createContext({isMobile:!1,activeTab:"Request",MobileHeader:()=>null,setActiveTab:()=>null,closeButton:null}),ei=()=>E.useContext(A_);function Mfe(){var l;const t=E.useRef(null),[e,n]=E.useState(((l=t.current)==null?void 0:l.isCollapsed())||!0),r=()=>{t.current&&(t.current.collapse(),n(!0))},i=()=>{t.current&&(t.current.expand(),n(!1))};return{panelProps:{ref:t,collapsible:!0,onCollapse:r,onExpand:i},panel:{isCollapsed:e,collapse:r,expand:i,toggle:()=>{t.current&&(e?t.current.expand():t.current.collapse(),n(!e))}}}}const Ee=k.div`
|
|
678
678
|
border-right: 1px solid var(--border-color-secondary);
|
|
679
679
|
align-self: stretch;
|
|
680
680
|
`;function Ft(){const{environments:t,activeEnvironmentId:e}=at(),n=E.useMemo(()=>e.get(),[e]);return E.useMemo(()=>t.find(o=>o.get().name===n)||t[0],[t,n])}function Nfe(t){const e=(t.match(/{([^}]+)}/g)||[]).map(n=>n.slice(1,-1));return Array.from(new Set(e))}function Bfe(t){var o;const e=(o=t.servers.ornull)==null?void 0:o[0];if(!e)return{url:"",variables:[]};const n=e.url.get(),i=Nfe(n).map(s=>{var a,l;return{name:s,value:((l=(a=e.variables.ornull)==null?void 0:a[s])==null?void 0:l.default.get())||""}});return{url:n,variables:i}}function Qfe(){const t=at();function e(n){const r=t.apis.find(s=>s.id.get()===n);if(!r){console.error(`API ${n} not found`);return}const{url:i,variables:o}=Bfe(r);t.environments.forEach(s=>{s.servers.find(l=>l.apiId.get()===n)||s.servers.merge([{apiId:n,value:i,variables:o}])})}return{attachApiServerToEnvironments:e}}function Lfe({apiName:t="new-api-source",sourceDescriptions:e}){let n=t.replaceAll(/[\s.]/g,"-").toLowerCase();if(!e.length)return n;const r=e.map(i=>i.name.get());if(r.includes(n)){let i=1;for(;r.includes(`${n}-${i}`);)i++;n=`${n}-${i}`}return n}function k_(){const t=at(),{attachApiServerToEnvironments:e}=Qfe();async function n({collectionId:r,apiId:i}){const o=t.collections.find(a=>a.id.get()===r);if(!o)return;if(!o.sourceDescriptions.find(a=>a.apiId.get()===i)){const a=t.apis.find(u=>u.id.get()===i),l=Lfe({apiName:a==null?void 0:a.info.title.get(),sourceDescriptions:o.sourceDescriptions}),c=await qi.relative(`/${r}/..`,`/${i}`);o.sourceDescriptions.merge([{name:l,url:c,apiId:i}])}e(i)}return{attachApiToCollection:n}}function rS(){const t=at(),{attachApiToCollection:e}=k_();function n({collectionId:i,workflowId:o,stepId:s}){var l,c;return((c=(l=t.collections.find(u=>u.id.get()===i))==null?void 0:l.workflows.find(u=>u.workflowId.get()===o))==null?void 0:c.steps.find(u=>u.stepId.get()===s))??null}async function r({collectionId:i,workflowId:o,stepId:s},a){var f;const l=n({collectionId:i,workflowId:o,stepId:s});if(!l)return alert("Step not found");const c=Ii(a.get({noproxy:!0}));l.set(c);const u=(f=c.operation)==null?void 0:f.apiId;i&&u&&await e({collectionId:i,apiId:u})}return{getStep:n,replaceStep:r}}function Ffe({collectionId:t,workflowId:e,stepId:n}){const i=at().collections.find(a=>a.id.get()===t);if(!i)return null;const o=i.workflows.find(a=>a.workflowId.get()===e);return o?o.steps.find(a=>a.stepId.get()===n)??null:null}const ff="Documented",Vfe="Other";function Lg(t,e){if(!t.length)return e;const n=e.filter(({value:i})=>!t.includes(i)),r=e.filter(({value:i})=>t.includes(i));return[{label:ff,options:r},{label:Vfe,options:n}]}const ss=({children:t,className:e,onClickOutside:n})=>{const r=E.useRef(null);E.useEffect(()=>(document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}));const i=o=>{r.current&&!r.current.contains(o.target)&&(n==null||n(o))};return h.jsx(zfe,{ref:r,className:e,children:t})},zfe=k.div`
|
|
@@ -9621,7 +9621,7 @@ function kg() {
|
|
|
9621
9621
|
}
|
|
9622
9622
|
const ji = class ji {
|
|
9623
9623
|
static async getUtils() {
|
|
9624
|
-
return ji.utils || (ji.utils = kg() ? await import("./replay-tauri-path-
|
|
9624
|
+
return ji.utils || (ji.utils = kg() ? await import("./replay-tauri-path-D3byCSRl.js") : await Promise.resolve().then(() => cF)), ji.utils;
|
|
9625
9625
|
}
|
|
9626
9626
|
static async join(...e) {
|
|
9627
9627
|
return (await ji.getUtils()).join(...e);
|
|
@@ -42804,6 +42804,7 @@ class Goe {
|
|
|
42804
42804
|
ne(this, "config", null);
|
|
42805
42805
|
ne(this, "tracer", null);
|
|
42806
42806
|
ne(this, "tracerProvider", null);
|
|
42807
|
+
ne(this, "initialized", !1);
|
|
42807
42808
|
ne(this, "getKeySnakeValue", (e) => e.replace(/([A-Z])/g, "_$1").toLowerCase());
|
|
42808
42809
|
}
|
|
42809
42810
|
initTracer(e) {
|
|
@@ -42887,8 +42888,11 @@ class Uoe extends Goe {
|
|
|
42887
42888
|
super();
|
|
42888
42889
|
ne(this, "tracerProvider", null);
|
|
42889
42890
|
ne(this, "tracer", null);
|
|
42891
|
+
ne(this, "initialized", !1);
|
|
42890
42892
|
}
|
|
42891
42893
|
initTracer(n) {
|
|
42894
|
+
if (!n.collectorUrl && !n.collectorTraceUrl)
|
|
42895
|
+
return;
|
|
42892
42896
|
const r = `ses_${tf()}`, i = bj({
|
|
42893
42897
|
[fj]: n.serviceName,
|
|
42894
42898
|
[Mre]: n.serviceVersion,
|
|
@@ -42906,7 +42910,7 @@ class Uoe extends Goe {
|
|
|
42906
42910
|
]
|
|
42907
42911
|
}), this.tracer = this.tracerProvider.getTracer(n.tracerName), this.tracerProvider.register(), Xoe({
|
|
42908
42912
|
instrumentations: n.instrumentations ?? []
|
|
42909
|
-
});
|
|
42913
|
+
}), this.initialized = !0;
|
|
42910
42914
|
}
|
|
42911
42915
|
}
|
|
42912
42916
|
class Yoe {
|
|
@@ -43070,7 +43074,7 @@ const n0 = Er({});
|
|
|
43070
43074
|
function cS() {
|
|
43071
43075
|
return fn(n0) || {};
|
|
43072
43076
|
}
|
|
43073
|
-
const ese = "0.15.0-next.
|
|
43077
|
+
const ese = "0.15.0-next.12", tse = {
|
|
43074
43078
|
version: ese
|
|
43075
43079
|
};
|
|
43076
43080
|
class nse {
|
|
@@ -50855,7 +50859,7 @@ async function Ade(t, e) {
|
|
|
50855
50859
|
o || []
|
|
50856
50860
|
), B = !!L.match(/^https?:\/\//) ? L : `https://${L}`, D = await Js(B, {
|
|
50857
50861
|
signal: p,
|
|
50858
|
-
method: w,
|
|
50862
|
+
method: w.toUpperCase(),
|
|
50859
50863
|
headers: N,
|
|
50860
50864
|
body: F || void 0,
|
|
50861
50865
|
mode: E || F1(B) ? "same-origin" : "cors",
|
|
@@ -50892,7 +50896,7 @@ async function Ede(t, e, n, r) {
|
|
|
50892
50896
|
if (a) {
|
|
50893
50897
|
const l = await Js(e, {
|
|
50894
50898
|
signal: r,
|
|
50895
|
-
method: s,
|
|
50899
|
+
method: s.toUpperCase(),
|
|
50896
50900
|
mode: n || F1(e) ? "same-origin" : "cors"
|
|
50897
50901
|
}), c = EV(l.headers.get("WWW-Authenticate") || "");
|
|
50898
50902
|
a[U.DigestAuth].merge({
|
|
@@ -50983,8 +50987,8 @@ function $de(t, e) {
|
|
|
50983
50987
|
return n == null || delete n.parameters.pathParameters, r == null || delete r.parameters.pathParameters, T1(n, r);
|
|
50984
50988
|
}
|
|
50985
50989
|
function _S(t, e) {
|
|
50986
|
-
const { requestBody: n } = t, { method: r } = nc(t);
|
|
50987
|
-
if (
|
|
50990
|
+
const { requestBody: n } = t, { method: r } = nc(t), i = r.toUpperCase();
|
|
50991
|
+
if (i === "GET" || i === "HEAD" || i === "OPTIONS")
|
|
50988
50992
|
return null;
|
|
50989
50993
|
try {
|
|
50990
50994
|
switch (n.type) {
|
|
@@ -50999,8 +51003,8 @@ function _S(t, e) {
|
|
|
50999
51003
|
default:
|
|
51000
51004
|
return Xt(n.content, e);
|
|
51001
51005
|
}
|
|
51002
|
-
} catch (
|
|
51003
|
-
console.error(
|
|
51006
|
+
} catch (o) {
|
|
51007
|
+
console.error(o);
|
|
51004
51008
|
}
|
|
51005
51009
|
}
|
|
51006
51010
|
function jde(t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CqM6DOva.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as h, r } from "./replay-index-
|
|
2
|
-
import { i as j, j as u } from "./replay-index-
|
|
1
|
+
import { s as h, r } from "./replay-index-ZG3VBaUg.js";
|
|
2
|
+
import { i as j, j as u } from "./replay-index-ZG3VBaUg.js";
|
|
3
3
|
async function x(s, i) {
|
|
4
4
|
const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), a = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, a.length);
|
|
5
5
|
let n = 0;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CqM6DOva.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;exports.utils=e.utils;
|
package/dist/replay.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.15.0-next.
|
|
3
|
+
"version": "0.15.0-next.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"react-router-dom": "^6.21.1",
|
|
21
21
|
"styled-components": "^5.3.11",
|
|
22
|
-
"@redocly/theme": "0.56.0-next.
|
|
22
|
+
"@redocly/theme": "0.56.0-next.9"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|