PageSourceSearch

https://analyse-trading.com/_next/static/chunks/1gmrzi-bkck-4.js?dpl=dpl_4jzCvbPdnE35UpAS9x8nErbjcovs

js analyse-trading.com collected 2026-09-24 14:11:00 UTC 41,458 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78183,e=>{"use strict";let t=new Set(["www.paypal.com","www.sandbox.paypal.com","paypal.com","sandbox.paypal.com"]);function r(e){if("string"!=typeof e||!e)return"#";let t=e.trim();return t?/^(https?:\/\/|mailto:|tel:|\/|#)/i.test(t)?t:/^[a-z][a-z0-9+.-]*:/i.test(t)?"#":t:"#"}e.s(["gotoPaypal",0,function(e){return e&&function(e){try{let r=new URL(e);return"https:"===r.protocol&&t.has(r.host)}catch{return!1}}(e)?(window.location.href=e,!0):(alert("URL de paiement invalide. Réessayez ou contactez le support."),!1)},"safeCssUrl",0,function(e){let t=r(e);if("#"===t)return"";let n=encodeURI(t).replace(/"/g,"%22").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29");return`url("${n}")`},"safeHref",0,r])},67034,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),f=0,c=s>0?a-4:a;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[f++]=t>>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=a(o),l=u.write(n,i);return l!==o&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(S(e,ArrayBuffer)||e&&S(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(e,SharedArrayBuffer)||e&&S(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var f=e.valueOf&&e.valueOf();if(null!=f&&f!==e)return s.from(f,t,r);var d=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),a(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||S(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(i)return n?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=T[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else -1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){c=!1;break}if(c)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),S(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(S(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?x(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,u=Math.min(o,a),l=this.slice(n,i),f=e.slice(t,r),c=0;c<u;++c)if(l[c]!==f[c]){o=l[c],a=f[c];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],f=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c<=r)switch(c){case 1:l<128&&(f=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return d}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,f,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(t.substr(2*a,2),16);if((s=u)!=s)break;e[r+a]=u}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,C(B(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,C(R(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return C(R(t),e,r,n)}(this,e,t,r);case"base64":return u=t,l=r,C(k(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,C(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function B(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function R(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function k(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function S(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,c=r?i-1:0,h=r?-1:1,p=e[t+c];for(c+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+c],c+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+c],c+=h,f-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*g}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},a=!0;try{n[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=o(72)},10821,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(74080),i=e.i(61745),o=e.i(48148);e.s(["default",0,function({onPick:e,size:a=36,className:s="",title:u,disabled:l}){let f=(0,o.useTranslations)("gifPicker"),c=(0,i.useLocale)(),[h,p]=(0,r.useState)(!1),[d,g]=(0,r.useState)({top:0,left:0}),[y,m]=(0,r.useState)(""),[x,b]=(0,r.useState)([]),[v,w]=(0,r.useState)(!1),[j,E]=(0,r.useState)(null),A=(0,r.useRef)(null),B=(0,r.useRef)(null),R=(0,r.useRef)(null),k=(0,r.useRef)(null),C=(0,r.useRef)(!1),S=(0,r.useCallback)(async e=>{w(!0),E(null);try{let t=e.trim()?`/api/gifs/search?q=${encodeURIComponent(e.trim())}&limit=24&lang=${c}`:`/api/gifs/trending?limit=24&lang=${c}`,r=await fetch(`https://api.analyse-trading.com${t}`,{credentials:"include"});if(503===r.status){E(f("unavailable")||"Recherche GIF indisponible pour le moment."),b([]);return}if(!r.ok){E(f("error")||"Erreur de chargement."),b([]);return}let n=await r.json();b((n.gifs||[]).filter(e=>e.preview&&e.full))}catch{E(f("error")||"Erreur de chargement."),b([])}finally{w(!1)}},[c,f]);return(0,r.useEffect)(()=>{if(h)return k.current&&clearTimeout(k.current),k.current=setTimeout(()=>S(y),350*!!y.trim()),()=>{k.current&&clearTimeout(k.current)}},[y,h]),(0,r.useEffect)(()=>{if(!h)return;let e=e=>{A.current?.contains(e.target)||B.current?.contains(e.target)||p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{ref:A,type:"button",onClick:()=>{if(!l){if(!h&&A.current){let e=A.current.getBoundingClientRect(),t=window.innerWidth,r=window.innerHeight,n=e.left;n+340>t-8&&(n=Math.max(8,t-340-8));let i=e.bottom+8;i+420>
1r-8&&(i=Math.max(8,e.top-420-8)),g({top:i,left:n}),C.current||(C.current=!0,S("")),setTimeout(()=>R.current?.focus(),50)}p(e=>!e)}},disabled:l,"aria-label":u||f("buttonLabel")||"GIF",title:u||f("buttonLabel")||"GIF",className:`rounded-lg flex items-center justify-center font-bold tracking-tight transition-all leading-none disabled:opacity-40 disabled:cursor-not-allowed ${h?"bg-accent-blue/20 text-accent-blue":"text-text-muted hover:bg-bg-hover hover:text-accent-blue"} ${s}`,style:{width:a,height:a,fontSize:Math.round(.32*a)},children:"GIF"}),h&&"u">typeof document&&(0,n.createPortal)((0,t.jsxs)("div",{ref:B,style:{position:"fixed",top:d.top,left:d.left,width:340,height:420,zIndex:9999},className:"bg-bg-card border border-border rounded-xl shadow-xl flex flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"p-2 border-b border-border shrink-0",children:(0,t.jsx)("input",{ref:R,type:"text",value:y,onChange:e=>m(e.target.value),placeholder:f("searchPlaceholder")||"Rechercher un GIF...",className:"w-full h-8 px-3 rounded-lg bg-bg-primary border border-border text-[13px] text-text-primary placeholder:text-text-muted focus:outline-none focus:border-accent-blue"})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:v&&0===x.length?(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-[12px] text-text-muted",children:f("loading")||"Chargement…"}):j?(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-[12px] text-text-muted text-center px-4",children:j}):0===x.length?(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-[12px] text-text-muted text-center px-4",children:f("empty")||"Aucun GIF trouvé."}):(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1.5",children:x.map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{r.full&&(e(r.full.url),p(!1),m(""))},title:r.title||"GIF",className:"relative rounded-lg overflow-hidden bg-bg-primary hover:ring-2 hover:ring-accent-blue transition-all aspect-square",children:r.preview&&(0,t.jsx)("img",{src:r.preview.url,alt:r.title||"GIF",loading:"lazy",className:"absolute inset-0 w-full h-full object-cover"})},r.id))})}),(0,t.jsx)("div",{className:"px-2 py-1.5 border-t border-border shrink-0 text-center",children:(0,t.jsx)("span",{className:"text-[10px] text-text-muted",children:f("poweredBy")||"GIFs via GIPHY"})})]}),document.body)]})}])},94803,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(48148);function i(e,t){if(0===e.length)return Array(t).fill(0);if(e.length<=t)return e.concat(Array(t-e.length).fill(0));let r=e.length/t,n=[];for(let i=0;i<t;i++){let t=Math.floor(i*r),o=Math.floor((i+1)*r),a=0,s=0;for(let r=t;r<o;r++)a+=e[r]||0,s++;n.push(s>0?a/s:0)}return n}function o(e){let t=Math.floor(e/1e3),r=Math.floor(t/60);return`${r}:${(t%60).toString().padStart(2,"0")}`}let a=({size:e=18})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M12 2a3 3 0 00-3 3v7a3 3 0 006 0V5a3 3 0 00-3-3z"}),(0,t.jsx)("path",{d:"M19 10v2a7 7 0 01-14 0v-2"}),(0,t.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,t.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}),s=({size:e=14})=>(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"1"})}),u=({size:e=14})=>(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("polygon",{points:"6,4 20,12 6,20"})}),l=({size:e=14})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:[(0,t.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,t.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}),f=({size:e=15})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,t.jsx)("path",{d:"M19 6l-2 14a2 2 0 01-2 2H9a2 2 0 01-2-2L5 6"}),(0,t.jsx)("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),(0,t.jsx)("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]}),c=({size:e=14})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,t.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]}),h=(0,r.forwardRef)(function({onComplete:e,onCancel:h,compact:p,className:d,onStateChange:g,renderIdleAs:y="button"},m){let x=(0,n.useTranslations)("voiceRecorder"),[b,v]=(0,r.useState)("idle"),[w,j]=(0,r.useState)(null),[E,A]=(0,r.useState)(0),[B,R]=(0,r.useState)([]),[k,C]=(0,r.useState)(null),S=(0,r.useRef)(null),[T,N]=(0,r.useState)(!1),[U,M]=(0,r.useState)(0),L=(0,r.useRef)(null),I=(0,r.useRef)(null),O=(0,r.useRef)(null),P=(0,r.useRef)(null),$=(0,r.useRef)(null),F=(0,r.useRef)([]),z=(0,r.useRef)(0),_=(0,r.useRef)(null),D=(0,r.useRef)([]),G=(0,r.useRef)(null),q=(0,r.useRef)("audio/webm"),V=(0,r.useRef)(null),W=(0,r.useRef)(b);(0,r.useEffect)(()=>{W.current=b,g?.(b)},[b,g]);let Y=(0,r.useCallback)(()=>
1{if(_.current&&(cancelAnimationFrame(_.current),_.current=null),G.current&&(clearInterval(G.current),G.current=null),P.current){try{P.current.disconnect()}catch{}P.current=null}if(I.current){try{I.current.close()}catch{}I.current=null}$.current&&($.current.getTracks().forEach(e=>{try{e.stop()}catch{}}),$.current=null),L.current=null,O.current=null},[]);(0,r.useEffect)(()=>()=>{Y(),k&&k!==S.current&&URL.revokeObjectURL(k)},[Y,k]);let H=(0,r.useCallback)(async()=>{j(null),D.current=[],F.current=[],R([]),A(0);let e=function(){if("u"<typeof MediaRecorder)return null;for(let e of["audio/webm;codecs=opus","audio/webm","audio/mp4;codecs=mp4a.40.2","audio/mp4","audio/aac","audio/ogg;codecs=opus","audio/ogg"])try{if(MediaRecorder.isTypeSupported(e))return e}catch{}return null}();if(!e)return void j(x("noAudioSupport"));q.current=e;try{let t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});$.current=t;let r=new(window.AudioContext||window.webkitAudioContext);I.current=r;let n=r.createMediaStreamSource(t),o=r.createAnalyser();o.fftSize=512,o.smoothingTimeConstant=.4,n.connect(o),P.current=n,O.current=o;let a=new MediaRecorder(t,{mimeType:e,audioBitsPerSecond:32e3});L.current=a,a.ondataavailable=e=>{e.data&&e.data.size>0&&F.current.push(e.data)},a.start(100),z.current=Date.now(),v("recording");let s=new Uint8Array(o.frequencyBinCount),u=()=>{o.getByteTimeDomainData(s);let e=0;for(let t=0;t<s.length;t++){let r=Math.abs(s[t]-128)/128;r>e&&(e=r)}D.current.push(e),R(i(D.current,60)),_.current=requestAnimationFrame(u)};u(),G.current=window.setInterval(()=>{let e=Date.now()-z.current;A(e),e>=6e5&&X()},100)}catch(e){j(e?.name==="NotAllowedError"||e?.message?.includes("Permission")?x("micDenied"):x("micError")),Y(),v("idle")}},[Y]),X=(0,r.useCallback)(()=>{if(L.current&&"inactive"!==L.current.state)try{L.current.stop()}catch{}let e=Date.now()-z.current,t=F.current,r=q.current,n=i(D.current,60);if(Y(),0===t.length||e<500){j(x("tooShort")),v("idle");return}let o=new Blob(t,{type:r}),a=URL.createObjectURL(o);C(a),A(e),v("preview"),window.__voiceRecTemp={blob:o,mime:r,waveform:n,durationMs:e,url:a}},[Y]),K=(0,r.useCallback)(()=>{Y(),k&&URL.revokeObjectURL(k),window.__voiceRecTemp=null,C(null),R([]),A(0),M(0),N(!1),v("idle"),h?.()},[Y,k,h]),J=(0,r.useCallback)(()=>{let t=window.__voiceRecTemp;t&&(S.current=t.url,e({blob:t.blob,mimeType:t.mime,durationMs:t.durationMs,waveform:t.waveform,previewUrl:t.url}),window.__voiceRecTemp=null,C(null),R([]),A(0),M(0),N(!1),v("idle"))},[e]),Z=(0,r.useCallback)(()=>{let e=V.current;e&&(T?e.pause():e.play().catch(()=>{}))},[T]);if((0,r.useEffect)(()=>{let e=e=>{"recording"===W.current&&"Escape"===e.key?(e.preventDefault(),K()):"preview"===W.current&&("Escape"===e.key?(e.preventDefault(),K()):" "===e.key&&"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName&&(e.preventDefault(),Z()))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[K,Z]),(0,r.useImperativeHandle)(m,()=>({start:H}),[H]),"preview"===b&&k){let e=E>0?U/E:0;return(0,t.jsxs)("div",{className:`flex items-center gap-2 p-2 rounded-xl bg-bg-hover border border-border ${d||""}`,children:[(0,t.jsx)("button",{type:"button",onClick:K,className:"w-9 h-9 shrink-0 rounded-lg bg-red-500/15 text-red-400 hover:bg-red-500/25 flex items-center justify-center transition-colors","aria-label":x("deleteRecording"),title:x("deleteShortcut"),children:(0,t.jsx)(f,{})}),(0,t.jsx)("button",{type:"button",onClick:Z,className:"w-9 h-9 shrink-0 rounded-full bg-accent-blue text-white hover:opacity-90 flex items-center justify-center transition-opacity","aria-label":T?x("pause"):x("listen"),title:T?x("pauseShortcut"):x("listenShortcut"),children:T?(0,t.jsx)(l,{}):(0,t.jsx)(u,{})}),(0,t.jsx)("div",{className:"flex-1 flex items-center gap-[2px] h-8 min-w-0",children:B.slice(0,40).map((r,n)=>{let i=n/40;return(0,t.jsx)("span",{className:"flex-1 rounded-full transition-colors",style:{height:`${Math.max(15,100*r)}%`,backgroundColor:i<=e?"rgb(59 130 246)":"rgb(156 163 175 / 0.4)"}},n)})}),(0,t.jsxs)("span",{className:"text-[11px] text-text-muted tabular-nums font-mono min-w-[62px] text-right shrink-0",children:[o(U),(0,t.jsxs)("span",{className:"opacity-60",children:[" / ",o(E)]})]}),(0,t.jsxs)("button",{type:"button",onClick:J,className:"shrink-0 inline-flex items-center gap-1.5 px-3 py-2 rounded-lg bg-accent-blue text-white text-[12.5px] font-semibold hover:opacity-90 transition-opacity","aria-label":x("sendVoiceMessage"),children:[(0,t.jsx)(c,{}),(0,t.jsx)("span",{children:x("send")})]}),(0,t.jsx)("audio",{ref:V,src:k,onPlay:()=>N(!0),onPause:()=>N(!1),onEnded:()=>{N(!1),M(0)},onTimeUpdate:e=>M(Math.round(1e3*e.currentTarget.currentTime)),hidden:!0})]})}return"recording"===b?(0,t.jsxs)("div",{className:`flex items-center gap-2 p-2 rounded-xl bg-red-500/8 border border-red-500/30 ${d||""}`,children:[(0,t.jsx)("button",{type:"button",onClick:K,className:"w-9 h-9 shrink-0 rounded-lg bg-red-500/15 text-red-400 hover:bg-red-500/25 flex items-center justify-center transition-colors","aria-label":x("cancelRecording"),title:x("cancelShortcut"),children:(0,t.jsx)(f,{})}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,t.jsxs)("span",{className:"relative flex h-2.5 w-2.5",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-500 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-red-500"})]}),(0,t.jsx)("span",{className:"text-[12px] text-red-400 tabular-nums font-mono font-semibold min-w-[38px]",children:o(E)})]}),(0,t.jsx)("div",{className:"flex-1 flex items-center gap-[2px] h-8 min-w-0",children:B.map((e,r)=>(0,t.jsx)("span",{className:"flex-1 rounded-full bg-red-400",style:{height:`${Math.max(8,100*e)}%`}},r))}),(0,t.jsxs)("button",{type:"button",onClick:X,className:"shrink-0 inline-flex items-center gap-1.5 px-3 py-2 rounded-lg bg-red-500 text-white text-[12.5px] font-semibold hover:bg-red-600 transition-colors","aria-label":x("stopRecording"),title:x("stop"),children:[(0,t.jsx)(s,{}),(0,t.jsx)("span",{children:x("stop")})]})]}):"none"===y?w?(0,t.jsx)("div",{className:d,children:(0,t.jsx)("div",{className:"text-[11px] text-red-400 mb-1 max-w-[280px]",children:w})}):null:(0,t.jsxs)("div",{className:d,children:[w&&(0,t.jsx)("div",{className:"text-[11px] text-red-400 mb-1 max-w-[280px]",children:w}),(0,t.jsx)("button",{type:"button",onClick:H,className:`${p?"w-9 h-9":"w-10 h-10"} rounded-lg flex items-center justify-center text-text-muted hover:bg-bg-hover hover:text-accent-red transition-colors`,title:x("recordVoiceMessage"),"aria-label":x("recordVoiceMessage"),children:(0,t.jsx)(a,{size:p?17:18})})]})});e.s(["default",0,h])},73380,e=>{"use strict";var t=e.i(43476),r=e.i(71645);function n(e){let t=Math.max(0,Math.floor(e/1e3)),r=Math.floor(t/60);return`${r}:${(t%60).toString().padStart(2,"0")}`}e.s(["default",0,function({url:e,durationMs:i,waveform:o,compact:a,className:s,colorAccent:u="text-accent-blue"}){let l=(0,r.useRef)(null),[f,c]=(0,r.useState)(!1),[h,p]=(0,r.useState)(0),[d,g]=(0,r.useState)(null),[y,m]=(0,r.useState)(1),[x,b]=(0,r.useState)(null),[v,w]=(0,r.useState)(!1),j=i??d??0,E=j>0?Math.min(1,h/j):0,A=o&&o.length>
10?o:function(e=40){let t=[];for(let r=0;r<e;r++){let n=r/e;t.push(.3+.5*Math.abs(Math.sin(n*Math.PI*3)))}return t}(a?30:40),B=(0,r.useCallback)(async()=>{let t=l.current;if(t){b(null);try{if(f)t.pause();else{if(w(!0),t.readyState<2)try{t.load()}catch{}await t.play()}}catch(n){let t=n?.name||"Error",r=n?.message||String(n);console.warn("[VoicePlayer] play error",t,r,"url=",e),b("NotAllowedError"===t?"Autoplay bloqué — clique a nouveau":"NotSupportedError"===t?"Format audio non supporté par ce navigateur":"AbortError"===t?"Lecture interrompue":r.slice(0,80))}finally{w(!1)}}},[f,e]),R=(0,r.useCallback)(()=>{let e=1===y?1.5:1.5===y?2:1;m(e),l.current&&(l.current.playbackRate=e)},[y]),k=(0,r.useCallback)(e=>{let t=l.current;t&&j&&(t.currentTime=Math.max(0,Math.min(1,e))*j/1e3)},[j]),C=(0,r.useCallback)(e=>{k(e/A.length)},[A.length,k]);return(0,r.useEffect)(()=>{let e=l.current;e&&(e.playbackRate=y)},[y]),(0,t.jsxs)("div",{className:`inline-flex items-center gap-2 ${a?"p-1.5":"p-2"} rounded-2xl bg-bg-hover border border-border max-w-[420px] ${s||""} ${u}`,style:{minWidth:240},children:[(0,t.jsx)("button",{type:"button",onClick:B,disabled:v,className:`${a?"w-9 h-9":"w-10 h-10"} shrink-0 rounded-full bg-accent-blue text-white flex items-center justify-center hover:opacity-90 transition-opacity disabled:opacity-60`,"aria-label":f?"Pause":"Lire",children:v?(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"animate-spin",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",opacity:"0.3"}),(0,t.jsx)("path",{d:"M22 12a10 10 0 0 1-10 10"})]}):f?(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,t.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,t.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}):(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("polygon",{points:"6,4 20,12 6,20"})})}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col min-w-0 gap-0.5",children:[(0,t.jsx)("div",{className:`flex items-center gap-[2px] ${a?"h-7":"h-8"} min-w-0`,children:A.map((e,r)=>{let n=r/A.length<=E;return(0,t.jsx)("button",{type:"button",onClick:()=>C(r),className:"flex-1 min-w-[2px] rounded-full transition-colors",style:{height:`${Math.max(15,100*e)}%`,backgroundColor:n?"currentColor":"var(--tw-color-text-muted, rgba(148,163,184,0.4))",opacity:n?1:.35}},r)})}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"text-[10px] tabular-nums font-mono text-text-muted",children:[n(h),(0,t.jsxs)("span",{className:"opacity-60",children:[" / ",n(j)]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[x&&(0,t.jsx)("span",{className:"text-[10px] text-red-400 truncate max-w-[140px]",title:x,children:x}),(0,t.jsxs)("button",{type:"button",onClick:R,className:`text-[10px] font-bold px-1.5 py-0.5 rounded-md ${1===y?"bg-transparent text-text-muted":"bg-accent-blue/15 text-accent-blue"} hover:bg-accent-blue/25 transition-colors`,title:`Vitesse \xd7${y}`,children:["×",y]})]})]})]}),(0,t.jsx)("audio",{ref:l,src:e,preload:"auto",onLoadedMetadata:e=>{let t=e.currentTarget;t.duration&&isFinite(t.duration)&&g(Math.round(1e3*t.duration))},onDurationChange:e=>{let t=e.currentTarget;t.duration&&isFinite(t.duration)&&g(Math.round(1e3*t.duration))},onCanPlay:()=>b(null),onPlay:()=>c(!0),onPause:()=>c(!1),onTimeUpdate:e=>p(Math.round(1e3*e.currentTarget.currentTime)),onEnded:()=>{c(!1),p(0)},onError:t=>{let r=t.currentTarget,n=r.error&&r.error.code||0,i=1===n?"Chargement audio interrompu":2===n?"Erreur reseau audio":3===n?"Decodage audio impossible":4===n?"Format ou source audio non supporte":"Erreur audio inconnue";console.warn("[VoicePlayer] <audio> error",n,i,"url=",e),b(i)},hidden:!0})]})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.