PageSourceSearch

https://pltt.ai/_next/static/chunks/24a7_sfx8sa6k.js

js pltt.ai collected 2026-10-05 15:19:36 UTC 53,031 bytes, 94 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,572769,565123,t=>{"use strict";var e=t.i(475254);let r=(0,e.default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);t.s(["default",0,r],572769);let a=(0,e.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);t.s(["default",0,a],565123)},961888,227516,t=>{"use strict";var e=t.i(572769);t.s(["Blocks",()=>e.default],961888);var r=t.i(565123);t.s(["History",()=>r.default],227516)},236579,t=>{"use strict";let e=(0,t.i(475254).default)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);t.s(["default",0,e])},972080,t=>{"use strict";var e=t.i(236579);t.s(["ImagePlus",()=>e.default])},113625,87170,413036,t=>{"use strict";var e=t.i(475254);let r=(0,e.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);t.s(["default",0,r],113625);let a=(0,e.default)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);t.s(["default",0,a],87170);let n=(0,e.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);t.s(["default",0,n],413036)},725922,(t,e,r)=>{var a={872:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],a=e[1];return(r+a)*3/4-a},e.toByteArray=function(t){var e,r,i=l(t),o=i[0],s=i[1],u=new n((o+s)*3/4-s),f=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)e=a[t.charCodeAt(r)]<<18|a[t.charCodeAt(r+1)]<<12|a[t.charCodeAt(r+2)]<<6|a[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;return 2===s&&(e=a[t.charCodeAt(r)]<<2|a[t.charCodeAt(r+1)]>>4,u[f++]=255&e),1===s&&(e=a[t.charCodeAt(r)]<<10|a[t.charCodeAt(r+1)]<<4|a[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e),u},e.fromByteArray=function(t){for(var e,a=t.length,n=a%3,i=[],o=0,s=a-n;o<s;o+=16383)i.push(function(t,e,a){for(var n,i=[],o=e;o<a;o+=3)n=(t[o]<<16&0xff0000)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}(t,o,o+16383>s?s:o+16383));return 1===n?i.push(r[(e=t[a-1])>>2]+r[e<<4&63]+"=="):2===n&&i.push(r[(e=(t[a-2]<<8)+t[a-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],a=[],n="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)r[o]=i[o],a[i.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var a=r===e?0:4-r%4;return[r,a]}a[45]=62,a[95]=63},230:function(t,e,r){"use strict";var a=r(872),n=r(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return f(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t){var a=t,n=e;if(("string"!=typeof n||""===n)&&(n="utf8"),!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|p(a,n),l=o(i),u=l.write(a,n);return u!==i&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);
vendor: 17,814 bytes, line 1
1if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return function(t,e,r){var a;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(a=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),a}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var f=t.valueOf&&t.valueOf();if(null!=f&&f!==t)return s.from(f,e,r);var d=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?o(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return u(t),o(t<0?0:0|h(t))}function c(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),a=0;a<e;a+=1)r[a]=255&t[a];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){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(t,e,r){return l(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(u(t),t<=0)?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)};function h(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(t).length;default:if(n)return a?-1:S(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n,i,o,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var a=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>a)&&(r=a);for(var n="",i=e;i<r;++i)n+=C[t[i]];return n}(this,e,r);case"utf8":case"utf-8":return w(this,e,r);case"ascii":return function(t,e,r){var a="";r=Math.min(t.length,r);for(var n=e;n<r;++n)a+=String.fromCharCode(127&t[n]);return a}(this,e,r);case"latin1":case"binary":return function(t,e,r){var a="";r=Math.min(t.length,r);for(var n=e;n<r;++n)a+=String.fromCharCode(t[n]);return a}(this,e,r);case"base64":return n=this,i=e,o=r,0===i&&o===n.length?a.fromByteArray(n):a.fromByteArray(n.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var a=t.slice(e,r),n="",i=0;i<a.length;i+=2)n+=String.fromCharCode(a[i]+256*a[i+1]);return n}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function g(t,e,r){var a=t[e];t[e]=t[r],t[r]=a}function m(t,e,r,a,n){var i;if(0===t.length)return -1;if("string"==typeof r?(a=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(n)return -1;else r=t.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof e&&(e=s.from(e,a)),s.isBuffer(e))return 0===e.length?-1:y(t,e,r,a,n);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return y(t,[e],r,a,n)}throw TypeError("val must be string, number or Buffer")}function y(t,e,r,a,n){var i,o=1,s=t.length,l=e.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var f=-1;for(i=r;i<s;i++)if(u(t,i)===u(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===l)return f*o}else -1!==f&&(i-=i-f),f=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var c=!0,h=0;h<l;h++)if(u(t,i+h)!==u(e,h)){c=!1;break}if(c)return i}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(_(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,a=e.length,n=0,i=Math.min(r,a);n<i;++n)if(t[n]!==e[n]){r=t[n],a=e[n];break}return r<a?-1:+(a<r)},s.isEncoding=function(t){switch(String(t).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(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,a=s.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var i=t[r];if(_(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(a,n),n+=i.length}return a},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?w(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,r,a,n){if(_(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),e<0||r>t.length||a<0||n>this.length)throw RangeError("out of range index");if(a>=n&&e>=r)return 0;if(a>=n)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,a>>>=0,n>>>=0,this===t)return 0;for(var i=n-a,o=r-e,l=Math.min(i,o),u=this.slice(a,n),f=t.slice(e,r),c=0;c<l;++c)if(u[c]!==f[c]){i=u[c],o=f[c];break}return i<o?-1:+(o<i)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)};function w(t,e,r){r=Math.min(t.length,r);for(var a=[],n=e;n<r;){var i,o,s,l,u=t[n],f=null,c=u>239?4:u>223?3:u>191?2:1;if(n+c<=r)switch(c){case 1:u<128&&(f=u);break;case 2:(192&(i=t[n+1]))==128&&(l=(31&u)<<6|63&i)>127&&(f=l);break;case 3:i=t[n+1],o=t[n+2],(192&i)==128&&(192&o)==128&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(f=l);break;case 4:i=t[n+1],o=t[n+2],s=t[n+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(f=l)}null===f?(f=65533,c=1):f>65535&&(f-=65536,a.push(f>>>10&1023|55296),f=56320|1023&f),a.push(f),n+=c}var h=a,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(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function v(t,e,r,a,n,i){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<i)throw RangeError('"value" argument is out of bounds');if(r+a>t.length)throw RangeError("Index out of range")}function x(t,e,r,a,n,i){if(r+a>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,a,i){return e*=1,r>>>=0,i||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,r,a,23,4),r+4}function k(t,e,r,a,i){return e*=1,r>>>=0,i||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,r,a,52,8),r+8}s.prototype.write=function(t,e,r,a){if(void 0===e)a="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)a=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===a&&(a="utf8")):(a=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,o,s,l,u,f,c,h=this.length-e;if((void 0===r||r>h)&&(r=h),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var p=!1;;)switch(a){case"hex":return function(t,e,r,a){r=Number(r)||0;var n=t.length-r;a?(a=Number(a))>n&&(a=n):a=n;var i=e.length;a>i/2&&(a=i/2);for(var o=0;o<a;++o){var s,l=parseInt(e.substr(2*o,2),16);if((s=l)!=s)break;t[r+o]=l}return o}(this,t,e,r);case"utf8":case"utf-8":return n=e,i=r,U(S(t,this.length-n),this,n,i);case"ascii":return o=e,s=r,U(B(t),this,o,s);case"latin1":case"binary":return function(t,e,r,a){return U(B(e),t,r,a)}(this,t,e,r);case"base64":return l=e,u=r,U(T(t),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=e,c=r,U(function(t,e){for(var r,a,n=[],i=0;i<t.length&&!((e-=2)<0);++i)a=(r=t.charCodeAt(i))>>8,n.push(r%256),n.push(a);return n}(t,this.length-f),this,f,c);default:if(p)throw TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var a=this.subarray(t,e);return Object.setPrototypeOf(a,s.prototype),a},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var a=this[t],n=1,i=0;++i<e&&(n*=256);)a+=this[t+i]*n;return a},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var a=this[t+--e],n=1;e>0&&(n*=256);)a+=this[t+--e]*n;return a},s.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var a=this[t],n=1,i=0;++i<e&&(n*=256);)a+=this[t+i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var a=e,n=1,i=this[t+--a];a>0&&(n*=256);)i+=this[t+--a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,a){if(t*=1,e>>>=0,r>>>=0,!a){var n=Math.pow(2,8*r)-1;v(this,t,e,r,n,0)}var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,a){if(t*=1,e>>>=0,r>>>=0,!a){var n=Math.pow(2,8*r)-1;v(this,t,e,r,n,0)}var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,a){if(t*=1,e>>>=0,!a){var n=Math.pow(2,8*r-1);v(this,t,e,r,n-1,-n)}var i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,a){if(t*=1,e>>>=0,!a){var n=Math.pow(2,8*r-1);v(this,t,e,r,n-1,-n)}var i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,a){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<r&&(a=r),a===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(a<0)throw RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-r&&(a=t.length-e+r);var n=a-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,a);else if(this===t&&r<e&&e<a)for(var i=n-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,a),e);return n},s.prototype.fill=function(t,e,r,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,r=this.length):"string"==typeof r&&(a=r,r=this.length),void 0!==a&&"string"!=typeof a)throw TypeError("encoding must be a string");if("string"==typeof a&&!s.isEncoding(a))throw TypeError("Unknown encoding: "+a);if(1===t.length){var n,i=t.charCodeAt(0);("utf8"===a&&i<128||"latin1"===a)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(n=e;n<r;++n)this[n]=t;else{var o=s.isBuffer(t)?t:s.from(t,a),l=o.length;
1if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<r-e;++n)this[n+e]=o[n%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var r,a=t.length,n=null,i=[],o=0;o<a;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===a){(e-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=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 B(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function T(t){return a.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,a){for(var n=0;n<a&&!(n+r>=e.length)&&!(n>=t.length);++n)e[n+r]=t[n];return n}function _(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var C=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var a=16*r,n=0;n<16;++n)e[a+n]=t[r]+t[n];return e}()},321:function(t,e){e.read=function(t,e,r,a,n){var i,o,s=8*n-a-1,l=(1<<s)-1,u=l>>1,f=-7,c=r?n-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-f)-1,p>>=-f,f+=s;f>0;i=256*i+t[e+c],c+=h,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=256*o+t[e+c],c+=h,f-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,a),i-=u}return(p?-1:1)*o*Math.pow(2,i-a)},e.write=function(t,e,r,a,n,i){var o,s,l,u=8*i-n-1,f=(1<<u)-1,c=f>>1,h=5960464477539062e-23*(23===n),p=a?0:i-1,d=a?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?e+=h/l:e+=h*Math.pow(2,1-c),e*l>=2&&(o++,l/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(e*l-1)*Math.pow(2,n),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;t[r+p]=255&s,p+=d,s/=256,n-=8);for(o=o<<n|s,u+=n;u>0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*g}}},n={};function i(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}},o=!0;try{a[t](r,r.exports,i),o=!1}finally{o&&delete n[t]}return r.exports}i.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=i(230)},752822,(t,e,r)=>{"use strict";var a=t.r(271645),n=t.r(802239),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useSyncExternalStore,s=a.useRef,l=a.useEffect,u=a.useMemo,f=a.useDebugValue;r.useSyncExternalStoreWithSelector=function(t,e,r,a,n){var c=s(null);if(null===c.current){var h={hasValue:!1,value:null};c.current=h}else h=c.current;var p=o(t,(c=u(function(){function t(t){if(!l){if(l=!0,o=t,t=a(t),void 0!==n&&h.hasValue){var e=h.value;if(n(e,t))return s=e}return s=t}if(e=s,i(o,t))return e;var r=a(t);return void 0!==n&&n(e,r)?(o=t,e):(o=t,s=r)}var o,s,l=!1,u=void 0===r?null:r;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,r,a,n]))[0],c[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),f(p),p}},430224,(t,e,r)=>{"use strict";t.i(247167),e.exports=t.r(752822)},667719,t=>{"use strict";var e=t.i(843476),r=t.i(500932),a=t.i(271645),n=t.i(174080);t.i(785269);var i=t.i(322831),o=t.i(961888),s=t.i(227516),l=t.i(972080),u=t.i(113625),u=u,f=t.i(87170),f=f,c=t.i(413036),c=c,h=t.i(649582),p=t.i(761911),d=t.i(37727);let g={templates:f.default,insert:o.Blocks,uploads:l.ImagePlus,brand:c.default,layers:u.default,properties:h.SlidersHorizontal,history:s.History,collaborate:p.Users},m=(0,a.createContext)({tool:null,open:()=>{},target:null,insert:{current:null}}),y=()=>(0,a.useContext)(m);t.s(["StudioPanel",0,function(t){let e,a=(0,r.c)(5),{tool:i,children:o}=t,s=y();return a[0]!==o||a[1]!==s.target||a[2]!==s.tool||a[3]!==i?(e=s.tool===i&&s.target?(0,n.createPortal)("function"==typeof o?o():o,s.target):null,a[0]=o,a[1]=s.target,a[2]=s.tool,a[3]=i,a[4]=e):e=a[4],e},"StudioWorkspaceChrome",0,function(t){let n,o,s,l,u,f,c,h,p,y,w,b,v,x,A,k,E,S,B,T,U,_,C,L=(0,r.c)(61),{children:$,readOnly:M,hiddenTools:j}=t;L[0]!==j?(n=void 0===j?[]:j,L[0]=j,L[1]=n):n=L[1];let R=n,{t:O}=(0,i.useTranslation)(),[I,P]=(0,a.useState)(null);L[2]!==R||L[3]!==M||L[4]!==I?(o=()=>{(M||I&&R.includes(I))&&P(null)},s=[M,R,I],L[2]=R,L[3]=M,L[4]=I,L[5]=o,L[6]=s):(o=L[5],s=L[6]),(0,a.useEffect)(o,s);
1let[D,V]=(0,a.useState)(null),N=(0,a.useRef)(null),H=(0,a.useId)(),z=(0,a.useRef)(null),q=(0,a.useRef)(null),[F,W]=(0,a.useState)(!1);L[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let t=new ResizeObserver(t=>W(t[0].contentRect.width<=1e3));return q.current&&t.observe(q.current),()=>t.disconnect()},u=[],L[7]=l,L[8]=u):(l=L[7],u=L[8]),(0,a.useEffect)(l,u),L[9]!==I?(f=()=>{P(null),N.current?.querySelector(`[data-tool="${I}"]`)?.focus()},L[9]=I,L[10]=f):f=L[10];let K=f;L[11]!==D||L[12]!==I?(c={tool:I,open:P,target:D,insert:z},L[11]=D,L[12]=I,L[13]=c):c=L[13],L[14]!==K||L[15]!==I?(h=t=>{"Escape"===t.key&&I&&(t.stopPropagation(),K())},L[14]=K,L[15]=I,L[16]=h):h=L[16],L[17]!==O?(p=O("studio.tools"),L[17]=O,L[18]=p):p=L[18],L[19]!==R||L[20]!==H||L[21]!==O||L[22]!==I?(y=Object.entries(g).filter(t=>{let[e]=t;return!R.includes(e)}).map(t=>{let[r,a]=t;return(0,e.jsxs)("button",{type:"button","data-tool":r,"aria-pressed":I===r,"aria-expanded":I===r,"aria-controls":H,onClick:()=>P(I===r?null:r),children:[(0,e.jsx)(a,{size:20,"aria-hidden":"true"}),(0,e.jsx)("span",{children:O(`studio.tools${r[0].toUpperCase()}${r.slice(1)}`)})]},r)}),L[19]=R,L[20]=H,L[21]=O,L[22]=I,L[23]=y):y=L[23],L[24]!==p||L[25]!==y?(w=(0,e.jsx)("nav",{className:"studio-tool-rail",ref:N,"aria-label":p,children:y}),L[24]=p,L[25]=y,L[26]=w):w=L[26];let Y=!I;L[27]!==O||L[28]!==I?(b=I?O(`studio.tools${I[0].toUpperCase()}${I.slice(1)}`):void 0,L[27]=O,L[28]=I,L[29]=b):b=L[29],L[30]!==O||L[31]!==I?(v=I&&O(`studio.tools${I[0].toUpperCase()}${I.slice(1)}`),L[30]=O,L[31]=I,L[32]=v):v=L[32],L[33]!==v?(x=(0,e.jsx)("strong",{children:v}),L[33]=v,L[34]=x):x=L[34],L[35]!==O?(A=O("studio.closePanel"),L[35]=O,L[36]=A):A=L[36],L[37]===Symbol.for("react.memo_cache_sentinel")?(k=(0,e.jsx)(d.X,{size:16}),L[37]=k):k=L[37],L[38]!==K||L[39]!==A?(E=(0,e.jsx)("button",{type:"button",onClick:K,"aria-label":A,children:k}),L[38]=K,L[39]=A,L[40]=E):E=L[40],L[41]!==x||L[42]!==E?(S=(0,e.jsxs)("div",{className:"studio-panel-heading",children:[x,E]}),L[41]=x,L[42]=E,L[43]=S):S=L[43],L[44]===Symbol.for("react.memo_cache_sentinel")?(B=(0,e.jsx)("div",{className:"studio-panel-body",ref:V}),L[44]=B):B=L[44],L[45]!==H||L[46]!==Y||L[47]!==b||L[48]!==S?(T=(0,e.jsxs)("aside",{id:H,className:"studio-side-panel",hidden:Y,"aria-label":b,children:[S,B]}),L[45]=H,L[46]=Y,L[47]=b,L[48]=S,L[49]=T):T=L[49];let G=F&&!!I;return L[50]!==$||L[51]!==G?(U=(0,e.jsx)("div",{className:"studio-workspace-content",inert:G,children:$}),L[50]=$,L[51]=G,L[52]=U):U=L[52],L[53]!==w||L[54]!==T||L[55]!==U||L[56]!==h?(_=(0,e.jsxs)("div",{className:"studio-workspace",ref:q,onKeyDown:h,children:[w,T,U]}),L[53]=w,L[54]=T,L[55]=U,L[56]=h,L[57]=_):_=L[57],L[58]!==_||L[59]!==c?(C=(0,e.jsx)(m.Provider,{value:c,children:_}),L[58]=_,L[59]=c,L[60]=C):C=L[60],C},"useStudioTools",0,y],667719)},296505,t=>{"use strict";let e=new Set(["connect_service","install_app","task_launched","routine_created","agent_created","loop_plan","app_plan","app_build","os_action","prompt","confirm","followups","approval","questions","plan_review","artifact","file","sources","workflow_progress"]);function r(t){return"html"===t||"report"===t||"dashboard"===t||"carousel"===t||"newsletter"===t}function a(t){return"object"==typeof t&&null!==t&&e.has(t.kind??"")}function n(t){if("object"!=typeof t||null===t)return!1;let{type:e}=t;return"action"===e||null==e&&a(t)}t.s(["actionsFromPanelData",0,function(t){return Array.isArray(t)?t.filter(n).map(({type:t,...e})=>e).filter(a):[]},"canOpenArtifactStudio",0,function(t,e){return"dashboard"!==t&&e?.family!=="dashboard"&&(r(t)||"image"===t||"svg"===t)},"collapseLatestActions",0,function(t){let e=t=>"app_build"===t.kind?`app_build:${t.build_id}`:"app_plan"===t.kind?`app_plan:${t.interaction_id}`:"plan_review"===t.kind?`plan_review:${t.interaction_id}`:null,r=new Map;for(let a of t){let t=e(a);t&&r.set(t,a)}let a=new Set,n=[];for(let i of t){let t=e(i);if(!t){n.push(i);continue}a.has(t)||(a.add(t),n.push(r.get(t)))}return n},"isChatAction",0,a,"isHtmlArtifactKind",0,r,"panelsWithoutActions",0,function(t){return Array.isArray(t)?t.filter(t=>!n(t)):[]}])},543478,t=>{"use strict";var e=t.i(402389),r=t.i(209165);async function a(t,n={}){let i=n.signal?AbortSignal.any([n.signal,AbortSignal.timeout(21e5)]):AbortSignal.timeout(21e5),o=await (0,r.apiFetch)(`${t}${t.includes("?")?"&":"?"}async=true`,{...n,signal:i});if(!o.ok)throw Error(`Export failed (${o.status})`);
1if(202!==o.status)return o.blob();let{job_id:s}=await o.json();if("string"!=typeof s||!s)throw Error(e.default.t("messages:jobs.missingId","Export did not return a job ID"));for(;;){await function(t,e=2e3){return new Promise((r,a)=>{t.throwIfAborted();let n=()=>{clearTimeout(i),a(t.reason)},i=setTimeout(()=>{t.removeEventListener("abort",n),r()},e);t.addEventListener("abort",n,{once:!0})})}(i);let t=await (0,r.apiFetch)(`/api/v1/jobs/${encodeURIComponent(s)}`,{signal:i});if(!t.ok)throw Error(`Could not check export (${t.status})`);let e=await t.json();if("completed"===e.status){let t=await (0,r.apiFetch)(`/api/v1/jobs/${encodeURIComponent(s)}/download`,{signal:i});if(!t.ok)throw Error(`Could not download export (${t.status})`);return t.blob()}if(!["queued","running"].includes(e.status))throw Error(e.error||"Export failed")}}t.s(["jobDownload",0,a])},943094,t=>{"use strict";var e=t.i(543478),r=t.i(554293),a=t.i(296505),n=t.i(402389),i=t.i(430796),o=t.i(209165);function s(t){return t.trim().replace(/[^a-z0-9._-]+/gi,"_").replace(/^_+|_+$/g,"")||"palette-output"}function l(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function u(t,e){let r=URL.createObjectURL(t),a=document.createElement("a");a.href=r,a.download=e;try{document.body.appendChild(a),a.click()}finally{a.remove(),URL.revokeObjectURL(r)}}function f(t,e){return`<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<title>${l(t)}</title>
7<style>
8*{box-sizing:border-box}body{margin:0;padding:32px;font:14px/1.5 Arial,sans-serif;color:#111;background:#fff}
9main{max-width:1200px;margin:0 auto}section{margin:0 0 20px;padding:16px;border:1px solid #d4d4d4}
10h1,h2,h3,h4{margin:0 0 12px}table{width:100%;border-collapse:collapse;margin:8px 0}
11th,td{padding:8px;border:1px solid #d4d4d4;text-align:left;vertical-align:top}th{background:#f4f4f4}
12img,svg,canvas{max-width:100%;height:auto}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f4f4;padding:16px}
13@page{size:A4 landscape;margin:12mm}
14</style>
15</head>
16<body><main>${e}</main></body>
17</html>`}let c=`
18@page{size:A4 landscape;margin:12mm}
19html,body{background:#fff;margin:0}
20.rptPage{width:1024px;margin:0 auto;padding:0 0 8px}
21.rptHead{padding:0 0 10px;margin:0 0 16px;border-bottom:1px solid #d4d4d4}
22/* Longhands, not the font shorthand: the shorthand needs a literal family and
23   drops the whole declaration when given inherit — and inherit is the point
24   here, so the masthead uses the app's own face rather than the platform default
25   sitting next to Archivo/Inter panels. */
26.rptHead h1{margin:0;font-family:inherit;font-size:20px;font-weight:600;line-height:1.3;color:#111}
27.rptHead p{margin:4px 0 0;font-family:inherit;font-size:11px;line-height:1.4;
28    letter-spacing:.06em;text-transform:uppercase;color:#666}
29/* The shell is position:fixed/inset:0/overflow:hidden on screen (palette-os.css
30   \xa7.po-root) — as a standalone document it has to become flow content, or only
31   the first viewport's worth of dashboard ever reaches the page. */
32.po-root{position:static!important;inset:auto!important;height:auto!important;
33    max-height:none!important;overflow:visible!important;background:#fff!important}
34/* On screen every card is a fixed 150–420px box with its own scroller
35   (po-panel-register.tsx) — on paper it has to grow to its content, or the
36   capture keeps the crop. */
37.po-root .dashView{overflow:visible!important;height:auto!important;padding-right:0!important}
38.po-root .dashView .dbPanel{height:auto!important;min-height:0!important;
39    break-inside:avoid;page-break-inside:avoid}
40.po-root .dashView .pvBody,
41.po-root .dashView .pvPanelView,
42.po-root .dashView .pvTable{overflow:visible!important;max-height:none!important}
43.po-root .dashView .pvChart{min-height:0!important}
44.po-root .dashView img{max-width:100%}
45/* Screen-only chrome. */
46.spvGen,.spvEmpty,.spvTurnBar,.pvPager{display:none!important}
47.pvSortBtn{pointer-events:none}
48`;async function h(e,r){let a=Array.from(e.querySelectorAll("canvas")),i=Array.from(r.querySelectorAll("canvas"));if(!a.length)return;let o=null;try{o=await t.A(731542)}catch{o=null}
48a.forEach((t,e)=>{let r=i[e];if(!r)return;let a="";try{for(let e=t.parentElement;e&&!a;e=e.parentElement){let t=o?.getInstanceByDom(e);t&&(a=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#ffffff"}))}a||(a=t.toDataURL("image/png"))}catch{r.replaceWith(document.createTextNode(n.default.t("pagesUi.previewExport.chartUnavailable","Chart preview unavailable in this export.")));return}let s=document.createElement("img");s.src=a,s.alt="Chart",s.style.width="100%",s.style.height="auto",r.replaceWith(s)})}async function p(t,e){let r=e.cloneNode(!0);await h(e,r),r.classList.remove("dataDark"),r.querySelectorAll(".dataDark").forEach(t=>t.classList.remove("dataDark")),r.querySelector(".dashView")||(r.innerHTML=`<div class="dashView"><div class="pvPanelView">${r.innerHTML}</div></div>`);let a=new Date().toLocaleString(),n=l(document.body.className);return`<!doctype html>
49<html lang="en" data-theme="palette-os">
50<head>
51<meta charset="utf-8">
52<meta name="viewport" content="width=device-width, initial-scale=1">
53<base href="${l(window.location.origin)}/">
54<title>${l(t)}</title>
55<style>${[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]].map(t=>{try{return Array.from(t.cssRules).map(t=>t.cssText).join("\n")}catch{return""}}).filter(Boolean).join("\n")}</style>
56<style>${c}</style>
57</head>
58<body class="${n}">
59<div class="po-root">
60<div class="rptPage">
61<header class="rptHead"><h1>${l(t)}</h1><p>${l(a)}</p></header>
62${r.innerHTML}
63</div>
64</div>
65</body>
66</html>`}async function d(t){if((0,a.isHtmlArtifactKind)(t.artifact_kind)){let e=await (0,i.withInlineChartRuntime)(t.content??"");return/<!doctype|<html[\s>]/i.test(e)?e:f(t.title,e)}return"svg"===t.artifact_kind?f(t.title,`<h1>${l(t.title)}</h1>${t.content??""}`):"image"===t.artifact_kind?f(t.title,`<h1>${l(t.title)}</h1><img src="${l(t.url??"")}" alt="${l(t.title)}">`):f(t.title,`<h1>${l(t.title)}</h1><pre>${l(t.content??"")}</pre>`)}let g="palette-preview-capture";function m(t,e={}){let r=(0,i.prepareArtifactHtml)(t),a=function(t={}){let e=window.location.origin;return`
67<script src="${e}/vendor/html-to-image.js"></script>
68<script>
69(function () {
70    function send(payload) { parent.postMessage(Object.assign({ type: "${g}" }, payload), "*") }
71    async function capture() {
72        if (document.fonts) await document.fonts.ready
73        var doc = ${t.page?"document.querySelector('.slide')":"document.documentElement"}
74        if (!doc) { send({ok:false,error:'Page not found'}); return }
75        ${t.transparent?"doc.style.background = 'transparent';":""}
76        var body = document.body
77        var width = ${t.page?"doc.offsetWidth":"Math.max(doc.scrollWidth, body ? body.scrollWidth : 0, 1)"}
78        var height = ${t.page?"doc.offsetHeight":"Math.max(doc.scrollHeight, body ? body.scrollHeight : 0, 1)"}
79        var scale = Math.min(2, Math.sqrt(18000000 / (width * height)))
80        window.htmlToImage.toSvg(doc, {
81            quality: 0.92,
82            backgroundColor: ${t.transparent?"undefined":'"#ffffff"'},
83            width: width,
84            height: height,
85            pixelRatio: scale,
86        }).then(function (dataUrl) {
87            send({ ok: true, dataUrl: dataUrl, width: Math.round(width * scale), height: Math.round(height * scale) })
88        }).catch(function (error) { send({ ok: false, error: String(error) }) })
89    }
90    // Settle delay so the chart runtime (ECharts) finishes painting first.
91    if (document.readyState === "complete") setTimeout(capture, 600)
92    else window.addEventListener("load", function () { setTimeout(capture, 600) })
93})()
94</script>`}(e),o=r.toLowerCase().lastIndexOf("</body>"),s=o>=0?r.slice(0,o)+a+r.slice(o):r+a,l=document.createElement("iframe");return l.setAttribute("sandbox","allow-scripts"),l.style.cssText="position:fixed;left:-12000px;top:0;width:1200px;height:900px;border:0;visibility:hidden;pointer-events:none",new Promise((t,r)=>{let a=()=>{window.removeEventListener("message",o),clearTimeout(i),l.remove()},i=setTimeout(()=>{a(),r(Error(n.default.t("pagesUi.previewExport.timedOut","Timed out rendering the preview for PDF exp
94ort")))},2e4);function o(i){if(i.source!==l.contentWindow)return;let o=i.data;if(o?.type!==g)return;if(a(),!o.ok||!o.dataUrl)return void r(Error(o.error||n.default.t("pagesUi.previewExport.renderFailed","Could not render the preview for PDF export")));let s={dataUrl:o.dataUrl,width:o.width||1,height:o.height||1};if("svg"===e.format)return void t(s);let u=new Image;u.onload=()=>{try{let r=document.createElement("canvas");r.width=s.width,r.height=s.height;let a=r.getContext("2d");e.transparent&&"jpeg"!==e.format||(a.fillStyle="#ffffff",a.fillRect(0,0,r.width,r.height)),a.drawImage(u,0,0,r.width,r.height),t({...s,dataUrl:r.toDataURL("png"===e.format?"image/png":"image/jpeg",.92)})}catch(t){r(t)}},u.onerror=()=>r(Error(n.default.t("studio.exportImageDecodeFailed"))),u.src=o.dataUrl}window.addEventListener("message",o),l.srcdoc=s,document.body.appendChild(l)})}async function y(e){let r=e.artifact;if(r&&((0,a.isHtmlArtifactKind)(r.artifact_kind)||"svg"===r.artifact_kind))return m(await d(r));if(!e.element)throw Error(n.default.t("pagesUi.previewExport.notReady","Preview is not ready to export"));let i=Math.max(e.element.scrollWidth,e.element.clientWidth,1),o=Math.max(e.element.scrollHeight,e.element.clientHeight,1),s=Math.min(2,Math.sqrt(18e6/(i*o))),l=(await t.A(270830)).default,u=await l(e.element,{scale:s,backgroundColor:"#ffffff",useCORS:!0,width:i,height:o,windowWidth:i,windowHeight:o});return{dataUrl:u.toDataURL("image/jpeg",.92),width:u.width,height:u.height}}async function w(e){let r=await y(e),{default:a}=await t.A(234162),n=new a({orientation:r.width>r.height?"landscape":"portrait",unit:"pt",format:"a4"}),i=n.internal.pageSize.getWidth(),o=n.internal.pageSize.getHeight(),l=r.height*i/r.width,u=0;do u>0&&n.addPage(),n.addImage(r.dataUrl,"JPEG",0,-u,i,l),u+=o;while(u<l)n.save(`${s(e.title)}.pdf`)}async function b(t){let r=null;try{let a=t.artifact;if(a?r=await d(a):t.element&&(r=await p(t.title,t.element)),r)return void u(await (0,e.jobDownload)("/api/v1/general-chat/export.pdf",{method:"POST",body:JSON.stringify({html:r,title:t.title})}),`${s(t.title)}.pdf`)}catch(t){console.warn("Headless PDF render unavailable — falling back to a capture:",t)}await w(t)}function v(t){if("string"!=typeof t)return t;let e=t.trim().replace(/,/g,"");return e&&/^-?\d+(\.\d+)?$/.test(e)?Number(e):t}async function x(e){let i=await t.A(342078),o=i.utils.book_new();if(e.artifact){let t=e.artifact;if((0,a.isHtmlArtifactKind)(t.artifact_kind)&&t.content){let e=new DOMParser().parseFromString(t.content,"text/html");e.querySelectorAll("table").forEach((t,e)=>{i.utils.book_append_sheet(o,i.utils.table_to_sheet(t),`Table ${e+1}`)}),e.querySelectorAll("[data-chart]").forEach((t,e)=>{let a=function(t){if(!t)return null;try{let e=JSON.parse(t);if(["ring","concentric","gauge","range","boxplot","before-after","network","bubble","sankey","geo","scatter"].includes(e.type))return(0,r.validateDashboardChart)(e),{title:e.title||null,rows:(0,r.chartRows)(e).map(t=>t.map(t=>"number"==typeof t?t:String(t??"")))};let a="string"==typeof e.title?e.title:null,n=Array.isArray(e.series)?e.series:[];if(Array.isArray(e.x)&&n.some(t=>Array.isArray(t?.data))){let t=["",...n.map((t,e)=>String(t?.name??`Series ${e+1}`))],r=e.x.map((t,e)=>[String(t),...n.map(t=>{let r;return Array.isArray(t?.data)?(r=t.data[e],Array.isArray(r)?r.join(", "):r??""):""})]);return{title:a,rows:[t,...r]}}let i=n.filter(t=>t&&null!=t.name&&null!=t.value);if(i.length)return{title:a,rows:[["Name","Value"],...i.map(t=>[String(t.name),t.value])]}}catch{}return null}(t.getAttribute("data-chart"));if(!a)return;let n=(a.title??`Chart ${e+1}`).replace(/[\\/?*:[\]]/g," ").slice(0,31)||`Chart ${e+1}`,s=o.SheetNames.includes(n)?`${n.slice(0,27)} C${e+1}`:n;i.utils.book_append_sheet(o,i.utils.aoa_to_sheet(a.rows),s)})}if(0===o.SheetNames.length){let e="image"===t.artifact_kind?t.url??"":t.content??"",r=i.utils.aoa_to_sheet([["Title",t.title],["Type",t.artifact_kind],["Content",e]]);i.utils.book_append_sheet(o,r,"Output")}}else{let t=[["#","Panel","Type","Rows"]];if((function t(e){return e.flatMap(e=>"dashboard"===e.type?t(e.panels):[e])}
94)(e.panels).forEach((e,r)=>{let a,n,s=function t(e){switch(e.type){case"table":case"heatmap":return[e.headers,...e.rows];case"po":{let t=e.data??{},r=Array.isArray(t.columns)?t.columns.map(String):[],a=Array.isArray(t.rows)?t.rows.map(t=>Array.isArray(t)?t.map(t=>"number"==typeof t?t:String(t??"")):[]):[];return r.length||a.length?[r,...a]:[]}case"stats":case"kpi":return[["Label","Value","Unit","Trend"],...e.items.map(t=>[t.label,t.value,t.unit??"",t.trend??""])];case"summary":return[["Label","Value","Description"],...e.items.map(t=>[t.label,t.value,t.description??""])];case"bar":case"vertical-bar":case"pie":case"donut":case"progress":case"radar":case"treemap":case"funnel":return[["Label","Value"],...e.items.map(t=>[t.label,t.value])];case"line":case"area":if(e.series?.length){let t=e.categories??e.series[0].data.map(t=>t.category);return[["Category",...e.series.map(t=>t.name)],...t.map((t,r)=>[t,...e.series.map(t=>t.data[r]?.value??"")])]}return[["Label","Value"],...(e.items??[]).map(t=>[t.label,t.value])];case"stacked-bar":return[["Category",...e.series.map(t=>t.name)],...e.categories.map((t,r)=>[t,...e.series.map(t=>t.data[r]?.value??"")])];case"scatter":return[["Label","X","Y"],...e.points.map(t=>[t.label??"",t.x,t.y])];case"gauge":return[["Label","Value","Target"],[e.label??e.title??"Gauge",e.value,e.target]];case"timeline":return[["Date","Title","Description"],...e.events.map(t=>[t.date,t.title,t.description??""])];case"comparison":{let t=Array.from(new Set(e.items.flatMap(t=>Object.keys(t.attributes))));return[["Attribute",...e.items.map(t=>t.name)],...t.map(t=>[t,...e.items.map(e=>e.attributes[t]??"")])]}case"list":return[["Title","Description","Badge"],...e.items.map(t=>[t.title,t.description??"",t.badge??""])];case"kanban":return[["Column","Title","Description","Badge"],...e.columns.flatMap(t=>t.items.map(e=>[t.title,e.title,e.description??"",e.badge??""]))];case"alert":return[["Variant","Message"],[e.variant,e.message]];case"image":return[["Title","Image URL","Caption"],[e.title??e.alt??"Image",e.url,e.caption??""]];case"code":return[["Language","Code"],[e.language??"",e.code]];case"markdown":return[["Content"],[e.content]];case"dashboard":return[["Dashboard",e.title??"Dashboard"],...e.panels.flatMap(e=>[[""],...t(e)])];case"hero":return[["Caption","Value","Delta","Trend"],[e.caption??"",e.value,e.delta??"",e.trend??""]];case"ring":return[["Label","Value","Max"],[e.label??e.title??"Ring",e.value,e.max]];case"columns":case"leaderboard":return[["Label","Value"],...e.items.map(t=>[t.label,t.value])];case"split":case"segments":case"badges":case"datafeeds":return[["Label","Value"],...e.items.map(t=>["label"in t?t.label:"","value"in t?t.value:"tone"in t?t.tone:""])];case"state":return[["Heading","Tags"],[e.heading,e.tags.join(", ")],["Value","Caption"],...e.items.map(t=>[t.value,t.caption])];case"feed":return[["Tone","Title","Meta","Action"],...e.items.map(t=>[t.tone,t.title,t.meta??"",t.action??""])];case"master-detail":return[["Record","Field","Value"],...e.items.flatMap(t=>t.fields.map(e=>[t.name,e.key,e.value]))];case"document":return[["Name","Meta","Badge"],...e.items.map(t=>[t.name,t.meta??"",t.badge??""])];case"approval":return[["Heading","Subtitle","Draft"],[e.heading,e.subtitle??"",e.draft??""],["Field","Value"],...e.meta.map(t=>[t.label,t.value])];case"bullet":return[["Label","Value","Target"],...e.items.map(t=>[t.label,t.value,t.target])];case"sankey":return[["Source","Target","Value"],...e.links.map(t=>[t.source,t.target,t.value])];case"network":return[["Source","Target","Value"],...e.links.map(t=>[t.source,t.target,t.value??""])];case"boxplot":return[["Label","Min","Q1","Median","Q3","Max"],...e.items.map(t=>[t.label,...t.values])];case"range":return[["Label","Low","High"],...e.items.map(t=>[t.label,t.low,t.high])];case"before-after":return[["Label","Before","After"],...e.items.map(t=>[t.label,t.before,t.after])];case"bubble":return[["Label","Value","Group"],...e.items.map(t=>[t.label,t.value,t.group??""])];case"combo":return[["Category",e.bar.name,e.line.name],...e.categories.map((t,r)=>[t,e.bar.data[r]??"",e.line.data[r]??""])]}}(e)??[];if(!s.length)return;let l="title"in e&&e.title||`${e.type} ${r+1}`,u=l.replace(/[\\/?*:[\]]/g," ").slice(0,31)||`Sheet ${r+1}`,f=o.SheetNames.includes(u)?`${u.slice(0,27)} ${r+1}`:u;t.push([t.length,l,e.type,Math.max(0,s.length-1)]),i.utils.book_append_sheet(o,(a=i.utils.aoa_to_sheet(s.map(t=>t.map(v))),n=Math.max(...s.map(t=>t.length),1),a["!cols"]=Array.from({length:n},(t,e)=>({wch:Math.min(60,Math.max(10,...s.map(t=>String(t[e]??"").length+2)))})),s.length>1&&(a["!autofilter"]={ref:i.utils.encode_range({s:{r:0,c:0},e:{r:s.length-1,c:n-1}})}),a),f)}),t.length>1){let r=i.utils.aoa_to_sheet([["Report",e.title],["Generated",new Date().toLocaleStr
94ing()],[],...t]);r["!cols"]=[{wch:6},{wch:52},{wch:16},{wch:8}],i.utils.book_append_sheet(o,r,"Report"),o.SheetNames.unshift(o.SheetNames.pop())}}0===o.SheetNames.length&&i.utils.book_append_sheet(o,i.utils.aoa_to_sheet([["Output",n.default.t("pagesUi.previewExport.noData","No data available")]]),"Output"),i.writeFile(o,`${s(e.title)}.xlsx`)}async function A(t){u(new Blob([t.artifact?await d(t.artifact):t.element?await p(t.title,t.element):f(t.title,`<p>${n.default.t("pagesUi.previewExport.noPreviewData","No preview data is available.")}</p>`)],{type:"text/html;charset=utf-8"}),`${s(t.title)}.html`)}async function k(t){return t.artifact?d(t.artifact):t.element?p(t.title,t.element):f(t.title,"")}let E=/https?:\/\/(?:(?!&(?:quot|apos|#34|#39|#x22|#x27);)[^"'\s)<>])+/gi;async function S(t){let e=Array.from(new Set(t.filter(t=>/^https?:\/\//.test(t)).map(t=>t.replace(/&amp;/g,"&"))));if(!e.length)return{};let r={};for(let t=0;t<e.length;t+=4)if(Object.assign(r,...await Promise.all(e.slice(t,t+4).map(async t=>{let e=await (0,o.apiFetch)("/api/v1/general-chat/assets.inline",{method:"POST",body:JSON.stringify({urls:[t]})});return await e.json()}))),Object.values(r).reduce((t,e)=>t+e.length,0)>54e6)throw Error(n.default.t("studio.exportImagesTooLarge"));return r}function B(t,e){return Object.keys(e).length?t.replace(E,t=>e[t.replace(/&amp;/g,"&")]||t):t}async function T(e,r){let a=await k(r),{dashboardOfficeHtml:n,dashboardOfficeDeck:i}=await t.A(292116);if(a=await n(a,"pptx"!==e),"pptx"===e){let[{buildPresentationBlob:e},{htmlToPresentationDeck:n}]=await Promise.all([t.A(316777),t.A(57778)]),{layoutDeck:o}=await t.A(661767),l=r.artifact?.structured,f=l?.deck?o(l):/data-session-dashboard=["']nocturne-v1["']/.test(a)?i(r.title,a):n(r.title,a),c=await S(f.slides.flatMap(t=>[String(t.background?.image||""),...t.blocks.map(t=>String(t.props.src||""))]));for(let t of f.slides)for(let e of(t.background?.image&&c[t.background.image]&&(t.background={...t.background,image:c[t.background.image]}),t.blocks))"string"==typeof e.props.src&&c[e.props.src]&&(e.props={...e.props,src:c[e.props.src]});u(await e(f,r.title),`${s(r.title)}.pptx`);return}a=B(a,await S(Array.from(a.matchAll(/<img[^>]+src="([^"]+)"/gi),t=>t[1])));let{htmlToDocumentSnapshot:o}=await t.A(57778),l=o(r.title,a);if("hwpx"===e){let{buildHwpxBlob:e}=await t.A(325900);u(await e(l,r.title),`${s(r.title)}.hwpx`);return}let{buildDocumentBlob:f}=await t.A(393389);u(await f(l,r.title),`${s(r.title)}.docx`)}async function U(t,e){return"pdf"===t?b(e):"xlsx"===t?x(e):"docx"===t||"pptx"===t||"hwpx"===t?T(t,e):A(e)}async function _(e,r){if(["mp4","webm","mp3","wav"].includes(e))throw Error(n.default.t("studio.mediaQueueRequired"));if("xlsx"===e||"csv"===e){if(!r.structured.workbook)throw Error(n.default.t("studio.workbookRequired"));let{exportWorkbook:a}=await t.A(756840);u(await a(r.structured.workbook,e),`${s(r.title)}.${"csv"===e&&r.structured.workbook.sheetOrder.length>1?"zip":e}`);return}if("png"===e||"jpeg"===e||"svg"===e){let{layoutDeck:a,renderStructured:n}=await t.A(661767),i=r.structured.deck?a(r.structured):null,o=i?i.slides.map(t=>n({...r.structured,freeform:!0,deck:{...i,slides:[t]}})):[r.content],l=o.length>1?new(await t.A(495004)).default:null;for(let[t,a]of o.entries()){let n=B(a,await S(Array.from(a.matchAll(E),t=>t[0]))),o=await m(n,{format:e,page:!!i,transparent:r.transparent&&"jpeg"!==e}),f=await (await fetch(o.dataUrl)).blob(),c=`${s(r.title)}${l?`-${t+1}`:""}.${"jpeg"===e?"jpg":e}`;l?l.file(c,f):u(f,c)}l&&u(await l.generateAsync({type:"blob"}),`${s(r.title)}-${e}.zip`);return}let a={kind:"artifact",artifact_id:r.artifactSlug,title:r.title,artifact_kind:["image","svg"].includes(r.artifactKind)?"html":r.artifactKind,content:r.content,structured:r.structured,revision:0,size_bytes:r.content.length};await U(e,{title:r.title,artifact:a,panels:[],element:null})}t.s(["downloadBlob",0,u,"exportSessionPreview",0,U,"exportStudioDraft",0,_,"inlineOwnImages",0,S,"studioExportFormats",0,function(t){return"video"===t?["mp4","webm"]:"audio"===t?["mp3","wav"]:"spreadsheet"===t?["xlsx","csv","pdf"]:"document"===t?["pdf","docx","hwpx","html"]:"presentation"===t||"design"===t?["pdf","pptx","png","jpeg","svg","html"]:["pdf","png","jpeg","svg","html"]}])}]);

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.