1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="bab3eb57-770c-cea9-b54a-a82ea6b58c23")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,949374,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),s=i[0],a=i[1],f=new o((s+a)*3/4-a),u=0,c=a>0?s-4:s;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)],f[u++]=t>>16&255,f[u++]=t>>8&255,f[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[u++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[u++]=t>>8&255,f[u++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(function(e,t,n){for(var o,i=[],s=t;s<n;s+=3)o=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function l(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),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(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 u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),l=s(i),f=l.write(n,o);return f!==i&&(l=l.slice(0,f)),l}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(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(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),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return a.from(u,t,r);var d=function(e){if(a.isBuffer(e)){var t=0|h(e.length),r=s(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)?s(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 a.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 f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return f(e),s(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)}
vendor: 16,232 bytes, line 2
2,t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.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}}(),!a.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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(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(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(o)return n?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function d(e,t,r){var o,i,s,a=!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 o="",i=t;i<r;++i)o+=C[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=this,i=t,s=r,0===i&&s===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,o)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,s=1,a=e.length,l=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;s=2,a/=2,l/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var u=-1;for(i=r;i<a;i++)if(f(e,i)===f(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*s}else -1!==u&&(i-=i-u),u=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){for(var c=!0,h=0;h<l;h++)if(f(e,i+h)!==f(t,h)){c=!1;break}if(c)return i}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(N(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.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,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:+(n<r)},a.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}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(N(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.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},a.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},a.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},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.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+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(N(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.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===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,s=r-t,l=Math.min(i,s),f=this.slice(n,o),u=e.slice(t,r),c=0;c<l;++c)if(f[c]!==u[c]){i=f[c],s=u[c];break}return i<s?-1:+(s<i)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,l,f=e[o],u=null,c=f>239?4:f>223?3:f>191?2:1;if(o+c<=r)switch(c){case 1:f<128&&(u=f);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&f)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],s=e[o+2],(192&i)==128&&(192&s)==128&&(l=(15&f)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(l=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=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 x(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,o,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)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,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}a.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 o,i,s,a,l,f,u,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 o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a,l=parseInt(t.substr(2*s,2),16);if((a=l)!=a)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,B(k(e,this.length-o),this,o,i);case"ascii":return s=t,a=r,B(S(e),this,s,a);case"latin1":case"binary":return function(e,t,r,n){return B(S(t),e,r,n)}(this,e,t,r);case"base64":return l=t,f=r,B(L(e),this,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,c=r,B(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-u),this,u,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.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,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;v(this,e,t,r,o,0)}var i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;v(this,e,t,r,o,0)}var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.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},a.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},a.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},a.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},a.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},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);v(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);v(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},a.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},a.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},a.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},a.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},a.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},a.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.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 o=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 i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},a.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&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}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(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),l=s.length;
2if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function L(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 B(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var C=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,l=(1<<a)-1,f=l>>1,u=-7,c=r?o-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-u)-1,p>>=-u,u+=a;u>0;i=256*i+e[t+c],c+=h,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=256*s+e[t+c],c+=h,u-=8);if(0===i)i=1-f;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=f}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,l,f=8*i-o-1,u=(1<<f)-1,c=u>>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(s++,l/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(t*l-1)*Math.pow(2,o),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*g}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},s=!0;try{n[e](r,r.exports,i),s=!1}finally{s&&delete o[e]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",t.exports=i(72)},560650,591444,e=>{"use strict";var t=e.i(738776),r=e.i(482560);let n={framework:"nextjs",styling:"tailwind",language:"typescript",uiLibrary:"shadcn"};e.s(["DEFAULT_STACK",0,n,"FRAMEWORK_LABELS",0,{react:"React",nextjs:"Next.js",vue:"Vue 3",nuxt:"Nuxt",svelte:"Svelte",vanilla:"Vanilla JS"},"LANGUAGE_LABELS",0,{typescript:"TypeScript",javascript:"JavaScript"},"STYLING_LABELS",0,{tailwind:"Tailwind CSS","css-modules":"CSS Modules","styled-components":"Styled Components",css:"Plain CSS"},"UI_LIBRARY_LABELS",0,{shadcn:"shadcn/ui",radix:"Radix UI",headlessui:"Headless UI",none:"None"}],591444);let o={...n,framework:"nextjs"},i=(0,r.createContext)({stack:o,updateStack:()=>{},loaded:!1});e.s(["STYLR_FIXED_STACK",0,o,"StackProvider",0,function({children:e}){let[n,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{try{localStorage.setItem("stylr_stack_prefs",JSON.stringify(o))}catch{}s(!0)},[]);let a=(0,r.useCallback)(e=>{},[]);return(0,t.jsx)(i.Provider,{value:{stack:o,updateStack:a,loaded:n},children:e})},"useStack",0,function(){return(0,r.useContext)(i)}],560650)},360448,528855,e=>{"use strict";var t=e.i(738776),r=e.i(586394),n=e.i(482560),o=e.i(433721);let i=(0,o.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),s=(0,o.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var a=e.i(344118),l=e.i(975157),f=e.i(591444);let u=[{id:"framework",label:"Framework"},{id:"styling",label:"Styling"},{id:"language",label:"Language"},{id:"ui",label:"UI Lib"}];function c({stack:e,onChange:r,className:o}
2){let[a,p]=(0,n.useState)(!1),[d,g]=(0,n.useState)("framework"),m=[f.FRAMEWORK_LABELS[e.framework],f.STYLING_LABELS[e.styling],f.LANGUAGE_LABELS[e.language]].join(" · ");return(0,t.jsxs)("div",{className:(0,l.cn)("relative",o),children:[(0,t.jsxs)("button",{type:"button",onClick:()=>p(e=>!e),"aria-expanded":a,"aria-haspopup":"listbox",className:(0,l.cn)("flex max-w-full min-w-0 items-center gap-2 rounded-[var(--radius-sm)] px-3 py-1.5","border border-border bg-[hsl(var(--surface))] text-foreground-secondary","font-mono text-[11px] hover:border-primary/40 hover:text-foreground","transition-[color,border-color,box-shadow] duration-[var(--duration-tf)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--ring-focus))]","focus-visible:ring-offset-2 focus-visible:ring-offset-[hsl(var(--background))]",a&&"border-primary/40 text-foreground shadow-[inset_0_0_0_1px_hsl(var(--primary)/0.12)]"),children:[(0,t.jsx)(i,{size:12,className:"shrink-0 text-primary","aria-hidden":!0}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:m}),(0,t.jsx)(s,{size:12,className:(0,l.cn)("shrink-0 transition-transform duration-200",a&&"rotate-180"),"aria-hidden":!0})]}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 cursor-default",onClick:()=>p(!1)}),(0,t.jsxs)("div",{role:"dialog","aria-label":"Tech stack preferences",className:(0,l.cn)("absolute top-full z-50 mt-2 w-[min(calc(100vw-2rem),22rem)] start-0","overflow-hidden rounded-[var(--radius)] border border-border bg-[hsl(var(--surface))]","shadow-[0_8px_32px_hsl(var(--foreground)/0.14)]"),children:[(0,t.jsx)("div",{className:"flex border-b border-border",role:"tablist","aria-label":"Stack categories",children:u.map(e=>(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":d===e.id,onClick:()=>g(e.id),className:(0,l.cn)("min-w-0 flex-1 border-b-2 px-1 py-2.5 text-center font-mono text-[10px] sm:text-[11px]","whitespace-nowrap transition-colors duration-[var(--duration-tf)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[hsl(var(--ring-focus))]",d===e.id?"-mb-px border-primary bg-primary/5 text-primary":"-mb-px border-transparent text-muted-foreground hover:bg-[hsl(var(--surface-elevated)/0.6)] hover:text-foreground"),children:e.label},e.id))}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 p-2",role:"listbox",children:["framework"===d?Object.keys(f.FRAMEWORK_LABELS).map(n=>(0,t.jsx)(h,{label:f.FRAMEWORK_LABELS[n],active:e.framework===n,onClick:()=>{r({framework:n}),p(!1)}},n)):null,"styling"===d?Object.keys(f.STYLING_LABELS).map(n=>(0,t.jsx)(h,{label:f.STYLING_LABELS[n],active:e.styling===n,onClick:()=>{r({styling:n}),p(!1)}},n)):null,"language"===d?Object.keys(f.LANGUAGE_LABELS).map(n=>(0,t.jsx)(h,{label:f.LANGUAGE_LABELS[n],active:e.language===n,onClick:()=>{r({language:n}),p(!1)}},n)):null,"ui"===d?Object.keys(f.UI_LIBRARY_LABELS).map(n=>(0,t.jsx)(h,{label:f.UI_LIBRARY_LABELS[n],active:e.uiLibrary===n,onClick:()=>{r({uiLibrary:n}),p(!1)}},n)):null]})]})]}):null]})}function h({label:e,active:r,onClick:n}){return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":r,onClick:n,className:(0,l.cn)("flex w-full items-center gap-2 rounded-[var(--radius-sm)] border px-3 py-2 text-start","font-mono text-[12px] transition-colors duration-[var(--duration-tf)]",r?"border-primary/25 bg-primary/10 text-primary":"border-transparent text-foreground-secondary hover:border-border hover:bg-[hsl(var(--background))] hover:text-foreground"),children:[(0,t.jsx)("span",{className:(0,l.cn)("flex size-3 shrink-0 items-center justify-center",r?"opacity-100":"opacity-0"),"aria-hidden":!0,children:(0,t.jsx)(a.Check,{size:12})}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:e})]})}var p=e.i(560650);e.s(["PromptBlock",0,function({prompt:e,activeVersionLabel:n="Default",showLineNumbers:o=!0,className:i,isSignedIn:s=!1,userPlan:a=null,copiesUsed:f=0,slug:u,versionTabs:h,compactViewport:d=!1,expandedCompactViewport:g=!1,fillAvailableHeight:m=!1,showStackSelector:y=!1,skipStackInjection:b=!1}){let x,{stack:v,updateStack:w}=(0,p.useStack)(),j=e.split("\n"),E=j.length,A=s?`in-${f}`:`out-${f}`,k=!!h,S=m?"min-h-[min(42vh,18rem)] flex-1 overflow-auto sm:min-h-[min(48vh,22rem)] lg:h-0 lg:min-h-0":(0,l.cn)("min-h-0 flex-1 overflow-auto",d?g?"max-h-[min(55vh,26rem)] sm:max-h-[min(62vh,32rem)]":"max-h-[min(44vh,14rem)] sm:max-h-[min(48vh,16rem)]":"max-h-[min(70vh,28rem)]"),L=g?"text-[12px] leading-[1.45] pt-px":d?"text-[14px] leading-relaxed pt-px":"text-[15px] leading-relaxed pt-0.5",B=g?"font-mono text-[11px]":"font-mono text-[12px]",N=(e,r,n)=>{let o,{isHeading:i,isComment:s}={isHeading:(o=e.trimStart()).startsWith("##"),isComment:o.startsWith("//")};return(0,t.jsxs)("div",{className:(0,l.cn)("group flex px-2",g?"py-px":void 0,"border-s-2 border-transparent hover:border-primary/35","hover:bg-[hsl(var(--surface)/0.5)]"),children:[n?(0,t.jsx)("span",{className:(0,l.cn)("pointer-events-none min-w-[2.75rem] shrink-0 py-0.5 pe-3 text-end","select-none tabular-nums text-muted-foreground
2/40",B),children:r+1}):null,(0,t.jsx)("span",{className:(0,l.cn)("flex-1 hyphens-none py-0.5 font-mono break-words whitespace-pre-wrap",L,i&&"font-semibold text-primary",s&&"italic text-muted-foreground",!i&&!s&&"text-foreground-secondary"),children:e||" "})]},r)};return(0,t.jsxs)("div",{className:(0,l.cn)("code-panel relative flex flex-col overflow-hidden",m&&"min-h-0 flex-1",i),children:[(0,t.jsxs)("div",{className:(0,l.cn)("flex shrink-0 flex-wrap items-center gap-2 border-y border-border bg-surface px-4 py-2 md:gap-3",k?"justify-between":"justify-end"),children:[k?(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap gap-2",children:h}):null,(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:[y?(0,t.jsx)(c,{stack:v,onChange:w,className:"shrink-0"}):null,(0,t.jsx)(r.CopyButton,{text:e,slug:u,isSignedIn:s,userPlan:a??void 0,anonymousCopiesUsed:s?void 0:f,copiesUsed:f,skipStackInjection:b},A)]})]}),(0,t.jsxs)("div",{className:(0,l.cn)("grid shrink-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 border-b border-border bg-[hsl(var(--surface-elevated))] px-4 py-2.5"),children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5 rtl:flex-row-reverse","aria-hidden":!0,children:[(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[hsl(var(--muted-foreground)/0.2)]"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[hsl(var(--muted-foreground)/0.2)]"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[hsl(var(--muted-foreground)/0.2)]"})]}),(0,t.jsxs)("span",{className:"truncate text-center font-mono text-[11px] uppercase tracking-widest text-muted-foreground",children:[n," · prompt"]}),(0,t.jsxs)("span",{className:"whitespace-nowrap text-end font-mono text-[11px] tabular-nums text-muted-foreground",children:[E," lines"]})]}),(0,t.jsx)("div",{className:(0,l.cn)("bg-background",S,o?"px-0 pb-3 pt-1":"px-4 pb-3 pt-1"),children:o?(0,t.jsx)("div",{className:"font-mono",children:j.map((e,t)=>N(e,t,!0))}):(0,t.jsx)("div",{className:"font-mono",children:j.map((e,t)=>N(e,t,!1))})}),0===(x=function(e){let t=e.split("\n"),r=[],n=new Set,o={"--background":"#0a0a0a","--surface":"#111111","--surface-elevated":"#1a1a1a","--primary":"#e47831","--foreground":"#ffffff","--foreground-secondary":"#c7c7c7","--muted-foreground":"#8c8c8c","--border":"#2b2b2b"};for(let e of t){let t=e.match(/^[-*]?\s*\**([^*:]+)\**:\s*`?(#[0-9a-fA-F]{3,8})`?\b/);if(t){let e=t[1].trim(),o=t[2].toLowerCase();if(n.has(e))continue;n.add(e),r.push({label:e,hex:o});continue}let i=e.match(/^[-*]?\s*([^:]+):\s*hsl\(var\((--[\w-]+)\)\)/);if(i){let e=i[1].trim(),t=o[i[2]];if(!t||n.has(e))continue;n.add(e),r.push({label:e,hex:t});continue}}return r}(e)).length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1.5 border-t border-border px-4 py-2.5",children:x.map(({label:e,hex:r})=>(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"h-3 w-3 shrink-0 rounded-full border border-border",style:{backgroundColor:r}}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:e})]},e))})]})}],360448),e.s(["UsageSteps",0,function({steps:e,className:r,compact:n=!1,flatMarkers:o=!1}){let i=n?"flex gap-3 border-b border-border last:border-b-0 py-2.5 first:pt-0":"flex gap-4 border-b border-border last:border-b-0 py-3 first:pt-0",s=n?"size-7 text-[12px]":"size-8 text-[13px]",a=o?"border border-border bg-transparent text-foreground-secondary":"border border-border bg-surface-elevated font-medium text-foreground",f=n?"text-[14px] leading-relaxed pt-px":"text-[15px] leading-relaxed pt-0.5";return(0,t.jsx)("ol",{className:(0,l.cn)("flex flex-col gap-0",r),children:e.map((e,r)=>(0,t.jsxs)("li",{className:i,children:[(0,t.jsx)("span",{className:(0,l.cn)("flex shrink-0 items-center justify-center rounded-[var(--radius-sm)] border font-mono tabular-nums",s,a),"aria-hidden":!0,children:r+1}),(0,t.jsx)("p",{className:(0,l.cn)("text-foreground-secondary min-w-0",f),children:e})]},r))})}],528855)},889445,e=>{"use strict";let t=(0,e.i(433721).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],889445)},100377,e=>{"use strict";var t=e.i(324438),r=e.i(738776),n=e.i(482560),o=e.i(889445),i=e.i(500007),s=e.i(523843),a=e.i(975157);function l({assets:e,onAssetsChange:t}
2){let f=(0,i.useTranslations)("recipeDetail"),[u,c]=(0,n.useState)(()=>Object.fromEntries(e.map((e,t)=>[t,!0])));function h(r){let n={...u,[r]:!u[r]};c(n),t(e.filter((e,t)=>n[t]))}return 0===e.length?null:(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("span",{className:"overline",children:f("assetsOverline")}),(0,r.jsx)("p",{className:"mt-1 text-[12px] font-light text-muted-foreground",children:f("assetsHint")})]}),(0,r.jsx)("div",{className:(0,a.cn)("flex gap-2 overflow-x-auto pb-2","scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border"),children:e.map((e,t)=>{var n;let i,l,c,p,d=u[t]??!1,g=(i=e.creditUrl?.trim(),l=e.credit?.trim(),i&&l?{href:i,label:l}:null),m="image"===e.type?(0,s.resolvePublicImageUrl)(e.url)??e.url:(0,s.resolvePublicImageUrl)(e.thumbnailUrl)??e.thumbnailUrl??e.url;return(0,r.jsxs)("div",{role:"checkbox","aria-checked":d,tabIndex:0,onClick:()=>h(t),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h(t))},className:(0,a.cn)("group relative h-[90px] w-[140px] shrink-0 cursor-pointer overflow-hidden rounded-[var(--radius)] border transition-[opacity,border-color] duration-300",d?"border-primary/60 opacity-100":"border-border opacity-30"),children:["image"===e.type?(0,r.jsx)("img",{src:m,alt:e.alt??"",className:"h-full w-full object-cover transition-[filter] duration-300 group-hover:brightness-110"}):(0,r.jsxs)("div",{className:"relative h-full w-full bg-surface",children:[(0,r.jsx)("img",{src:m,alt:e.alt??f("assetsVideoLabel"),className:"h-full w-full object-cover"}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-background/50 transition-colors duration-[250ms] group-hover:bg-background/60","aria-hidden":!0,children:(0,r.jsx)("div",{className:(0,a.cn)("flex size-8 items-center justify-center rounded-full border border-border/80","bg-foreground
2/10 backdrop-blur-sm"),children:(0,r.jsx)(o.Play,{className:"size-3 fill-primary text-primary","aria-hidden":!0})})}),(0,r.jsx)("span",{className:"absolute start-1 top-1 rounded bg-primary/90 px-1 py-px font-mono text-[9px] uppercase tracking-wider text-primary-foreground",children:f("assetsVideoLabel")}),null!=e.duration&&e.duration>0?(0,r.jsx)("span",{className:"absolute bottom-1 end-1 rounded bg-background/80 px-1 py-px font-mono text-[9px] tabular-nums text-foreground",children:(c=Math.floor((n=e.duration)/60),p=Math.floor(n%60),`${c}:${String(p).padStart(2,"0")}`)}):null]}),"image"===e.type?(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-transparent to-transparent"}):null,(0,r.jsx)("div",{className:"absolute end-1.5 top-1.5",children:(0,r.jsx)("div",{className:(0,a.cn)("flex size-4 items-center justify-center rounded border transition-colors duration-[250ms]",d?"border-primary bg-primary":"border-border bg-background/80"),children:d?(0,r.jsx)("svg",{viewBox:"0 0 10 8",className:"size-2.5 text-primary-foreground","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M1 4l3 3 5-6",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}):null})}),g?(0,r.jsx)("div",{className:"absolute bottom-1 start-1.5",children:(0,r.jsxs)("a",{href:g.href,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"font-mono text-[9px] text-foreground/70 transition-colors hover:text-foreground",children:["via ",g.label]})}):null]},`${e.url}-${t}`)})})]})}var f=e.i(360448);`ICONOGRAPHY (required â NO emoji): 3- NEVER use emoji for feature cards, nav, or buttons 4- Load Lucide CDN before </body>: 5 <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script> 6 <script>document.addEventListener('DOMContentLoaded', () => lucide.createIcons());</script> 7- Markup: <i data-lucide="zap" class="w-5 h-5 text-primary"></i> 8- Use lowercase kebab names: zap, palette, sparkles, cpu, layers, arrow-right, menu, x, check, star 9- Feature cards: icon inside 40\xd740 rounded-lg border border-white/10 flex items-center justify-center bg-white/5 10- Example card header: <i data-lucide="zap"></i> + h3 title â NOT â¡ emoji`.split("\n")[0],e.i(949374),t.default.env.CLOUDFLARE_R2_BUCKET_NAME?.trim();let u={"claude-code":["Open your terminal and navigate to your project directory","Run `claude` to start Claude Code","Paste the prompt and press Enter","Claude Code will create all files automatically","Review the generated code and run your project"],cursor:["Open your project in Cursor","Press Cmd+Shift+I to open Cursor Composer","Paste the prompt in the composer","Review the suggested changes across your files","Accept the changes and run your project"],v0:["Go to v0.dev and start a new generation","Paste the prompt in the input field","Click Generate and wait for the output","Copy the generated React component","Paste it into your project and customize as needed"],lovable:["Open your Lovable project or create a new one","Paste the prompt in the Lovable chat","Let Lovable generate the full implementation","Review the result in the preview","Deploy directly from Lovable when ready"]};e.s(["RecipePromptSection",0,function({recipe:e,isSignedIn:t,userPlan:o,copiesUsed:i,enrichmentMode:s="none",onCopyablePromptChange:c,onVersionHowToChange:h,className:p,compactPromptViewport:d=!1,expandedPromptViewport:g=!1,fillPromptViewport:m=!1,showStackSelector:y=!1,skipStackInjection:b=!1}){let{mergedRecipe:x,loading:v}=function(e,t){let[r,o]=n.useState("none"!==t),[i,s]=n.useState(e),a=e.tags.join("\0"),l=n.useRef(e);return l.current=e,n.useEffect(()=>{if(s(e),"none"===t)return void o(!1);let r=!1;return o(!0),async function(){try{var n,i;let o,f=e.slug,u=await fetch(`/api/recipes/enrichment?slug=${encodeURIComponent(f)}`);if(!u.ok)throw Error("enrichment get failed");let c=(await u.json()).enrichment;async function a(e){let t=await fetch("/api/recipes/enrichment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error("enrichment post failed");return(await t.json()).enrichment??null}if(c){if("library"===t&&function(e){let{versions:t}=e;return 0!==t.length&&t.some(e=>!Array.isArray(e.usageSteps)||0===e.usageSteps.length||e.usageSteps.every(e=>"string"!=typeof e||0===e.trim().length))}(c))try{let e=await a({slug:f,force:!0});e&&(c=e)}catch{}}else{let r="library"===t?{slug:f}:{slug:f,inline:{title:e.title,fullPrompt:e.fullPrompt,category:e.category,tags:e.tags}};c=await a(r)}if(r||!c)return;s((n=l.current,i=c,o=function(...e){let t=new Set,r=[];for(let n of e)if(n?.length)for(let e of n){let n=e.url.trim();!n||t.has(n)||(t.add(n),r.push(e))}return r}(n.assets,i.assets),{...n,versions:i.versions.length>0?i.versions:n.versions,assets:o.length>0?o:n.assets}
10))}catch{}finally{r||o(!1)}}(),()=>{r=!0}},[t,e.slug,e.title,e.fullPrompt,e.category,a]),{mergedRecipe:i,loading:r}}(e,s),w="none"===s?e:x,j=!!w.versions?.length,E=!!w.assets?.length,[A,k]=(0,n.useState)("default"),[S,L]=(0,n.useState)(()=>w.assets??[]),B=w.assets?.map(e=>e.url).join("|")??"";(0,n.useEffect)(()=>{"none"!==s&&v||(k("default"),L(w.assets??[]))},[s,v,w.slug,B]);let N=(0,n.useMemo)(()=>{let e=[{key:"default",label:"Default"}];return w.versions?.length?[...e,...w.versions.map(e=>({key:e.tool,label:e.label}))]:e},[w.versions]),C=(0,n.useMemo)(()=>(w.versions??[]).map(e=>`${e.tool}:${(e.usageSteps??[]).join("\x01")}`).join("|"),[w.versions]);(0,n.useEffect)(()=>{},[s,v,w.slug,C]);let U=(0,n.useMemo)(()=>(function(e,t){if("default"===t)return e.fullPrompt;let r=e.versions?.find(e=>e.tool===t);return r?r.prompt?r.prompt:r.promptSuffix?`${e.fullPrompt} 11 12${r.promptSuffix}`:e.fullPrompt:e.fullPrompt})(w,A),[w,A]),R=(0,n.useMemo)(()=>(function(e,t){if(0===t.length)return e;let r=t.map(e=>`- ${e.type}: ${e.url} 13 ${e.promptSnippet}`).join("\n");return`${e} 14 15## Assets 16${r}`})(U,S),[U,S]),I=(0,n.useRef)(null),T=(0,n.useRef)(c);T.current=c,(0,n.useEffect)(()=>{let e=T.current;e&&I.current!==R&&(I.current=R,e(R))},[R]);let O=(0,n.useRef)(h);return O.current=h,(0,n.useEffect)(()=>{if("none"!==s&&v)return;let e=O.current;if(!e)return;let t=w.usageSteps??[];if("default"===A)return void e({steps:t,toolLabel:null});let r=w.versions?.find(e=>e.tool===A),n=r?.usageSteps?.filter(e=>"string"==typeof e&&e.trim().length>0)??[];e({steps:n.length>0?n:Object.prototype.hasOwnProperty.call(u,A)?[...u[A]]:t,toolLabel:r?.label??null})},[A,v,s,w.slug,w.usageSteps,C]),(0,r.jsxs)("div",{className:(0,a.cn)(m?"flex min-h-0 flex-1 flex-col gap-4":"space-y-4",p),children:["none"!==s&&v?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"size-1.5 animate-pulse rounded-full bg-primary","aria-hidden":!0}),(0,r.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:"Loading versions and assetsâ¦"})]}):null,(0,r.jsx)(f.PromptBlock,{prompt:R,activeVersionLabel:N.find(e=>e.key===A)?.label??"Default",isSignedIn:t,userPlan:o,copiesUsed:i,slug:w.slug,compactViewport:d,expandedCompactViewport:g,fillAvailableHeight:m,showStackSelector:y,skipStackInjection:b,className:m?"min-h-0 flex-1":void 0,versionTabs:j?(0,r.jsx)(r.Fragment,{children:N.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>{k(e.key)},className:(0,a.cn)("rounded-[var(--radius-sm)] border px-3 py-1.5 font-mono text-[11px] transition-colors duration-[250ms]",A===e.key?"border-primary/30 bg-primary/10 text-primary":"border-transparent text-muted-foreground hover:text-foreground"),children:e.label},`${e.key}-${e.label}`))}):null}),E&&w.assets?.length?(0,r.jsx)(l,{assets:w.assets,onAssetsChange:L}):null]})}],100377)}]); 17 18//# debugId=bab3eb57-770c-cea9-b54a-a82ea6b58c23
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.