1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2053,(e,t,r)=>{var i={872:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,a=l(e),s=a[0],o=a[1],c=new n((s+o)*3/4-o),d=0,p=o>0?s-4:s;for(r=0;r<p;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],s=0,o=i-n;s<o;s+=16383)a.push(function(e,t,i){for(var n,a=[],s=t;s<i;s+=3)n=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)r[s]=a[s],i[a.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 i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},230:function(e,t,r){"use strict";var i=r(872),n=r(321),a="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,o.prototype),t}function o(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 d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);var a=0|u(i,n),l=s(a),c=l.write(i,n);return c!==a&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return p(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(k(e,ArrayBuffer)||e&&k(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(k(e,SharedArrayBuffer)||e&&k(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;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(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var d=e.valueOf&&e.valueOf();if(null!=d&&d!==e)return o.from(d,t,r);var f=function(e){if(o.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):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.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 c(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 d(e){return c(e),s(e<0?0:0|h(e))}function p(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.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}}(),!o.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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return d(e)},o.allocUnsafeSlow=function(e){return d(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function u(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||k(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,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(n)return i?-1:S(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,r){var n,a,s,o=!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 i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=T[e[a]];return n}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,a=t,s=r,0===a&&s===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function g(e,t,r,i,n){var a;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:x(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return x(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function x(e,t,r,i,n){var a,s=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var d=-1;for(a=r;a<o;a++)if(c(e,a)===c(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===l)return d*s}else -1!==d&&(a-=a-d),d=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var p=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){p=!1;break}if(p)return a}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(k(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),k(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.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,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},o.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}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=o.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(k(a,Uint8Array)&&(a=o.from(a)),!o.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},o.byteLength=u,o.prototype._isBuffer=!0,o.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)m(this,t,t+1);return this},o.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)m(this,t,t+3),m(this,t+1,t+2);return this},o.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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):f.apply(this,arguments)}
vendor: 10,318 bytes, line 1
1,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.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+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,i,n){if(k(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,s=r-t,l=Math.min(a,s),c=this.slice(i,n),d=e.slice(t,r),p=0;p<l;++p)if(c[p]!==d[p]){a=c[p],s=d[p];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function y(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,s,o,l,c=e[n],d=null,p=c>239?4:c>223?3:c>191?2:1;if(n+p<=r)switch(p){case 1:c<128&&(d=c);break;case 2:(192&(a=e[n+1]))==128&&(l=(31&c)<<6|63&a)>127&&(d=l);break;case 3:a=e[n+1],s=e[n+2],(192&a)==128&&(192&s)==128&&(l=(15&c)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:a=e[n+1],s=e[n+2],o=e[n+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(d=l)}null===d?(d=65533,p=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),n+=p}var h=i,u=h.length;if(u<=4096)return String.fromCharCode.apply(String,h);for(var f="",m=0;m<u;)f+=String.fromCharCode.apply(String,h.slice(m,m+=4096));return f}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,i,n,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function w(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,i,a){return t*=1,r>>>=0,a||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function N(e,t,r,i,a){return t*=1,r>>>=0,a||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}o.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,a,s,o,l,c,d,p,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");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return n=t,a=r,_(S(e,this.length-n),this,n,a);case"ascii":return s=t,o=r,_(A(e),this,s,o);case"latin1":case"binary":return function(e,t,r,i){return _(A(t),e,r,i)}(this,e,t,r);case"base64":return l=t,c=r,_(C(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,p=r,_(function(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}(e,this.length-d),this,d,p);default:if(u)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.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 i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},o.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},o.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},o.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},o.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},o.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},o.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},o.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.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},o.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},o.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},o.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},o.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},o.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===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(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},o.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}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(n=t;n<r;++n)this[n]=e;
1else{var s=o.isBuffer(e)?e:o.from(e,i),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=s[n%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function S(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function C(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function k(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},321:function(e,t){t.read=function(e,t,r,i,n){var a,s,o=8*n-i-1,l=(1<<o)-1,c=l>>1,d=-7,p=r?n-1:0,h=r?-1:1,u=e[t+p];for(p+=h,a=u&(1<<-d)-1,u>>=-d,d+=o;d>0;a=256*a+e[t+p],p+=h,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=i;d>0;s=256*s+e[t+p],p+=h,d-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(u?-1:1);s+=Math.pow(2,i),a-=c}return(u?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var s,o,l,c=8*a-n-1,d=(1<<c)-1,p=d>>1,h=5960464477539062e-23*(23===n),u=i?0:a-1,f=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+p>=1?t+=h/l:t+=h*Math.pow(2,1-p),t*l>=2&&(s++,l/=2),s+p>=d?(o=0,s=d):s+p>=1?(o=(t*l-1)*Math.pow(2,n),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,n),s=0));n>=8;e[r+u]=255&o,u+=f,o/=256,n-=8);for(s=s<<n|o,c+=n;c>0;e[r+u]=255&s,u+=f,s/=256,c-=8);e[r+u-f]|=128*m}}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},s=!0;try{i[e](r,r.exports,a),s=!1}finally{s&&delete n[e]}return r.exports}a.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@types+nod_eb486f4ecde385fd7c898d9d5757e76a/node_modules/next/dist/compiled/buffer/",t.exports=a(230)},54842,(e,t,r)=>{t.exports=e.r(20421)},68948,e=>{"use strict";e.i(83724),e.s([])},96802,62687,82726,e=>{"use strict";e.i(5967),e.s([],96802);var t=e.i(51213),r=e.i(79364),i=e.i(7284);e.i(38619);var n=e.i(51078);e.i(17397);var a=e.i(18475),s=e.i(12297),o=e.i(83312),l=e.i(33740);e.s(["Footer",0,({accreditations:e,columns:c=[],cookieLabel:d,homepageLinkLabel:p,logo:h,locale:u})=>(0,t.jsx)("div",{className:"bg-primary-black pb-20",children:(0,t.jsx)("footer",{className:"w-full rounded-b-lg xl:rounded-b-2xl bg-neutral",children:(0,t.jsxs)(n.Container,{className:"py-10 px-4 md:px-10 md:py-20",children:[h&&(0,t.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between gap-10",children:[(0,t.jsx)("a",{href:"/","aria-label":p,children:(0,t.jsx)(r.default,{src:h?.filename,alt:"MSQ DX Logo",width:170,height:40,className:"h-10"})}),(0,t.jsx)(s.LanguageSwitcher,{})]}),(0,t.jsxs)("div",{className:(0,i.default)("grid grid-cols-1 md:grid-cols-2 gap-x-6",{"xl:grid-cols-6":c.length>=4,"xl:grid-cols-5":3===c.length,"xl:grid-cols-4":2===c.length,"xl:grid-cols-3":1===c.length}),children:[(0,t.jsx)("div",{className:"col-span-1 md:col-span-2 xl:col-span-2 w-full pt-10",children:(0,t.jsx)("div",{className:"flex flex-row gap-4 md:gap-5 justify-center md:justify-start",children:e?.map((e,i)=>(0,t.jsx)(r.default,{src:e.filename,alt:e.alt,width:100,height:100,className:"w-20 h-20 md:w-25 md:h-25 object-contain"},e.alt+i))})}),c?.map(e=>(0,t.jsxs)("div",{className:"col-span-1 w-full pt-10",children:[(0,t.jsxs)("p",{className:"eyebrow pb-5",children:[e.heading," _"]}),(0,t.jsx)("ul",{className:"flex flex-col gap-y-4",children:(0,l.getLocalizedLinks)(e.links,u).map(e=>(0,t.jsx)("li",{className:"flex",children:(0,t.jsx)(a.NavSubLink,{...e})},e.label))})]},e.heading))]}),(0,t.jsxs)("p",{className:"description pt-10",children:["© ",new Date().getFullYear(),".",(0,t.jsx)(o.CookieControl,{label:d})]})]})})})],62687),e.s([],82726)},28081,29698,e=>{"use strict";let t;e.s(["getStoryblokApi",()=>rg],28081);var r=e.i(37732),i=e.i(51213);e.i(37644);var n=e.i(16301),a=e.i(5766),s=e.i(16159);e.i(68948);var o=e.i(83724);e.i(96802);var l=e.i(5967);e.i(82726);var c=e.i(62687),d=e.i(54842);let p=({id:e,schema:t})=>{let r=Array.isArray(t)?t.map(e=>e["@type"]).join("-"):String(t["@type"]),n=e??`schema-${r.toLowerCase()}`;return(0,i.jsx)(d.default,{id:n,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})};async function h(){return`${window.location.protocol}//${window.location.host}`}let u=e=>e?e.split(",").map(e=>
1e.trim()).filter(Boolean):[],f=["https://www.linkedin.com/company/msqdx","https://twitter.com/msqdx","https://www.26-dx.com","https://www.mmtdigital.com","https://www.udg.com","https://www.arke.com"],m=async({description:e,knowsAbout:t})=>{let r=await h();return{"@context":"https://schema.org","@type":"Organization",name:"MSQ DX",url:r,logo:`${r}/msqdx-logo.svg`,...e&&{description:e},sameAs:f,...t&&{knowsAbout:u(t)}}},g=async({serviceTypes:e,slug:t,locale:r="en"})=>{let i=await h();return{"@context":"https://schema.org","@type":"ProfessionalService",name:"MSQ DX",url:`${i}/${r}/${t}`,serviceType:e,areaServed:"Global",provider:{"@type":"Organization",name:"MSQ DX"}}},x=async({title:e,description:t,operatingSystem:r,applicationCategory:i,slug:n,locale:a})=>{let s=await h();return{"@context":"https://schema.org","@type":"SoftwareApplication",...e&&{name:e},...i&&{applicationCategory:i},...r&&{operatingSystem:r},...t&&{description:t},url:`${s}/${a}/${n}`,creator:{"@type":"Organization",name:"MSQ DX"}}},y=async(e,t)=>{if(!e.enabled)return null;switch(e.component){case"organisationSchema":if("organisationSchema"!==e.component)return null;return m({description:e.description,knowsAbout:e.knowsAbout,...t});case"customSchema":if("customSchema"!==e.component)return null;var r=e.json;if(!r)return null;try{return JSON.parse(r)}catch{return console.warn("[parseSchemaJson] Invalid JSON:",r),null}case"professionalServiceSchema":if("professionalServiceSchema"!==e.component)return null;return g({serviceTypes:u(e.serviceTypes),...t});case"softwareApplicationSchema":if("softwareApplicationSchema"!==e.component)return null;return x({title:e.title,description:e.description,operatingSystem:e.operatingSystem,applicationCategory:e.applicationCategory,...t});default:return console.warn(`[buildSchema] Unknown schema component: ${e.component}`),null}},b=async({blocks:e,context:t})=>{if(!e?.length)return null;let r=await Promise.all(e.map(e=>y(e,t)));return(0,i.jsx)(i.Fragment,{children:r.map((t,r)=>t?(0,i.jsx)(p,{schema:t,id:`schema-${e[r].component}`},e[r]._uid):null)})},v=async e=>{if(!e?.length)return null;let t=await h();return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,r)=>({"@type":"ListItem",position:r+1,name:e.label,...e.href&&{item:`${t}${e.href}`}}))}},w=async({header:e,footer:t,children:r,locale:n,slug:a,schemaBlocks:s,breadcrumbs:d})=>{let h=e?.[0]?.content||{},u=t?.[0]?.content||{},f=await v(d??[]);return(0,i.jsxs)(i.Fragment,{children:[!!f&&(0,i.jsx)(p,{schema:f,id:"schema-breadcrumb"}),(0,i.jsx)(b,{blocks:s,context:{locale:n,slug:a}}),(0,i.jsx)(o.SkipToMainContent,{targetId:"main-content"}),(0,i.jsx)(l.Header,{...h,locale:n}),(0,i.jsx)("main",{id:"main-content",tabIndex:-1,className:"flex-grow pt-0.5",children:r}),(0,i.jsx)(c.Footer,{...u,locale:n})]})};e.i(38619);var j=e.i(51078);e.i(85201);var N=e.i(37816);e.i(51690);var E=e.i(64146),S=e.i(7284);e.i(47221);var A=e.i(15643);let C=({items:e,accentColor:t="pink",className:r="",variant:n="default"})=>(0,i.jsx)("nav",{className:(0,S.default)({"p-4 md:p-10":"default"===n},"w-full","rounded-md md:rounded-lg","font-secondary",{"bg-secondary-dx-grey-light":"grey"===t,"bg-secondary-dx-yellow":"yellow"===t,"bg-secondary-dx-pink":"pink"===t,"bg-secondary-dx-pink-tint":"pink-light"===t,"bg-secondary-dx-orange":"orange"===t,"bg-secondary-dx-green":"green"===t,"bg-primary-white":"white"===t,"bg-transparent":"simple"===n},r),"aria-label":"Breadcrumb",children:(0,i.jsx)("ol",{className:"flex flex-wrap items-center m-0 gap-1 md:gap-2",children:e.map((t,r)=>(0,i.jsxs)("li",{className:"flex items-center gap-1 md:gap-2",children:[t.href?(0,i.jsx)(A.CTA,{href:t.href,className:"uppercase eyebrow",useArrow:!1,useUnderline:!1,children:t.label}):(0,i.jsx)("span",{className:"eyebrow",children:t.label}),r<e.length-1&&(0,i.jsx)("span",{className:"eyebrow","aria-hidden":"true",children:"/"})]},r))})});var _=e.i(52621),k=e.i(90476);let T=({href:e,label:t,colour:r,link:n,className:a})=>{let s=r?`${k.ACCENT_BACKGROUND_COLOR_CLASSES[r]} text-primary-black`:"bg-primary-black text-primary-white",o=`text-xs/4 uppercase rounded-sm p-2 hover:bg-secondary-dx-yellow hover:text-primary-black ${s} ${a||""}`;return e||n?.cached_url?(0,i.jsx)("a",{href:e||(n?(0,_.getStoryblokLink)(n):""),className:o,children:t}):(0,i.jsx)("div",{className:`${o} pointer-events-none`,children:t})},I=({tags:e})=>e?.length?(0,i.jsx)("ul",{className:"flex flex-wrap gap-2",children:e.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(T,{label:e.label,colour:e.colour,href:e.href,link:e.link})},e._uid))}):null;var L=k,O=e.i(14648);let $=(e,t)=>e.split(/\r?\n/).map((e,r)=>(0,i.jsxs)(O.Fragment,{children:[r>0&&(0,i.jsx)("br",{}),e]},`${t}-${r}`)),P=(e,t)=>e.split(/\*\*([\s\S]*?)\*\*/g).map((e,r)=>r%2==1?(0,i.jsx)("span",{className:t?k.HIGHLIGHT_TEXT_COLOR_CLASSES[t]:void 0,children:$(e,String(r))},r):(0,i.jsx)(O.Fragment,{children:$(e,String(r))},r));var M=e.i(79364);let R=({logo:e,title:t,titleHighlightColor:r,intro:n,tags:a=[],background:s=L.ACCENT_COLORS.PINK,breadcrumbs:o=[]})=>{let l=(0,O.useId)();return(0,i.jsx)(E.Section,{ariaLabelledBy:t?l:void 0,children:(0,i.jsx)(j.Container,{className:"px-5 md:px-10",children:(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col justify-items-center h-full","mt-2 py-8 px-4 md:px-10 md:py-20","rounded-md md:rounded-lg","gap-8 md:gap-10",L.BACKGROUND_TINT_COLOR_CLASSES[s]),children:[o.length>0&&(0,i.jsx)(C,{items:o,variant:"simple"}),e?.filename&&(0,i.jsx)("div",{className:"mb-2",children:(0,i.jsx)(M.default,{src:e.f
1ilename,alt:e.alt??"",width:220,height:0})}),t&&(0,i.jsx)("h1",{id:l,children:P(t,r)}),n&&(0,i.jsx)(N.RichText,{content:n}),a.length>0&&(0,i.jsx)(I,{tags:a})]})})})};var D=e.i(20282);let B=({image:e,priority:t=!1,className:r})=>{let n=(0,O.useId)().replace(/[^a-zA-Z0-9_-]/g,""),a=[`${n}-top-mask-clip`,`${n}-bottom-mask-clip`];return(0,i.jsxs)("div",{className:(0,S.default)("relative aspect-square w-full max-w-lg md:max-w-128.75",r),children:[(0,i.jsx)("svg",{width:"0",height:"0",className:"absolute","aria-hidden":"true",children:(0,i.jsxs)("defs",{children:[(0,i.jsx)("clipPath",{id:a[0],clipPathUnits:"objectBoundingBox",children:(0,i.jsx)("rect",{x:"0",y:"0",width:"0.5555",height:"0.5555",rx:"0.044",ry:"0.044"})}),(0,i.jsx)("clipPath",{id:a[1],clipPathUnits:"objectBoundingBox",children:(0,i.jsx)("rect",{x:"0.5555",y:"0.5555",width:"0.4445",height:"0.4445",rx:"0.044",ry:"0.044"})})]})}),a.map((r,n)=>(0,i.jsx)("div",{className:"absolute inset-0",style:{clipPath:`url(#${r})`},children:(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(e,"1030","0"),alt:0===n?e.alt??"":"",className:"object-cover",fill:!0,sizes:"(max-width: 768px) 327px, 515px",priority:t})},r))]})};var U=k;let V=({logo:e,title:t,titleHighlightColor:r,intro:n,tags:a=[],background:s=U.ACCENT_COLORS.ORANGE,image:o,breadcrumbs:l=[]})=>{let c=!!o?.filename,d=(0,O.useId)();return(0,i.jsx)(E.Section,{ariaLabelledBy:t?d:void 0,children:(0,i.jsx)(j.Container,{className:"px-5 md:px-10",children:(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col lg:flex-row gap-8 lg:gap-5","mt-2 py-8 px-4 md:px-10 md:py-20","rounded-md md:rounded-lg",U.ACCENT_BACKGROUND_COLOR_CLASSES[s]),children:[(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col gap-8 md:gap-10",{"lg:basis-3/5":c}),children:[l.length>0&&(0,i.jsx)(C,{items:l,variant:"simple"}),e?.filename&&(0,i.jsx)("div",{className:"mb-2",children:(0,i.jsx)(M.default,{src:e.filename,alt:e.alt??"",width:220,height:0})}),t&&(0,i.jsx)("h1",{id:d,children:P(t,r)}),n&&(0,i.jsx)(N.RichText,{content:n}),a.length>0&&(0,i.jsx)(I,{tags:a})]}),o?.filename&&(0,i.jsx)("div",{className:"lg:basis-2/5 lg:self-center",children:(0,i.jsx)(B,{image:o,className:"mx-auto lg:mr-0",priority:!0})})]})})})},q=({breadcrumbs:e,title:t,description:r,author:n,date:a,tags:s})=>{let o=[n.firstName+" "+n.lastName,n.occupation,a].filter(Boolean).join(", ");return(0,i.jsx)(E.Section,{variant:"neutral",children:(0,i.jsxs)(j.Container,{guttersX:"sm",children:[!!e?.length&&(0,i.jsx)(C,{items:e,accentColor:"yellow"}),(0,i.jsxs)("div",{className:"flex flex-col mt-2 bg-secondary-dx-yellow-tint rounded-md md:rounded-lg py-8 px-4 md:py-20 md:px-34 gap-5 md:gap-10",children:[(0,i.jsx)("h1",{className:"text-[2.75rem]/13 md:text-[4.5rem]/20",children:t}),(0,i.jsx)("p",{children:r}),(0,i.jsx)("p",{className:"eyebrow",children:o}),s&&!!s.length&&(0,i.jsx)("div",{className:"flex flex-wrap gap-3",children:s.map(e=>(0,i.jsx)(T,{href:`/tags/${e}`,label:e},e))})]})]})})};e.i(96010);var F=e.i(65522);let z=e=>{let{eyebrowText:t,heading:r,links:n,backgroundImage:a,accentColor:s,className:o=""}=e,l=a?{backgroundImage:`url(${a})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};return(0,i.jsxs)("section",{className:(0,S.default)("relative","flex flex-col items-center justify-center","text-center text-primary-black","p-4 md:p-10",{"bg-secondary-dx-orange":"orange"===s,"bg-secondary-dx-pink":"pink"===s,"bg-secondary-dx-grey-light":"grey"===s,"bg-secondary-dx-green":"green"===s,"bg-secondary-dx-yellow":"yellow"===s},o),style:l,children:[a&&(0,i.jsx)("div",{className:"absolute inset-0 bg-surface-neutral bg-opacity-30 rounded-[64px]"}),(0,i.jsx)(j.Container,{children:(0,i.jsxs)("div",{className:"flex flex-col items-center bg-neutral rounded-[64px] py-16 px-4 md:py-20 md:px-5 xl:px-20 gap-10",children:[!!t&&(0,i.jsxs)("p",{className:"eyebrow max-md:text-sm",children:[t," _"]}),(0,i.jsx)("h2",{className:"text-[2.75rem]/13 md:text-9xl/22 font-light",children:r}),n.map((e,t)=>(0,i.jsx)(F.Button,{variant:"primary",size:"md",href:(0,_.getStoryblokLink)(e.href),target:e.href.target,children:e.label},t))]})})]})};e.i(5495);var H=e.i(48155);let X=({eyebrowText:e,heading:t,subtext:r,align:n,links:a,size:s="lg"})=>(0,i.jsx)("div",{className:(0,S.default)("bg-neutral my-10 md:mt-20",{"text-left":"left"===n,"text-center":"center"===n,"text-right":"right"===n}),children:(0,i.jsxs)(j.Container,{className:(0,S.default)("flex flex-col gap-8 md:gap-10",{"px-5 md:px-10 lg:px-67.5":"md"===s,"px-4 md:px-10":"lg"===s}),children:[!!e&&(0,i.jsxs)("p",{className:"eyebrow max-md:text-sm",children:[e," _"]}),(0,i.jsx)("h2",{className:"max-w-5xl",children:t}),!!r&&(0,i.jsx)("p",{className:"max-w-2xl",children:r}),!!a?.length&&(0,i.jsx)("div",{className:(0,S.default)("flex flex-col gap-5 md:flex-row",{"items-start md:justify-start":"left"===n,"items-center md:justify-center":"center"===n,"items-end md:justify-end":"right"===n}),children:a.map((e,t)=>(0,i.jsx)(F.Button,{variant:0===t?"primary":"secondary",size:"sm",href:(0,_.getStoryblokLink)(e.href),target:e.href.target,children:e.label},t))})]})});e.i(91996);var G=e.i(14969);let Y="published";e.s(["CONTENT_VERSION",0,Y],29698);var W=e.i(82346);let J=async({title:e,description:t,image:r,author:i,publishDate:n,modifiedDate:a,slug:s,locale:o,tags:l})=>{let c=await h(),d=`${c}/${o}/${s}
1`,p=[i?.firstName,i?.lastName].filter(Boolean).join(" ");return{"@context":"https://schema.org","@type":"Article",headline:e,description:t||"",image:r?.filename?[r.filename]:[],datePublished:n,dateModified:a||n,author:{"@type":"Person",name:p||"MSQ DX"},publisher:{"@type":"Organization",name:"MSQ DX",logo:{"@type":"ImageObject",url:`${c}/logo.png`}},mainEntityOfPage:{"@type":"WebPage","@id":d},...l&&l.length>0&&{keywords:l.join(", ")}}};async function Q(t,r){let{getStoryblokApi:i}=await e.A(17429),n=i();try{let{data:e}=await n.get("cdn/stories",{version:Y,language:r,starts_with:"insights/",is_startpage:!1,per_page:3,excluding_slugs:t,sort_by:"published_at:desc"});return e?.stories||[]}catch(e){return console.error("Error fetching related articles:",e),[]}}let K=async({blok:e,breadcrumbs:t,tags:r,firstPublishedAt:n,createdAt:a,publishedAt:o,slug:l,locale:c})=>{let{header:d,footer:h,author:u,image:f,title:m,description:g,callout:x,schemaBlocks:y}=e,b=u?.[0]?.content||{},v=x?.[0]?.content,N=await Q(l,c),E=n||o||a||"",S=await J({title:m,description:g,image:f,author:b,publishDate:E,modifiedDate:o,slug:l,locale:c,tags:r});return(0,i.jsxs)(w,{header:d,footer:h,locale:c,slug:l,breadcrumbs:t,schemaBlocks:y,children:[(0,i.jsx)(p,{schema:S}),(0,i.jsx)(q,{title:m,description:g,author:b,breadcrumbs:t,tags:r,date:(0,W.formatDate)(n||o||a||"")}),(0,i.jsx)(G.MediaBlock,{image:f,caption:f.name,size:"md"}),e.body?.map(e=>(0,i.jsx)(s.StoryblokComponent,{blok:e},e._uid)),N.length>0&&(0,i.jsxs)("section",{className:"py-20",children:[(0,i.jsx)(X,{heading:"Tap into our latest thinking to discover the newest trends, innovations, and opinions direct from our team.",eyebrowText:"Related articles"}),(0,i.jsx)(j.Container,{guttersX:"md",children:(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:N.map(e=>(0,i.jsx)(H.ImageCard,{image:e.content.thumbnail?.filename?e.content.thumbnail:e.content.image,eyebrowText:e.tag_list?.join(", ")||"",title:e.content.title,date:e.published_at,link:[{href:{url:`/${"en"===c?"en/":""}${e.full_slug}`,linktype:"url"},label:e.content.title||e.name}]},e.uuid))})})]}),!!v&&(0,i.jsx)(z,{...v})]})},Z=({accentColor:e="grey",stat:t,description:r,headerClassName:n="",variant:a="normal"})=>{let s=(0,S.default)("flex items-start lg:items-center w-full flex-col lg:flex-row",{"bg-secondary-dx-yellow":"yellow"===e,"bg-secondary-dx-pink":"pink"===e,"bg-secondary-dx-orange":"orange"===e,"bg-secondary-dx-purple":"purple"===e,"bg-secondary-dx-grey-light":"grey"===e,"bg-primary-white":"white"===e,"p-4 lg:p-5 gap-3 lg:gap-5 min-h-[96px] lg:min-h-[160px] rounded-md lg:rounded-lg":"normal"===a,"px-4 py-3 lg:p-5 rounded-[24px] gap-2 lg:gap-5":"slimline"===a});return(0,i.jsxs)("div",{className:s,children:[(0,i.jsx)("h4",{className:(0,S.default)("h1 shrink-0",n),children:t}),(0,i.jsx)("div",{className:"prose-p:text-sm prose-p:md:text-base prose-p:font-secondary prose-p:font-normal prose-p:my-0 flex-1",children:(0,i.jsx)(N.RichText,{content:r})})]})};var ee=e.i(36861),et=e.i(2268),er=k;let ei=({image:e,accentColor:t=er.ACCENT_COLORS.ORANGE,eyebrowText:r,heading:n,subheading:a,link:s})=>{let o=s&&s.length>0?s[0]:{},l=!!a||!!o?.href;return(0,i.jsx)(E.Section,{className:"mb-8 md:mb-20 md:px-5 px-2",children:(0,i.jsx)(j.Container,{guttersX:"sm",children:(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col justify-items-center","py-6 px-4 md:px-10 md:py-20","rounded-md md:rounded-lg","gap-6",{"bg-secondary-dx-orange":"orange"===t,"bg-secondary-dx-pink":"pink"===t,"bg-secondary-dx-grey-light":"grey"===t,"bg-secondary-dx-green":"green"===t,"bg-secondary-dx-yellow":"yellow"===t}),children:[(0,i.jsx)("p",{className:"eyebrow lg:hidden",children:r}),(0,i.jsxs)("div",{className:"flex flex-col-reverse lg:flex-row gap-6 lg:gap-5",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-6 lg:justify-between md:basis-3/5",children:[(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col gap-6",{"md:gap-20":e,"md:gap-10 md:pb-15":!e,"h-full justify-between":!l}),children:[(0,i.jsx)("p",{className:"eyebrow hidden lg:flex",children:r}),(0,i.jsx)("h1",{children:n})]}),l&&(0,i.jsxs)("div",{className:"flex flex-col gap-6 md:gap-10",children:[!!a&&(0,i.jsx)("p",{children:a}),!!o?.href&&(0,i.jsx)(F.Button,{href:(0,_.getStoryblokLink)(o.href),target:o.href.target,variant:"orange"===t?"secondary":"primary",children:o.label})]})]}),e?.filename&&(0,i.jsx)("div",{className:"md:basis-2/5",children:(0,i.jsx)(B,{image:e,className:"ml-auto",priority:!0})})]})]})})})},en=({image:e,heading:t,subheading:r,links:n,accentColor:a="grey"})=>(0,i.jsxs)("div",{className:"flex flex-col",children:[e?.filename&&(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(e,"0","1200"),alt:e.alt,width:400,height:328,className:"rounded-md md:rounded-lg object-cover w-full h-68 lg:h-82"}),(0,i.jsxs)("div",{className:(0,S.default)("px-4 py-5 md:px-5 md:py-10 min-h-48","rounded-md md:rounded-lg","flex flex-col gap-10 justify-between flex-grow",{"bg-secondary-dx-grey-light":"grey"===a,"bg-secondary-dx-pink":"pink"===a,"bg-secondary-dx-yellow":"yellow"===a,"bg-secondary-dx-orange":"orange"===a,"bg-primary-white":"white"===a}),children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("h4",{className:"text-4xl/9 font-primary font-light",children:t}),(0,i.jsx)("p",{className:"text-base/5 font-primary font-light",children:r})]}),n&&n.length>0&&(0,i.jsx)("div",{className:"flex flex-row gap-4",children:n.map((e,t)=>(0,i.jsx)(A.CTA,{href:(0,_.getStoryblokLink)(e.href),target:e.href?.target,useArrow:!1,className:"text-xs",children:e.label},t))})]})]}),ea=({stat:e,description:t,supportingText:r,link:n,accentColor:a="pink"})=>(0,i.jsxs)("div",{className:(0,S.clsx)("rounded-3xl","p-5 pb-10 gap-8","flex flex-col h-full justify-between",{"bg-secondary-dx-grey-light":"grey"===a,"bg-secondary-dx-pink":"pink"===a,"bg-secondary-dx-yellow":"yellow"===a,"bg-secondary-dx-orange":"orange"===a,"bg-secondary-dx-green":"green"===a,"bg-primary-black text-primary-white":"black"===a}),children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2 md:gap-4",children:[(0,i.jsx)("p",{className:"font-secondary font-medium text-7xl md:text-6xl lg:text-9xl",children:e}),!!t&&(0,i.jsx)("p",{className:"font-secondary font-normal text-3xl/8 md:text-4xl/9",children:t})]}),(r||!!n?.length)&&(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[r&&(0,i.jsx)("p",{className:"font-primary text-base/5 font-light",children:r}),!!n?.length&&(0,i.jsx)(A.CTA,{href:(0,_.getStoryblokLink)(n[0].href),label:n[0].label,ariaLabel:n[0].accessibilityLabel,target:n[0].href.target,className:"uppercase w-fit",contrast:"black"===a?"dark":"light"})]})]});e.i(2939);var es=e.i(73932);let eo={yellow:"text-secondary-dx-yellow",pink:"text-secondary-dx-pink",orange:"text-secondary-dx-orange",green:"text-secondary-dx-green"};var el=k,ec=e.i(34124);let ed=({accentColor:e="orange",breadcrumbs:t,heading:r,subheading:n,link:a})=>{let s=a&&a.length>0?a[0]:{};return(0,i.jsx)(E.Section,{className:(0,S.default)("md:pb-20 pb-8"),children:(0,i.jsxs)(j.Container,{guttersX:"sm",children:[!!t?.length&&(0,i.jsx)(C,{items:t,accentColor:e}),(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col justify-items-center h-full","mt-2 py-8 px-4 md:px-10 md:py-20","rounded-md md:rounded-lg","gap-8 md:gap-10",{"bg-secondary-dx-orange-overlay-20":"orange"===e,"bg-secondary-dx-green-tint":"green"===e,"bg-secondary-dx-pink-tint":"pink"===e}),children:[(0,i.jsx)("p",{className:"w-full md:max-w-105",children:n}),(0,i.jsx)("h1",{className:"text-trim-both",children:r}),!!s?.href&&(0,i.jsx)(F.Button,{href:(0,_.getStoryblokLink)(s.href),target:s.href.target,variant:"primary",children:s.label})]})]})})},ep=({eyebrowText:e,heading:t,subtext:r,links:n,image:a,video:s,imagePosition:o="left",layout:l="40/60"})=>{let c="40/60"===l?"md:col-span-2 lg:col-span-2":"md:col-span-2 lg:col-span-3",d=s?.[0]?.desktop&&s[0].desktop.length>0||s?.[0]?.mobile&&s[0].mobile.length>0,p="left"===o?"md:order-1":"md:order-2",h=!!a?.filename&&(0,i.jsx)("div",{className:(0,S.clsx)("relative w-full h-120 md:h-190 order-1",c,p),children:(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(a,"0","1520"),alt:a.alt,fill:!0,className:"object-cover rounded-lg"})}),u=d&&(0,i.jsx)("div",{className:(0,S.clsx)("relative w-full h-120 md:h-190 order-1",c,p),children:(0,i.jsx)(ee.EmbeddedVideo,{video:s[0],className:"w-full h-full"})}),f=(0,i.jsxs)("div",{className:(0,S.clsx)("flex flex-col justify-center space-y-4 order-2","40/60"===l?"md:col-span-2 lg:col-span-3":"md:col-span-2 lg:col-span-2","left"===o?"md:order-2":"md:order-1",{"md:pr-5 lg:pr-20":"right"===o,"md:px-10 lg:px-29":"left"===o}),children:[!!e&&(0,i.jsxs)("p",{className:"eyebrow mb-10",children:[e," _"]}),(0,i.jsx)("h2",{children:t}),r&&(0,i.jsx)("div",{className:"rich-text",children:(0,i.jsx)(N.RichText,{content:r})}),n?.map((e,t)=>(0,i.jsx)(A.CTA,{useArrow:!1,useUnderline:!0,variant:"secondary",className:"uppercase mb-5 w-fit",href:(0,_.getStoryblokLink)(e.href),label:e.label,target:e.href?.target},t))]});return(0,i.jsx)(E.Section,{variant:"neutral",className:"my-10 md:my-20",children:(0,i.jsxs)(j.Container,{className:"grid grid-cols-1 md:grid-cols-4 lg:grid-cols-5 ga
1p-10 md:gap-5 px-4 md:px-10",children:[d?u:h,f]})})},eh=({breadcrumbs:e,heading:t,stats:r,image:n,industry:a,location:s,project:o,services:l,labels:c})=>{let d=[a,s].filter(Boolean);return(0,i.jsx)(E.Section,{className:(0,S.default)("md:pb-20 pb-8"),children:(0,i.jsxs)(j.Container,{guttersX:"sm",children:[!!e?.length&&(0,i.jsx)(C,{items:e,accentColor:"pink-light"}),(0,i.jsx)("h1",{className:"h1 my-8 mx-2 md:my-20 md:mx-5",children:t}),!!r?.length&&(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2 md:gap-5 mb-2 md:mb-5",children:r.map((e,t)=>(0,i.jsx)(Z,{stat:e.stat,description:e.description,headerClassName:"md:text-6xl text-5xl",accentColor:e.accentColor,variant:"slimline"},t))}),(0,i.jsx)("div",{className:"relative h-[600px]",children:n?.filename&&(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(n,"0","1200"),alt:n.alt??"Description of image",className:"object-cover object-center rounded-md",fill:!0,sizes:"100vw"})}),!!d?.length&&(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-y-5 md:gap-x-5 mx-2 md:mx-5 mt-6 md:mt-10",children:d.map((e,t)=>(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("p",{className:"eyebrow",children:[" ",{[a||""]:c?.industry||"Industry",[s||""]:c?.location||"Location",[o||""]:c?.project||"Project",[l||""]:c?.services||"Services"}[e]," _"]}),(0,i.jsx)("p",{children:e})]},t))})]})})};async function eu(e){try{let t=rg(),r=await t.get("cdn/datasource_entries",{datasource:"labels",dimension:e});if(!r?.data?.datasource_entries)return console.warn("No datasource entries found for labels"),{};let i={};return r.data.datasource_entries.forEach(e=>{i[e.name]=e.dimension_value||e.value}),i}catch(e){return console.error("Error fetching labels from Storyblok:",e),{}}}let ef=async({title:e,description:t,image:r,publishDate:i,modifiedDate:n,slug:a,locale:s,tags:o,award:l,clientName:c,clientUrl:d,clientUrls:p})=>{let u=await h();return{"@context":"https://schema.org","@type":"Article",articleSection:"Case Study",headline:e,description:t||"",mainEntityOfPage:{"@type":"WebPage","@id":`${u}/${s}/${a}`},...r?.filename&&{image:{"@type":"ImageObject",url:r.filename}},datePublished:i,dateModified:n||i,author:{"@type":"Organization",name:"MSQ DX",url:u},publisher:{"@type":"Organization",name:"MSQ DX",logo:{"@type":"ImageObject",url:`${u}/logo.png`}},inLanguage:s,...l&&{award:l},...o&&o.length>0&&{keywords:o.join(", ")},about:{"@type":"Organization",name:c,...d&&{url:d},...p&&p.length>0&&{sameAs:p}}}},em=async({blok:e,tags:t,breadcrumbs:r,slug:n,locale:a,firstPublishedAt:o,createdAt:l,publishedAt:c})=>{let{header:d,title:h,description:u,footer:f,hero:m,callout:g,schemaBlocks:x}=e,y=m?.[0],v=g?.[0]?.content,j=await eu(a),N=await ef({title:y?.heading||h,description:y?.description||u,image:y?.image,publishDate:o||c||l||"",modifiedDate:c,slug:n,locale:a,tags:t,award:y?.award,clientName:y?.clientName,clientUrl:y?.clientUrl,clientUrls:y?.clientUrls?.value});return(0,i.jsxs)(w,{header:d,footer:f,locale:a,slug:n,breadcrumbs:r,children:[!!N&&(0,i.jsx)(p,{schema:N}),(0,i.jsx)(b,{blocks:x,context:{locale:a,slug:n}}),(0,i.jsx)(eh,{breadcrumbs:r,heading:y?.heading||"",image:y?.image,stats:y?.stats||[],industry:y?.industry,location:y?.location,project:y?.project,services:y?.services,labels:j}),e.body?.map(e=>(0,i.jsx)(s.StoryblokComponent,{blok:e},e._uid)),!!v&&(0,i.jsx)(z,{...v})]})};var eg=e.i(62990),ex=e.i(18379),ey=e.i(34495);let eb={articles:{starts_with:"insights/",perPage:9},"case-studies":{starts_with:"our-work/",perPage:6}};async function ev(e,t,r,i=1,n){let a=rg(),s=eb[e],o=n?.perPageOverride??s.perPage,l=[...r?[r]:[],...n?.excludingSlugs||[]];try{let{data:r,headers:n}=await a.get("cdn/stories",{version:Y,language:t,starts_with:s.starts_with,is_startpage:!1,per_page:o,page:i,excluding_slugs:l.length>0?l.join(","):void 0,sort_by:"first_published_at:desc"}),c=r?.stories||[],d=parseInt(n?.total||"0",10),p=i*o<d;return{items:c.map(r=>{if("articles"===e)return{uuid:r.uuid,_uid:r._uid,title:r.content.title||"",eyebrowText:r.tag_list?.join(", ")||"",thumbnail:r.content.thumbnail,image:r.content.image,date:r.first_published_at||r.published_at||r.created_at,link:[{href:{url:(0,ey.getUrlWithLocale)(r.full_slug,t),linktype:"url"},label:r.content.title||r.name}]};{let e=r.content.hero?.[0]||{};return{uuid:r.uuid,_uid:r._uid,title:e.heading||"",eyebrowText:e.clientName||r.name,thumbnail:r.content.thumbnail,image:e.image,stat:e.keyStat,link:[{href:{url:(0,ey.getUrlWithLocale)(r.full_slug,t),linktype:"url"},label:e.heading||r.name}]}}}),total:d,hasMore:p,currentPage:i,totalPages:Math.ceil(d/o)}}catch(t){return console.error(`Error fetching ${e}:`,t),{items:[],total:0,hasMore:!1,currentPage:1,totalPages:0}}}let ew=async({blok:e,slug:t,searchParams:r,locale:n,breadcrumbs:a})=>{let{header:o,footer:l,callout:c}=e,d=c?.[0]?.content,p=r?.page,h=parseInt((Array.isArray(p)?p[0]:p)||"1",10),u=(e.boosted_case_studies||[]).filter(e=>e?.content),f=u.map(e=>{let t,r;return t=e.content,r=t.hero?.[0]||{},{uuid:e.uuid,_uid:e.uuid,title:r.heading||"",eyebrowText:r.clientName||e.name,thumbnail:t.thumbnail,image:r.image,stat:r.keyStat,link:[{href:{url:(0,ey.getUrlWithLocale)(e.full_slug,n),linktype:"url"},label:r.heading||e.name}]}}),m=u.map(e=>e.full_slug),g=eb["case-studies"].perPage,x=f.length>0?Math.max(1,g-f.length):void 0,{items:y,hasMore:b,total:v}=await ev("case-studies",n,t,h,{excludingSlugs:m.length>0?m:void 0,perPageOverride:x}),j=v+f.length;return(0,i.jsxs)(w,{header:o,footer:l,locale:n,slug:t,breadcrumbs:a,children:[e.body?.map(e=>(0,i.jsx)(s.StoryblokComponent,{blok:e},e._uid)),(0,i.jsx)(ex.ContentPagination,{initialItems:y,initialPage:h,totalItems:j,hasMore:b,contentType:"case-studies",slug:t,locale:n,boostedItems:f,excludedSlugs:m,regularPerPage:
1x}),!!d&&(0,i.jsx)(z,{...d})]})},ej=async({blok:e,slug:t,searchParams:r,locale:n,breadcrumbs:a})=>{let{header:s,footer:o,hero:l}=e,c=l?.[0],d=e.callout?.[0],p=r?.page,h=parseInt((Array.isArray(p)?p[0]:p)||"1",10),{items:u,hasMore:f,total:m}=await ev("articles",n,t,h);return(0,i.jsxs)(w,{header:s,footer:o,locale:n,slug:t,breadcrumbs:a,children:[(0,i.jsx)(ei,{heading:c?.heading||"",image:c?.image,subheading:c?.subheading||"",eyebrowText:c?.eyebrowText||"",accentColor:c?.accentColor||"yellow"}),(0,i.jsx)(ex.ContentPagination,{initialItems:u,initialPage:h,totalItems:m,hasMore:f,contentType:"articles",slug:t,locale:n}),!!d&&(0,i.jsx)(z,{...d})]})};var eN=e.i(62778),eE=e.i(48099);let eS=({title:e,body:t,isFirst:r,groupName:n})=>(0,i.jsxs)("details",{name:n,open:r,className:"group border-b border-primary-black",children:[(0,i.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between py-4 gap-2 font-primary text-xl/6 md:text-4xl/8 font-light text-primary-black transition-colors hover:opacity-70",children:[(0,i.jsx)("h3",{className:"text-2xl/2 md:text-2xl font-bold font-primary leading-tight",children:e}),(0,i.jsxs)("span",{className:"relative h-5 w-5 shrink-0","aria-hidden":"true",children:[(0,i.jsx)("span",{className:"absolute inset-y-1/2 left-0 h-0.5 w-full -translate-y-1/2 bg-current transition-all duration-300"}),(0,i.jsx)("span",{className:"absolute inset-x-1/2 top-0 h-full w-0.5 -translate-x-1/2 bg-current transition-all duration-300 group-open:scale-y-0 group-open:opacity-0"})]})]}),(0,i.jsx)("div",{className:"rich-text prose-p:my-5 md:prose-p:my-10 pb-4 font-primary text-xl/6 md:text-3xl/8 font-light text-primary-black",children:(0,i.jsx)(N.RichText,{content:t})})]}),eA=async({name:e,occupation:t,linkedInLink:r,knowsAbout:i})=>({"@context":"https://schema.org","@type":"Person",name:e,...t&&{jobTitle:t},url:"https://www.msqdx.com",...r&&{sameAs:[r]},...i&&i.length>0&&{knowsAbout:i}}),eC=async({person:e})=>{let t=[e.firstName,e.lastName].filter(Boolean).join(" "),r=[e.firstName?.[0],e.lastName?.[0]].filter(Boolean).join(""),n=await eA({name:t,occupation:e.occupation,linkedInLink:e.linkedIn,knowsAbout:e.knowsAbout?.value});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{schema:n,id:`schema-person-${t.replace(/\s+/g,"-").toLowerCase()}`}),(0,i.jsxs)("div",{className:"flex w-[calc(50%-12px)] max-w-[220px] flex-col items-center gap-3 p-4 text-center lg:w-[calc(20%-20px)]",children:[(0,i.jsx)("div",{className:"relative flex h-24 w-24 shrink-0 items-center justify-center overflow-hidden rounded-full bg-secondary-dx-green-tint",children:e.profileImage?.filename?(0,i.jsx)(M.default,{src:e.profileImage.filename,alt:e.profileImage.alt??t,fill:!0,sizes:"250px",className:"object-cover"}):(0,i.jsx)("span",{className:"text-xl font-medium text-gray-500",children:r})}),t&&(0,i.jsx)("h3",{className:"text-base font-semibold leading-tight",children:t}),e.occupation&&(0,i.jsx)("p",{className:"text-sm text-gray-500",children:e.occupation}),e.specialism&&(0,i.jsx)("p",{className:"text-xs bg-secondary-dx-pink text-white rounded-full px-2 py-0.5 font-medium",children:e.specialism})]})]})},e_="group relative flex w-full flex-col items-start gap-3 rounded-md border-2 border-black p-5 md:p-8",ek=({children:e,link:t,target:r,className:n,partner:a})=>t?(0,i.jsx)("a",{href:t,target:r,className:`${e_} hover:cursor-pointer ${n||""}`,"aria-labelledby":`partner-${a._uid}`,children:e}):(0,i.jsx)("div",{className:`${e_} ${n||""}`,children:e}),eT=({partner:e,className:t,fallbackLink:r})=>{let{partnerName:n,partnerTag:a,logo:s,intro:o,stats:l,cta:c}=e,d=c?.[0],p=d?.href?(0,_.getStoryblokLink)(d.href):r;return(0,i.jsxs)(ek,{link:p,target:d?.href.target,className:t,partner:e,children:[a&&a[0].label&&(0,i.jsx)(T,{label:a[0].label,colour:a[0].colour||"gray"}),s?.filename&&(0,i.jsx)("div",{className:"relative h-16 mt-1 w-full ",children:(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(s,"320","0"),alt:s.alt||n,fill:!0,className:"object-contain object-left transition-transform duration-300 group-hover:scale-105"})}),(0,i.jsx)("h3",{className:"text-2xl font-bold",id:`partner-${e._uid}`,children:n}),o&&(0,i.jsx)("p",{className:"text-md",children:o}),!!l?.length&&(0,i.jsx)("div",{className:"flex flex-wrap gap-3",children:l.map(e=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"font-secondary font-bold",children:e.stat}),(0,i.jsx)("div",{className:"prose-p:text-xs prose-p:md:text-xs prose-p:font-normal prose-p:my-0",children:(0,i.jsx)(N.RichText,{content:e.description})})]},e._uid))}),p&&(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)("span",{className:"font-secondary uppercase underline underline-offset-3 underline-thickness-auto transition-all duration-300 ease-out group-hover:decoration-secondary-dx-pink",children:d?.label||"Learn More"})})]})},eI=e=>(e??[]).flatMap(e=>{let t=(e.content?.teaserInfo??[]).find(e=>"Partner"===e.component);return t?[{partner:t,fullSlug:e.full_slug}]:[]}),eL="Other",eO={greenhouse:{enabled:!0,boardToken:"arke",locale:{apiLocaleMap:{en:"en-US",us:"en-US"},unsupportedLocaleBehavior:"hide"}},personio:{enabled:!0,companySlug:r.default.env.PERSONIO_COMPANY_SLUG??"",nativeApiLocale:"de",locale:{apiLocaleMap:{en:"en",de:"de",us:"en"},unsupportedLocaleBehavior:"hide"}},softgarden:{enabled:!0,tokens:r.default.env.SOFTGARDEN_API_TOKEN,locale:{apiLocaleMap:{de:"de-DE"},unsupportedLocaleBehavior:"hide"}}};function e$(e,t,r){var i,n;let a;if("external"===r)return{...e,href:e.applyUrl,opensInNewTab:!0,hasInternalDetail
1:!1};return{...e,href:(i=(a=((n=e).title||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""))?`${a}--${n.id}`:n.id,`/${t}/jobs/${i}`),opensInNewTab:!1,hasInternalDetail:!0}}function eP(e,t){return`${e}-${t}`}function eM(e){return e.trim().toLowerCase().replace(/_/g,"-")}function eR(e,t){let r=eM(e),i=eM(t);return!!r&&!!i&&(r===i||r.split("-")[0]===i.split("-")[0])}function eD(e,t){return e.filter(e=>eR(e.contentLocale,t))}function eB(e,t){let r=t.apiLocaleMap[e];return r||("hide"===t.unsupportedLocaleBehavior?null:t.fallbackApiLocale??null)}let eU=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function eV(e,t=eL){let r=e?.trim()||"";return!r||eU.test(r)?t:r}class eq{boardToken;localeConfig;id;capabilities;constructor(e,t){this.boardToken=e,this.localeConfig=t,this.id="greenhouse",this.capabilities={detail:"external"}}async getJobs(e){let t=eB(e,this.localeConfig);if(!t)return[];if(!this.boardToken)return console.warn("Greenhouse board token is not defined; skipping Greenhouse jobs."),[];let r=await fetch(`https://boards-api.greenhouse.io/v1/boards/${this.boardToken}/departments`,{next:{revalidate:300}});if(!r.ok)throw Error(`Greenhouse API error: ${r.status} ${r.statusText}`);let i=await r.json(),n=new Set;return eD((i.departments??[]).filter(e=>e.jobs?.length>0).flatMap(r=>this.mapDepartment(r,e,t,n)),t)}mapDepartment(e,t,r,i){return e.jobs.flatMap(n=>i.has(n.id)?[]:(i.add(n.id),[e$({id:eP(this.id,n.id),title:n.title,location:n.location?.name?.trim()??"",department:eV(e.name,eL),applyUrl:n.absolute_url,postedAt:n.updated_at?new Date(n.updated_at):void 0,contentLocale:r},t,this.capabilities.detail)]))}}class eF{portals;constructor(e){this.portals=e}async fetchAllJobs(e,t={}){let r=this.resolvePortals(t.portalIds),i=await Promise.allSettled(r.map(t=>t.getJobs(e))),n=[];return i.forEach((e,t)=>{if("fulfilled"===e.status)return void n.push(...e.value);let i=r[t]?.id??`portal-${t}`;console.error(`Failed to fetch jobs from ${i}:`,e.reason)}),n}async getJob(e,t){let r,i=(r=e.match(/^([a-z][a-z0-9]*)-(.+)$/))?{portalId:r[1],rawId:r[2]}:null,n=i?this.portals.find(e=>e.id===i.portalId):void 0;if(n?.getJob&&i)try{let e=await n.getJob(i.rawId,t);if(e)return e}catch(t){console.error(`Failed to fetch job ${e} from ${n.id}:`,t)}return(await this.fetchAllJobs(t,{portalIds:n?[n.id]:void 0})).find(t=>t.id===e)??null}resolvePortals(e){if(!e?.length)return this.portals;let t=new Set(e);return this.portals.filter(e=>t.has(e.id))}}let ez=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",eH=RegExp("^"+("["+ez+"]["+ez)+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eX=function(e){return null!=eH.exec(e)},eG=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],eY=["__proto__","constructor","prototype"],eW=e=>eG.includes(e)?"__"+e:e,eJ={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:eW},eQ=function(e){let t=Object.assign({},eJ,e);for(let{value:e,name:r}of[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}])e&&function(e,t){if("string"!=typeof e)return;let r=e.toLowerCase();if(eG.some(e=>r===e.toLowerCase())||eY.some(e=>r===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}(e,r);return null===t.onDangerousProperty&&(t.onDangerousProperty=eW),t.processEntities=function e(t,r){return"boolean"==typeof t?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof t&&null!==t?{enabled:!1!==t.enabled,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:e(!0)}(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};t="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class eK{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),this.addStartIndex(t)}addStartIndex(e){void 0!==e&&(this.child[this.child.length-1][t]={startIndex:e})}addEndIndex(e){let r=this.child[this.child.length-1];void 0!==r&&void 0!==r[t]&&void 0===r[t].endIndex&&(r[t].endIndex=e)}static getMetaDataSymbol(){return t}}let eZ=":A-Za-z_Ã-ÃÃ-öø-˿Ͱ-ͽͿ-ÒÒ-á¿¿â-ââ°-ââ°-⿯ã-í¿ï¤-ï·ï·°-�",e0=":A-Za-z_Ã-˿Ͱ-ͽͿ-ÒÒ-á¿¿â-ââ°-ââ°-⿯ã-í¿ï¤-ï·ï·°-�ð-󯿿",e1=(e,t,r="")=>{let i=e.replace(":",""),n=t.replace(":",""),a=`[${i}][${n}]*`;return{name:RegExp(`^[${e}
1][${t}]*$`,r),ncName:RegExp(`^${a}$`,r),qName:RegExp(`^${a}(?::${a})?$`,r),nmToken:RegExp(`^[${t}]+$`,r),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,r)}},e2=e1(eZ,eZ+"\\-\\.\\d·Ì-ͯâ¿-â"),e6=e1(e0,e0+"\\-\\.\\d·Ì-ͯÒâ¿-â","u"),e5=":A-Za-z_",e8=e1(e5,e5+"\\-\\.\\d"),e3=(e,{xmlVersion:t="1.0",asciiOnly:r=!1}={})=>((e="1.0",t=!1)=>t?e8:"1.1"===e?e6:e2)(t,r).qName.test(e);class e4{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let r=Object.create(null),i=0;if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let n=1,a=!1,s=!1,o=null,l="";for(;t<e.length;t++){if(null!==o){e[t]===o&&(o=null),l+=e[t];continue}if(!a&&!s&&('"'===e[t]||"'"===e[t])){o=e[t],l+=e[t];continue}if("<"!==e[t]||s)if(">"===e[t]){if(s?"-"===e[t-1]&&"-"===e[t-2]&&(s=!1,n--):n--,0===n)break}else"["===e[t]?a=!0:l+=e[t];else{if(a&&e9(e,"!ENTITY",t)){let n,a;if(t+=7,[n,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===a.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[n]=a,i++}}else if(a&&e9(e,"!ELEMENT",t)){t+=8;let{index:r}=this.readElementExp(e,t+1);t=r}else if(a&&e9(e,"!ATTLIST",t))t+=8;else if(a&&e9(e,"!NOTATION",t)){t+=9;let{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(e9(e,"!--",t))s=!0;else throw Error("Invalid DOCTYPE");n++,l=""}}if(null!==o||0!==n)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:t}}readEntityExp(e,t){let r=t=e7(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let i=e.substring(r,t);if(te(i,{xmlVersion:this.xmlVersion}),t=e7(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw Error("External entities are not supported");else if("%"===e[t])throw Error("Parameter entities are not supported")}let n="";if([t,n]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&n.length>this.options.maxEntitySize)throw Error(`Entity "${i}" size (${n.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,n,--t]}readNotationExp(e,t){let r=t=e7(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(r,t);this.suppressValidationErr||te(i,{xmlVersion:this.xmlVersion}),t=e7(e,t);let n=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==n&&"PUBLIC"!==n)throw Error(`Expected SYSTEM or PUBLIC, found "${n}"`);t+=n.length,t=e7(e,t);let a=null,s=null;if("PUBLIC"===n)[t,a]=this.readIdentifierVal(e,t,"publicIdentifier"),t=e7(e,t),('"'===e[t]||"'"===e[t])&&([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===n&&([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:s,index:--t}}readIdentifierVal(e,t,r){let i="",n=e[t];if('"'!==n&&"'"!==n)throw Error(`Expected quoted string, found "${n}"`);let a=++t;for(;t<e.length&&e[t]!==n;)t++;if(i=e.substring(a,t),e[t]!==n)throw Error(`Unterminated ${r} value`);return[++t,i]}readElementExp(e,t){let r=t=e7(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(r,t);if(!this.suppressValidationErr&&!e3(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid element name: "${i}"`);t=e7(e,t);let n="";if("E"===e[t]&&e9(e,"MPTY",t))t+=4;else if("A"===e[t]&&e9(e,"NY",t))t+=2;else if("("===e[t]){let r=++t;for(;t<e.length&&")"!==e[t];)t++;if(n=e.substring(r,t),")"!==e[t])throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:n.trim(),index:t}}readAttlistExp(e,t){let r=t=e7(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(r,t);for(te(i,{xmlVersion:this.xmlVersion}),r=t=e7(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let n=e.substring(r,t);if(!te(n,{xmlVersion:this.xmlVersion}))throw Error(`Invalid attribute name: "${n}"`);t=e7(e,t);let a="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(a="NOTATION",t+=8,t=e7(e,t),"("!==e[t])throw Error(`Expected '(', found "${e[t]}"`);t++;let r=[];for(;t<e.length&&")"!==e[t];){let i=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let n=e.substring(i,t);if(!te(n=n.trim(),{xmlVersion:this.xmlVersion}))throw Error(`Invalid notation name: "${n}"`);r.push(n),"|"===e[t]&&(t=e7(e,++t))}if(")"!==e[t])throw Error("Unterminated list of notations");t++,a+=" ("+r.join("|")+")"}else{let r=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(a+=e.substring(r,t),!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}t=e7(e,t);let s="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(s="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(s="#IMPLIED",t+=7):[t,s]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:n,attributeType:a,defaultValue:s,index:t}}}let e7=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function e9(e,t,r){for(let i=0;i<t.length;i++)if(t[i]!==e[r+i+1])return!1;return!0}function te(e,t){if(e3(e,{xmlVersion:t}))return e;throw Error(`Invalid entity name ${e}`)}let tt=new Map,tr=new Uint8Array(63904).fill(255);for(let e of[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032])for(let t=0;t<10;t++){let r=e+t;r<=65535?tr[r-1632]=t:tt.set(r,t)}let ti=new Set([8722,65293,65123]),tn=function(e){if("string"!=typeof e)return e;let t=e.length;if(0===t)return e;let r=-1;for(let i=0;i<t;i++){let n=e.charCodeAt(i);if((!(n>=48)||!(n<=57))&&45!==n){if(n<1632){if(ti.has(n)){r=i;break}continue}if(n>=55296&&n<=56319){if(i+1<t){let t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){let e=65536+(n-55296<<10)+(t-56320);if(tt.has(e)){r=i;break}}}continue}if(255!==tr[n-1632]||ti.has(n)){r=i;break}}}if(-1===r)return e;let i=[];r>0&&i.push(e.slice(0,r));for(let n=r;n<t;n++){let r=e.charCodeAt(n);if(r>=48&&r<=57||45===r){i.push(e[n]);continue}if(r<1632){i.push(ti.has(r)?"-":e[n]);continue}if(r>=55296&&r<=56319){if(n+1<t){let t=e.charCodeAt(n+1);if(t>=56320&&t<=57343){let e=65536+(r-55296<<10)+(t-56320),a=tt.get(e);if(void 0!==a){i.push(String.fromCharCode(a+48)),n++;continue}}}i.push(e[n]);continue}if(ti.has(r)){i.push("-");continue}let a=tr[r-1632];i.push(255!==a?String.fromCharCode(a+48):e[n])}return i.join("")},ta=/^[-+]?0x[a-fA-F0-9]+$/,ts=/^0b[01]+$/,to=/^0o[0-7]+$/,tl=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,tc={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original",unicode:!1},td=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function tp(e,t){let r=e.trim();if((2===t||8===t)&&(e=r.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}class th{constructor(e,t={},r){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=r,this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){let t=[],r=0,i="";for(;r<e.length;)e[r]===this.separator?r+1<e.length&&e[r+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.pu
1sh({type:"deep-wildcard"}),r+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",r++):(i+=e[r],r++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){let t,r,i={type:"tag"},n=null,a=e,s=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(s&&(a=s[1]+s[3],s[2])){let e=s[2].slice(1,-1);e&&(n=e)}let o=a;if(a.includes("::")){let r=a.indexOf("::");if(t=a.substring(0,r).trim(),o=a.substring(r+2).trim(),!t)throw Error(`Invalid namespace in pattern: ${e}`)}let l=null;if(o.includes(":")){let e=o.lastIndexOf(":"),t=o.substring(0,e).trim(),i=o.substring(e+1).trim();["first","last","odd","even"].includes(i)||/^nth\(\d+\)$/.test(i)?(r=t,l=i):r=o}else r=o;if(!r)throw Error(`Invalid segment pattern: ${e}`);if(i.tag=r,t&&(i.namespace=t),n)if(n.includes("=")){let e=n.indexOf("=");i.attrName=n.substring(0,e).trim(),i.attrValue=n.substring(e+1).trim()}else i.attrName=n.trim();if(l){let e=l.match(/^nth\((\d+)\)$/);e?(i.position="nth",i.positionValue=parseInt(e[1],10)):i.position=l}return i}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class tu{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(0!==t.length)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(0===t.length)return!1;let r=t[t.length-1];return void 0!==r.values&&e in r.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return 0===e.length?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return 0===e.length?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class tf{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new tu(this),this._keptAttrs=[]}push(e,t=null,r=null,i=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let n=this.path.length,a=this.siblingStacks[n];a||(a={counts:new Map,total:0},this.siblingStacks[n]=a);let s=r?`${r}:${e}`:e,o=a.counts.get(s)||0,l=a.total;a.counts.set(s,o+1),a.total++;let c={tag:e,position:l,counter:o};null!=r&&(c.namespace=r),null!=t&&(c.values=t),this.path.push(c);let d=this.path.length,p=null!==i?i.keep:null;if(null!=p&&p.length>0&&t)for(let e=0;e<p.length;e++){let r=p[e];void 0!==t[r]&&this._keptAttrs.push({depth:d,name:r,value:t[r]})}}pop(){if(0===this.path.length)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0!==this.path.length)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(0===this.path.length)return!1;let t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let r=t.length-1;r>=0;r--)if(t[r].name===e)return t[r].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let r=t.length-1;r>=0;r--)if(t[r].name===e)return!0;return!1}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let r=e||this.separator;if(r===this.separator&&!0===t){if(null!==this._pathStringCache)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(r);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(r)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,r=e.length-1;for(;r>=0&&t>=0;){let i=e[r];
1if("deep-wildcard"===i.type){if(--r<0)return!0;let i=e[r],n=!1;for(let e=t;e>=0;e--)if(this._matchSegment(i,this.path[e],e===this.path.length-1)){t=e-1,r--,n=!0;break}if(!n)return!1}else{if(!this._matchSegment(i,this.path[t],t===this.path.length-1))return!1;t--,r--}}return r<0}_matchSegment(e,t,r){if("*"!==e.tag&&e.tag!==t.tag||void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace||void 0!==e.attrName&&(!r||!t.values||!(e.attrName in t.values)||void 0!==e.attrValue&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(void 0!==e.position){if(!r)return!1;let i=t.counter??0;if("first"===e.position&&0!==i)return!1;if("odd"===e.position&&i%2!=1)return!1;if("even"===e.position&&i%2!=0)return!1;else if("nth"===e.position&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e?{counts:new Map(e.counts),total:e.total}:e),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e?{counts:new Map(e.counts),total:e.total}:e),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}}class tm{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard()){let t=e.segments[e.segments.length-1];if(t&&"deep-wildcard"!==t.type&&"*"!==t.tag){let r=t.tag;this._deepByTerminalTag.has(r)||this._deepByTerminalTag.set(r,[]),this._deepByTerminalTag.get(r).push(e)}else this._deepWildcards.push(e);return this}let t=e.length,r=e.segments[e.segments.length-1],i=r?.tag;if(i&&"*"!==i){let r=`${t}:${i}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}else this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return null!==this.findMatch(e)}findMatch(e){let t=e.getDepth(),r=e.getCurrentTag(),i=`${t}:${r}`,n=this._byDepthAndTag.get(i);if(n){for(let t=0;t<n.length;t++)if(e.matches(n[t]))return n[t]}let a=this._wildcardByDepth.get(t);if(a){for(let t=0;t<a.length;t++)if(e.matches(a[t]))return a[t]}let s=this._deepByTerminalTag.get(r);if(s){for(let t=0;t<s.length;t++)if(e.matches(s[t]))return s[t]}for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}}let tg={cent:"¢",pound:"£",curren:"¤",yen:"Â¥",euro:"â¬",dollar:"$",fnof:"Æ",inr:"â¹",af:"Ø",birr:"á¥á",peso:"â±",rub:"â½",won:"â©",yuan:"Â¥",cedil:"¸"},tx={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},ty={nbsp:" ",copy:"©",reg:"®",trade:"â¢",mdash:"â",ndash:"â",hellip:"â¦",laquo:"«",raquo:"»",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",bull:"â¢",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},tb=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),tv=new Set("!?\\\\/[]$%{}^&*()<>|+");function tw(e){if("#"===e[0])throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(tv.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function tj(...e){let t=Object.create(null);for(let r of e)if(r)for(let e of Object.keys(r)){let i=r[e];if("string"==typeof i)t[e]=i;else if(i&&"object"==typeof i&&void 0!==i.val){let r=i.val;"string"==typeof r&&(t[e]=r)}}return t}let tN="external",tE="base",tS=Object.freeze({allow:0,leave:1,remove:2,throw:3}),tA=new Set([9,10,13]);class tC{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof e.postCheck?e.postCheck:e=>e,this._limitTiers=function(e){return new Set(e&&e!==tN?"all"===e?["all"]:e===tE?[tE]:Array.isArray(e)?e:[tN]:[tN])}(this._limit.applyLimitsTo??tN),this._numericAllowed=e.numericAllowed??!0,this._baseMap=tj(tx,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);const t=function(e){if(!e)return{xmlVersion:1,onLevel:tS.allow,nullLevel:tS.remove};let t=1.1===e.xmlVersion?1.1:1;return{xmlVersion:t,onLevel:tS[e.onNCR]??tS.allow,nullLevel:Math.max(tS[e.nullNCR]??tS.remove,tS.remove)}}(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel,this._onExternalEntity="function"==typeof e.onExternalEntity?e.onExternalEntity:null,this._onInputEntity="function"==typeof e.onInputEntity?e.onInputEntity:null}_applyRegistrationHook(e,t,r,i){if(!e)return!0;let n=e(t,r);
1if(n===tb.BLOCK)return!1;if(n===tb.THROW)throw Error(`[EntityDecoder] Registration of ${i} entity "&${t};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let t of Object.keys(e))tw(t);if(!this._onExternalEntity){this._externalMap=tj(e);return}let t=tj(e),r=Object.create(null);for(let[e,i]of Object.entries(t))this._applyRegistrationHook(this._onExternalEntity,e,i,"external")&&(r[e]=i);this._externalMap=r}addExternalEntity(e,t){tw(e),"string"==typeof t&&-1===t.indexOf("&")&&this._applyRegistrationHook(this._onExternalEntity,e,t,"external")&&(this._externalMap[e]=t)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=tj(e);return}let t=tj(e),r=Object.create(null);for(let[e,i]of Object.entries(t))this._applyRegistrationHook(this._onInputEntity,e,i,"input")&&(r[e]=i);this._inputMap=r}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=1.1===e?1.1:1}decode(e){if("string"!=typeof e||0===e.length||-1===e.indexOf("&"))return e;let t=[],r=e.length,i=0,n=0,a=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,o=a||s;for(;n<r;){let l,c;if(38!==e.charCodeAt(n)){n++;continue}let d=n+1;for(;d<r&&59!==e.charCodeAt(d)&&d-n<=32;)d++;if(d>=r||59!==e.charCodeAt(d)){n++;continue}let p=e.slice(n+1,d);if(0===p.length){n++;continue}if(this._removeSet.has(p))l="",void 0===c&&(c=tN);else if(this._leaveSet.has(p)){n++;continue}else if(35===p.charCodeAt(0)){let e=this._resolveNCR(p);if(void 0===e){n++;continue}l=e,c=tE}else{let e=this._resolveName(p);l=e?.value,c=e?.tier}if(void 0===l){n++;continue}if(n>i&&t.push(e.slice(i,n)),t.push(l),n=i=d+1,o&&this._tierCounts(c)){if(a&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=l.length-(p.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i<r&&t.push(e.slice(i));let l=0===t.length?e:t.join("");return this._postCheck(l,e)}_tierCounts(e){return!!this._limitTiers.has("all")||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:tN}:e in this._externalMap?{value:this._externalMap[e],tier:tN}:e in this._baseMap?{value:this._baseMap[e],tier:tE}:void 0}_classifyNCR(e){return 0===e?this._ncrNullLevel:e>=55296&&e<=57343||1===this._ncrXmlVersion&&e>=1&&e<=31&&!tA.has(e)?tS.remove:-1}_applyNCRAction(e,t,r){switch(e){case tS.allow:return String.fromCodePoint(r);case tS.remove:return"";case tS.leave:return;case tS.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(e){let t,r=e.charCodeAt(1);if(Number.isNaN(t=120===r||88===r?parseInt(e.slice(2),16):parseInt(e.slice(1),10))||t<0||t>1114111)return;let i=this._classifyNCR(t);if(!this._numericAllowed&&i<tS.remove)return;let n=-1===i?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(n,e,t)}}let t_=[{id:"sql-block-comment-open",description:"SQL block comment open: /* ... */ â unusual in legitimate user text",pattern:/\/\*/},{id:"sql-union-select",description:"UNION SELECT â most common SQL injection aggregation attack",pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:"sql-drop-table",description:"DROP TABLE â destructive DDL injection",pattern:/\bDROP\s{1,20}TABLE\b/i},{id:"sql-drop-database",description:"DROP DATABASE â destructive DDL injection",pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:"sql-insert-into",description:"INSERT INTO â data injection",pattern:/\bINSERT\s{1,20}INTO\b/i},{id:"sql-delete-from",description:"DELETE FROM â data deletion injection",pattern:/\bDELETE\s{1,20}FROM\b/i},{id:"sql-update-set",description:"UPDATE ... SET â data modification injection",pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:"sql-exec-xp",description:"EXEC xp_ â MSSQL extended stored procedure execution",pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:"sql-tautology-string",description:'Classic string tautology: \' OR \'1\'=\'1 or " OR "1"="1"',pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:"sql-tautology-numeric",description:"Numeric tautology: OR 1=1",pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:"sql-always-true-zero",description:"Numeric tautology: OR 0=0",pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:"sql-sleep-benchmark",description:"Time-based blind injection: SLEEP() or BENCHMARK()",pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:"sql-waitfor-delay",description:"MSSQL time-based blind injection: WAITFOR DELAY",pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:"sql-char-function",description:"CHAR() function â used to obfuscate injected strings",pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:"sql-information-schema",description:"INFORMATION_SCHEMA â reconnaissance query for table/column enumeration",pattern:/\bINFORMATION_SCHEMA\b/i}],tk=[...t_,{id:"sql-line-comment",description:"SQL line comment: -- followed by whitespace or end of string",pattern:/--(?:\s|$)/},{id:"sql-stacked-query",description:"Stacked queries: semicolon immediately followed by a SQL keyword",pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:"sql-hex-encoding",description:"Hex-encoded string injection: 0x41414141 style (MySQL)",pattern:/\b0x[0-9a-f]{4,}/i}],tT=[{id:"html-script-open",description:"<script opening tag",pattern:/<script[\s>/]/i},{id:"html-script-close",description:"</script closing tag",pattern:/<\/script[\s>]/i},{id:"html-javascript-protocol",description:"javascript: URI scheme (with optional whitespace/encoding)",pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:"html-vbscript-protocol",description:"vbscript: URI scheme",pattern:/vbscript[\t\n\r ]*:/i},{id:"html-data-html",description:"data:text/html URI â can execute scripts in browsers",pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:"html-data-xhtml",description:"data:application/xhtml+xml URI",pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:"html-data-svg",description:"data:image/svg+xml URI â can execute scripts",pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:"html-inline-event-handler",description:"Inline event handler attributes: onclick=, onerror=, onload=, etc.",pattern:/\bon\w{1,30}\s*=/i},{id:"html-entity-obfuscated-script",description:"HTML-entity-encoded <script (e.g. <script or <script)",pattern:/(?:�*3[Cc];?|�*60;?|<
1)\s*script/i},{id:"html-entity-obfuscated-javascript",description:'HTML-entity-encoded javascript: (partial â catches common j or j for "j")',pattern:/(?:�*6[Aa];?|�*106;?)\s*(?:�*61;?|a)[\s\S]{0,80}script\s*:/i},{id:"html-style-expression",description:"CSS expression() â IE-era code execution in style attributes",pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:"html-object-embed",description:"<object or <embed tags that can load active content",pattern:/<(?:object|embed)[\s>/]/i},{id:"html-base-tag",description:"<base href= â can hijack all relative URLs on a page",pattern:/<base[\s>]/i},{id:"html-meta-refresh",description:'<meta http-equiv="refresh" â can redirect users',pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:"html-srcdoc",description:"srcdoc= attribute on iframes â embeds HTML that can run scripts",pattern:/srcdoc\s*=/i},{id:"html-iframe",description:"<iframe tag",pattern:/<iframe[\s>/]/i},{id:"html-form",description:"<form tag â can be used for phishing / credential harvesting injection",pattern:/<form[\s>/]/i}],tI=[{id:"xml-cdata-injection",description:"CDATA section injection: <![CDATA[ breaks out of text node context",pattern:/<!\[CDATA\[/i},{id:"xml-cdata-close",description:"CDATA close sequence: ]]> can terminate an enclosing CDATA section",pattern:/\]\]>/},{id:"xml-processing-instruction",description:"XML processing instruction: <?xml-stylesheet or <?php etc.",pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:"xml-doctype-injection",description:"DOCTYPE declaration embedded in content â can define entities",pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:"xml-entity-system",description:"SYSTEM keyword â used in external entity declarations (XXE)",pattern:/\bSYSTEM\s+["']/i},{id:"xml-entity-public",description:"PUBLIC keyword â used in external entity declarations (XXE)",pattern:/\bPUBLIC\s+["']/i},{id:"xml-entity-declaration",description:"<!ENTITY declaration â defines entities, potential XXE or entity expansion",pattern:/<!ENTITY[\s%]/i},{id:"xml-billion-laughs",description:"Entity reference chaining / billion laughs: repeated &eX; style references",pattern:/(?:&\w{1,20};){3,}/},{id:"xml-namespace-confusion",description:"xmlns: attribute injection â can redefine namespaces to confuse parsers",pattern:/\bxmlns(?::\w{1,40})?\s*=/i},{id:"xml-comment-injection",description:"<!-- comment injection â can hide content from some parsers",pattern:/<!--/},{id:"xml-comment-close",description:"--> closes an enclosing XML comment",pattern:/-->/},{id:"xml-pi-close",description:"?> closes an enclosing processing instruction",pattern:/\?>/}],tL
vendor: 2,121 bytes, line 1
1=[{id:"svg-script-element",description:"<script element inside SVG executes JavaScript",pattern:/<script[\s>/]/i},{id:"svg-xlink-href-javascript",description:"xlink:href with javascript: â classic SVG XSS via <a> or <use>",pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-href-javascript",description:"href= with javascript: in SVG context (<a>, <animate>, etc.)",pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-foreignobject",description:"<foreignObject embeds HTML inside SVG â can execute scripts",pattern:/<foreignObject[\s>/]/i},{id:"svg-use-external",description:"<use xlink:href or href pointing to external resource (non-fragment URL)",pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:"svg-animate-href",description:'<animate attributeName="href" â can dynamically change href to javascript:',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:"svg-animate-xlinkhref",description:'<animate attributeName="xlink:href"',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:"svg-set-javascript",description:'<set to="javascript:..." â sets an attribute to a javascript: URI',pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-event-handler",description:"SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.",pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:"svg-handler-generic",description:"Generic on* handler catch-all for SVG attributes",pattern:/\bon\w{1,30}\s*=/i},{id:"svg-filter-feimage",description:"<feImage href= â filter primitive that can load external resources",pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:"svg-image-external",description:"<image xlink:href with http/https or javascript protocol",pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:"svg-style-javascript",description:"style= attribute containing javascript: (e.g. background:url(javascript:...))",pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],
1tO=[{id:"shell-path-traversal-unix",description:"Unix path traversal: ../ â climbing the directory tree",pattern:/\.\.\//},{id:"shell-path-traversal-windows",description:"Windows path traversal: ..\\ â climbing the directory tree",pattern:/\.\.\\/},{id:"shell-path-traversal-encoded",description:"URL-encoded path traversal: %2e%2e or %2f variants",pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:"shell-null-byte",description:"Null byte injection: \\x00 or %00 â truncates strings in C-backed functions",pattern:/\x00|%00/},{id:"shell-semicolon",description:"Semicolon command separator: cmd1; cmd2",pattern:/;/},{id:"shell-pipe",description:"Pipe operator: cmd1 | cmd2",pattern:/\|/},{id:"shell-and-operator",description:"AND operator: cmd1 && cmd2",pattern:/&&/},{id:"shell-or-operator",description:"OR operator: cmd1 || cmd2",pattern:/\|\|/},{id:"shell-backtick",description:"Backtick command substitution: `cmd`",pattern:/`/},{id:"shell-dollar-paren",description:"Dollar-paren command substitution: $(cmd)",pattern:/\$\(/},{id:"shell-dollar-brace",description:"Dollar-brace variable expansion: ${var} â can be abused for injection",pattern:/\$\{/},{id:"shell-redirect-out",description:"Output redirection: cmd > file or cmd >> file",pattern:/>{1,2}/}
1,{id:"shell-redirect-in",description:"Input redirection: cmd < file",pattern:/</},{id:"shell-newline-injection",description:"Newline injection: \\n or \\r â can inject new shell commands",pattern:/[\n\r]/},{id:"shell-glob-star",description:"Glob expansion: * or ? â can expand to unintended files",pattern:/[/\\][*?]/},{id:"shell-absolute-root",description:"Absolute root path injection: string starting with / or \\ (Windows UNC)",pattern:/^(?:\/|\\\\)/},{id:"shell-windows-drive",description:"Windows drive letter path injection: C:\\ or D:/",pattern:/^[a-zA-Z]:[/\\]/},{id:"shell-curl-wget",description:"curl/wget with URL or flags â can exfiltrate data or download payloads",pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],t$=[{id:"redos-nested-quantifier-plus",description:"Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",pattern:/\([^)]*\+[^)]*\)[+*]/},{id:"redos-nested-quantifier-star",description:"Nested * quantifier: (a*)* or (a*)+ â catastrophic backtracking",pattern:/\([^)]*\*[^)]*\)[*+]/},{id:"redos-nested-groups",description:"Doubly nested quantified groups: ((a+)+) â guaranteed catastrophic",pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:"redos-alternation-overlap",description:"Overlapping alternation under quantifier: (a|a)+ â ambiguous NFA paths",pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:"redos-star-plus-concat",description:"(x*x)+ pattern â triggers super-linear backtracking",pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:"redos-dot-star-greedy",description:"(.*){n,} or (.+){n,} â repeated greedy dot quantifiers",pattern:/\(\.[*+]\)\{?\d/},{id:"redos-large-repetition",description:"Very large fixed or range repetition count {1000,} or {1000,n} â denial of service via backtracking",pattern:/\{\d{4,}(?:,\d*)?\}/},{id:"redos-catastrophic-alternation",description:"Long alternation with many similar branches â polynomial backtracking risk",pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],tP="[\"'\\s]*:",tM=[{id:"nosql-where-operator",description:"$where â executes arbitrary JavaScript server-side in MongoDB",pattern:RegExp(`\\$where${tP}`,"i")},{id:"nosql-ne-operator",description:'$ne â "not equal" operator used to bypass equality checks',pattern:RegExp(`\\$ne${tP}`,"i")},{id:"nosql-gt-operator",description:'$gt â "greater than" used to bypass password/value checks',pattern:RegExp(`\\$gte?${tP}`,"i")},{id:"nosql-lt-operator",description:'$lt / $lte â "less than" bypass variants',pattern:RegExp(`\\$lte?${tP}`,"i")},{id:"nosql-regex-operator",description:"$regex â can be used to extract data character by character (blind injection)",pattern:RegExp(`\\$regex${tP}`,"i")},{id:"nosql-or-operator",description:"$or â logical OR; used to create always-true conditions",pattern:RegExp(`\\$or${tP}\\s*\\[`,"i")},{id:"nosql-and-operator",description:"$and â logical AND operator injection",pattern:RegExp(`\\$and${tP}\\s*\\[`,"i")},{id:"nosql-nor-operator",description:"$nor â logical NOR operator injection",pattern:RegExp(`\\$nor${tP}\\s*\\[`,"i")},{id:"nosql-exists-operator",description:"$exists â can enumerate fields to determine schema",pattern:RegExp(`\\$exists${tP}`,"i")},{id:"nosql-in-operator",description:"$in â matches any value in a list; can enumerate values",pattern:RegExp(`\\$in${tP}\\s*\\[`,"i")},{id:"nosql-expr-operator",description:"$expr â allows aggregation expressions in queries (MongoDB 3.6+)",pattern:RegExp(`\\$expr${tP}`,"i")},{id:"nosql-function-operator",description:"$function â executes arbitrary JavaScript in MongoDB 4.4+",pattern:RegExp(`\\$function${tP}`,"i")},{id:"nosql-accumulator-operator",description:"$accumulator â custom aggregation with arbitrary JS execution",pattern:RegExp(`\\$accumulator${tP}`,"i")},{id:"nosql-proto-pollution",description:"__proto__ â prototype pollution via object key injection",pattern:/__proto__/},{id:"nosql-constructor-prototype",description:"constructor.prototype â alternative prototype pollution vector (dot notation or JSON key)",pattern:/constructor[\s"':.,{\[]*prototype/i},{id:"nosql-proto-bracket",description:'["__proto__"] â bracket-notation prototype pollution',pattern:/\[["']__proto__["']\]/}],tR=[{id:"log-crlf-injection",description:"CRLF injection: literal \\r or \\n embeds fake log lines",pattern:/[\r\n]/},{id:"log-url-encoded-crlf",description:"URL-encoded CRLF: %0d, %0a, %0D, %0A â decoded by some log parsers",pattern:/%0[dDaA]/},{id:"log-unicode-newline",description:"Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",pattern:/[\u2028\u2029]/},{id:"log-log4shell-jndi",description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:"log-log4shell-obfuscated",description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:"log-log4j-lookup",description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} â data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:"log-ssti-double-brace",description:"SSTI double-brace: {{expression}} â Jinja2, Twig, Handlebars, etc.",pattern:/\{\{[\s\S]{0,80}\}\}/},{id:"log-ssti-hash-brace",description:"SSTI hash-brace: #{expression} â Thymeleaf, Velocity, Ruby ERB",pattern:/#\{[\s\S]{0,80}\}/},{id:"log-ssti-dollar-brace",description:"SSTI/EL injection: ${expression with operators or method calls} â JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:"log-ssti-percent-tag",description:"SSTI ERB/ASP tag: <%= expression %> â Ruby ERB, ASP",pattern:/<%=[\s\S]{0,80}%>/},{id:"log-null-byte",description:"Null byte: \\x00 or %00 â can truncate log entries in C-backed loggers",pattern:/\x00|%00/},{id:"log-ansi-escape",description:"ANSI escape sequence: ESC[ â can manipulate terminal output when logs are tailed",pattern:/\x1b\[/}];tT.label="HTML",tI.label="XML",tL.label="SVG",t_.label="SQL",tk.label="SQL-STRICT",tO.label="SHELL",t$.label="REDOS",tM.label="NOSQL",tR.label="LOG",Object.freeze({HTML:tT,XML:tI,SVG:tL,SQL:t_,"SQL-STRICT":tk,SHELL:tO,REDOS:t$,NOSQL:tM,LOG:tR});class tD{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=tF,this.parseTextData=tB,this.resolveNameSpace=tU,this.buildAttributesMap=tq,this.isItStopNode=tG,this.replaceEntitiesValue=tH,this.readStopNodeData=tJ,this.saveTextToParentTag=tX,this.addChild=tz,this.ignoreAttributesFn=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(let r of e)if("string"==typeof r&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let r={...tx};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?r=this.options.htmlEntities:!0===this.options.htmlEntities&&(r={...ty,...tg}),this.entityDecoder=new tC({namedEntities:{...r,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:(e,t)=>!function(e,t){if("string"!=typeof e)throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);!function(e){if(!(e instanceof RegExp)){if(Array.isArray(e)){if(0===e.length)throw TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(e[0])){for(let t of e)if(!Array.isArray(t)||0===t.length)throw TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`)}}(t);let{lists:r,regex:i}=t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null};if(i)return i.test(e);for(let t of r)if(null!==function(e,t){let r=t.label??"CUSTOM";for(let i of t)if(i.pattern.test(e))return{context:r,id:i.id,description:i.description,pattern:i.pattern};return null}(e,t))return!0;return!1}(t,[tT,tI])?tb.ALLOW:tb.BLOCK})),this.matcher=new tf,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new tm;const i=this.options.stopNodes;if(i&&i.length>0){for(let e=0;e<i.length;e++){const t=i[e];"string"==typeof t?this.stopNodeExpressionsSet.add(new th(t)):t instanceof th&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}}function tB(e,t,r,i,n,a,s){let o=this.options;if(void 0!==e&&(o.trimValues&&!i&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e,t,r));let i=o.jPath?r.toString():r,l=o.tagValueProcessor(t,e,i,n,a);return null==l?e:typeof l!=typeof e||l!==e?l:o.trimValues||e.trim()===e?tQ(e,o.parseTagValue,o.numberParseOptions):e}}function tU(e){if(this.options.removeNSPrefix){let t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}let tV=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function tq(e,t,r,i=!1){let n=this.options;if(!0===i||!0!==n.ignoreAttributes&&"string"==typeof e){let i=function(e,t){let r=[],i=t.exec(e);for(;i;){let n=[];n.startIndex=t.lastIndex-i[0].length;let a=i.length;for(let e=0;e<a;e++)n.push(i[e]);r.push(n),i=t.exec(e)}return r}(e,tV),a=i.length,s={},o=Array(a),l=!1,c={};for(let e=0;e<a;e++){let t=this.resolveNameSpace(i[e][1]),a=i[e][4];if(t.length&&void 0!==a){let i=a;n.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i,r,this.readonlyMatcher),o[e]=i,c[t]=i,l=!0}}l&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(c);let d=n.jPath?t.toString():this.readonlyMatcher,p=!1;for(let e=0;e<a;e++){let t=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(t,d))continue;let r=n.attributeNamePrefix+t;if(t.length)if(n.transformAttributeName&&(r=n.transformAttributeName(r)),r=tZ(r,n),void 0!==i[e][4]){let i=o[e],a=n.attributeValueProcessor(t,i,d);null==a?s[r]=i:typeof a!=typeof i||a!==i?s[r]=a:s[r]=tQ(i,n.parseAttributeValue,n.numberParseOptions),p=!0}else n.allowBooleanAttributes&&(s[r]=!0,p=!0)}if(!p)return;if(n.attributesGroupName&&!n.preserveOrder){let e={};return e[n.attributesGroupName]=s,e}return s}}let tF=function(e){e=e.replace(/\r\n?/g,"\n");let t=new eK("!xml"),r=t,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n=this.options,a=new e4(n.processEntities),s=e.length;for(let o=0;o<s;o++)if("<"===e[o]){let l=e.charCodeAt(o+1);if(47===l){let a=tY(e,">",o,"Closing Tag is not closed."),s=e.substring(o+2,a).trim();if(n.removeNSPrefix){let e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}s=tK(n.transformTagName,s,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let l=this.matcher.getCurrentTag();if(s&&n.unpairedTagsSet.has(s))throw Error(`Unpaired tag can not be used as closing tag: </${s}>`);l&&n.unpairedTagsSet.has(l)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||t,n.captureMetaData&&r&&r.addEndIndex(a+1),i="",o=a}else if(63===l){let t=tW(e,o,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let s=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(s){let e=s[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(n.ignoreDeclaration&&"?xml"===t.tagName||n.ignorePiTags);else{let e=new eK(t.tagName);e.add(n.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==n.ignoreAttributes&&(e[":@"]=s),this.addChild(r,e,this.readonlyMatcher,o),n.captureMetaData&&r.addEndIndex(t.closeIndex+2)}o=t.closeIndex+1}else if(33===l&&45===e.charCodeAt(o+2)&&45===e.charCodeAt(o+3)){let t=tY(e,"-->",o+4,"Comment is not closed.");if(n.commentPropName){let a=e.substring(o+4,t-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:a}])}o=t}else if(33===l&&68===e.charCodeAt(o+2)){if(this.doctypefound)throw Error("Multiple DOCTYPE declarations foun
1d.");this.doctypefound=!0;let t=a.readDocType(e,o);this.entityDecoder.addInputEntities(t.entities),o=t.i}else if(33===l&&91===e.charCodeAt(o+2)){let t=tY(e,"]]>",o,"CDATA is not closed.")-2,a=e.substring(o+9,t);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let s=this.parseTextData(a,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);void 0==s&&(s=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:a}]):r.add(n.textNodeName,s),o=t+2}else{let a,l=tW(e,o,n.removeNSPrefix);if(!l){let t=e.substring(Math.max(0,o-50),Math.min(s,o+50));throw Error(`readTagExp returned undefined at position ${o}. Context: "${t}"`)}let c=l.tagName,d=l.rawTagName,p=l.tagExp,h=l.attrExpPresent,u=l.closeIndex;if({tagName:c,tagExp:p}=tK(n.transformTagName,c,p,n),n.strictReservedNames&&(c===n.commentPropName||c===n.cdataPropName||c===n.textNodeName||c===n.attributesGroupName))throw Error(`Invalid tag name: ${c}`);r&&i&&"!xml"!==r.tagname&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let f=r;f&&n.unpairedTagsSet.has(f.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(m=!0,p="/"===c[c.length-1]?c=c.substr(0,c.length-1):p.substr(0,p.length-1),h=c!==p);let g=null;a=function(e){if(!e||"string"!=typeof e)return;let t=e.indexOf(":");if(-1!==t&&t>0){let r=e.substring(0,t);if("xmlns"!==r)return r}}(d),c!==t.tagname&&this.matcher.push(c,{},a),c!==p&&h&&(g=this.buildAttributesMap(p,this.matcher,c))&&function(e,t){if(!e)return;let r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return;let i={};for(let e in r)e.startsWith(t.attributeNamePrefix)?i[e.substring(t.attributeNamePrefix.length)]=r[e]:i[e]=r[e]}(g,n),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=o;if(this.isCurrentNodeStopNode){let t="";if(m)o=l.closeIndex;else if(n.unpairedTagsSet.has(c))o=l.closeIndex;else{let r=this.readStopNodeData(e,d,u+1);if(!r)throw Error(`Unexpected end of ${d}`);o=r.i,t=r.tagContent}let i=new eK(c);g&&(i[":@"]=g),i.add(n.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,i,this.readonlyMatcher,x),n.captureMetaData&&r.addEndIndex(o+1)}else{if(m){({tagName:c,tagExp:p}=tK(n.transformTagName,c,p,n));let e=new eK(c);g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,x),n.captureMetaData&&r.addEndIndex(u+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(c)){let e=new eK(c);g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,x),n.captureMetaData&&r.addEndIndex(l.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,o=l.closeIndex;continue}else{let e=new eK(c);if(this.tagsNodeStack.length>n.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,x),r=e}i="",o=u}}}else i+=e[o];return t.child};function tz(e,t,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,a=this.options.updateTag(t.tagname,n,t[":@"]);!1===a||("string"==typeof a&&(t.tagname=a),e.addChild(t,i))}function tH(e,t,r){let i=this.options.processEntities;if(!i||!i.enabled)return e;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(t):i.allowedTags(t,n)))return e}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(t,n))return e}return this.entityDecoder.decode(e)}function tX(e,t,r,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function tG(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function tY(e,t,r,i){let n=e.indexOf(t,r);if(-1!==n)return n+t.length-1;throw Error(i)}function tW(e,t,r,i=">"){let n=function(e,t,r=">"){let i=0,n=e.length,a=r.charCodeAt(0),s=r.length>1?r.charCodeAt(1):-1,o="",l=t;for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(i)t===i&&(i=0);else if(34===t||39===t)i=t;else if(t===a){if(-1===s)return{data:o+=e.substring(l,r),index:r};else if(e.charCodeAt(r+1)===s)return{data:o+=e.substring(l,r),index:r}}else 9!==t||i||(o+=e.substring(l,r)+" ",l=r+1)}}(e,t+1,i);if(!n)return;let a=n.data,s=n.index,o=a.search(/\s/),l=a,c=!0;-1!==o&&(l=a.substring(0,o),a=a.substring(o+1).trimStart());let d=l;if(r){let e=l.indexOf(":");-1!==e&&(c=(l=l.substr(e+1))!==n.data.substr(e+1))}return{tagName:l,tagExp:a,closeIndex:s,attrExpPresent:c,rawTagName:d}}function tJ(e,t,r){let i=r,n=1,a=e.length;for(;r<a;r++)if("<"===e[r]){let a=e.charCodeAt(r+1);if(47===a){let a=function(e,t,r){let i=e.indexOf(">",t);if(-1===i)throw Error(r);return i}(e,r,`${t} is not closed`);if(e.substring(r+2,a).trim()===t&&0==--n)return{tagContent:e.substring(i,r),i:a};r=a}else if(63===a)r=tY(e,"?>",r+1,"StopNode is not closed.");else if(33===a&&45===e.charCodeAt(r+2)&&45===e.charCodeAt(r+3))r=tY(e,"-->",r+3,"StopNode is not closed.");else if(33===a&&91===e.charCodeAt(r+2))r=tY(e,"]]>",r,"StopNode is not closed.")-2;else{let i=tW(e,r,!1);i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&n++,r=i.closeIndex)}}}function tQ(e,t,r){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},tc,t),!e||"string"!=typeof e)return e;let r=e.trim();if(0===r.length||void 0!==t.skipLike&&t.skipLike.test(r))return e;if("0"===r||t.unicode&&"0"===(r=tn(r)))return 0;if(t.hex&&ta.test(r))return tp(r,16);{if(t.binary&&ts.test(r))return tp(r,2);if(t.octal&&to.test(r))return tp(r,8);if(!isFinite(r)){var i=e,n=Number(r),a=t;switch(a.infinity.toLowerCase()){case"null":return null;case"infinity":return n;case"string":return n===1/0?"Infinity":"-Infinity";default:return i}}if(r.includes("e")||r.includes("E"))return function(e,t,r){if(!r.eNotation)return e;let i=t.match(td);if(!i)return e;{let n=i[1]||"",a=-1===i[3].indexOf("e")?"E":"e",s=i[2],o=n?e[s.length+1]===a:e[s.length]===a;if(s.length>1&&o)return e;if(1===s.length&&(i[3].startsWith(`.${a}`)||i[3][0]===a))return Number(t);if(!(s.length>0))return Number(t);else if(r.leadingZeros&&!o)return Number(t=(i[1]||"")+i[3]);else return e}}(e,r,t);let s=tl.exec(r);if(!s)return e;{let i=s[1]||"",n=s[2],a=function(e){if(e&&-1!==e.indexOf(".")){let t=e.length;for(;t>0&&48===e.charCodeAt(t-1);)t--;"."===(e=e.slice(0,t))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substring(0,e.length-1))}return e}(s[3]),o=i?"."===e[n.length+1]:"."===e[n.length];if(!t.leadingZeros&&(n.length>1||1===n.length&&!o))return e;{let s=Number(r),o=String(s);if(0===s)return s;if(-1!==o.search(/[eE]/))if(t.eNotation)return s;else return e;if(-1!==r.indexOf("."))if("0"===o)return s;else if(o===a)return s;else if(o===`${i}${a}`)return s;else return e;let l=n?a:r;return n?l===o||i+l===o?s:e:l===o||l===i+o?s:e}}}}(e,r)}return void 0!==e?e:""}function tK(e,t,r,i){if(e){let i=e(t);r===t&&(r=i),t=i}
1return{tagName:t=tZ(t,i),tagExp:r}}function tZ(e,t){if(eY.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return eG.includes(e)?t.onDangerousProperty(e):e}let t0=eK.getMetaDataSymbol(),t1={allowBooleanAttributes:!1,unpairedTags:[]};function t2(e){return" "===e||" "===e||"\n"===e||"\r"===e}function t6(e,t){let r=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){let i=e.substr(r,t-r);if(t>5&&"xml"===i)return t3("InvalidXml","XML declaration allowed only at the start of the document.",t4(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function t5(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&0==--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}}return t}function t8(e,t){let r=function(e){let t=[],r=e.length,i=0;for(;i<r;){let n,a,s,o=i;for(;i<r&&t2(e[i]);)i++;if(i>=r)break;if("="===e[i]){i=o+1;continue}let l=e.slice(o,i),c=i;for(;i<r&&!t2(e[i])&&"="!==e[i];)i++;let d=e.slice(c,i),p=i;for(;p<r&&t2(e[p]);)p++;p<r&&"="===e[p]&&(n=e.slice(i,p+1),i=p+1);let h=i;for(;h<r&&t2(e[h]);)h++;if(h<r&&('"'===e[h]||"'"===e[h])){let t=h+1,r=e.indexOf(e[h],t);-1!==r&&(a=e[h],s=e.slice(t,r),i=r+1)}let u={startIndex:o};u[1]=l,u[2]=d,u[3]=n,u[4]=void 0!==a||void 0,u[5]=a,u[6]=s,t.push(u)}return t}(e),i={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return t3("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",t7(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return t3("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",t7(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return t3("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",t7(r[e]));let n=r[e][2];if(!eX(n))return t3("InvalidAttr","Attribute '"+n+"' is an invalid name.",t7(r[e]));if(Object.prototype.hasOwnProperty.call(i,n))return t3("InvalidAttr","Attribute '"+n+"' is repeated.",t7(r[e]));i[n]=1}return!0}function t3(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function t4(e,t){let r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function t7(e){return e.startIndex+e[1].length}let t9=new class{constructor(e){this.externalEntities={},this.options=eQ(e)}parse(e,t){var r;if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let r=function(e,t){t=Object.assign({},t1,t);let r=[],i=!1,n=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,(a=t6(e,a)).err)return a}else if("<"===e[a]){let s=a;if("!"===e[++a]){a=t5(e,a);continue}{let o=!1;"/"===e[a]&&(o=!0,a++);let l="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&" "!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)l+=e[a];if("/"===(l=l.trim())[l.length-1]&&(l=l.substring(0,l.length-1),a--),!eX(l))return t3("InvalidTag",0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",t4(e,a));let c=function(e,t){let r="",i="",n=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){n=!0;break}r+=e[t]}return""===i&&{value:r,index:t,tagClosed:n}}(e,a);if(!1===c)return t3("InvalidAttr","Attributes for '"+l+"' have open quote.",t4(e,a));let d=c.value;if(a=c.index,"/"===d[d.length-1]){let r=a-d.length,n=t8(d=d.substring(0,d.length-1),t);if(!0!==n)return t3(n.err.code,n.err.msg,t4(e,r+n.err.line));i=!0}else if(o)if(!c.tagClosed)return t3("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",t4(e,a));else{if(d.trim().length>0)return t3("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",t4(e,s));if(0===r.length)return t3("InvalidTag","Closing tag '"+l+"' has not been opened.",t4(e,s));let t=r.pop();if(l!==t.tagName){let r=t4(e,t.tagStartPos);return t3("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+l+"'.",t4(e,s))}0==r.length&&(n=!0)}else{let o=t8(d,t);if(!0!==o)return t3(o.err.code,o.err.msg,t4(e,a-d.length+o.err.line));if(!0===n)return t3("InvalidXml","Multiple possible root nodes found.",t4(e,a));-1!==t.unpairedTags.indexOf(l)||r.push({tagName:l,tagStartPos:s}),i=!0}for(a++;a<e.length;a++)if("<"===e[a])if("!"===e[a+1]){a=t5(e,++a);continue}else if("?"===e[a+1]){if((a=t6(e,++a)).err)return a}else break;else if("&"===e[a]){let t=function(e,t){if(";"===e[++t])return -1;if("#"===e[t]){var r=++t;let i=/\d/;for("x"===e[r]&&(r++,i=/[\da-fA-F]/);r<e.length;r++){if(";"===e[r])return r;if(!e[r].match(i))break}return -1}let i=0;for(;t<e.length;t++,i++)if(!e[t].match(/\w/)||!(i<20)){if(";"===e[t])break;return -1}return t}(e,a);if(-1==t)return t3("InvalidChar","char '&' is not expected.",t4(e,a));a=t}else if(!0===n&&!t2(e[a]))return t3("InvalidXml","Extra text at the end",t4(e,a));"<"===e[a]&&a--}}else{if(t2(e[a]))continue;return t3("InvalidChar","char '"+e[a]+"' is not expected.",t4(e,a))}return i?1==r.length?t3("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",t4(e,r[0].tagStartPos)):!(r.length>0)||t3("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):t3("InvalidXml","Start tag expected.",1)}(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let i=new tD(this.options,this.externalEntities),n=i.parseXml(e);return this.options.preserveOrder||void 0===n?n:(r=this.options,function e(t,r,i,n){let a,s={};for(let o=0;o<t.length;o++){let l=t[o],c=function(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let r=t[e];if(":@"!==r)return r}}(l);if(void 0!==c&&c!==r.textNodeName){let e=function(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;let r={};for(let i in e)i.startsWith(t)?r[i.substring(t.length)]=e[i]:r[i]=e[i];return r}(l[":@"]||{},r.attributeNamePrefix);i.push(c,e)}if(c===r.textNodeName)void 0===a?a=l[c]:a+=""+l[c];else if(void 0===c)continue;else if(l[c]){let t=e(l[c],r,i,n),a=function(e,t){let{textNodeName:r}=t,i=Object.keys(e).length;return 0===i||1===i&&(!!e[r]||"boolean"==typeof e[r]||0===e[r])}(t,r);if(0===Object.keys(t).length&&r.alwaysCreateTextNode&&(t[r.textNodeName]=""),l[":@"]?function(e,t,r,i){if(t){let n=Object.keys(t),a=n.length;for(let s=0;s<a;s++){let a=n[s],o=a.startsWith(i.attributeNamePrefix)?a.substring(i.attributeNamePrefix.length):a,l=i.jPath?r.toString()+"."+o:r;i.isArray(a,l,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}(t,l[":@"],n,r):1!==Object.keys(t).length||void 0===t[r.textNodeName]||r.alwaysCreateTextNode?0===Object.keys(t).length&&(r.alwaysCreateTextNode?t[r.textNodeName]="":t=""):t=t[r.textNodeName],void 0!==l[t0]&&"object"==typeof t&&null!==t&&(t[t0]=l[t0]),void 0!==s[c]&&Object.prototype.hasOwnProperty.call(s,c))Array.isArray(s[c])||(s[c]=[s[c]]),s[c].push(t);else{let e=r.jPath?n.toString():n;r.isArray(c,e,a)?s[c]=[t]:s[c]=t}void 0!==c&&c!==r.textNodeName&&i.pop()}}return"string"==typeof a?a.length>0&&(s[r.textNodeName]=a):void 0!==a&&(s[r.textNodeName]=a),s}(n,r,i.matcher,i.readonlyMatcher))}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return eK.getMetaDataSymbol()}}({ignoreAttributes:!1,attributeNamePrefix:"",trimValues:!0,isArray:e=>
1"position"===e||"jobDescription"===e||"office"===e});function re(e){return e?Array.isArray(e)?e:[e]:[]}function rt(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function rr(e){return re(e.jobDescriptions?.jobDescription).some(e=>{let t=e.name?.trim(),r=(e.value??"").replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim();return!!(t||r)})}class ri{companySlug;localeConfig;nativeApiLocale;id;capabilities;constructor(e,t,r){this.companySlug=e,this.localeConfig=t,this.nativeApiLocale=r,this.id="personio",this.capabilities={detail:"internal"}}async getJobs(e){let t=eB(e,this.localeConfig);if(!t)return[];if(!this.companySlug)return console.warn("PERSONIO_COMPANY_SLUG is not defined; skipping Personio jobs."),[];let r=await this.fetchPositions(t);return eD((await this.filterToRequestedLanguage(r,t)).map(r=>this.mapPosition(r,e,t)).filter(e=>null!==e),t)}async filterToRequestedLanguage(e,t){let r=e.filter(e=>!e.language||eR(String(e.language),t));return!this.nativeApiLocale||eR(t,this.nativeApiLocale)?r:r.filter(rr)}async fetchPositions(e){let t=`https://${this.companySlug}.jobs.personio.de/xml?language=${e}`,r=await fetch(t,{next:{revalidate:300}});if(!r.ok)throw Error(`Personio API error: ${r.status} ${r.statusText}`);let i=await r.text(),n=t9.parse(i)["workzag-jobs"],a=n?.language?String(n.language):void 0;return re(n?.position).map(e=>({...e,language:e.language||a}))}mapPosition(e,t,r){let i=e.id;if(null==i||""===i)return null;let n=String(i),a=re(e.jobDescriptions?.jobDescription),s=e.name?.trim();if(!s)return null;let{location:o,additionalLocations:l}=function(e){let t=new Set,r=[];for(let i of[...re(e.office),...re(e.additionalOffices?.office)]){let e=String(i).trim();if(!e)continue;let n=e.toLowerCase();t.has(n)||(t.add(n),r.push(e))}let[i="",...n]=r;return{location:i,additionalLocations:n.length>0?n:void 0}}(e);return e$({id:eP(this.id,n),title:s,location:o,additionalLocations:l,department:eV(e.department||e.recruitingCategory,eL),applyUrl:`https://${this.companySlug}.jobs.personio.de/job/${n}
1/apply?language=${r}`,postedAt:e.createdAt?new Date(e.createdAt):void 0,descriptionHtml:this.formatDescription(a),contentLocale:e.language?String(e.language):r},t,this.capabilities.detail)}formatDescription(e){return e.map(e=>{let t=e.name?.trim(),r=e.value?.trim();return t||r?t&&r?`<h3>${rt(t)}</h3>${r}`:t?`<h3>${rt(t)}</h3>`:r||"":""}).filter(Boolean).join("")||void 0}}var rn=e.i(2053);class ra{apiKey;channel;localeConfig;id;capabilities;constructor(e,t,r){this.apiKey=e,this.channel=t,this.localeConfig=r,this.id="softgarden",this.capabilities={detail:"internal"}}async getJobs(e){let t=eB(e,this.localeConfig);if(!t)return[];let r=`https://api.softgarden.io/api/rest/v3/frontend/jobslist/${this.channel}`,i=rn.Buffer.from(`${this.apiKey}:`).toString("base64"),n=await fetch(r,{headers:{Authorization:`Basic ${i}`},next:{revalidate:300}});if(!n.ok)throw Error(`Failed to fetch jobs from Softgarden (channel: ${this.channel}, status: ${n.status})`);return eD(((await n.json()).results||[]).map(r=>this.mapToJob(r,e,t)),t)}mapToJob(e,t,r){let i=(e.additionalLocations??[]).map(e=>this.formatGeo(e)).filter(Boolean),n=this.formatGeo(e),a=e.locale?.trim()||r;return e$({id:eP(this.id,e.jobDbId),title:e.externalPostingName||e.internalPostingName||"Stellenangebot",descriptionHtml:e.jobAdText||"",location:n,additionalLocations:i.length>0?i:void 0,applyUrl:e.applyOnlineLink||e.job_ad_url||"",department:eV(void 0,eL),postedAt:this.parsePostedAt(e.postingLastUpdatedDate),contentLocale:a},t,this.capabilities.detail)}parsePostedAt(e){if(null==e||""===e)return;if("number"==typeof e)return new Date(e>1e12?e:1e3*e);let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}formatGeo(e){let t=[e.geo_city,e.geo_state,e.geo_country].filter(Boolean);return t.length>0?t.join(", "):e.geo_name||""}}function rs(){let e=[],{greenhouse:t,personio:r,softgarden:i}=eO;t.enabled&&t.boardToken&&e.push(new eq(t.boardToken,t.locale));let n=function(e){let t=e.trim();if(!t)return"";try{if(t.includes("://")||/jobs\.personio\./i.test(t)){let e=new URL(t.includes("://")?t:`https://${t}`).hostname.match(/^([^.]+)\.jobs\.personio\./i);if(e?.[1])return e[1]}}catch{}return t.replace(/\/+$/,"").split("/").filter(Boolean).pop()||t}(r.companySlug);if(r.enabled&&n?e.push(new ri(n,r.locale,r.nativeApiLocale)):r.enabled&&console.warn("PERSONIO_COMPANY_SLUG is not defined; Personio jobs will not be listed."),i.enabled&&i.tokens)for(let{apiKey:t,channel:r}of i.tokens.split(",").map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let[t,r]=e.split(":").map(e=>e.trim());return{apiKey:t,channel:r}}).filter(e=>!!(e.apiKey&&e.channel)))e.push(new ra(t,r,i.locale));else i.enabled&&console.warn("SOFTGARDEN_API_TOKEN is not defined; Softgarden jobs will not be listed.");return new eF(e)}let ro=(0,O.cache)(async(e,t="")=>{let r=rs(),i=t?{portalIds:t.split(",").filter(Boolean)}:{};return r.fetchAllJobs(e,i)});(0,O.cache)(async(e,t)=>rs().getJob(e,t));var rl=e.i(67066);function rc(e){return e?(Array.isArray(e)?e:[e]).flatMap(e=>"string"==typeof e?e.split(/[\n,]+/):e&&"object"==typeof e&&"value"in e&&"string"==typeof e.value?[e.value]:[]).map(e=>e.trim()).filter(Boolean):[]}e.i(57334);var rd=e.i(67412);let rp=({job:e,viewRoleText:t})=>(0,i.jsxs)("li",{className:"flex flex-col gap-3 py-6 md:flex-row md:items-center md:justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(rd.Typography,{variant:"h6",as:"h4",children:e.title}),!!e.location?.trim()&&(0,i.jsx)(rd.Typography,{variant:"caption",children:e.location.trim()})]}),(0,i.jsx)(F.Button,{href:e.href,target:e.opensInNewTab?"_blank":void 0,variant:"secondary",size:"sm",label:t})]}),rh=({heading:e,groupByDepartment:t=!0,viewRoleText:r,emptyStateText:n,departments:a})=>{let s=a.some(e=>e.jobs.length>0),o=e?.trim(),l=r?.trim()||"View role",c=n?.trim()||"There are no open roles right now. Please check back soon.";return(0,i.jsx)(E.Section,{ariaLabel:o,children:(0,i.jsxs)(j.Container,{className:"mt-10 mb-20 px-5 md:px-10 lg:px-47.5 max-w-[1280px]",children:[!!o&&(0,i.jsx)("h2",{className:"my-8 md:my-12",children:o}),s?t?(0,i.jsx)("div",{className:"flex flex-col gap-12",children:a.map(e=>(0,i.jsxs)(E.Section,{className:"flex flex-col gap-4",ariaLabel:e.name,children:[(0,i.jsx)(rd.Typography,{variant:"h4",as:"h3",children:e.name}),(0,i.jsx)("ul",{className:"flex flex-col divide-y divide-primary-black/10 border-t border-primary-black/10",children:e.jobs.map(e=>(0,i.jsx)(rp,{job:e,viewRoleText:l},e.id))})]},e.id))}):(0,i.jsx)("ul",{className:"flex flex-col divide-y divide-primary-black/10 border-t border-primary-black/10",children:(function(e){let t=new Set,r=[];for(let i of e)for(let e of i.jobs)t.has(e.id)||(t.add(e.id),r.push(e));return r})(a).map(e=>(0,i.jsx)(rp,{job:e,viewRoleText:l},e.id))}):(0,i.jsx)(rd.Typography,{variant:"body",className:"max-w-2xl",children:c})]})})},ru=async({heading:e,groupByDepartment:t=!0,viewRoleText:r,emptyStateText:n,locale:a,excludedJobIds:s,includedPortals:o})=>{let l,c=a&&rl.locales.includes(a)?a:"en",d=rc(s),p=(l=rc(o)).length>0?l:void 0,h=function(e,t=eL){let r=new Map;for(let i of e){let e=eV(i.department,t),n=e.toLowerCase(),a=r.get(n),s=function(e){let t=function(e,t,r=" · "){let i=new Set,n=[];for(let r of[e,...t??[]]){let e=r?.trim();if(!e)continue;let t=e.toLowerCase();i.has(t)||(i.add(t),n.push(e))}return n.join(r)}(e.location,e.additionalLocations);return{id:e.id,title:e.title,location:t||void 0,href:e.href,opensInNewTab:e.opensInNewTab}}(i);a?a.jobs.push(s):r.set(n,{id:n,name:e,jobs:[s]})}return[...r.values()].sort((e,t)=>
1e.name.localeCompare(t.name))}((await ro(c,p?.join(",")??"")).filter(e=>{var t;return t=e.id,!(0!==d.length&&d.some(e=>e===t||t.endsWith(`-${e}`)))}));return(0,i.jsx)(rh,{heading:e,groupByDepartment:t,viewRoleText:r,emptyStateText:n,departments:h})};var rf=e.i(74297);let rm=e=>{let t=({blok:t,...r})=>(0,i.jsx)(e,{...t,...r});return t.displayName=`Blok(${e.displayName||e.name||"Component"})`,t},rg=(0,a.storyblokInit)({accessToken:"QcfnjIGT2x5mnBrwTOdYiwtt",use:[n.apiPlugin],components:{page:({blok:e,locale:t,slug:r,breadcrumbs:n})=>{let{header:a,hero:o,footer:l,schemaBlocks:c}=e,d=o?.[0];return(0,i.jsxs)(w,{header:a,footer:l,locale:t,slug:r,schemaBlocks:c,breadcrumbs:n,children:[d?.component==="calloutImageHero"?(0,i.jsx)(V,{...d,breadcrumbs:n}):d&&(0,i.jsx)(R,{...d,breadcrumbs:n}),e.body?.map(e=>(0,i.jsx)(s.StoryblokComponent,{blok:e,locale:t},e._uid))]})},articlePage:K,caseStudyPage:em,caseStudyLanding:ew,articleListingPage:ej,servicePage:({blok:e,locale:t,slug:r,breadcrumbs:n})=>{let{header:a,footer:o,hero:l,schemaBlocks:c}=e,d=l?.[0];return(0,i.jsxs)(w,{header:a,footer:o,locale:t,slug:r,schemaBlocks:c,breadcrumbs:n,children:[(0,i.jsx)(ed,{accentColor:"orange",breadcrumbs:n||[],heading:d?.heading||"",subheading:d?.subheading||"",link:d?.link||{}}),e.body?.map(e=>(0,i.jsx)(s.StoryblokComponent,{blok:e},e._uid))]})},"Rich Text":rm(e=>(0,i.jsx)(j.Container,{className:(0,S.clsx)("rich-text","px-5 md:px-10 lg:px-47.5 max-w-[1280px]",(0,et.getSpacingClasses)({top:e.spacingTop||"none",bottom:e.spacingBottom||"none"})),children:(0,i.jsx)(N.RichText,{...e})})),callout:rm(z),twoColumnCopy:rm(({heading:e,subtext:t,link:r,spacingTop:n="md",spacingBottom:a="md"})=>(0,i.jsx)(E.Section,{variant:"neutral",className:(0,et.getSpacingClasses)({top:n,bottom:a}),children:(0,i.jsxs)(j.Container,{className:"grid grid-cols-1 md:grid-cols-2 px-4 md:px-10",children:[(0,i.jsx)("h3",{className:"max-w-128.5 md:pr-15 md:justify-self-end",children:e}),(0,i.jsxs)("div",{className:"flex flex-col md:max-w-105 md:pt-10",children:[(0,i.jsx)("div",{className:"rich-text prose-p:my-5 md:prose-p:my-10 prose:flex-col prose:gap-10 mb-5 text-primary-black font-primary text-xl/6 md:text-3xl/8 font-light",children:(0,i.jsx)(N.RichText,{content:t})}),r?.map((e,t)=>(0,i.jsx)(F.Button,{variant:"primary",size:"sm",...e},t))]})]})})),heroWithImpactBubbles:rm(({heading:e,backgroundImage:t,video:r,bubbles:n})=>{let a="relative w-full",s=r?.[0]?.desktop&&r[0].desktop.length>0||r?.[0]?.mobile&&r[0].mobile.length>0;return(0,i.jsx)(E.Section,{className:"pb-10 md:pb-25",children:(0,i.jsxs)(j.Container,{guttersX:"sm",children:[(0,i.jsx)("h1",{className:"h1 px-2 md:px-5 py-8 md:py-20 whitespace-pre-line",children:e}),s&&(0,i.jsx)(ee.EmbeddedVideo,{video:r[0],className:(0,S.default)("md:h-[787px]",a)}),!s&&(0,i.jsx)("div",{className:(0,S.default)("bg-cover bg-center h-[480px] md:h-[600px] rounded-md md:rounded-lg",a),style:{backgroundImage:`url(${t.filename})`},role:"img","aria-label":t.ariaLabel,children:(0,i.jsx)("div",{className:"absolute max-md:top-68 left-4 right-4 md:left-auto md:right-8 top-8 md:top-36 flex flex-col gap-4 md:w-[608px]",children:n.map((e,t)=>(0,i.jsx)(Z,{accentColor:e.accentColor,stat:e.stat,description:e.description},t))})})]})})}),componentHeader:rm(X),sectionHero:rm(ei),BubbleCards:rm(({bubbles:e})=>(0,i.jsx)(j.Container,{className:"grid grid-cols-1 md:grid-cols-3 gap-5 px-4 py-10 md:px-10 md:py-20",children:e.map((e,t)=>(0,i.jsx)(en,{...e},t))})),ImageCards:rm(({cards:e})=>(0,i.jsx)(j.Container,{className:(0,S.default)("gap-5 px-4 my-10 md:px-10 md:my-20 grid grid-cols-1",{"md:grid-cols-2":2===e.length,"md:grid-cols-3":e.length>=3}),children:e.map((e,t)=>(0,i.jsx)(H.ImageCard,{...e},t))})),StatCards:rm(({cards:e})=>(0,i.jsx)(j.Container,{className:(0,S.default)("gap-4 lg:gap-5 px-4 my-10 lg:px-10 lg:my-20 grid grid-cols-1",{"lg:grid-cols-2":2===e.length,"lg:grid-cols-3":e.length>=3}),children:e.map((e,t)=>(0,i.jsx)(ea,{...e},t))})),testimonial:rm(e=>{let{quote:t,author:r,image:n,accentColor:a,hasBubble:s=!0}=e;return(0,i.jsx)(E.Section,{variant:"neutral",children:(0,i.jsx)(j.Container,{className:"lg:py-10",children:(0,i.jsxs)("div",{className:"w-full max-w-[1208px] mx-auto flex flex-col md:flex-row md:gap-10 py-10 md:py-20 md:px-10",children:[(0,i.jsxs)("div",{className:"flex md:flex-col",children:[s?(0,i.jsx)("div",{className:"prose-p:md:text-4xl/9 prose-p:lg:text-5xl/12",children:(0,i.jsx)(es.BubbleText,{variant:"grey",className:"px-6 md:pl-0 pt-5 mb-6 md:pt-18 tracking-[-0.56px]",children:t})}):(0,i.jsxs)("div",{className:"px-6 md:px-0",children:[(0,i.jsx)("svg",{className:(0,S.default)(eo[a]),xmlns:"http://www.w3.org/2000/svg",width:"65",height:"42",viewBox:"0 0 65 42",fill:"none",children:(0,i.jsx)("path",{d:"M17.664 0H31.616L24.32 41.728H0L17.664 0ZM50.688 0H64.64L57.344 41.728H33.024L50.688 0Z",fill:"currentColor"})}),(0,i.jsx)("h4",{className:"pt-6 mb-6 md:pt-10 leading-8 md:text-4xl/9 lg:text-5xl/12 tracking-[-0.56px]",children:t})]}),r&&(0,i.jsx)("div",{className:"hidden md:block md:mt-auto",children:(0,i.jsx)("p",{className:(0,S.default)("description px-4 md:pr-8 mt-5",s?"md:pl-[15px]":"md:pl-0"),children:r})})]}),n?.filename&&(0,i.jsx)("div",{className:"md:mt-0 mx-auto w-full max-w-[390px] px-4 md:px-0 md:max-w-none md:self-center",children:(0,i.jsxs)("div",{className:"relative w-full max-w-[358px] aspect-square md:w-[260px] md:h-[260px] lg:w-[336px] lg:h-[336px] md:max-w-none",children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,S.default)("absolute inset-0 w-full h-full",eo[a]),viewBox:"0 0 336 336",fill:"none",children:(0,i.jsx)("path",{d:"M300 0C319.882 1.54621e-06 336 16.1178 336 36V132C336 151.882 319.882 168 300 168H204C184.118 168 168 184.118 168 204V300C168 319.882 151.882 336 132 336H36C16.1178 336 1.93283e-07 319.882 0 300V204C1.54627e-06 184.118 16.1178 168 36 168H132C151.882 168 168 151.882 168 132V36C168 16.1178 184.118 1.93277e-07 204 0H300Z",fill:"currentColor"})}),(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(n,"0","720"),alt:n.alt||"",width:297,height:358,className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[90%] max-h-full h-auto md:max-w-[225px] lg:max-w-[297px] object-contain"})]})}),r&&(0,i.jsx)("div",{className:"mt-6 md:hidden",children:(0,i.jsx)("p",{className:"description px-4",children:r})})]})})})}),button:({blok:e})=>(0,i.jsx)(F.Button,{label:e.label,href:e.link?.cached_url||e.link?.url,variant:e.variant}),logoTicker:rm(ec.LogoTicker),sectionSubPageHero:rm(ed),"50/50 Container":rm(({startingPosition:e,items:t})=>(0,i.jsx)(i.Fragment,{children:t?.map((t,r)=>{let n=r%2==0,a="left"===e?n?"left":"right":n?"right":"left",s=`item-${r}`;return(0,i.jsx)(ep,{...t,imagePosition:a,layout:"left"===a?"40/60":"60/40"},s)})})),caseStudyHero:rm(eh),mediaBlock:rm(G.MediaBlock),imageGrid:rm(eg.ImageGrid),hubSpotForm:rm(eN.HubSpotForm),promoArticle:rm(({image:e,accentColor:t=el.ACCENT_COLORS.GREY,eyebrowText:r,heading:n,subheading:a,spacingTop:s="md",spacingBottom:o="md",link:l})=>{let c=l&&l.length>0?l[0]:{};return(0,i.jsx)(E.Section,{className:(0,et.getSpacingClasses)({top:s,bottom:o}),children:(0,i.jsx)(j.Container,{guttersX:"sm",className:(0,S.default)("px-4 md:px-10"),children:(0,i.jsxs)("div",{className:(0,S.default)("flex flex-col lg:flex-row-reverse lg:gap-5","overflow-hidden relative","rounded-md lg:rounded-lg",{"bg-secondary-dx-orange-tint":"orange"===t,"bg-secondary-dx-pink-tint":"pink"===t,"bg-secondary-dx-grey-light":"grey"===t,"bg-secondary-dx-green-tint":"green"===t,"bg-secondary-dx-yellow-tint":"yellow"===t,"bg-primary-black text-primary-white":"black"===t}),children:[(0,i.jsx)("div",{className:"lg:w-2/5 overflow-visible lg:overflow-hidden flex justify-center lg:items-center",children:(0,i.jsxs)("div",{className:"relative w-full aspect-[697/498] max-w-[440px] max-h-[300px] lg:max-w-none lg:max-h-none scale-120 origin-bottom lg:origin-left",children:[(0,i.jsx)("svg",{className:"absolute w-0 h-0",children:(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"promoMask",clipPathUnits:"objectBoundingBox",children:(0,i.jsx)("path",{d:"M 1 0.952 C 1 0.978 0.984 1 0.965 1 H 0.732 C 0.713 1 0.697 1 0.697 0.974 V 0.627 C 0.697 0.601 0.713 0.579 0.732 0.579 H 0.965 C 0.984 0.579 1 0.601 1 0.627 V 0.952 Z M 0.652 0.478 C 0.652 0.504 0.637 0.526 0.618 0.526 H 0.335 C 0.316 0.526 0.3 0.548 0.3 0.574 V 0.898 C 0.3 0.924 0.286 0.946 0.266 0.946 H 0.034 C 0.015 0.946 0 0.924 0 0.898 V 0.574 C 0 0.548 0.015 0.526 0.034 0.526 H 0.242 C 0.261 0.526 0.276 0.504 0.276 0.478 V 0.048 C 0.276 0.022 0.292 0 0.311 0 H 0.618 C 0.637 0 0.652 0.022 0.652 0.048 V 0.478 Z",fill:"white"})})})}),e?.filename?(0,i.jsx)("div",{className:"w-full h-full",style:{clipPath:"url(#promoMask)"},children:(0,i.jsx)(M.default,{src:(0,D.getOptimizedImage)(e,"1400","0"),alt:e.alt??"Description of image",className:"object-cover",fill:!0,sizes:"(max-width: 768px) 440px, 696px"})}):(0,i.jsx)("svg",{className:(0,S.default)("w-full h-full",{"text-secondary-dx-orange":"orange"===t,"text-secondary-dx-pink":"pink"===t,"text-primary-black":"grey"===t,"text-secondary-dx-green":"green"===t,"text-secondary-dx-yellow":"yellow"===t,"primary-black":"black"===t}
1),viewBox:"0 0 697 498",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M696.405 474C696.405 487.255 685.66 498 672.405 498H510.652C497.398 498 486.652 487.255 486.652 474V312.247C486.652 298.992 497.398 288.247 510.652 288.247H672.405C685.66 288.247 696.405 298.992 696.405 312.247V474ZM455.118 238.191C455.118 251.446 444.373 262.191 431.118 262.191H233.753C220.498 262.191 209.753 272.937 209.753 286.191V447.76C209.753 461.015 199.008 471.76 185.753 471.76H24C10.7452 471.76 0 461.015 0 447.76V286.006C0 272.751 10.7452 262.006 24 262.006H168.927C182.182 262.006 192.927 251.261 192.927 238.006V24C192.927 10.7452 203.672 0 216.927 0H431.118C444.373 0 455.118 10.7452 455.118 24V238.191Z",fill:"currentColor"})})]})}),(0,i.jsxs)("div",{className:"flex flex-col gap-5 lg:gap-10 flex-1 p-5 pb-10 lg:p-10 lg:pt-12 lg:pr-0",children:[r&&(0,i.jsxs)("p",{className:"eyebrow",children:[r.toUpperCase()," _"]}),(0,i.jsx)("h2",{className:"block tracking-[-0.8px] font-medium",children:n}),a&&(0,i.jsx)("p",{className:"text-[16px] leading-[20px] lg:max-w-[400px]",children:a}),c.href&&(0,i.jsx)(A.CTA,{href:(0,_.getStoryblokLink)(c.href),target:c.href.target,variant:"secondary",contrast:"black"===t?"dark":"light",className:"w-fit",children:c.label.toUpperCase()})]})]})})})}),codeEmbed:rm(eE.HTMLEmbed),accordionGroup:rm(({title:e,intro:t,renderWithFAQSchema:r=!0,firstItemOpenOnLoad:n=!0,accordionItems:a=[],spacingTop:s="md",spacingBottom:o="md",width:l="full"})=>
1{if(!a.length)return null;let c=`accordion-${e?.toLowerCase().replace(/\s+/g,"-")??"group"}`,d=r?a?.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map(e=>({"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:e.body}}))}:null:null;return(0,i.jsxs)(E.Section,{className:(0,et.getSpacingClasses)({top:s,bottom:o}),children:[d&&(0,i.jsx)(p,{schema:d}),(0,i.jsxs)(j.Container,{className:`px-5 md:px-10 ${"narrow"===l?"lg:px-47.5 max-w-[1280px]":""}`,variant:"narrow",children:[e&&(0,i.jsx)("h2",{children:e}),t&&(0,i.jsx)("div",{className:"rich-text prose-p:my-5 md:prose-p:my-10 mb-8 font-primary text-xl/6 md:text-3xl/8 font-light text-primary-black",children:(0,i.jsx)(N.RichText,{content:t})}),(0,i.jsx)("div",{className:"border-t border-primary-black",children:a.map((e,t)=>(0,i.jsx)(eS,{...e,isFirst:n&&0===t,groupName:c},e._uid))})]})]})}),calloutHero:rm(R),calloutImageHero:rm(V),peopleGrid:rm(({people:e})=>{if(!Array.isArray(e)||0===e.length)return null;let t=e.filter(e=>e?.content);return 0===t.length?null:(0,i.jsx)(E.Section,{children:(0,i.jsx)(j.Container,{guttersY:"md",children:(0,i.jsx)("div",{className:"flex flex-wrap justify-center gap-6 max-w-6xl mx-auto",children:t.map(e=>(0,i.jsx)(eC,{person:e.content},e.uuid))})})})}),featuredPartners:rm(({featuredPartners:e,featuredPartnersReference:t,spacingTop:r="md",spacingBottom:n="md"})=>{let a=e.length<3?"lg:grid-cols-2":"lg:grid-cols-3",s=eI(t).map(({partner:e,fullSlug:t})=>({partner:e,link:(0,_.getStoryblokLink)({linktype:"story",cached_url:t})})),o=e.length>0?e.map(e=>({partner:e,link:void 0})):s;return 0===o.length?null:(0,i.jsx)(E.Section,{className:(0,et.getSpacingClasses)({top:r,bottom:n}),children:(0,i.jsx)(j.Container,{guttersY:"md",children:(0,i.jsx)("div",{className:`mx-auto my-10 grid w-full max-w-8xl grid-cols-1 gap-5 px-4 sm:grid-cols-2 md:my-20 md:px-10 ${a}`,children:o.map(({partner:e,link:t})=>(0,i.jsx)(eT,{partner:e,fallbackLink:t},e._uid))})})})}),clickableLogos:rm(({items:e=[],referenceItems:t=[],className:r="",maxWidth:n=100,maxHeight:a=60,spacingTop:s="md",spacingBottom:o="md"})=>{let l=eI(t).map(({partner:e,fullSlug:t})=>({image:e.logo,link:[{label:e.partnerName,href:{linktype:"story",cached_url:t}}],_uid:e._uid})),c=e.length>0?e:l;return 0===c.length?null:(0,i.jsx)(E.Section,{className:(0,S.default)("w-full overflow-hidden",(0,et.getSpacingClasses)({top:s,bottom:o}),r),children:(0,i.jsx)("div",{className:"mx-auto max-w-screen-xl",tabIndex:0,children:(0,i.jsx)("div",{role:"list",className:"flex flex-wrap items-center justify-center whitespace-nowrap",children:c.map(e=>{if(!e.image?.filename)return null;let t=e.link&&e.link.length>0?e.link[0]:null,r=(0,i.jsx)(M.default,{src:e.image.filename,alt:e.image.alt??"",width:160,height:60,draggable:!1,className:`object-contain max-h-[${a}px] max-w-[${n}px] grayscale transition duration-300 ease-out group-hover:scale-110 group-hover:grayscale-0 group-focus-visible:scale-110 group-focus-visible:grayscale-0`});return(0,i.jsx)("div",{role:"listitem",className:"flex w-1/3 flex-shrink-0 items-center justify-center p-4 md:w-1/6",children:t?(0,i.jsx)("a",{href:(0,_.getStoryblokLink)(t.href),target:t.href.target,rel:"_blank"===t.href.target?"noopener noreferrer":void 0,className:"group inline-block","aria-label":t.accessibilityLabel||t.label||e.image.alt,children:r}):(0,i.jsx)("span",{className:"group inline-block",children:r})},e._uid)})})})})}),TagsStrip:rm(({tags:e})=>e?.length?(0,i.jsx)(E.Section,{children:(0,i.jsx)(j.Container,{className:"px-5 md:px-10 py-5 md:pt-10",children:(0,i.jsx)(I,{tags:e})})}):null),jobList:rm(ru),quiz:rm(rf.Quiz)},apiOptions:{region:"eu"}})}]);
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.